/* =====================================================================
   WINTASKLY — Design system
   Police d'affichage : Bricolage Grotesque (caractérielle, moderne)
   Police corps : Manrope
   Mono : JetBrains Mono
   ===================================================================== */

:root {
  /* Tokens neutres */
  --wt-radius-sm: 8px;
  --wt-radius-md: 14px;
  --wt-radius-lg: 22px;
  --wt-radius-pill: 999px;

  /* Hauteur du header sticky (utilisé pour calculer le top de la sidebar drawer
     mobile et du backdrop). Doit matcher la vraie hauteur calculée par le CSS
     .wt-header-v2__inner (padding + contenu). */
  --wt-header-h: 64px;

  --wt-shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --wt-shadow-2: 0 8px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --wt-shadow-glow: 0 0 0 0 transparent;

  --wt-font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --wt-font-body:    'Manrope', system-ui, sans-serif;
  --wt-font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --wt-ease: cubic-bezier(.2, .8, .2, 1);
  --wt-ease-emph: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- THÈME CLAIR : bleu électrique ---------- */
html.light {
  --wt-bg:        #f6f8fc;
  --wt-bg-elev:   #ffffff;
  --wt-bg-soft:   #eef2f9;
  --wt-text:      #0b1220;
  --wt-text-soft: #4b5567;
  --wt-text-mute: #7d869a;
  --wt-border:    #e2e8f1;
  --wt-border-strong: #cbd4e3;

  --wt-accent:        #1d4ed8;   /* Bleu électrique */
  --wt-accent-hot:    #3b82f6;
  --wt-accent-cold:   #1e40af;
  --wt-accent-soft:   #dbe6ff;
  --wt-accent-on:     #ffffff;
  --wt-accent-glow:   rgba(29, 78, 216, .25);

  /* Accent secondaire (light) — teal/vert pour pimenter sans casser le bleu.
   * Usage : gradients accent→accent2, badges "success" stylisés, pulse live,
   * hover sur cards secondaires. */
  --wt-accent2:        #0891b2;   /* Teal profond */
  --wt-accent2-hot:    #10b981;   /* Vert émeraude */
  --wt-accent2-soft:   #d1fae5;
  --wt-accent2-glow:   rgba(8, 145, 178, .25);

  --wt-success: #047857;
  --wt-warn:    #b45309;
  --wt-danger:  #be123c;

  --wt-noise-opacity: .25;
}

/* ---------- THÈME SOMBRE : orange / or premium ---------- */
html.dark {
  --wt-bg:        #0a0c12;
  --wt-bg-elev:   #11141d;
  --wt-bg-soft:   #161b27;
  --wt-text:      #f3f4f8;
  --wt-text-soft: #b9c0cf;
  --wt-text-mute: #7c8499;
  --wt-border:    #23283a;
  --wt-border-strong: #2f354b;

  --wt-accent:        #f59e0b;   /* Or chaud */
  --wt-accent-hot:    #fb923c;   /* Orange */
  --wt-accent-cold:   #c2740a;
  --wt-accent-soft:   #2a1f0a;
  --wt-accent-on:     #1a1102;
  --wt-accent-glow:   rgba(245, 158, 11, .35);

  /* Accent secondaire (dark) — jaune-ambre pour pimenter sans casser l'orange.
   * Usage : gradients orange→jaune, highlights "premium", pulse live, glow
   * sur cards mises en avant. */
  --wt-accent2:        #facc15;   /* Jaune doré */
  --wt-accent2-hot:    #fde047;   /* Jaune clair */
  --wt-accent2-soft:   #422f04;
  --wt-accent2-glow:   rgba(250, 204, 21, .35);

  --wt-success: #34d399;
  --wt-warn:    #fbbf24;
  --wt-danger:  #fb7185;

  --wt-noise-opacity: .35;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }

/* =====================================================================
   PROTECTION GLOBALE MOBILE : empêche tout débordement horizontal
   ===================================================================== */
/* Sur les conteneurs flex/grid, le min-width:0 force les enfants à
   pouvoir se shrinker en dessous de leur largeur intrinsèque. Sinon
   un tableau large ou un mot non-cassable peut casser tout le layout
   mobile. On l'applique de manière ciblée pour ne pas casser les
   layouts qui veulent justement déborder (ex: scrollable carousels). */
.wt-main > *,
.wt-main section,
.wt-main article {
  min-width: 0;
}
/* Les images ne doivent jamais dépasser leur conteneur (responsive
   par défaut, mais certaines images en BDD ou en contenu user peuvent
   être trop larges). */
img, video, iframe, embed, object {
  max-width: 100%;
}
/* Les tableaux dans le contenu doivent toujours pouvoir scroller
   horizontalement si plus larges que leur parent. */
.wt-main table {
  max-width: 100%;
}

/* ====================================================================
 * Empêche le scroll horizontal sur mobile (le drawer fixe à droite +
 * certains éléments peuvent déborder sinon).
 *
 * IMPORTANT : on utilise `overflow-x: clip` (pas `hidden`) car `hidden`
 * crée un nouveau "scrolling container", ce qui CASSE `position: sticky`
 * sur tous les enfants (header sticky, sidebar sticky).
 *
 * `clip` fait pareil visuellement (cache ce qui dépasse) MAIS sans
 * créer de scrolling container → le sticky du header continue de marcher.
 *
 * Compat : `clip` est supporté depuis Chrome 90, Safari 16, Firefox 81.
 * Fallback pour anciens navigateurs : on garde `hidden` comme fallback
 * (le sticky cassera mais c'est minoritaire et l'overflow sera bloqué).
 * ==================================================================== */
html {
  overflow-x: hidden;  /* fallback */
  overflow-x: clip;    /* navigateur récents : pas de scroll container */
}
body {
  overflow-x: hidden;
  overflow-x: clip;
}

/* ====================================================================
 * Preloader Wintaskly (#wt-preloader)
 * Affiché tant que le JS n'a pas révélé #app-wrapper.
 * IMPORTANT : ce CSS doit charger AVANT que la page soit dessinée,
 * sinon on voit un énorme cercle SVG pleine largeur sur mobile.
 * ==================================================================== */
.wt-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wt-bg, #0a0e1a);
  transition: opacity .35s ease, visibility .35s ease;
}
.wt-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.wt-preloader__inner {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wt-preloader__ring {
  position: absolute;
  inset: 0;
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}
.wt-preloader__track {
  fill: none;
  stroke: var(--wt-border, #2a3252);
  stroke-width: 4;
}
.wt-preloader__bar {
  fill: none;
  stroke: var(--wt-accent, #ff9933);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset .25s ease;
}
.wt-preloader__logo {
  position: relative;
  z-index: 1;
  display: block;
}
.wt-preloader__logo img {
  width: 64px;
  height: 64px;
  display: block;
}
.wt-preloader__pct {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--wt-font-mono, monospace);
  font-size: .8rem;
  color: var(--wt-text-mute, #a4abc4);
  white-space: nowrap;
}

/* App wrapper : caché par défaut, révélé par JS (ou par fallback noscript) */
.wt-app-wrapper {
  visibility: hidden;
}
.wt-app-wrapper.is-ready {
  visibility: visible;
}

body.wt-body {
  font-family: var(--wt-font-body);
  background: var(--wt-bg);
  color: var(--wt-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01","cv11";
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain de fond subtil pour donner du caractère */
body.wt-body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(at 12% 8%, var(--wt-accent-glow) 0, transparent 38%),
    radial-gradient(at 88% 95%, var(--wt-accent-glow) 0, transparent 42%);
  opacity: .6;
}

/* ---------------------------------------------------------------------
   HEADER
   --------------------------------------------------------------------- */
.wt-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--wt-bg) 78%, transparent);
  border-bottom: 1px solid var(--wt-border);
}
.wt-header__inner {
  max-width: 1240px; margin: 0 auto;
  padding: .9rem 1.2rem;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem;
  align-items: center;
}
.wt-brand {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--wt-font-display);
  font-weight: 800; font-size: 1.4rem;
  color: var(--wt-text); text-decoration: none;
  letter-spacing: -0.02em;
}
/*
 * Brand mark : à l'origine un W texte stylisé, désormais un <picture>
 * qui contient le logo PNG. La même classe reste pour ne pas casser
 * les usages externes — on rend juste le container "image-ready".
 */
.wt-brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  line-height: 0;            /* évite l'espace fantôme sous l'image */
  flex: 0 0 auto;
}
.wt-brand__mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  /* Lissage : Lanczos amont, rendu écran ici */
  image-rendering: -webkit-optimize-contrast;
}
/* Le swap light/dark se fait via <picture><source media="(prefers-color-scheme: dark)">,
 * mais on a aussi un toggle manuel via classe sur <html>. On override l'image
 * quand l'utilisateur a forcé un thème via le toggle (.light / .dark sur html). */
html.dark  .wt-brand__mark img,
html.dark  .wt-preloader__logo img {
  content: url('../img/logo-dark-64.png');
}
html.light .wt-brand__mark img,
html.light .wt-preloader__logo img {
  content: url('../img/logo-light-64.png');
}
/* Preloader utilise la 192px (rendu plus net en grand) */
html.dark  .wt-preloader__logo img { content: url('../img/logo-dark-192.png'); }
html.light .wt-preloader__logo img { content: url('../img/logo-light-192.png'); }

.wt-nav {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
}
.wt-nav a {
  color: var(--wt-text-soft);
  text-decoration: none; font-weight: 500; font-size: .94rem;
  transition: color .2s var(--wt-ease);
  position: relative;
}
.wt-nav a:hover { color: var(--wt-text); }
.wt-nav a.wt-nav__admin {
  color: var(--wt-accent);
}
.wt-header__actions {
  display: flex; align-items: center; gap: .65rem;
}
.wt-icon-btn {
  background: var(--wt-bg-soft);
  color: var(--wt-text);
  border: 1px solid var(--wt-border);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-grid; place-items: center;
  cursor: pointer;
  transition: transform .2s var(--wt-ease), background .2s var(--wt-ease);
}
.wt-icon-btn:hover { transform: translateY(-1px); background: var(--wt-bg-elev); }
.wt-icon-btn svg { width: 18px; height: 18px; }
html.dark  .wt-icon-sun  { display: none; }
html.light .wt-icon-moon { display: none; }

.wt-lang {
  background: var(--wt-bg-soft);
  color: var(--wt-text);
  border: 1px solid var(--wt-border);
  border-radius: 10px;
  padding: .45rem .6rem;
  font-family: var(--wt-font-body);
  font-weight: 600;
  font-size: .82rem;
}
.wt-balance {
  display: inline-flex; align-items: baseline; gap: .35rem;
  background: var(--wt-bg-soft);
  padding: .45rem .8rem;
  border-radius: var(--wt-radius-pill);
  border: 1px solid var(--wt-border);
  font-variant-numeric: tabular-nums;
}
.wt-balance__amt { font-weight: 700; color: var(--wt-text); }
.wt-balance__unit { font-size: .75rem; color: var(--wt-text-mute); text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------------------
   BOUTONS
   --------------------------------------------------------------------- */
.wt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--wt-font-body);
  font-weight: 600; font-size: .95rem;
  padding: .7rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s var(--wt-ease), box-shadow .2s var(--wt-ease), background .2s var(--wt-ease);
  user-select: none;
  line-height: 1;
}
.wt-btn:active { transform: translateY(1px); }
.wt-btn--primary {
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent-hot));
  color: var(--wt-accent-on);
  box-shadow: 0 6px 18px var(--wt-accent-glow);
}
.wt-btn--primary:hover {
  box-shadow: 0 8px 26px var(--wt-accent-glow);
  transform: translateY(-1px);
}
.wt-btn--ghost {
  background: transparent;
  color: var(--wt-text);
  border-color: var(--wt-border-strong);
}
.wt-btn--ghost:hover { background: var(--wt-bg-soft); }
.wt-btn--lg { padding: .95rem 1.6rem; font-size: 1.02rem; border-radius: 14px; }
.wt-btn--block { width: 100%; }
.wt-btn[disabled] {
  opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none;
}
/* Accent secondaire */
.wt-btn--secondary {
  background: linear-gradient(135deg, var(--wt-accent2), var(--wt-accent2-hot));
  color: var(--wt-accent-on);
  box-shadow: 0 6px 18px var(--wt-accent2-glow);
}

.wt-btn--secondary:hover {
  box-shadow: 0 8px 26px var(--wt-accent2-glow);
  transform: translateY(-1px);
}
/* Succès */
.wt-btn--success {
  background: var(--wt-success);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--wt-success) 35%, transparent);
}

.wt-btn--success:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
/* Attention */
.wt-btn--warning {
  background: var(--wt-warn);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--wt-warn) 35%, transparent);
}

.wt-btn--warning:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
/* Bouton neutre */
.wt-btn--neutral {
  background: var(--wt-bg-elev);
  color: var(--wt-text);
  border: 1px solid var(--wt-border);
}

.wt-btn--neutral:hover {
  background: var(--wt-bg-soft);
  border-color: var(--wt-border-strong);
}
/* Bouton outline */
.wt-btn--outline {
  background: transparent;
  color: var(--wt-text);
  border: 1px solid var(--wt-border-strong);
}

.wt-btn--outline:hover {
  border-color: var(--wt-accent);
  color: var(--wt-accent);
}
/* Premium */
.wt-btn--premium {
  background: linear-gradient(135deg,
      var(--wt-accent),
      var(--wt-accent2),
      var(--wt-accent2-hot));
  color: var(--wt-accent-on);
  box-shadow:
      0 6px 22px var(--wt-accent-glow),
      0 0 18px var(--wt-accent2-glow);
}

.wt-btn--premium:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
      0 10px 28px var(--wt-accent-glow),
      0 0 24px var(--wt-accent2-glow);
}
/* Verre (glass) */
.wt-btn--glass {
  background: color-mix(in srgb, var(--wt-bg-elev) 75%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--wt-border);
  color: var(--wt-text);
}

.wt-btn--glass:hover {
  border-color: var(--wt-accent);
  background: color-mix(in srgb, var(--wt-accent-soft) 35%, var(--wt-bg-elev));
}
/* Bouton lumineux */
.wt-btn--glow {
  background: var(--wt-accent);
  color: var(--wt-accent-on);
  box-shadow:
      0 0 0 1px var(--wt-accent),
      0 0 16px var(--wt-accent-glow),
      0 0 32px var(--wt-accent-glow);
}

.wt-btn--glow:hover {
  transform: translateY(-1px);
  box-shadow:
      0 0 0 1px var(--wt-accent),
      0 0 24px var(--wt-accent-glow),
      0 0 40px var(--wt-accent-glow);
}

/* =====================================================================
   BONUS QUOTIDIEN (Daily Bonus widget)
   ===================================================================== */
.wt-daily {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--wt-accent) 12%, var(--wt-bg-elev)),
    var(--wt-bg-elev));
  border: 1px solid color-mix(in srgb, var(--wt-accent) 30%, transparent);
  border-radius: var(--wt-radius-lg, 22px);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.wt-daily__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.wt-daily__title {
  font-size: 1.2rem;
  margin: 0 0 .25rem;
  font-family: var(--wt-font-display, sans-serif);
}
.wt-daily__sub { font-size: .9rem; opacity: .75; margin: 0; }
.wt-daily__flame {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  padding: .5rem .75rem;
  border-radius: 14px;
  background: var(--wt-bg-soft);
  opacity: .5;
  transition: all .3s;
}
.wt-daily__flame.is-active {
  opacity: 1;
  background: color-mix(in srgb, #ff6b35 20%, var(--wt-bg-elev));
}
.wt-daily__flame-icon { font-size: 1.5rem; line-height: 1; }
.wt-daily__flame.is-active .wt-daily__flame-icon {
  animation: wt-flame-pulse 1.5s ease-in-out infinite;
}
.wt-daily__flame-count {
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--wt-font-mono, monospace);
  margin-top: .15rem;
}
@keyframes wt-flame-pulse {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50%      { transform: scale(1.15) rotate(3deg); }
}
.wt-daily__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: .5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: .25rem;
}
.wt-daily__day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .65rem .4rem;
  border-radius: 12px;
  background: var(--wt-bg-soft);
  border: 1.5px solid transparent;
  min-width: 60px;
  transition: all .25s;
}
.wt-daily__day-num {
  font-size: .68rem;
  text-transform: uppercase;
  opacity: .6;
  font-weight: 600;
  letter-spacing: .03em;
}
.wt-daily__day-reward {
  font-weight: 700;
  font-size: .9rem;
  font-family: var(--wt-font-mono, monospace);
}
.wt-daily__day.is-done {
  background: color-mix(in srgb, #22c55e 15%, var(--wt-bg-elev));
  opacity: .7;
}
.wt-daily__day.is-done .wt-daily__day-reward { color: #22c55e; }
.wt-daily__day.is-next {
  background: color-mix(in srgb, var(--wt-accent) 22%, var(--wt-bg-elev));
  border-color: var(--wt-accent);
  transform: scale(1.06);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--wt-accent) 30%, transparent);
}
.wt-daily__day.is-next .wt-daily__day-reward { color: var(--wt-accent); }
.wt-daily__day.is-future { opacity: .5; }
.wt-daily__day.is-jackpot {
  background: linear-gradient(135deg,
    color-mix(in srgb, #fbbf24 25%, var(--wt-bg-elev)),
    color-mix(in srgb, #f59e0b 15%, var(--wt-bg-elev)));
}
.wt-daily__day.is-jackpot.is-next {
  border-color: #fbbf24;
  box-shadow: 0 4px 20px color-mix(in srgb, #fbbf24 40%, transparent);
}
.wt-daily__day-check {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #22c55e;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.wt-daily__action { text-align: center; }
.wt-daily__claim { min-width: 240px; font-size: 1rem; padding: .85rem 1.5rem; }
.wt-daily__claim.is-loading { opacity: .6; cursor: wait; }
.wt-daily__claim.is-success {
  background: #22c55e !important;
  animation: wt-daily-success-pop .5s ease;
}
@keyframes wt-daily-success-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@media (max-width: 600px) {
  .wt-daily__day { min-width: 52px; padding: .5rem .3rem; }
  .wt-daily__day-reward { font-size: .8rem; }
  .wt-daily__claim { min-width: 100%; }
}

/* =====================================================================
   ACHIEVEMENTS — section dashboard + page galerie
   ===================================================================== */

/* --- Résumé sur le dashboard --- */
.wt-ach-summary {
  background: var(--wt-bg-elev, #131829);
  border: 1px solid var(--wt-border, #232a40);
  border-radius: var(--wt-radius-lg, 22px);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.wt-ach-summary__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.wt-ach-summary__title { font-size: 1.15rem; margin: 0 0 .15rem; }
.wt-ach-summary__count { font-size: .88rem; opacity: .7; margin: 0; }
.wt-ach-summary__recent {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.wt-ach-summary__badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--wt-bg-soft);
  border: 1.5px solid transparent;
}
.wt-ach-summary__badge--bronze   { border-color: #cd7f32; box-shadow: 0 0 12px #cd7f3233; }
.wt-ach-summary__badge--silver   { border-color: #c0c0c0; box-shadow: 0 0 12px #c0c0c033; }
.wt-ach-summary__badge--gold     { border-color: #ffd700; box-shadow: 0 0 12px #ffd70033; }
.wt-ach-summary__badge--platinum { border-color: #7dd3fc; box-shadow: 0 0 12px #7dd3fc33; }
.wt-ach-summary__badge--special  { border-color: #c084fc; box-shadow: 0 0 12px #c084fc33; }

.wt-ach-summary__next-label {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .6;
  margin-bottom: .6rem;
  font-weight: 600;
}
.wt-ach-summary__goal {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
}
.wt-ach-summary__goal-icon { font-size: 1.3rem; width: 28px; text-align: center; }
.wt-ach-summary__goal-info { flex: 1; min-width: 0; }
.wt-ach-summary__goal-title { font-size: .85rem; display: block; margin-bottom: .25rem; }
.wt-ach-summary__goal-bar {
  height: 6px;
  background: var(--wt-bg-soft);
  border-radius: 3px;
  overflow: hidden;
}
.wt-ach-summary__goal-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wt-accent), color-mix(in srgb, var(--wt-accent) 60%, #fff));
  border-radius: 3px;
  transition: width .6s ease;
}
.wt-ach-summary__goal-pct {
  font-size: .8rem;
  font-family: var(--wt-font-mono, monospace);
  opacity: .7;
  min-width: 38px;
  text-align: right;
}

/* --- Page galerie complète --- */
.wt-ach-page__wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
.wt-ach-page__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.wt-ach-page__title { font-size: 1.8rem; margin: .25rem 0; }
.wt-ach-page__progress { text-align: center; }
.wt-ach-page__progress-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(closest-side, var(--wt-bg-elev) 79%, transparent 80% 100%),
    conic-gradient(var(--wt-accent) calc(var(--pct) * 1%), var(--wt-bg-soft) 0);
  margin: 0 auto .5rem;
}
.wt-ach-page__progress-num { font-weight: 800; font-size: 1.05rem; font-family: var(--wt-font-mono, monospace); }
.wt-ach-page__progress-label { font-size: .8rem; opacity: .7; }

.wt-ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.wt-ach-card {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--wt-bg-elev, #131829);
  border: 1.5px solid var(--wt-border, #232a40);
  transition: transform .2s, box-shadow .2s;
}
.wt-ach-card.is-locked { opacity: .65; }
.wt-ach-card.is-unlocked:hover { transform: translateY(-3px); }
.wt-ach-card--bronze.is-unlocked   { border-color: #cd7f32; box-shadow: 0 4px 20px #cd7f3222; }
.wt-ach-card--silver.is-unlocked   { border-color: #c0c0c0; box-shadow: 0 4px 20px #c0c0c022; }
.wt-ach-card--gold.is-unlocked     { border-color: #ffd700; box-shadow: 0 4px 20px #ffd70022; }
.wt-ach-card--platinum.is-unlocked { border-color: #7dd3fc; box-shadow: 0 4px 20px #7dd3fc22; }
.wt-ach-card--special.is-unlocked  { border-color: #c084fc; box-shadow: 0 4px 20px #c084fc22; }
.wt-ach-card__icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
  filter: grayscale(0);
}
.wt-ach-card.is-locked .wt-ach-card__icon { filter: grayscale(1) opacity(.6); }
.wt-ach-card__body { flex: 1; min-width: 0; }
.wt-ach-card__title { font-size: 1rem; margin: 0 0 .25rem; }
.wt-ach-card__desc { font-size: .82rem; opacity: .7; margin: 0 0 .6rem; line-height: 1.4; }
.wt-ach-card__unlocked {
  font-size: .8rem;
  color: #22c55e;
  font-weight: 600;
  margin-bottom: .5rem;
}
.wt-ach-card__progress { margin-bottom: .5rem; }
.wt-ach-card__bar {
  height: 7px;
  background: var(--wt-bg-soft);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: .3rem;
}
.wt-ach-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wt-accent), color-mix(in srgb, var(--wt-accent) 55%, #fff));
  border-radius: 4px;
  transition: width .6s ease;
}
.wt-ach-card__progress-txt {
  font-size: .75rem;
  font-family: var(--wt-font-mono, monospace);
  opacity: .65;
}
.wt-ach-card__reward {
  font-size: .82rem;
  font-family: var(--wt-font-mono, monospace);
  font-weight: 600;
}
.wt-ach-card__badge-check {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
@media (max-width: 600px) {
  .wt-ach-grid { grid-template-columns: 1fr; }
  .wt-ach-page__header { justify-content: center; text-align: center; }
}


/* =====================================================================
   BLOG — listing + article
   ===================================================================== */
.wt-blog__wrap, .wt-article__wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
.wt-blog__header { text-align: center; margin-bottom: 2rem; }
.wt-blog__title { font-size: 2rem; margin: .25rem 0; }
.wt-blog__lead { opacity: .75; max-width: 600px; margin: 0 auto; }
.wt-blog__cats {
  display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem;
}
.wt-blog__cat {
  padding: .45rem .9rem; border-radius: 999px; font-size: .85rem;
  background: var(--wt-bg-soft); border: 1px solid var(--wt-border, #232a40);
  text-decoration: none; color: inherit; transition: all .2s;
}
.wt-blog__cat:hover { border-color: var(--wt-accent); }
.wt-blog__cat.is-active { background: var(--wt-accent); color: #fff; border-color: var(--wt-accent); }
.wt-blog__cat-count { opacity: .6; font-size: .75rem; }
.wt-blog__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}
.wt-blog-card {
  background: var(--wt-bg-elev, #131829); border: 1px solid var(--wt-border, #232a40);
  border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.wt-blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.wt-blog-card__link { text-decoration: none; color: inherit; display: block; }
.wt-blog-card__cover {
  height: 140px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--wt-accent) 18%, var(--wt-bg-elev)), var(--wt-bg-elev));
}
.wt-blog-card__emoji { font-size: 3.5rem; }
.wt-blog-card__body { padding: 1.25rem; }
.wt-blog-card__cat {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--wt-accent); font-weight: 700;
}
.wt-blog-card__title { font-size: 1.1rem; margin: .4rem 0; line-height: 1.3; }
.wt-blog-card__excerpt { font-size: .88rem; opacity: .7; line-height: 1.5; margin: 0 0 1rem; }
.wt-blog-card__meta { display: flex; gap: 1rem; font-size: .78rem; opacity: .6; }
.wt-blog__pagination {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2.5rem;
}
.wt-blog__page-btn {
  padding: .6rem 1.2rem; border-radius: 10px; background: var(--wt-bg-soft);
  text-decoration: none; color: inherit; border: 1px solid var(--wt-border, #232a40);
}
.wt-blog__page-btn:hover { border-color: var(--wt-accent); }
.wt-blog__page-info { font-size: .85rem; opacity: .7; }
.wt-blog__empty { text-align: center; padding: 3rem 1rem; }

/* Article */
.wt-article__breadcrumb { font-size: .85rem; opacity: .7; margin-bottom: 1.5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.wt-article__breadcrumb a { color: var(--wt-accent); text-decoration: none; }
.wt-article__header { text-align: center; margin-bottom: 2rem; }
.wt-article__emoji { font-size: 4rem; margin-bottom: 1rem; }
.wt-article__title { font-size: 2.2rem; line-height: 1.2; margin: 0 0 1rem; }
.wt-article__meta { display: flex; gap: 1.5rem; justify-content: center; font-size: .85rem; opacity: .65; flex-wrap: wrap; }
.wt-article__body {
  max-width: 720px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8;
}
.wt-article__body h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.wt-article__body h3 { font-size: 1.3rem; margin: 1.5rem 0 .75rem; }
.wt-article__body p { margin: 0 0 1.25rem; }
.wt-article__body ul, .wt-article__body ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.wt-article__body li { margin-bottom: .5rem; }
.wt-article__body a { color: var(--wt-accent); }
.wt-article__body img { max-width: 100%; border-radius: 12px; margin: 1.5rem 0; }
.wt-article__body blockquote {
  border-left: 4px solid var(--wt-accent); padding-left: 1.25rem; margin: 1.5rem 0;
  font-style: italic; opacity: .85;
}
.wt-article__body code {
  background: var(--wt-bg-soft); padding: .15rem .4rem; border-radius: 5px;
  font-size: .9em; font-family: var(--wt-font-mono, monospace);
}
.wt-article__cta {
  max-width: 720px; margin: 3rem auto 0; padding: 2rem; text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--wt-accent) 15%, var(--wt-bg-elev)), var(--wt-bg-elev));
  border: 1px solid color-mix(in srgb, var(--wt-accent) 30%, transparent); border-radius: 18px;
}
.wt-article__cta h3 { font-size: 1.4rem; margin: 0 0 .5rem; }
.wt-article__cta p { opacity: .8; margin: 0 0 1.5rem; }
.wt-article__related { max-width: 720px; margin: 3rem auto 0; }
.wt-article__related-title { font-size: 1.3rem; margin-bottom: 1rem; }
.wt-article__related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.wt-article__related-card {
  display: flex; flex-direction: column; gap: .4rem; padding: 1rem; border-radius: 12px;
  background: var(--wt-bg-elev, #131829); border: 1px solid var(--wt-border, #232a40);
  text-decoration: none; color: inherit; transition: all .2s;
}
.wt-article__related-card:hover { border-color: var(--wt-accent); transform: translateY(-2px); }
.wt-article__related-emoji { font-size: 1.8rem; }
.wt-article__related-name { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.wt-article__related-time { font-size: .75rem; opacity: .6; }
@media (max-width: 600px) {
  .wt-blog__grid { grid-template-columns: 1fr; }
  .wt-article__title { font-size: 1.6rem; }
  .wt-article__body { font-size: 1rem; }
}


/* =====================================================================
   ACCUEIL — Section derniers articles du blog
   ===================================================================== */
.wt-home-blog { max-width: 1240px; margin: 0 auto; padding: 3rem 1rem; }
.wt-home-blog__head { text-align: center; margin-bottom: 2rem; }
.wt-home-blog__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.wt-home-blog__card {
  background: var(--wt-bg-elev, #131829); border: 1px solid var(--wt-border, #232a40);
  border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.wt-home-blog__card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.wt-home-blog__link { text-decoration: none; color: inherit; display: block; }
.wt-home-blog__cover {
  height: 120px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--wt-accent) 18%, var(--wt-bg-elev)), var(--wt-bg-elev));
}
.wt-home-blog__emoji { font-size: 3rem; }
.wt-home-blog__body { padding: 1.25rem; }
.wt-home-blog__cat {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--wt-accent); font-weight: 700;
}
.wt-home-blog__title { font-size: 1.05rem; margin: .4rem 0; line-height: 1.3; }
.wt-home-blog__excerpt {
  font-size: .85rem; opacity: .7; line-height: 1.5; margin: 0 0 .75rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wt-home-blog__meta { font-size: .78rem; opacity: .6; }
.wt-home-blog__foot { text-align: center; margin-top: 2rem; }
@media (max-width: 600px) {
  .wt-home-blog__grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   BANNIÈRE MAINTENANCE / ANNONCE UTILISATEUR (affichée tout en haut)
   ===================================================================== */
.wt-maint-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--wt-accent) 20%, var(--wt-bg-elev)),
    color-mix(in srgb, var(--wt-accent) 10%, var(--wt-bg-elev)));
  border-bottom: 1px solid var(--wt-accent);
  color: var(--wt-text);
  font-size: .92rem;
  text-align: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 90;
}
.wt-maint-banner__icon {
  font-size: 1.1rem;
  animation: wt-bell-shake 2.5s ease-in-out infinite;
}
.wt-maint-banner__msg { font-weight: 600; }
.wt-maint-banner__until {
  opacity: .75;
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  padding: .15rem .5rem;
  background: var(--wt-bg);
  border-radius: 6px;
}
@keyframes wt-bell-shake {
  0%, 50%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(10deg); }
  30% { transform: rotate(-8deg); }
  40% { transform: rotate(5deg); }
}

/* Bannière admin : update Wintaskly disponible (clickable) */
.wt-admin-update-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .65rem 1rem;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--wt-accent) 25%, var(--wt-bg-elev)),
    color-mix(in srgb, var(--wt-accent) 15%, var(--wt-bg-elev)));
  border-bottom: 1px solid var(--wt-accent);
  color: var(--wt-text);
  text-decoration: none;
  font-size: .9rem;
  text-align: center;
  flex-wrap: wrap;
  transition: background .2s;
}
.wt-admin-update-banner:hover {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--wt-accent) 35%, var(--wt-bg-elev)),
    color-mix(in srgb, var(--wt-accent) 25%, var(--wt-bg-elev)));
}
.wt-admin-update-banner.is-critical {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--wt-danger, #ef4444) 30%, var(--wt-bg-elev)),
    color-mix(in srgb, var(--wt-danger, #ef4444) 20%, var(--wt-bg-elev)));
  border-bottom-color: var(--wt-danger, #ef4444);
}
.wt-admin-update-banner__icon {
  font-size: 1.15rem;
}

/* ---------------------------------------------------------------------
   MAIN / CARDS / TYPO
   --------------------------------------------------------------------- */
.wt-main {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto;
  padding: 2.4rem 1.2rem 4rem;
}
.wt-card {
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--wt-shadow-1);
}
.wt-card--padded { padding: 2rem; }
.wt-h1 {
  font-family: var(--wt-font-display);
  font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}
.wt-h2 {
  font-family: var(--wt-font-display);
  font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .8rem;
}
.wt-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--wt-font-mono);
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wt-accent);
  background: var(--wt-accent-soft);
  padding: .3rem .65rem;
  border-radius: var(--wt-radius-pill);
}
.wt-lead {
  font-size: 1.08rem; color: var(--wt-text-soft); line-height: 1.55;
  max-width: 62ch;
}

/* ---------------------------------------------------------------------
   HOMEPAGE — Hero 2 colonnes (V8)
   --------------------------------------------------------------------- */
.wt-hero {
  position: relative;
  padding: 3rem 0 1rem;
  isolation: isolate;
}

/*
 * Layout 2-colonnes desktop, 1-colonne mobile.
 *  - À ≥ 960px : colonne gauche (pitch+CTA) 60% · colonne droite
 *    (sidebar live retraits) 40%, alignées en haut.
 *  - < 960px   : la sidebar est masquée par data-nav="desktop",
 *    le pitch occupe toute la largeur, centré.
 */
.wt-hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 960px) {
  .wt-hero__layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr);
    gap: 3rem;
    padding: 2rem 1.5rem;
  }
}

/* ---------------------------------------------------------------------
   STATS BLOCK
   --------------------------------------------------------------------- */
.wt-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin: 2.5rem 0;
}
.wt-stat {
  padding: 1.2rem 1.3rem;
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-md);
  position: relative; overflow: hidden;
}
.wt-stat::after {
  content: ""; position: absolute; inset: auto -20% -50% auto;
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--wt-accent-glow), transparent 70%);
  pointer-events: none;
}
.wt-stat__num {
  font-family: var(--wt-font-display);
  font-size: 2rem; font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
}
.wt-stat__label {
  margin-top: .25rem; color: var(--wt-text-mute);
  font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------------------------------------------------------------------
   FAUCET — Carrefour & flow
   --------------------------------------------------------------------- */
.wt-faucet-wrap {
  max-width: 720px; margin: 0 auto;
  text-align: center; padding: 1rem 0 2rem;
}
.wt-faucet-card {
  position: relative; padding: 2.5rem 1.8rem;
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-lg);
  box-shadow: var(--wt-shadow-2);
}
.wt-faucet-timer {
  display: flex; gap: 1rem; justify-content: center; margin: 1.6rem 0 1rem;
  font-variant-numeric: tabular-nums;
}
.wt-faucet-timer__cell {
  min-width: 86px; padding: 1rem .8rem;
  border: 1px solid var(--wt-border);
  background: var(--wt-bg-soft);
  border-radius: var(--wt-radius-md);
}
.wt-faucet-timer__num {
  font-family: var(--wt-font-display);
  font-size: 2rem; font-weight: 800; line-height: 1;
  color: var(--wt-text);
}
.wt-faucet-timer__label {
  font-family: var(--wt-font-mono); font-size: .7rem; text-transform: uppercase;
  color: var(--wt-text-mute); letter-spacing: .12em; margin-top: .35rem;
}

.wt-faucet-coin {
  display: inline-grid; place-items: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent-hot));
  color: var(--wt-accent-on);
  font-family: var(--wt-font-display);
  font-weight: 800; font-size: 2.4rem;
  box-shadow: 0 20px 60px var(--wt-accent-glow);
  margin: 0 auto 1rem;
}

/* Transition page (étape 2) */
.wt-transition {
  max-width: 780px; margin: 0 auto;
  text-align: center;
}
.wt-transition__count {
  font-family: var(--wt-font-display);
  font-size: 4.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent-hot));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.wt-ad-slot {
  background: var(--wt-bg-soft);
  border: 1px dashed var(--wt-border-strong);
  border-radius: var(--wt-radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: grid; place-items: center;
  min-height: 110px;
  color: var(--wt-text-mute);
  font-family: var(--wt-font-mono); font-size: .82rem;
}
.wt-ad-slot--300x250 {
  width: 300px; height: 250px; padding: 0; margin: 1.5rem auto;
  overflow: hidden;
}

/* Verify page (étape 3) */
.wt-verify {
  max-width: 560px; margin: 0 auto;
  text-align: center;
}
.wt-checkbox {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .8rem 1.2rem;
  background: var(--wt-bg-soft);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-pill);
  cursor: pointer;
  margin: 1.2rem 0;
  user-select: none;
}
.wt-checkbox input { width: 20px; height: 20px; accent-color: var(--wt-accent); cursor: pointer; }
.wt-captcha-instruction {
  font-family: var(--wt-font-display);
  font-size: 1.1rem; margin: 1rem 0 .6rem;
  color: var(--wt-text);
}
.wt-captcha-instruction strong {
  color: var(--wt-accent);
  text-transform: capitalize;
}
.wt-captcha-grid {
  display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap;
  margin: .8rem 0 1rem;
}
.wt-captcha-icon {
  width: 64px; height: 64px;
  border: 1px solid var(--wt-border);
  background: var(--wt-bg-soft);
  border-radius: var(--wt-radius-md);
  display: grid; place-items: center;
  color: var(--wt-text-soft);
  cursor: pointer;
  transition: transform .18s var(--wt-ease), border-color .2s, background .2s;
}
.wt-captcha-icon:hover { transform: translateY(-2px); border-color: var(--wt-border-strong); }
.wt-captcha-icon.is-selected {
  border-color: var(--wt-accent);
  background: var(--wt-accent-soft);
  color: var(--wt-accent);
}
.wt-captcha-icon svg {
  width: 32px;
  height: 32px;
  /* Fix couleur des icônes captcha : sans cette règle, les SVG en BDD
     (table captcha_icons) qui n'ont pas d'attribut `fill` explicite
     s'affichent en noir par défaut → invisibles sur fond sombre et
     non distingués sur fond clair. `currentColor` les fait hériter
     de la prop `color` du parent .wt-captcha-icon, qui est elle-
     même pilotée par var(--wt-text-soft) → s'adapte light/dark.
     Les éléments avec fill="..." explicite gardent leur couleur
     (via revert) — utile si tu ajoutes plus tard des icônes
     multicolores. */
  fill: currentColor;
}
.wt-captcha-icon svg [fill] { fill: revert; }

.wt-captcha-reset {
  background: transparent; border: 1px solid var(--wt-border-strong);
  color: var(--wt-text-soft); padding: .55rem 1rem;
  border-radius: var(--wt-radius-pill);
  cursor: pointer; font-size: .82rem; font-weight: 600;
}
.wt-captcha-reset:hover { color: var(--wt-text); background: var(--wt-bg-soft); }

/* Honeypot — totalement masqué pour les humains */
.wt-honeypot {
  display: none !important;
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------------------------------------------------------------------
   SHORTLINKS
   --------------------------------------------------------------------- */
.wt-shortlinks { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 760px)  { .wt-shortlinks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .wt-shortlinks { grid-template-columns: repeat(3, 1fr); } }
.wt-shortlink {
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-md);
  padding: 1.1rem 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.wt-shortlink__name {
  font-family: var(--wt-font-display); font-weight: 700; font-size: 1.1rem;
}
.wt-shortlink__reward {
  font-family: var(--wt-font-mono);
  font-size: .82rem; color: var(--wt-accent);
}
.wt-shortlink__btn { margin-top: .3rem; }
.wt-shortlink.is-locked { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------------
   DASHBOARD
   --------------------------------------------------------------------- */
.wt-dash-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 920px) {
  .wt-dash-grid { grid-template-columns: 1.4fr 1fr; }
}
.wt-progress {
  background: var(--wt-bg-soft);
  height: 10px; border-radius: var(--wt-radius-pill); overflow: hidden;
  border: 1px solid var(--wt-border);
  margin: .5rem 0;
}
.wt-progress__bar {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--wt-accent), var(--wt-accent-hot));
  transition: width .8s var(--wt-ease-emph);
}
.wt-ref-link {
  display: flex; gap: .5rem; align-items: center;
  background: var(--wt-bg-soft);
  border: 1px solid var(--wt-border);
  padding: .55rem .7rem;
  border-radius: var(--wt-radius-md);
  font-family: var(--wt-font-mono); font-size: .85rem;
}
.wt-ref-link input {
  flex: 1; background: transparent; border: 0; color: var(--wt-text);
  font-family: var(--wt-font-mono); font-size: .85rem; outline: none;
}

/* ---------------------------------------------------------------------
   AUTH FORMS
   --------------------------------------------------------------------- */
.wt-auth {
  max-width: 460px; margin: 3rem auto;
}
.wt-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.wt-field label { font-size: .85rem; color: var(--wt-text-soft); font-weight: 600; }
.wt-input {
  background: var(--wt-bg-soft);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-md);
  padding: .8rem 1rem;
  color: var(--wt-text); font-family: var(--wt-font-body); font-size: .96rem;
  outline: none;
  transition: border-color .2s var(--wt-ease), box-shadow .2s var(--wt-ease);
}
.wt-input:focus {
  border-color: var(--wt-accent);
  box-shadow: 0 0 0 4px var(--wt-accent-glow);
}
.wt-alert {
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-md);
  padding: .8rem 1rem; margin-bottom: 1rem;
  background: var(--wt-bg-soft);
}
.wt-alert--err { border-color: var(--wt-danger); color: var(--wt-danger); }
.wt-alert--ok  { border-color: var(--wt-success); color: var(--wt-success); }

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.wt-footer {
  border-top: 1px solid var(--wt-border);
  background: var(--wt-bg-elev);
  margin-top: 4rem; padding: 2rem 0;
  position: relative; z-index: 1;
}
.wt-footer__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 1.2rem;
  display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;
}
@media (min-width: 760px) {
  .wt-footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.wt-footer__brand p { margin: .3rem 0 0; color: var(--wt-text-mute); font-size: .82rem; }
.wt-footer__nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.wt-footer__nav a { color: var(--wt-text-soft); text-decoration: none; font-size: .88rem; }
.wt-footer__nav a:hover { color: var(--wt-text); }

/* ---------------------------------------------------------------------
   ADMIN
   --------------------------------------------------------------------- */
.wt-admin-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .wt-admin-grid { grid-template-columns: 240px 1fr; }
}
.wt-admin-side {
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-md);
  padding: 1rem;
  height: max-content;
}
.wt-admin-side a {
  display: block; padding: .55rem .7rem;
  color: var(--wt-text-soft); text-decoration: none;
  border-radius: 8px; font-weight: 500; font-size: .92rem;
}
.wt-admin-side a:hover, .wt-admin-side a.is-active {
  background: var(--wt-bg-soft); color: var(--wt-accent);
}
.wt-table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
}
.wt-table th, .wt-table td {
  text-align: left; padding: .65rem .8rem;
  border-bottom: 1px solid var(--wt-border);
}
.wt-table th {
  font-family: var(--wt-font-mono); text-transform: uppercase;
  font-size: .72rem; letter-spacing: .1em; color: var(--wt-text-mute);
}

/* ---------------------------------------------------------------------
   TOAST
   --------------------------------------------------------------------- */
.wt-toast {
  position: fixed; bottom: 1.4rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-pill);
  padding: .7rem 1.2rem;
  box-shadow: var(--wt-shadow-2);
  opacity: 0; pointer-events: none;
  transition: transform .35s var(--wt-ease-emph), opacity .35s;
  z-index: 100;
  font-weight: 600; font-size: .92rem;
}
.wt-toast.is-visible {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.wt-toast--ok  { border-color: var(--wt-success); color: var(--wt-success); }
.wt-toast--err { border-color: var(--wt-danger); color: var(--wt-danger); }

/* ---------------------------------------------------------------------
   UTILS
   --------------------------------------------------------------------- */
.wt-flex { display: flex; }
.wt-center { display: grid; place-items: center; }
.wt-gap-1 { gap: .5rem; } .wt-gap-2 { gap: 1rem; } .wt-gap-3 { gap: 1.5rem; }
.wt-mt-2 { margin-top: 1rem; } .wt-mt-3 { margin-top: 1.5rem; } .wt-mt-4 { margin-top: 2rem; }
.wt-mb-2 { margin-bottom: 1rem; } .wt-mb-3 { margin-bottom: 1.5rem; }
.wt-text-center { text-align: center; }
.wt-text-mute { color: var(--wt-text-mute); }
.wt-text-soft { color: var(--wt-text-soft); }
.wt-text-accent { color: var(--wt-accent); }
.wt-mono { font-family: var(--wt-font-mono); }
.wt-hidden { display: none !important; }

/* ============================================================
 *  V2 — PTC / Offerwalls / Referrals / Withdrawals / Modal
 * ============================================================ */

/* ----------- Generic page header --------------------------- */
.wt-page__header { margin-bottom: 1.5rem; }
.wt-page__title  { font-family: var(--wt-font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 .25rem; }
.wt-page__lead   { color: var(--wt-text-mute); margin: 0; }

/* ----------- PTC list -------------------------------------- */
.wt-ptc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.wt-ptc__card {
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-lg);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: transform .25s var(--wt-ease), border-color .25s var(--wt-ease), box-shadow .25s var(--wt-ease);
}
.wt-ptc__card:hover {
  transform: translateY(-2px);
  border-color: var(--wt-accent);
  box-shadow: var(--wt-shadow-glow);
}
.wt-ptc__card.is-locked,
.wt-ptc__card.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.wt-ptc__title  { margin: 0; font-family: var(--wt-font-display); font-weight: 600; font-size: 1.1rem; }
.wt-ptc__desc   { margin: 0; color: var(--wt-text-mute); font-size: .9rem; line-height: 1.45; }
.wt-ptc__meta   { display: flex; gap: 1rem; font-size: .85rem; color: var(--wt-text-mute); }
.wt-ptc__reward { color: var(--wt-accent); font-weight: 600; }

/* ----------- PTC chrono banner ----------------------------- */
.wt-ptc-chrono {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(90deg, var(--wt-accent-soft), transparent);
  border: 1px solid var(--wt-border-strong);
  border-radius: var(--wt-radius-md);
  padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.wt-ptc-chrono__num {
  font-family: var(--wt-font-mono);
  font-size: 1.45rem; font-weight: 700;
  color: var(--wt-accent);
  min-width: 3ch; text-align: center;
}
.wt-ptc-chrono__label { color: var(--wt-text-mute); }
.wt-ptc-chrono.is-done .wt-ptc-chrono__num { color: var(--wt-success); }
.wt-ptc-chrono.is-cancelled .wt-ptc-chrono__num { color: var(--wt-danger); }

/* ----------- Modal validation ------------------------------ */
.wt-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--wt-ease);
}
.wt-modal.is-open { opacity: 1; pointer-events: auto; }
.wt-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 10, 14, .65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.wt-modal__panel {
  position: relative;
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border-strong);
  border-radius: var(--wt-radius-lg);
  padding: 1.75rem;
  max-width: 480px; width: 100%;
  box-shadow: var(--wt-shadow-2);
  transform: scale(.96);
  transition: transform .3s var(--wt-ease-emph);
}
.wt-modal.is-open .wt-modal__panel { transform: scale(1); }
.wt-modal__title { font-family: var(--wt-font-display); font-size: 1.3rem; margin: 0 0 .5rem; }
.wt-modal__intro { color: var(--wt-text-mute); margin: 0 0 1.25rem; }

.wt-mini-captcha {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin: 1rem 0;
}
.wt-mini-captcha__btn {
  background: var(--wt-bg-soft);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-md);
  padding: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s var(--wt-ease), transform .2s var(--wt-ease);
}
.wt-mini-captcha__btn:hover { border-color: var(--wt-accent); transform: translateY(-1px); }
.wt-mini-captcha__btn svg { width: 32px; height: 32px; }

/* ----------- Offerwalls ------------------------------------ */
.wt-ow__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.wt-ow__card {
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-lg);
  padding: 1.25rem;
  text-align: center;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  transition: transform .25s var(--wt-ease), border-color .25s var(--wt-ease);
}
.wt-ow__card:hover { transform: translateY(-2px); border-color: var(--wt-accent); }
.wt-ow__logo {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wt-bg-soft);
  border-radius: var(--wt-radius-md);
  font-family: var(--wt-font-display);
  font-weight: 700; font-size: 1.5rem;
  color: var(--wt-accent);
  overflow: hidden;
}
.wt-ow__logo img { max-width: 100%; max-height: 100%; }
.wt-ow__name { font-weight: 600; }
.wt-ow__desc { font-size: .85rem; color: var(--wt-text-mute); margin: 0; }

.wt-ow__iframe-wrap {
  position: relative; width: 100%;
  height: 70vh; min-height: 540px;
  background: var(--wt-bg-soft);
  border-radius: var(--wt-radius-lg);
  overflow: hidden;
  border: 1px solid var(--wt-border);
}
.wt-ow__iframe-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ----------- Withdraw -------------------------------------- */
.wt-wd__methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
  margin: 1rem 0 1.5rem;
}
.wt-wd__method {
  position: relative;
  background: var(--wt-bg-elev);
  border: 1.5px solid var(--wt-border);
  border-radius: var(--wt-radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: border-color .2s var(--wt-ease);
}
.wt-wd__method input { position: absolute; opacity: 0; }
.wt-wd__method:hover { border-color: var(--wt-accent); }
.wt-wd__method.is-active,
.wt-wd__method input:checked + .wt-wd__method-body { border-color: var(--wt-accent); }
.wt-wd__method-label { font-weight: 600; }
.wt-wd__method-ratio { font-size: .8rem; color: var(--wt-text-mute); margin-top: .25rem; }
.wt-wd__summary {
  margin-top: .75rem;
  padding: 1rem;
  background: var(--wt-bg-soft);
  border-radius: var(--wt-radius-md);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--wt-font-mono);
}
.wt-wd__summary strong { color: var(--wt-accent); font-size: 1.2rem; }

.wt-badge { display: inline-block; padding: .2em .6em; border-radius: var(--wt-radius-pill); font-size: .75rem; font-weight: 600; }
.wt-badge--pending   { background: rgba(255, 165, 0, .15); color: #d97706; }
.wt-badge--completed { background: rgba(34, 197, 94, .15); color: #16a34a; }
.wt-badge--refused   { background: rgba(239, 68, 68, .15); color: #dc2626; }

/* ----------- Referrals page -------------------------------- */
.wt-ref__share {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin: .75rem 0 1.5rem;
}
.wt-ref__share .wt-btn { font-size: .85rem; padding: .5em 1em; }

/* ----------- is-hidden util -------------------------------- */
.is-hidden { display: none !important; }

/* ============================================================
 *  V3 — Hub d'authentification : honeypot, strength bar, OTP,
 *  illustration mail, spinner bouton
 * ============================================================ */

/* ----- Honeypot (visible uniquement pour les bots) ----- */
.wt-honey {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.wt-honey input { width: 1px; height: 1px; }

/* ----- Carte d'auth large (page verify-email) ----- */
.wt-auth__card--wide { max-width: 520px; }

/* ----- Illustration mail (SVG) ----- */
.wt-mail-illust {
  display: flex; justify-content: center;
  margin-bottom: .5rem;
  animation: wt-float 4s ease-in-out infinite;
}
@keyframes wt-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ----- Jauge de force du mot de passe ----- */
.wt-strength {
  position: relative;
  height: 6px;
  background: var(--wt-border, rgba(255,255,255,.08));
  border-radius: 999px;
  overflow: hidden;
  margin-top: .5rem;
}
.wt-strength__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width .25s ease, background-color .25s ease;
  background: #ef4444;
}
.wt-strength__fill[data-level="weak"]   { background: #ef4444; }
.wt-strength__fill[data-level="fair"]   { background: #f59e0b; }
.wt-strength__fill[data-level="good"]   { background: #3b82f6; }
.wt-strength__fill[data-level="strong"] { background: #22c55e; }
.wt-field__hint[data-level="weak"]      { color: #ef4444; }
.wt-field__hint[data-level="fair"]      { color: #f59e0b; }
.wt-field__hint[data-level="good"]      { color: #3b82f6; }
.wt-field__hint[data-level="strong"]    { color: #22c55e; }

/* ----- OTP segmenté ----- */
.wt-otp {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin: .75rem 0 1.25rem;
}
.wt-otp__cell {
  width: 48px; height: 56px;
  text-align: center;
  font-family: var(--wt-font-mono, 'JetBrains Mono', monospace);
  font-size: 1.5rem;
  font-weight: 600;
  background: var(--wt-bg-elev, #0f172a);
  border: 1.5px solid var(--wt-border, #1f2937);
  color: var(--wt-text, #e5e7eb);
  border-radius: 12px;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.wt-otp__cell:focus {
  outline: none;
  border-color: var(--wt-accent, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wt-accent, #3b82f6) 18%, transparent);
}
@media (max-width: 420px) {
  .wt-otp { gap: .35rem; }
  .wt-otp__cell { width: 40px; height: 48px; font-size: 1.2rem; }
}

/* ----- Spinner inline dans les boutons ----- */
.wt-btn__spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
  margin-left: .5rem;
  vertical-align: middle;
  animation: wt-spin .8s linear infinite;
}
.wt-btn__label.is-loading { opacity: .7; }
@keyframes wt-spin { to { transform: rotate(360deg); } }

/* =====================================================================
 *  V4 — Header dynamique · Drawer mobile · Avatar dropdown · Témoignages
 *  · FAQ · Thread · Messagerie · Notifications · Bulk · Tabs
 * ===================================================================== */

/* =====================================================================
 *  Visibilité responsive — système sémantique par data-nav
 *  ----------------------------------------------------------------------
 *  Plutôt que des utilitaires "wt-hide-mobile" / "wt-show-mobile" qu'il
 *  faut penser à poser sur chaque élément, on tag chaque élément du
 *  header avec sa nature :
 *
 *    data-nav="desktop"  → visible UNIQUEMENT >= 960px
 *    data-nav="mobile"   → visible UNIQUEMENT <  960px
 *    (pas d'attribut)    → visible toujours (brand, thème, langue, avatar…)
 *
 *  Breakpoint à 960px : laisse de la marge pour la nav desktop (6 liens)
 *  + actions (balance + 3 icônes + avatar) sans débordement ni wrap.
 *
 *  Les règles utilisent `display: none !important` pour battre toute
 *  spécificité concurrente (.wt-hamburger { display:flex }, etc.) — la
 *  visibilité responsive est la dernière source de vérité.
 *
 *  Ancien utilitaires .wt-hide-mobile / .wt-show-mobile sont conservés
 *  pour compatibilité (utilisés ailleurs que le header).
 * ===================================================================== */

/* Par défaut (desktop ≥ 960px) : on cache ce qui est marqué mobile. */
[data-nav="mobile"]  { display: none !important; }
[data-nav="desktop"] { /* visible par défaut, le CSS hérité applique */ }

/* Sous le breakpoint : on inverse. */
@media (max-width: 959.98px) {
  [data-nav="desktop"] { display: none !important; }
  [data-nav="mobile"]  { display: inline-flex !important; }
  /* La nav principale est un <nav> bloc : display flex hérité. */
  nav[data-nav="desktop"] { display: none !important; }
  nav[data-nav="mobile"]  { display: flex !important; }
}

/* --- Utilitaires legacy (conservés pour compat ailleurs) ------------- */
.wt-hide-mobile { display: inline-flex; }
.wt-show-mobile { display: none; }
@media (max-width: 959.98px) {
  .wt-hide-mobile { display: none !important; }
  .wt-show-mobile { display: inline-flex !important; }
}

/* Empêche le scroll de la page quand le drawer est ouvert */
.wt-no-scroll { overflow: hidden; }

/* SR-only (lecteurs d'écran) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* --- Boutons icônes avec badge --------------------------------------- */
.wt-icon-btn--badge { position: relative; }

/* Ping animé (cloche notif) */
.wt-ping {
  position: absolute;
  top: 6px; right: 6px;
  width: 9px; height: 9px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .55);
  animation: wt-ping-pulse 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes wt-ping-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Pastille numérique (enveloppe messages) */
.wt-pill-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font: 700 11px/18px Manrope, Arial, sans-serif;
  text-align: center;
  box-shadow: 0 0 0 2px var(--wt-bg, #0a0d14);
}
.wt-pill-badge--inline {
  position: static;
  display: inline-block;
  margin-left: .35rem;
  box-shadow: none;
  vertical-align: middle;
}

/* --- Avatar circulaire (header + cartes témoignages) ----------------- */
.wt-avatar {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--wt-border, #1f2937);
  background: linear-gradient(135deg, var(--wt-accent, #3b82f6), #06b6d4);
  color: #0b1220;
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease;
  padding: 0;
}
.wt-avatar:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.wt-avatar img    { width: 100%; height: 100%; object-fit: cover; }
.wt-avatar__initial { font-size: 1.1rem; line-height: 1; }
.wt-avatar--sm { width: 32px; height: 32px; }
.wt-avatar--sm .wt-avatar__initial { font-size: .9rem; }
.wt-avatar--lg { width: 56px; height: 56px; }
.wt-avatar--lg .wt-avatar__initial { font-size: 1.5rem; }

/* --- Dropdown profil ------------------------------------------------- */
.wt-profile,
.wt-header-v2__profile { position: relative; }
.wt-dropdown {
  position: absolute;
  top: calc(100% + .5rem); right: 0;
  min-width: 240px;
  padding: .5rem;
  background: var(--wt-bg-elev, #0f172a);
  border: 1px solid var(--wt-border, #1f2937);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 200;
}
.wt-profile.is-open .wt-dropdown,
.wt-header-v2__profile.is-open .wt-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wt-dropdown__head {
  padding: .65rem .75rem .5rem;
  border-bottom: 1px solid var(--wt-border, #1f2937);
  margin-bottom: .4rem;
  display: flex; flex-direction: column;
}
.wt-dropdown__head strong { color: var(--wt-text, #e5e7eb); font-size: .92rem; }
.wt-dropdown__head .wt-muted { font-size: .75rem; }
.wt-dropdown__item {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  color: var(--wt-text, #e5e7eb);
  text-decoration: none;
  font-size: .9rem;
  transition: background-color .15s ease;
}
.wt-dropdown__item:hover { background: color-mix(in srgb, var(--wt-accent, #3b82f6) 14%, transparent); }
.wt-dropdown__item--admin   { color: #facc15; font-weight: 600; }
.wt-dropdown__item--danger  { color: #f87171; }
.wt-dropdown__sep { border: 0; border-top: 1px solid var(--wt-border, #1f2937); margin: .4rem 0; }

/* --- Hamburger animé (3 bars → X) ------------------------------------ */
.wt-hamburger {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 4px;
  width: 40px; height: 40px;
}
.wt-hamburger__bar {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.wt-hamburger.is-active .wt-hamburger__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.wt-hamburger.is-active .wt-hamburger__bar:nth-child(2) {
  opacity: 0;
}
.wt-hamburger.is-active .wt-hamburger__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Drawer mobile (coulisse droite → gauche) ------------------------ */
.wt-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 240;
}
.wt-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.wt-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh; height: 100dvh;
  width: min(85vw, 360px);
  background: var(--wt-bg-elev, #0f172a);
  border-left: 1px solid var(--wt-border, #1f2937);
  box-shadow: -16px 0 40px rgba(0, 0, 0, .4);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  z-index: 250;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.wt-drawer.is-open { transform: translateX(0); }

/* ====================================================================
 * SIDEBAR DRAWER SYSTEM (Phase 1 — admin + dashboard)
 *
 * Comportement souhaité :
 *   - DESKTOP (≥960px) : sidebar à gauche, sticky sous header
 *     · Avant le footer : la sidebar reste collée (top: 90px)
 *     · Quand le contenu atteint le bas, sidebar et footer remontent ensemble
 *     · Grâce à `align-items: start` sur le parent grid + sticky
 *   - MOBILE/TABLETTE (<960px) : sidebar = drawer slide depuis la gauche
 *     · Cachée par défaut (transform: translateX(-100%))
 *     · Apparaît au clic sur le bouton ⋯ du header
 *     · Backdrop semi-transparent par-dessus le contenu
 * ==================================================================== */

/* ----- Bouton toggle dans le header (visible uniquement <960px) ----- */
.wt-header-v2__sidebar-toggle {
  display: none;  /* caché par défaut, révélé en mobile */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: .25rem;
  padding: 0;
  border: 1px solid var(--wt-border);
  border-radius: 10px;
  background: var(--wt-bg-elev);
  color: var(--wt-text);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.wt-header-v2__sidebar-toggle:hover {
  background: color-mix(in srgb, var(--wt-accent) 8%, var(--wt-bg-elev));
  border-color: var(--wt-accent);
}
.wt-header-v2__sidebar-toggle:active {
  transform: scale(.95);
}
.wt-header-v2__sidebar-toggle[aria-expanded="true"] {
  background: var(--wt-accent);
  color: var(--wt-accent-on, #0a0e1a);
  border-color: var(--wt-accent);
}
@media (max-width: 959px) {
  .wt-header-v2__sidebar-toggle {
    display: inline-flex;
  }
}

/* ----- Backdrop drawer mobile ----- */
.wt-sidebar-backdrop {
  display: none;  /* caché desktop */
  position: fixed;
  top: var(--wt-header-h);  /* sous le header sticky */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  z-index: 90;  /* sous le header (z=100) et sous le sidebar drawer */
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.wt-sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 959px) {
  .wt-sidebar-backdrop { display: block; }
}

/* ----- Sidebar elle-même : drawer en mobile, sticky en desktop ----- */
@media (max-width: 959px) {
  /* Sur mobile, la sidebar quitte le flux du grid parent
     (elle devient un drawer fixe). Les !important sont essentiels
     pour surcharger les règles spécifiques .wt-dash-v2__sidebar
     et .wt-admin-v2__sidebar (sticky desktop). */
  .wt-sidebar {
    position: fixed !important;
    top: var(--wt-header-h) !important;  /* sous le header sticky */
    left: 0 !important;
    height: calc(100vh - var(--wt-header-h)) !important;
    height: calc(100dvh - var(--wt-header-h)) !important;
    width: min(85vw, 320px) !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 1px solid var(--wt-border) !important;
    box-shadow: 16px 0 40px rgba(0, 0, 0, .35);
    transform: translateX(-100%) !important;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    z-index: 95 !important;  /* sous le header (z=100), au-dessus du contenu */
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 1.5rem !important;
  }
  .wt-sidebar.is-open {
    transform: translateX(0) !important;
  }

  /* Quand le drawer est ouvert, on bloque le scroll du body */
  body.has-sidebar-open {
    overflow: hidden;
  }
}

/* ----- Empêche le footer d'être recouvert par la sidebar sticky -----
   `align-items: start` est déjà sur .wt-admin-v2__layout et .wt-dash__layout.
   Cela combiné à `position: sticky; top: 90px` fait que la sidebar
   "remonte" naturellement avec le contenu en bas, libérant le footer.
   AUCUN JS nécessaire. Voir CSS spec :
   https://developer.mozilla.org/en-US/docs/Web/CSS/position#sticky_positioning */


/* =====================================================================
 *  V5 — Leaderboard mensuel : podium émotionnel, médailles, ancrage
 *  utilisateur et bloc de motivation
 * ===================================================================== */

/* --- Page leaderboard wrapper ----------------------------------------- */
.wt-lb { display: flex; flex-direction: column; gap: 2rem; }

/* ============= PODIUM ============= */
.wt-podium {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 1rem;
  padding: 2rem 1rem 0;
  isolation: isolate;
}
.wt-podium__confetti {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
}

.wt-podium__col {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: .35rem;
  padding: 0 .5rem 0;
}

/* Avatar du podium */
.wt-podium__avatar {
  position: relative;
  width: 88px; height: 88px;
  border-width: 3px;
}
.wt-podium__col--gold   .wt-podium__avatar { border-color: #facc15;
  box-shadow: 0 0 20px rgba(234, 179, 8, .5), 0 0 40px rgba(234, 179, 8, .25); }
.wt-podium__col--silver .wt-podium__avatar { border-color: #cbd5e1;
  box-shadow: 0 0 14px rgba(148, 163, 184, .35); }
.wt-podium__col--bronze .wt-podium__avatar { border-color: #d97706;
  box-shadow: 0 0 14px rgba(217, 119, 6, .35); }
.wt-podium__avatar .wt-avatar__initial { font-size: 2rem; }

/* Couronne */
.wt-podium__crown {
  position: absolute;
  top: -34px; left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  animation: wt-crown-bob 2.4s ease-in-out infinite;
  text-shadow: 0 4px 14px rgba(234, 179, 8, .5);
}
@keyframes wt-crown-bob {
  0%, 100% { transform: translateX(-50%) translateY(0)     rotate(-4deg); }
  50%      { transform: translateX(-50%) translateY(-6px)  rotate( 4deg); }
}

/* Médaille (1/2/3) */
.wt-podium__medal {
  position: absolute;
  bottom: -6px; right: -6px;
  width: 30px; height: 30px;
  border-radius: 999px;
  font: 700 .9rem/30px 'Bricolage Grotesque', Georgia, serif;
  text-align: center;
  color: #0b1220;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.wt-podium__medal--gold   { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.wt-podium__medal--silver { background: linear-gradient(135deg, #e5e7eb, #9ca3af); }
.wt-podium__medal--bronze { background: linear-gradient(135deg, #fed7aa, #c2410c); color: #fff; }

/* Texte podium */
.wt-podium__name {
  display: flex; align-items: center; gap: .35rem;
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 1.05rem;
  margin-top: .5rem;
}
.wt-podium__lvl   { font-size: .75rem; }
.wt-podium__coins { margin-top: .25rem; text-align: center; }
.wt-podium__amount{
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem; font-weight: 700;
  color: var(--wt-text, #f3f4f6);
}
.wt-podium__col--gold .wt-podium__amount { color: #facc15; }
.wt-podium__unit { font-size: .75rem; color: var(--wt-text-soft, #94a3b8); margin-left: .25rem; }

/* Pilier (colonne podium) */
.wt-podium__pillar {
  width: 100%;
  margin-top: .8rem;
  border-radius: 14px 14px 4px 4px;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: .75rem;
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--wt-border, #1f2937) 80%, transparent),
              color-mix(in srgb, var(--wt-bg-elev, #0f172a) 90%, transparent));
  border: 1px solid var(--wt-border, #1f2937);
  border-bottom: 0;
  transition: transform .3s ease;
}
.wt-podium__col--gold   .wt-podium__pillar { height: 140px;
  background: linear-gradient(180deg, rgba(250, 204, 21, .18), rgba(250, 204, 21, .04));
  border-color: rgba(250, 204, 21, .4); }
.wt-podium__col--silver .wt-podium__pillar { height: 110px;
  background: linear-gradient(180deg, rgba(203, 213, 225, .12), rgba(203, 213, 225, .03));
  border-color: rgba(148, 163, 184, .4); }
.wt-podium__col--bronze .wt-podium__pillar { height:  88px;
  background: linear-gradient(180deg, rgba(217, 119, 6, .15), rgba(217, 119, 6, .03));
  border-color: rgba(217, 119, 6, .4); }
.wt-podium__rank-big {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--wt-text-soft, #64748b);
  opacity: .6;
}

/* Bordure animée pour "Vous" sur le podium */
.wt-podium__col.is-me .wt-podium__pillar {
  border-color: var(--wt-accent, #3b82f6);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--wt-accent, #3b82f6) 35%, transparent);
}
html.dark .wt-podium__col.is-me .wt-podium__pillar {
  border-color: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, .35);
}

/* Mobile : reflow vertical */
@media (max-width: 720px) {
  .wt-podium {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 2.5rem;
  }
  .wt-podium__pillar { height: 60px !important; }
  .wt-podium__col--gold   { order: 1; }
  .wt-podium__col--silver { order: 2; }
  .wt-podium__col--bronze { order: 3; }
}

/* ============= LISTE 4-10 ============= */
.wt-lb__list { display: flex; flex-direction: column; gap: .75rem; }
.wt-lb__table tbody tr {
  transition: background-color .2s ease, transform .15s ease;
}
.wt-lb__table tbody tr:hover {
  background: color-mix(in srgb, var(--wt-accent, #3b82f6) 8%, transparent);
}
.wt-lb__rank {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--wt-text-soft, #94a3b8);
}
.wt-lb__user {
  display: flex; align-items: center; gap: .65rem;
}
.wt-lb__row.is-me {
  background: color-mix(in srgb, var(--wt-accent, #3b82f6) 18%, transparent) !important;
  position: relative;
  outline: 2px solid var(--wt-accent, #3b82f6);
  outline-offset: -2px;
}
html.dark .wt-lb__row.is-me {
  outline-color: #facc15;
  background: rgba(250, 204, 21, .12) !important;
}
.wt-lb__row.is-me::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--wt-accent, #3b82f6);
  animation: wt-me-pulse 1.6s ease-in-out infinite;
}
html.dark .wt-lb__row.is-me::before { background: #facc15; }
@keyframes wt-me-pulse {
  0%, 100% { opacity: 1;   }
  50%      { opacity: .35; }
}

/* Petits pills */
.wt-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font: 600 .68rem/1 'JetBrains Mono', monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wt-pill--ok        { background: color-mix(in srgb, #22c55e 22%, transparent); color: #22c55e; }
.wt-pill--challenger{ background: color-mix(in srgb, #06b6d4 22%, transparent); color: #06b6d4; margin-left: .35rem; }
.wt-pulse           { animation: wt-pill-pulse 1.4s ease-in-out infinite; }
@keyframes wt-pill-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.05); opacity: .85; }
}

/* ============= BLOC "VOUS" (hors top) ============= */
.wt-lb__you { margin-top: .5rem; }
.wt-lb__you-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, .18), transparent 60%),
    linear-gradient(135deg, var(--wt-accent, #3b82f6), #06b6d4);
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.wt-lb__you-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .35));
  pointer-events: none;
}
.wt-lb__you-head {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
}
.wt-lb__you-head .wt-avatar {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .15);
}
.wt-lb__you-rank {
  display: flex; align-items: baseline; gap: .5rem;
}
.wt-lb__you-position {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.wt-lb__you-rank .wt-muted { color: rgba(255, 255, 255, .8); font-size: .85rem; }
.wt-lb__you-coins { margin-top: .35rem; font-size: .95rem; }
.wt-lb__you-coins strong { font-family: 'JetBrains Mono', monospace; }
.wt-lb__you-coins .wt-muted { color: rgba(255, 255, 255, .75); }

.wt-lb__motivation {
  position: relative;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, .25);
  border-left: 3px solid #facc15;
  font-size: .95rem; line-height: 1.5;
}
.wt-lb__motivation strong { color: #facc15; }

.wt-lb__you-cta {
  position: relative;
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-top: 1rem;
}
.wt-lb__you-cta .wt-btn--ghost {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
.wt-lb__you-cta .wt-btn--ghost:hover {
  background: rgba(255, 255, 255, .18);
}

/* Utilitaire */
.wt-text-right { text-align: right; }

/* =====================================================================
 *  V6 — Sidebar dashboard, Hub des tâches, Bannière cookies RGPD
 * ===================================================================== */

/* ===== Sidebar dashboard ===== */
.wt-dash__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);  /* minmax(0,1fr) → content peut shrink */
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  min-width: 0;
}
/* Sur mobile : une seule colonne (la sidebar devient drawer) */
@media (max-width: 959px) {
  .wt-dash__layout {
    grid-template-columns: 1fr;
  }
}


/* Note : .wt-brand__mark défini en haut du fichier (image-ready container).
 * L'ancienne redéfinition gradient+texte a été supprimée car incompatible
 * avec le <picture> qui contient désormais le logo. */



.wt-dash__content {
  min-width: 0; /* important : empêche le flex/grid de pousser */
}

@media (max-width: 959px) {
  .wt-dash__layout { grid-template-columns: 1fr; }
}

/* ===== Hub des tâches /tasks/index ===== */
.wt-tasks {
  display: flex; flex-direction: column;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}
.wt-page__cta {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-top: 1rem;
}

.wt-tasks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.wt-task-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--wt-bg-elev, #0f172a);
  border: 1px solid var(--wt-border, #1f2937);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wt-task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .25);
  border-color: var(--wt-accent, #3b82f6);
}
.wt-task-card__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--wt-accent, #3b82f6) 12%, transparent);
  color: var(--wt-accent, #3b82f6);
}
.wt-task-card--faucet     .wt-task-card__icon { color: #06b6d4; background: rgba(6, 182, 212, .12); }
.wt-task-card--shortlinks .wt-task-card__icon { color: #8b5cf6; background: rgba(139, 92, 246, .12); }
.wt-task-card--ptc        .wt-task-card__icon { color: #f59e0b; background: rgba(245, 158, 11, .12); }
.wt-task-card--offerwalls .wt-task-card__icon { color: #22c55e; background: rgba(34, 197, 94, .12); }

.wt-task-card__title {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 1.15rem;
  margin: 0;
}
.wt-task-card__desc {
  color: var(--wt-text-soft, #94a3b8);
  font-size: .9rem;
  line-height: 1.5;
  margin: 0;
}
.wt-task-card__meta {
  list-style: none;
  padding: 0; margin: .25rem 0 0;
  display: flex; flex-direction: column;
  gap: .3rem;
  font-size: .85rem;
}
.wt-task-card__meta li {
  display: flex; gap: .35rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.wt-task-card__status {
  padding: .5rem .65rem;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
}
.wt-task-card__status--ok {
  background: rgba(34, 197, 94, .12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, .25);
}
.wt-task-card__status--cd {
  background: rgba(234, 179, 8, .12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, .25);
}
.wt-task-card__cta {
  margin-top: auto;
  text-align: center;
}

.wt-tasks__tips {
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--wt-accent, #3b82f6) 12%, transparent),
    transparent 60%);
  border: 1px solid var(--wt-border, #1f2937);
}
.wt-tasks__tips-list {
  margin: .75rem 0 0;
  padding-left: 1.25rem;
  display: flex; flex-direction: column;
  gap: .5rem;
  font-size: .92rem;
  line-height: 1.55;
}

/* ===== Bannière cookies RGPD ===== */
.wt-cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .25s ease, transform .25s ease;
}
.wt-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.wt-cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  /* Mobile-first : 1 colonne pour éviter overflow horizontal sur petits écrans */
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: var(--wt-bg-elev, #0b1220);
  border: 1px solid var(--wt-border, #1f2937);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .35), 0 2px 0 var(--wt-accent, #3b82f6) inset;
}
/* Tablet+ : 3 colonnes (icône, texte, boutons) */
@media (min-width: 720px) {
  .wt-cookie-banner__inner {
    grid-template-columns: auto 1fr auto;
  }
}
.wt-cookie-banner__icon {
  font-size: 1.8rem;
  line-height: 1;
}
.wt-cookie-banner__title {
  margin: 0 0 .25rem;
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 1rem;
}
.wt-cookie-banner__desc {
  margin: 0;
  color: var(--wt-text-soft, #94a3b8);
  font-size: .85rem;
  line-height: 1.4;
}
.wt-cookie-banner__links {
  margin: .35rem 0 0;
  font-size: .78rem;
}
.wt-cookie-banner__links a {
  color: var(--wt-accent, #3b82f6);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wt-cookie-banner__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .wt-cookie-banner__inner {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 1rem;
  }
  .wt-cookie-banner__icon { display: none; }
  .wt-cookie-banner__actions { justify-content: stretch; }
  .wt-cookie-banner__actions .wt-btn { flex: 1 1 auto; }
}

/* ===== Modal préférences cookies ===== */
.wt-modal {
  position: fixed; inset: 0;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.wt-modal.is-visible { opacity: 1; pointer-events: auto; }
.wt-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 23, .65);
  backdrop-filter: blur(6px);
}
.wt-modal__panel {
  position: relative;
  background: var(--wt-bg-elev, #0f172a);
  border: 1px solid var(--wt-border, #1f2937);
  border-radius: 16px;
  max-width: 520px;
  width: calc(100% - 2rem);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.wt-modal__header,
.wt-modal__footer {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 1.25rem;
}
.wt-modal__header {
  justify-content: space-between;
  border-bottom: 1px solid var(--wt-border, #1f2937);
}
.wt-modal__header h2 {
  margin: 0;
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 1.1rem;
}
.wt-modal__close {
  background: transparent;
  border: 0;
  color: var(--wt-text-soft, #94a3b8);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.wt-modal__body {
  padding: 1.25rem;
  display: flex; flex-direction: column;
  gap: .9rem;
}
.wt-modal__footer {
  justify-content: flex-end;
  border-top: 1px solid var(--wt-border, #1f2937);
}

.wt-cookie-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: .65rem;
  align-items: center;
  padding: .75rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--wt-accent, #3b82f6) 4%, transparent);
  border: 1px solid var(--wt-border, #1f2937);
  cursor: pointer;
}
.wt-cookie-toggle input {
  grid-row: 1 / 3;
  width: 18px; height: 18px;
  accent-color: var(--wt-accent, #3b82f6);
}
.wt-cookie-toggle strong {
  grid-column: 2;
  font-size: .9rem;
}
.wt-cookie-toggle .wt-muted {
  grid-column: 2;
  font-size: .78rem;
  line-height: 1.35;
}

/* =====================================================================
 *  V6.1 — AJOUTS POST-AUDIT : classes manquantes détectées par grep
 *  des sélecteurs PHP. Compléments à input.css (qui définit déjà
 *  les classes utilitaires via @apply).
 * ===================================================================== */

/* ===== Admin shell (8 classes) ===== */
.wt-admin {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem;
  align-items: flex-start;
}
.wt-admin__tabs {
  display: flex; gap: .25rem;
  border-bottom: 1px solid var(--wt-border, #1f2937);
  margin-bottom: 1rem;
  overflow-x: auto;
}
.wt-admin__tabs a {
  padding: .65rem 1rem;
  text-decoration: none;
  color: var(--wt-text-soft, #94a3b8);
  border-bottom: 2px solid transparent;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}
.wt-admin__tabs a.is-active {
  color: var(--wt-accent, #3b82f6);
  border-bottom-color: var(--wt-accent, #3b82f6);
}

@media (max-width: 900px) {
  .wt-admin { grid-template-columns: 1fr; }
}

/* ===== Auth pages (4 classes) ===== */
.wt-auth__card {
  max-width: 440px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 18px;
  background: var(--wt-bg-elev, #0f172a);
  border: 1px solid var(--wt-border, #1f2937);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}
.wt-auth__title {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 .5rem;
}
.wt-auth__intro {
  color: var(--wt-text-soft, #94a3b8);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.wt-auth__alt {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wt-border, #1f2937);
  text-align: center;
  font-size: .88rem;
  color: var(--wt-text-soft, #94a3b8);
}
.wt-auth__alt a {
  color: var(--wt-accent, #3b82f6);
  text-decoration: none;
  font-weight: 600;
}
.wt-auth__alt a:hover { text-decoration: underline; }

/* ===== Cards (variantes — couleurs spécifiques) ===== */
.wt-card--balance {
  background: linear-gradient(135deg,
    color-mix(in srgb, #06b6d4 12%, var(--wt-bg-elev, #0f172a)),
    var(--wt-bg-elev, #0f172a));
  border-color: rgba(6, 182, 212, .3);
}
.wt-card--level {
  background: linear-gradient(135deg,
    color-mix(in srgb, #facc15 12%, var(--wt-bg-elev, #0f172a)),
    var(--wt-bg-elev, #0f172a));
  border-color: rgba(250, 204, 21, .3);
}
.wt-card--ref {
  background: linear-gradient(135deg,
    color-mix(in srgb, #22c55e 12%, var(--wt-bg-elev, #0f172a)),
    var(--wt-bg-elev, #0f172a));
  border-color: rgba(34, 197, 94, .3);
}

/* ===== Countdown / Bigtimer / Copy widget ===== */
.wt-bigtimer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: .05em;
  padding: 1rem;
  background: rgba(0, 0, 0, .25);
  border-radius: 12px;
  border: 1px solid var(--wt-border, #1f2937);
}
.wt-countdown {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--wt-accent, #3b82f6);
}
.wt-copy {
  display: flex; gap: .5rem; align-items: stretch;
  padding: .35rem;
  border-radius: 10px;
  background: var(--wt-bg, #0b1220);
  border: 1px solid var(--wt-border, #1f2937);
}
.wt-copy input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--wt-text, #f1f5f9);
  font-family: 'JetBrains Mono', monospace;
  font-size: .8rem;
  padding: .35rem .5rem;
  outline: none;
  min-width: 0;
}
.wt-copy button {
  flex: 0 0 auto;
}

/* ===== Dashboard home (6 classes) ===== */
.wt-dash {
  display: flex; flex-direction: column;
  gap: 1.5rem;
}

/* ===== Feed (historique transactions) ===== */
.wt-feed { display: flex; flex-direction: column; gap: 1rem; }
.wt-feed__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .25rem;
}
.wt-feed__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .65rem .75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--wt-accent, #3b82f6) 4%, transparent);
  border: 1px solid transparent;
  transition: border-color .15s ease, background-color .15s ease;
}
.wt-feed__item:hover {
  border-color: var(--wt-border, #1f2937);
  background: color-mix(in srgb, var(--wt-accent, #3b82f6) 8%, transparent);
}
.wt-feed__type {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--wt-bg, #0b1220);
  color: var(--wt-text-soft, #94a3b8);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wt-feed__user { font-size: .9rem; }
.wt-feed__coins {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: .95rem;
}
.wt-feed__coins[data-sign="+"] { color: #22c55e; }
.wt-feed__coins[data-sign="-"] { color: #ef4444; }
.wt-feed__time {
  font-size: .72rem;
  color: var(--wt-text-soft, #64748b);
}

/* ===== Faucet / PTC / Offerwalls / Shortlinks wrappers ===== */
.wt-faucet, .wt-ptc, .wt-ow, .wt-home {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: flex; flex-direction: column;
  gap: 1.5rem;
}
.wt-ow__history {
  padding: 1rem;
  border-radius: 14px;
  background: var(--wt-bg-elev, #0f172a);
  border: 1px solid var(--wt-border, #1f2937);
}

/* ===== Hero landing (5 classes) ===== */
.wt-hero__inner {
  position: relative;
  padding: 4rem 0 3rem;
  text-align: center;
  isolation: isolate;
}
@media (min-width: 960px) {
  /* En desktop 2-col, le pitch s'aligne à gauche (la sidebar prend la droite) */
  .wt-hero__inner { text-align: left; padding: 2rem 0; }
  .wt-hero__lead  { margin-left: 0; }
  .wt-hero__cta   { justify-content: flex-start; }
}
.wt-hero__title {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 .75rem;
  /* Gradient titre : du texte vers l'accent secondaire (jaune dark, teal light)
   * — donne une pointe vivante sans s'éloigner de la couleur de marque. */
  background: linear-gradient(135deg,
                              var(--wt-text) 30%,
                              var(--wt-accent) 70%,
                              var(--wt-accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-hero__lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--wt-text-soft);
  line-height: 1.55;
  max-width: 580px;
  margin: 0 auto 1.5rem;
}
.wt-hero__cta {
  display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2rem;
}
/* Eyebrow avec pulse */
.wt-eyebrow__pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wt-accent2-hot, #10b981);
  position: relative;
}
.wt-eyebrow__pulse::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--wt-accent2-hot, #10b981);
  opacity: .5;
  animation: wt-pulse 1.8s ease-out infinite;
}
@keyframes wt-pulse {
  0%   { transform: scale(.8); opacity: .7; }
  100% { transform: scale(2);  opacity: 0;  }
}

/*
 * Trust line — chiffres clés en ligne sous les CTA.
 * Compact, séparé par des barres verticales légères.
 */
.wt-hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: .8rem 1.2rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-bg-elev) 80%, transparent);
  border: 1px solid var(--wt-border);
  backdrop-filter: blur(8px);
  margin-top: .5rem;
}
.wt-hero__trust-item {
  display: flex; flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.wt-hero__trust-item strong {
  font-family: var(--wt-font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--wt-text);
  font-variant-numeric: tabular-nums;
}
.wt-hero__trust-item span {
  font-size: .7rem;
  color: var(--wt-text-mute);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wt-hero__trust-sep {
  width: 1px; height: 24px;
  background: var(--wt-border);
}
@media (max-width: 480px) {
  .wt-hero__trust { gap: .75rem; padding: .6rem .85rem; }
  .wt-hero__trust-item strong { font-size: 1rem; }
  .wt-hero__trust-item span   { font-size: .62rem; }
}

/* ---------------------------------------------------------------------
 *  Hero SIDEBAR — Top retraits live
 *  Cachée < 960px via data-nav="desktop" (cf. règles globales en haut).
 *  En desktop, sticky pour rester visible pendant le scroll de la home.
 * --------------------------------------------------------------------- */
.wt-hero__sidebar {
  background: color-mix(in srgb, var(--wt-bg-elev) 92%, transparent);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12),
              0 0 0 1px color-mix(in srgb, var(--wt-accent2) 12%, transparent);
  position: relative;
  overflow: hidden;
}
/* Petit dégradé décoratif en haut du panel */
.wt-hero__sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
              transparent,
              var(--wt-accent),
              var(--wt-accent2),
              transparent);
  opacity: .7;
}
@media (min-width: 960px) {
  .wt-hero__sidebar {
    position: sticky;
    top: calc(var(--wt-header-h, 64px) + 1rem);
  }
}
.wt-hero__sidebar-head {
  display: flex; align-items: center; gap: .65rem;
  padding-bottom: .85rem;
  margin-bottom: .85rem;
  border-bottom: 1px solid var(--wt-border);
}
.wt-hero__sidebar-head strong {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-hero__sidebar-head small {
  display: block;
  font-size: .72rem;
  color: var(--wt-text-mute);
  margin-top: .1rem;
}
.wt-hero__live-dot {
  width: 10px; height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--wt-accent2-hot, #10b981);
  box-shadow: 0 0 12px var(--wt-accent2-hot, #10b981);
  position: relative;
}
.wt-hero__live-dot::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--wt-accent2-hot, #10b981);
  animation: wt-pulse 1.8s ease-out infinite;
}

/* Liste des retraits */
.wt-hero__withdraw-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .35rem;
  max-height: 420px;
  overflow-y: auto;
  /* Scrollbar fine et discrète */
  scrollbar-width: thin;
  scrollbar-color: var(--wt-border) transparent;
}
.wt-hero__withdraw-list::-webkit-scrollbar { width: 6px; }
.wt-hero__withdraw-list::-webkit-scrollbar-track { background: transparent; }
.wt-hero__withdraw-list::-webkit-scrollbar-thumb {
  background: var(--wt-border);
  border-radius: 3px;
}

.wt-hero__withdraw-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .65rem;
  border-radius: 10px;
  transition: background .15s ease;
  /* Animation d'entrée en cascade — chaque item retardé par son index. */
  opacity: 0;
  transform: translateY(8px);
  animation: wt-slide-in .5s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 60ms);
}
.wt-hero__withdraw-item:hover {
  background: color-mix(in srgb, var(--wt-accent) 6%, transparent);
}
@keyframes wt-slide-in {
  to { opacity: 1; transform: translateY(0); }
}
.wt-hero__withdraw-info {
  flex: 1; min-width: 0;
}
.wt-hero__withdraw-info strong {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--wt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wt-hero__withdraw-info small {
  display: block;
  font-size: .7rem;
  color: var(--wt-text-mute);
}
.wt-hero__withdraw-amount {
  font-family: var(--wt-font-mono);
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--wt-accent2-hot, #10b981);
  white-space: nowrap;
}
.wt-hero__withdraw-empty {
  padding: 1rem .5rem;
  text-align: center;
}
.wt-hero__sidebar-foot {
  padding-top: .85rem;
  margin-top: .5rem;
  border-top: 1px solid var(--wt-border);
  text-align: center;
}
.wt-hero__sidebar-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--wt-accent);
  text-decoration: none;
  transition: color .15s ease;
}
.wt-hero__sidebar-link:hover {
  color: var(--wt-accent-hot);
}

/* ---------------------------------------------------------------------
 *  Avatar XS (sidebar) + variantes héritées
 * --------------------------------------------------------------------- */
.wt-avatar--xs {
  width: 32px; height: 32px;
  font-size: .8rem;
  flex: 0 0 32px;
}
.wt-hero__orbs {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* ===== Orbs décoratives (background animées) =====
 * Réutilise les @keyframes wt-orb-float / wt-orb-bob déjà définis
 * dans wintaskly-animations.css (alignés sur la motion-reduction
 * globale du media query).
 */
.wt-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  animation: wt-orb-float 14s ease-in-out infinite;
}
.wt-orb--a {
  top: -10%; left: -5%;
  width: 320px; height: 320px;
  background: var(--wt-accent, #3b82f6);
}
.wt-orb--b {
  top: 30%; right: -10%;
  width: 380px; height: 380px;
  background: #06b6d4;
  animation: wt-orb-bob 18s ease-in-out infinite -6s;
}
.wt-orb--c {
  bottom: -10%; left: 30%;
  width: 280px; height: 280px;
  background: #facc15;
  opacity: .25;
  animation: wt-orb-float 22s ease-in-out infinite -11s;
}
/* La règle prefers-reduced-motion globale dans wintaskly-animations.css
 * désactive déjà ces animations — pas besoin de la dupliquer ici. */

/* ===== How-it-works (4 classes) ===== */
.wt-how {
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.wt-how__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.wt-how__step {
  position: relative;
  padding: 1.5rem;
  padding-top: 2.5rem;
  border-radius: 16px;
  background: var(--wt-bg-elev, #0f172a);
  border: 1px solid var(--wt-border, #1f2937);
}
.wt-how__num {
  position: absolute;
  top: 1rem; left: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--wt-accent, #3b82f6), #06b6d4);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: .9rem;
}

/* ===== Legal pages (3 classes) ===== */
.wt-legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
  display: flex; flex-direction: column;
  gap: 1.5rem;
}
.wt-legal__doc, .wt-legal__article {
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--wt-bg-elev, #0f172a);
  border: 1px solid var(--wt-border, #1f2937);
  line-height: 1.65;
}
.wt-legal__doc h2, .wt-legal__article h2 {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 1.2rem;
  margin: 1.5rem 0 .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--wt-border, #1f2937);
}
.wt-legal__doc h2:first-child,
.wt-legal__article h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.wt-legal__doc h3, .wt-legal__article h3 {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 1.05rem;
  margin: 1.25rem 0 .5rem;
  color: var(--wt-accent, #3b82f6);
}
.wt-legal__doc code, .wt-legal__article code {
  background: var(--wt-bg, #0b1220);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem;
  color: #06b6d4;
}

/* ===== Shortlinks page + gateway (10 classes) ===== */
.wt-sl__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.wt-sl__card {
  display: flex; flex-direction: column;
  gap: .5rem;
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--wt-bg-elev, #0f172a);
  border: 1px solid var(--wt-border, #1f2937);
  transition: border-color .2s ease, transform .15s ease;
}
.wt-sl__card:hover {
  border-color: var(--wt-accent, #3b82f6);
  transform: translateY(-2px);
}
.wt-sl__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem;
}
.wt-sl__name {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.wt-sl__reward {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #22c55e;
}
.wt-sl__xp {
  font-size: .75rem;
  color: var(--wt-text-soft, #94a3b8);
}
.wt-sl__locked {
  font-size: .82rem;
  color: #facc15;
  padding: .35rem .65rem;
  background: rgba(250, 204, 21, .08);
  border: 1px solid rgba(250, 204, 21, .2);
  border-radius: 8px;
}

/* Shortlink gateway (passerelle intermédiaire) */
.wt-sl-gw {
  max-width: 720px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 20px;
  background: var(--wt-bg-elev, #0f172a);
  border: 1px solid var(--wt-border, #1f2937);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.wt-sl-gw__cd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 800;
  color: var(--wt-accent, #3b82f6);
  margin: 1rem 0;
}
.wt-sl-gw__ad {
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: var(--wt-bg, #0b1220);
  border: 1px dashed var(--wt-border, #1f2937);
  min-height: 100px;
}

/* ===== Témoignages form-wrap ===== */
.wt-testi__form-wrap {
  max-width: 640px;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--wt-bg-elev, #0f172a);
  border: 1px solid var(--wt-border, #1f2937);
}

/* =====================================================================
 *  V6.2 — Bloc succès du formulaire de contact (guest)
 * ===================================================================== */
.wt-contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  margin: 1rem 0 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg,
    color-mix(in srgb, #22c55e 12%, var(--wt-bg-elev, #0f172a)),
    var(--wt-bg-elev, #0f172a));
  border: 1px solid rgba(34, 197, 94, .35);
  text-align: center;
  animation: wt-celebrate .6s var(--wt-ease-emph) both;
}
.wt-contact-success.is-hidden { display: none; }
.wt-contact-success__icon {
  font-size: 2.5rem;
  line-height: 1;
}
.wt-contact-success__title {
  margin: 0;
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 1.25rem;
  color: #22c55e;
}
.wt-contact-success__lead {
  margin: 0;
  color: var(--wt-text-soft, #94a3b8);
  font-size: .92rem;
  line-height: 1.5;
  max-width: 460px;
}
.wt-contact-success__link {
  width: 100%;
  max-width: 520px;
  text-align: left;
}
.wt-contact-success__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .5rem;
}

/* Variante large des cartes auth (pour intégrer formulaire + bloc succès) */
.wt-auth__card--wide {
  max-width: 640px;
}

/* =====================================================================
 *  V7 — Toggle visibilité mot de passe + UI compte / settings
 * ===================================================================== */

/* ===== Wrap pour input password avec œil ===== */
.wt-input-wrap--password {
  position: relative;
  display: block;
}
.wt-input-wrap--password .wt-input {
  width: 100%;
  padding-right: 2.75rem; /* place pour l'icône */
}
.wt-input-eye {
  position: absolute;
  top: 50%;
  right: .5rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: transparent;
  border: 0;
  color: var(--wt-text-soft, #94a3b8);
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.wt-input-eye:hover {
  color: var(--wt-accent, #3b82f6);
  background: color-mix(in srgb, var(--wt-accent, #3b82f6) 10%, transparent);
}
.wt-input-eye:focus-visible {
  outline: 2px solid var(--wt-accent, #3b82f6);
  outline-offset: 2px;
}
.wt-input-eye .is-hidden { display: none; }

/* ===== Pages /dashboard/settings + /dashboard/account ===== */
.wt-settings__group,
.wt-account__group {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--wt-bg-elev, #0f172a);
  border: 1px solid var(--wt-border, #1f2937);
  margin-bottom: 1.25rem;
}
.wt-settings__group h2,
.wt-account__group h2 {
  margin: 0 0 .25rem;
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.wt-settings__group p.wt-muted,
.wt-account__group p.wt-muted {
  margin: 0 0 1rem;
  font-size: .88rem;
  line-height: 1.5;
}
.wt-settings__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--wt-border, #1f2937);
}
.wt-settings__row:last-child { border-bottom: 0; }
.wt-settings__row-info {
  flex: 1;
  min-width: 0;
}
.wt-settings__row-info strong {
  display: block;
  font-size: .95rem;
  margin-bottom: .15rem;
}
.wt-settings__row-info .wt-muted {
  display: block;
  font-size: .8rem;
  line-height: 1.45;
}
.wt-settings__row-status {
  font-size: .8rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-weight: 600;
}
.wt-settings__row-status--on  { background: rgba(34,197,94,.15);  color: #22c55e; }
.wt-settings__row-status--off { background: rgba(148,163,184,.15);color: #94a3b8; }

/* ===== Switch toggle (input checkbox stylé) ===== */
.wt-switch {
  position: relative;
  display: inline-block;
  width: 46px; height: 26px;
  flex: 0 0 46px;
}
.wt-switch input {
  opacity: 0; width: 0; height: 0;
  position: absolute;
}
.wt-switch__slider {
  position: absolute; inset: 0;
  background: #475569;
  border-radius: 999px;
  transition: background-color .2s ease;
  cursor: pointer;
}
.wt-switch__slider::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.wt-switch input:checked + .wt-switch__slider {
  background: var(--wt-accent, #3b82f6);
}
.wt-switch input:checked + .wt-switch__slider::before {
  transform: translateX(20px);
}
.wt-switch input:disabled + .wt-switch__slider {
  opacity: .5;
  cursor: not-allowed;
}
.wt-switch input:focus-visible + .wt-switch__slider {
  outline: 2px solid var(--wt-accent, #3b82f6);
  outline-offset: 2px;
}

/* ===== Danger zone (suppression compte) ===== */
.wt-danger-zone {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .04);
  margin-top: 2rem;
}
.wt-danger-zone h2 {
  color: #ef4444;
  margin: 0 0 .5rem;
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 1.1rem;
}

/* ===== Avatar uploader (account) ===== */
.wt-account__avatar {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.wt-account__avatar .wt-avatar {
  flex: 0 0 auto;
  width: 80px; height: 80px;
  font-size: 1.5rem;
}
.wt-account__avatar-meta {
  flex: 1;
  min-width: 0;
}

/* Solde Coins dans le drawer (réplique mobile du wt-balance du header) */
.wt-drawer__balance {
  display: inline-flex; align-items: baseline; gap: .35rem;
  margin-top: .4rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wt-accent) 14%, transparent);
  color: var(--wt-text);
  font-weight: 600;
  font-size: .9rem;
}
.wt-drawer__balance .wt-balance__unit {
  font-size: .7rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em;
}

/* =====================================================================
 *  V8 — Tasks Showcase (homepage)
 *
 *  Le composant .wt-task-card est utilisé en mode "jeu" sur /tasks/.
 *  Sur la home on enrichit avec le modificateur --showcase pour un look
 *  marketing : ribbon, pricing en grand, flèche d'invitation, hover plus
 *  prononcé, animation cascade au reveal.
 *
 *  Couleurs d'accent par module — chaque card a son hue propre pour la
 *  différenciation visuelle. Les hue de base (cyan / violet / amber /
 *  émeraude) sont déjà héritées du composant utilitaire.
 * ===================================================================== */
.wt-showcase {
  max-width: 1200px;
  margin: 4rem auto 2rem;
  padding: 0 1rem;
}
.wt-showcase__head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.wt-showcase__head .wt-eyebrow {
  margin-bottom: .75rem;
}
.wt-section__title {
  font-family: var(--wt-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
  background: linear-gradient(135deg,
              var(--wt-text) 50%,
              var(--wt-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-section__lead {
  font-size: 1rem;
  color: var(--wt-text-soft);
  max-width: 56ch;
  margin: 0 auto;
}

.wt-showcase__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .wt-showcase__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .wt-showcase__grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

/* --- Modificateur showcase : applique-toi à un .wt-task-card existant - */
.wt-task-card--showcase {
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  padding: 1.5rem 1.25rem 1.25rem;
  /* Cascade d'apparition au reveal */
  opacity: 0;
  transform: translateY(12px);
  animation: wt-showcase-in .55s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 80ms + 80ms);
}
@keyframes wt-showcase-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Dégradé subtil dans le fond, ton accent2 du thème */
.wt-task-card--showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 100% 0%,
              color-mix(in srgb, var(--wt-accent2, transparent) 8%, transparent),
              transparent 55%);
  opacity: 0;
  transition: opacity .25s ease;
}
.wt-task-card--showcase:hover::before { opacity: 1; }

.wt-task-card--showcase:hover {
  /* Override du translateY(-3px) hérité — on garde plus pour effet "soulèvement" */
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .18),
              0 0 0 1px color-mix(in srgb, var(--wt-accent) 18%, transparent);
}

/* Ribbon "POPULAIRE" en coin haut-droit */
.wt-task-card__ribbon {
  position: absolute;
  top: .85rem; right: .85rem;
  font-family: var(--wt-font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: var(--wt-radius-pill);
  color: var(--wt-accent-on);
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent-hot));
  box-shadow: 0 4px 12px var(--wt-accent-glow);
  z-index: 1;
}
.wt-task-card--showcase.is-popular {
  /* Bordure tilt accent + glow permanent (effet "best seller") */
  border-color: color-mix(in srgb, var(--wt-accent) 35%, var(--wt-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wt-accent) 18%, transparent);
}

/* Pricing : montant en gros, unité en petit dessous */
.wt-task-card__pricing {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin: .35rem 0 .5rem;
  flex-wrap: wrap;
}
.wt-task-card__price {
  font-family: var(--wt-font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  /* La couleur reprend l'icône via la classe parente --module */
  color: var(--wt-text);
}
.wt-task-card--faucet     .wt-task-card--showcase .wt-task-card__price,
.wt-task-card--faucet.wt-task-card--showcase .wt-task-card__price     { color: #06b6d4; }
.wt-task-card--shortlinks.wt-task-card--showcase .wt-task-card__price { color: #8b5cf6; }
.wt-task-card--ptc.wt-task-card--showcase        .wt-task-card__price { color: var(--wt-accent-hot, #fb923c); }
.wt-task-card--offerwalls.wt-task-card--showcase .wt-task-card__price { color: var(--wt-success, #22c55e); }

.wt-task-card__price-unit {
  font-size: .82rem;
  color: var(--wt-text-mute);
  font-weight: 500;
}
.wt-task-card__note {
  color: var(--wt-text-mute);
  font-size: .76rem;
  font-style: italic;
}

/* Flèche d'invitation en coin bas-droit, suivant le curseur */
.wt-task-card__arrow {
  position: absolute;
  bottom: 1rem; right: 1.1rem;
  font-size: 1.15rem;
  color: var(--wt-text-mute);
  transition: transform .25s var(--wt-ease, ease-out), color .2s ease;
}
.wt-task-card--showcase:hover .wt-task-card__arrow {
  transform: translateX(4px);
  color: var(--wt-accent);
}

/* La meta-list est plus discrète en showcase */
.wt-task-card--showcase .wt-task-card__meta {
  margin-top: auto;
  padding-top: .65rem;
  border-top: 1px dashed color-mix(in srgb, var(--wt-border) 70%, transparent);
}
.wt-task-card--showcase .wt-task-card__meta li {
  color: var(--wt-text-mute);
  font-size: .8rem;
  align-items: center;
}
.wt-task-card--showcase .wt-task-card__meta svg {
  flex: 0 0 14px;
  color: var(--wt-text-mute);
}

/* =====================================================================
 *  V8 — Activity Feed v2 (homepage)
 *
 *  Liste de récompenses récentes en format "phrase naturelle".
 *  Avatars colorés de manière déterministe via hash JS (data-hash-color).
 *  Animation slide-in en cascade au reveal initial puis sur nouveaux items.
 *  Auto-refresh 30s via /api/home_feed.php.
 * ===================================================================== */
.wt-feed-v2 {
  max-width: 900px;
  margin: 3rem auto 2rem;
  padding: 0 1rem;
}
.wt-feed-v2__head {
  text-align: center;
  margin-bottom: 2rem;
}
.wt-feed-v2__empty {
  text-align: center;
  padding: 2rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px dashed var(--wt-border);
}

.wt-feed-v2__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .35rem;
}

.wt-feed-v2__item {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  /* Cascade au reveal initial */
  opacity: 0;
  transform: translateY(8px);
  animation: wt-feed-in .45s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 70ms);
}
@keyframes wt-feed-in {
  to { opacity: 1; transform: translateY(0); }
}
.wt-feed-v2__item:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
  background: color-mix(in srgb, var(--wt-accent) 4%, var(--wt-bg-elev));
}

/* Animation "nouveau" : item inséré dynamiquement par le refresh */
.wt-feed-v2__item.is-new {
  animation: wt-feed-flash .9s ease-out;
}
@keyframes wt-feed-flash {
  0%   { background: color-mix(in srgb, var(--wt-accent2-hot, #10b981) 25%, var(--wt-bg-elev));
         box-shadow: 0 0 0 1px var(--wt-accent2-hot, #10b981); }
  100% { background: var(--wt-bg-elev); box-shadow: none; }
}

.wt-feed-v2__avatar {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  font-size: .82rem;
  font-weight: 700;
}

.wt-feed-v2__body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-feed-v2__line {
  margin: 0;
  font-size: .92rem;
  color: var(--wt-text-soft);
  line-height: 1.4;
  /* Tronquer si l'item devient trop long */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wt-feed-v2__line strong {
  color: var(--wt-text);
  font-weight: 700;
}
.wt-feed-v2__verb {
  color: var(--wt-text-soft);
}
.wt-feed-v2__coins {
  font-family: var(--wt-font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wt-feed-v2__coins small {
  font-weight: 500;
  opacity: .7;
  font-size: .8em;
}
/* Couleurs par type — discrètes pour ne pas saturer la liste */
.wt-feed-v2__coins--faucet    { color: #06b6d4; }
.wt-feed-v2__coins--shortlink { color: #8b5cf6; }
.wt-feed-v2__coins--ptc       { color: var(--wt-accent-hot, #fb923c); }
.wt-feed-v2__coins--offerwall { color: var(--wt-success, #22c55e); }
.wt-feed-v2__coins--referral  { color: var(--wt-accent2, #facc15); }
.wt-feed-v2__coins--bonus     { color: var(--wt-accent, #f59e0b); }

.wt-feed-v2__meta {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem;
  color: var(--wt-text-mute);
  font-family: var(--wt-font-mono);
}
.wt-feed-v2__sep { opacity: .5; }

.wt-feed-v2__type-icon {
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center; justify-content: center;
  border-radius: 5px;
}
.wt-feed-v2__type-icon--faucet    { color: #06b6d4; background: rgba(6, 182, 212, .12); }
.wt-feed-v2__type-icon--shortlink { color: #8b5cf6; background: rgba(139, 92, 246, .12); }
.wt-feed-v2__type-icon--ptc       { color: var(--wt-accent-hot, #fb923c); background: color-mix(in srgb, var(--wt-accent-hot, #fb923c) 12%, transparent); }
.wt-feed-v2__type-icon--offerwall { color: var(--wt-success, #22c55e); background: color-mix(in srgb, var(--wt-success, #22c55e) 12%, transparent); }
.wt-feed-v2__type-icon--referral  { color: var(--wt-accent2, #facc15); background: color-mix(in srgb, var(--wt-accent2, #facc15) 14%, transparent); }
.wt-feed-v2__type-icon--bonus     { color: var(--wt-accent, #f59e0b); background: color-mix(in srgb, var(--wt-accent, #f59e0b) 12%, transparent); }

/* Avatar colors générés par hash JS — palette accessible (contraste suffisant) */
.wt-avatar[data-hash-color] {
  background: var(--avatar-bg, color-mix(in srgb, var(--wt-accent) 18%, var(--wt-bg-soft)));
  color: var(--avatar-fg, var(--wt-text));
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* Mobile : laisse la ligne wrap, montre l'avatar plus petit */
@media (max-width: 540px) {
  .wt-feed-v2__item { gap: .65rem; padding: .7rem .85rem; }
  .wt-feed-v2__avatar { flex: 0 0 32px; width: 32px; height: 32px; font-size: .75rem; }
  .wt-feed-v2__line { font-size: .85rem; white-space: normal; }
}

/* =====================================================================
 *  V8 — Leaderboard preview (homepage)
 *
 *  Podium horizontal 2-1-3 avec base graduée. Le rank 1 est plus grand
 *  (avatar lg, couronne, médaille or, base plus haute). Animation
 *  "rebond" à l'arrivée : chaque marche monte depuis le sol avec délai.
 *
 *  Sous le podium : 4-5 en ligne compacte pour donner plus de profondeur.
 *  Le composant réutilise .wt-avatar (XS/MD/LG) et data-hash-color.
 * ===================================================================== */
.wt-lbprev {
  max-width: 1000px;
  margin: 4rem auto 2rem;
  padding: 0 1rem;
}
.wt-lbprev__head {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Podium : grid 3-col centrée, alignée en bas (les bases au sol) */
.wt-lbprev__podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  align-items: end;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
@media (min-width: 640px) {
  .wt-lbprev__podium { gap: 1.5rem; }
}

.wt-lbprev__step {
  display: flex; flex-direction: column;
  align-items: center;
  gap: .35rem;
  position: relative;
  text-align: center;
  /* Animation rebond : monte depuis 30px en bas, légèrement décalée
   * pour chaque marche (1 d'abord, puis 2, puis 3 — effet "tada"). */
  opacity: 0;
  transform: translateY(30px) scale(.94);
  animation: wt-lbprev-bounce .7s var(--wt-ease-emph, ease-out) forwards;
}
.wt-lbprev__step--1 { animation-delay: 0ms;   }  /* le roi arrive en premier */
.wt-lbprev__step--2 { animation-delay: 180ms; }
.wt-lbprev__step--3 { animation-delay: 360ms; }
@keyframes wt-lbprev-bounce {
  60%  { opacity: 1; transform: translateY(-6px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0)     scale(1);    }
}

/* Médailles emoji : plus visible que les chiffres seuls */
.wt-lbprev__medal {
  font-size: 1.65rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}

/* Couronne sur le rank 1 — anime un léger float */
.wt-lbprev__crown {
  position: absolute;
  top: -.85rem;
  color: var(--wt-accent2, gold);
  filter: drop-shadow(0 4px 12px var(--wt-accent2-glow));
  animation: wt-crown-float 3s ease-in-out infinite;
}
@keyframes wt-crown-float {
  0%, 100% { transform: translateY(0)    rotate(-3deg); }
  50%      { transform: translateY(-4px) rotate(3deg);  }
}

.wt-lbprev__name {
  font-family: var(--wt-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--wt-text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-lbprev__step--1 .wt-lbprev__name { font-size: 1.15rem; }

.wt-lbprev__level {
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--wt-text-mute);
  padding: .15rem .5rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-accent) 8%, transparent);
}
.wt-lbprev__coins {
  display: flex; flex-direction: column;
  align-items: center;
  margin: .35rem 0 .5rem;
  line-height: 1.1;
}
.wt-lbprev__amount {
  font-family: var(--wt-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-accent2, gold);
}
.wt-lbprev__step--1 .wt-lbprev__amount {
  font-size: 1.55rem;
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-lbprev__coins small {
  font-size: .68rem;
  color: var(--wt-text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Base graduée : la hauteur change selon le rank pour effet podium */
.wt-lbprev__plinth {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--wt-font-display);
  font-weight: 800;
  color: var(--wt-text-soft);
  font-size: 1.5rem;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--wt-bg-elev) 95%, transparent),
              color-mix(in srgb, var(--wt-bg-soft) 80%, transparent));
  border: 1px solid var(--wt-border);
  border-bottom: none;
  position: relative;
}
.wt-lbprev__plinth--1 {
  height: 90px;
  /* Gradient or pour le top — accent + accent2 */
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--wt-accent) 25%, var(--wt-bg-elev)),
              color-mix(in srgb, var(--wt-accent2) 18%, var(--wt-bg-soft)));
  border-color: color-mix(in srgb, var(--wt-accent) 40%, var(--wt-border));
  box-shadow: 0 -8px 28px var(--wt-accent-glow);
}
.wt-lbprev__plinth--2 { height: 65px; }
.wt-lbprev__plinth--3 { height: 50px; }

/* Mobile : on garde la même grille 3-col mais on serre les espacements */
@media (max-width: 540px) {
  .wt-lbprev__podium { gap: .35rem; max-width: 100%; }
  .wt-lbprev__name { font-size: .85rem; }
  .wt-lbprev__step--1 .wt-lbprev__name { font-size: .95rem; }
  .wt-lbprev__amount { font-size: 1rem; }
  .wt-lbprev__step--1 .wt-lbprev__amount { font-size: 1.2rem; }
  .wt-lbprev__plinth--1 { height: 70px; }
  .wt-lbprev__plinth--2 { height: 50px; }
  .wt-lbprev__plinth--3 { height: 38px; }
  .wt-lbprev__medal { font-size: 1.3rem; }
}

/* Coureurs 4-5 : ligne fine sous le podium */
.wt-lbprev__runners {
  list-style: none;
  padding: 0; margin: 1.25rem auto 1.5rem;
  max-width: 560px;
  display: flex; flex-direction: column;
  gap: .35rem;
}
.wt-lbprev__runner {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .85rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  font-size: .9rem;
  transition: border-color .2s ease, transform .2s ease;
}
.wt-lbprev__runner:hover {
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
  transform: translateX(4px);
}
.wt-lbprev__runner-rank {
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  color: var(--wt-text-mute);
  width: 32px;
}
.wt-lbprev__runner-name {
  flex: 1; min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.wt-lbprev__runner-level {
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  color: var(--wt-text-mute);
}
.wt-lbprev__runner-coins {
  font-family: var(--wt-font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--wt-accent2);
  white-space: nowrap;
}
.wt-lbprev__runner-coins small {
  font-size: .7em; opacity: .7; font-weight: 500;
}

.wt-lbprev__foot {
  text-align: center;
  margin-top: 1.5rem;
}

/* =====================================================================
 *  V8 — Testimonials featured (homepage)
 *
 *  3 cards horizontales avec guillemet décoratif en arrière-plan,
 *  étoiles colorées, dégradé d'accent sur le bord supérieur.
 * ===================================================================== */
.wt-testi {
  max-width: 1200px;
  margin: 4rem auto 2rem;
  padding: 0 1rem;
}
.wt-testi__head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.wt-testi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .wt-testi__grid { grid-template-columns: repeat(3, 1fr); }
}

.wt-testi__card {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column;
  gap: .75rem;
  /* Cascade au reveal */
  opacity: 0;
  transform: translateY(12px);
  animation: wt-testi-in .55s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 110ms + 80ms);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
@keyframes wt-testi-in {
  to { opacity: 1; transform: translateY(0); }
}
.wt-testi__card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
  box-shadow: 0 18px 38px rgba(0,0,0,.14);
}
/* Liseré dégradé en haut de chaque card */
.wt-testi__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wt-accent), var(--wt-accent2));
  opacity: .85;
}

/* Guillemet géant en arrière-plan */
.wt-testi__quote-mark {
  position: absolute;
  top: -20px; right: 10px;
  font-family: 'Georgia', serif;
  font-size: 8rem;
  line-height: 1;
  color: color-mix(in srgb, var(--wt-accent) 18%, transparent);
  z-index: -1;
  user-select: none;
  pointer-events: none;
}

.wt-testi__stars {
  display: inline-flex; gap: 2px;
}
.wt-testi__star {
  color: var(--wt-border);
  transition: color .2s ease;
}
.wt-testi__star.is-on {
  color: var(--wt-accent2, #fbbf24);
  filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--wt-accent2) 35%, transparent));
}

.wt-testi__title {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wt-text);
  line-height: 1.3;
}
.wt-testi__body {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--wt-text-soft);
  /* Limite à 4 lignes — au-delà ellipsis (les featured doivent être courts) */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wt-testi__author {
  display: flex; align-items: center; gap: .65rem;
  padding-top: .75rem;
  margin-top: auto;
  border-top: 1px dashed color-mix(in srgb, var(--wt-border) 70%, transparent);
}
.wt-testi__author-info {
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.wt-testi__author-info strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-testi__author-info small {
  font-size: .72rem;
  color: var(--wt-text-mute);
  font-family: var(--wt-font-mono);
}

.wt-testi__foot {
  text-align: center;
  margin-top: 2rem;
}

/* =====================================================================
 *  V8 — Payment methods band (homepage)
 *
 *  Chips horizontaux centrés, wrap automatique. Chaque chip est un lien
 *  vers /dashboard/withdraw (auth) ou /auth/signup (anon) avec tooltip
 *  affichant le seuil minimum de retrait.
 * ===================================================================== */
.wt-paymethods {
  max-width: 1000px;
  margin: 3rem auto 2rem;
  padding: 0 1rem;
}
.wt-paymethods__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.wt-paymethods__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
}

.wt-paymethods__item {
  opacity: 0;
  transform: translateY(8px);
  animation: wt-pay-in .4s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 60ms);
}
@keyframes wt-pay-in {
  to { opacity: 1; transform: translateY(0); }
}

.wt-paymethods__chip {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.wt-paymethods__chip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--wt-accent) 35%, var(--wt-border));
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.wt-paymethods__icon {
  font-size: 1.4rem;
  line-height: 1;
}
.wt-paymethods__label {
  display: flex; flex-direction: column;
  line-height: 1.15;
}
.wt-paymethods__label strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-paymethods__label small {
  font-size: .7rem;
  color: var(--wt-text-mute);
  font-family: var(--wt-font-mono);
}

/* =====================================================================
 *  V8 — Final CTA (homepage)
 *
 *  Bandeau plein largeur juste avant le footer, gradient prononcé,
 *  gros bouton conversion. Halo lumineux animé en arrière-plan pour
 *  un effet "premium / fin d'histoire".
 * ===================================================================== */
.wt-finalcta {
  margin: 5rem 0 0;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 80% at 50% 100%,
                    color-mix(in srgb, var(--wt-accent) 22%, transparent),
                    transparent 65%),
    linear-gradient(180deg,
                    transparent,
                    color-mix(in srgb, var(--wt-accent2) 8%, var(--wt-bg)));
}
.wt-finalcta::before {
  /* Liseré dégradé en haut pour séparer du contenu précédent */
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg,
              transparent,
              color-mix(in srgb, var(--wt-accent) 50%, transparent),
              transparent);
}

.wt-finalcta__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.wt-finalcta__halo {
  position: absolute;
  inset: -50% 20% auto;
  height: 280px;
  background: radial-gradient(closest-side,
              color-mix(in srgb, var(--wt-accent) 35%, transparent),
              transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: wt-finalcta-pulse 6s ease-in-out infinite;
}
@keyframes wt-finalcta-pulse {
  0%, 100% { transform: scale(1)   translateY(0);    opacity: .8; }
  50%      { transform: scale(1.1) translateY(-8px); opacity: 1;  }
}

.wt-finalcta__title {
  font-family: var(--wt-font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0 0 1rem;
  background: linear-gradient(135deg,
              var(--wt-text) 30%,
              var(--wt-accent) 70%,
              var(--wt-accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-finalcta__lead {
  font-size: 1.05rem;
  color: var(--wt-text-soft);
  max-width: 52ch;
  margin: 0 auto 2rem;
  line-height: 1.55;
}
.wt-finalcta__cta {
  display: flex; flex-wrap: wrap; gap: .85rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.wt-btn--lg {
  padding: .9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--wt-radius-md);
}
.wt-finalcta__trust {
  display: block;
  font-size: .8rem;
  color: var(--wt-text-mute);
  font-family: var(--wt-font-mono);
  letter-spacing: .04em;
}

/* =====================================================================
 *  V8 — HOW IT WORKS v2 (timeline)
 *
 *  Desktop : timeline horizontale, 3 étapes côte à côte avec ligne de
 *  connexion entre les pastilles. Mobile : timeline verticale avec
 *  rail à gauche.
 * ===================================================================== */
.wt-how-v2 {
  max-width: 1100px;
  margin: 4rem auto 2rem;
  padding: 0 1rem;
}
.wt-how-v2__head {
  text-align: center;
  margin-bottom: 3rem;
}

.wt-how-v2__timeline {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 2.5rem 1.5rem;
  position: relative;
}
@media (min-width: 768px) {
  .wt-how-v2__timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  /* Ligne de connexion horizontale entre les 3 pastilles (desktop) */
  .wt-how-v2__timeline::before {
    content: '';
    position: absolute;
    top: 32px;   /* aligné avec le centre des bullets (64px / 2) */
    left:  10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg,
                color-mix(in srgb, var(--wt-accent)  60%, transparent),
                color-mix(in srgb, var(--wt-accent2) 60%, transparent));
    z-index: 0;
    opacity: .35;
  }
}

.wt-how-v2__step {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .85rem;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: wt-how-in .55s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 180ms);
}
@keyframes wt-how-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  /* Mobile : timeline verticale avec rail à gauche */
  .wt-how-v2__timeline::before {
    content: '';
    position: absolute;
    top: 32px; bottom: 32px;
    left: 32px;
    width: 2px;
    background: linear-gradient(180deg,
                color-mix(in srgb, var(--wt-accent)  60%, transparent),
                color-mix(in srgb, var(--wt-accent2) 60%, transparent));
    opacity: .35;
  }
  .wt-how-v2__step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding-left: 5rem;
  }
  .wt-how-v2__bullet {
    position: absolute;
    left: 0; top: 0;
  }
}

/* Pastille : cercle avec icône SVG, badge num en bas-droit */
.wt-how-v2__bullet {
  position: relative;
  flex: 0 0 64px;
  width: 64px; height: 64px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--wt-bg-elev);
  border: 2px solid color-mix(in srgb, var(--wt-accent) 40%, var(--wt-border));
  color: var(--wt-accent);
  box-shadow: 0 10px 28px var(--wt-accent-glow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wt-how-v2__step:hover .wt-how-v2__bullet {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 14px 36px var(--wt-accent-glow);
}
.wt-how-v2__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
}
.wt-how-v2__num {
  position: absolute;
  bottom: -6px; right: -6px;
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 26px; height: 26px;
  padding: 0 .4rem;
  border-radius: var(--wt-radius-pill);
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
  font-family: var(--wt-font-mono);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 4px 10px var(--wt-accent-glow);
}

.wt-how-v2__body {
  flex: 1; min-width: 0;
  max-width: 280px;
}
@media (max-width: 767px) {
  .wt-how-v2__body { max-width: none; }
}
.wt-how-v2__title {
  margin: 0 0 .35rem;
  font-family: var(--wt-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-how-v2__desc {
  margin: 0 0 .65rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--wt-text-soft);
}
.wt-how-v2__cta {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--wt-accent);
  text-decoration: none;
  transition: gap .2s ease;
}
.wt-how-v2__cta:hover { gap: .55rem; }

/* =====================================================================
 *  V8 — FAQ Accordion
 *
 *  Utilise <details>/<summary> natifs pour l'accessibilité.
 *  Le JS dans wintaskly.js limite à "une seule ouverte à la fois".
 * ===================================================================== */
.wt-faq {
  max-width: 800px;
  margin: 4rem auto 2rem;
  padding: 0 1rem;
}
.wt-faq__head {
  text-align: center;
  margin-bottom: 2rem;
}
.wt-faq__list {
  display: flex; flex-direction: column;
  gap: .55rem;
}
.wt-faq__item {
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
  opacity: 0;
  transform: translateY(6px);
  animation: wt-faq-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 60ms);
}
@keyframes wt-faq-in { to { opacity: 1; transform: translateY(0); } }

.wt-faq__item[open] {
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.wt-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--wt-font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--wt-text);
  user-select: none;
  transition: background-color .15s ease;
}
.wt-faq__q::-webkit-details-marker { display: none; }
.wt-faq__q:hover {
  background: color-mix(in srgb, var(--wt-accent) 4%, transparent);
}
.wt-faq__q-text { flex: 1; min-width: 0; }
.wt-faq__chevron {
  flex: 0 0 auto;
  color: var(--wt-text-soft);
  transition: transform .25s var(--wt-ease, ease-out), color .15s ease;
}
.wt-faq__item[open] .wt-faq__chevron {
  transform: rotate(180deg);
  color: var(--wt-accent);
}
.wt-faq__a {
  padding: 0 1.25rem 1rem;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--wt-text-soft);
  border-top: 1px dashed color-mix(in srgb, var(--wt-border) 70%, transparent);
  padding-top: 1rem;
}

.wt-faq__foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .88rem;
  color: var(--wt-text-mute);
}
.wt-faq__foot a {
  color: var(--wt-accent);
  text-decoration: none;
  font-weight: 600;
}
.wt-faq__foot a:hover { text-decoration: underline; }

/* =====================================================================
 *  V8 — Trust bar sticky
 *
 *  Bande fine qui devient sticky en haut au scroll. Cachée initialement,
 *  révélée par le JS quand l'utilisateur a scrollé au-delà du hero.
 * ===================================================================== */
.wt-trustbar {
  position: sticky;
  top: 0;
  z-index: 30;
  /* Caché par défaut — le JS ajoutera .is-visible quand approprié */
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--wt-ease, ease-out), opacity .25s ease;
  /* Fond semi-transparent flouté pour lire le contenu derrière */
  background: color-mix(in srgb, var(--wt-bg) 85%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--wt-accent) 18%, var(--wt-border));
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.wt-trustbar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.wt-trustbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .5rem 1rem;
  display: flex; align-items: center; gap: .85rem;
  font-size: .85rem;
  flex-wrap: wrap;
}

.wt-trustbar__pulse {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wt-accent2-hot, #10b981);
  box-shadow: 0 0 0 0 var(--wt-accent2-hot, #10b981);
  animation: wt-trustbar-pulse 2s ease-in-out infinite;
}
@keyframes wt-trustbar-pulse {
  0%, 100% { box-shadow: 0 0 0 0   color-mix(in srgb, var(--wt-accent2-hot, #10b981) 50%, transparent); }
  70%      { box-shadow: 0 0 0 8px transparent; }
}

.wt-trustbar__item {
  display: inline-flex; align-items: baseline; gap: .35rem;
  color: var(--wt-text-soft);
  white-space: nowrap;
}
.wt-trustbar__item strong {
  color: var(--wt-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wt-trustbar__item small {
  font-size: .72rem;
  color: var(--wt-text-mute);
}
.wt-trustbar__sep {
  color: var(--wt-text-mute);
  opacity: .5;
}
.wt-trustbar__cta {
  margin-left: auto;
  font-size: .82rem;
  font-weight: 600;
  color: var(--wt-accent);
  text-decoration: none;
  transition: transform .15s ease;
  white-space: nowrap;
}
.wt-trustbar__cta:hover { transform: translateX(3px); }

/* Mobile : trust bar réduite (cache items secondaires) */
@media (max-width: 640px) {
  .wt-trustbar__inner { padding: .4rem .85rem; gap: .55rem; font-size: .78rem; }
  /* Sur très petit écran, on cache 2 items pour ne garder que le pulse + 1 + CTA */
  .wt-trustbar__item:nth-of-type(2),
  .wt-trustbar__sep:nth-of-type(2) { display: none; }
}

/* =====================================================================
 *  V8 — Tasks hub modernisé (/tasks/index.php)
 *
 *  Structure :
 *   - Header 2-col : intro (texte + CTA anon) + récap user (KPI cards)
 *   - Best Action Now : bandeau pleine largeur, halo coloré par module
 *   - Grille 4 cards riches (variant --rich enrichi avec header/pill/pricing)
 *   - Daily earnings : bar chart compact par type
 *   - Tips : 4 cards numérotées avec icônes emoji
 * ===================================================================== */
.wt-tasks-v2 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* ==== HEADER ==== */
.wt-tasks-v2__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 900px) {
  .wt-tasks-v2__header {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }
}
.wt-tasks-v2__title {
  font-family: var(--wt-font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: .5rem 0 .75rem;
  background: linear-gradient(135deg, var(--wt-text) 40%, var(--wt-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-tasks-v2__lead {
  font-size: 1.05rem;
  color: var(--wt-text-soft);
  max-width: 56ch;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}
.wt-tasks-v2__cta {
  display: flex; flex-wrap: wrap; gap: .75rem;
}

/* Récap personnel : grand KPI principal (solde) + 3 KPI secondaires */
.wt-tasks-v2__recap {
  display: flex; flex-direction: column;
  gap: .75rem;
  padding: 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  position: relative;
  overflow: hidden;
}
.wt-tasks-v2__recap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 100% 0%,
              color-mix(in srgb, var(--wt-accent2) 18%, transparent),
              transparent 70%);
  pointer-events: none;
}
.wt-tasks-v2__recap-item {
  display: flex; flex-direction: column; gap: .15rem;
  z-index: 1;
}
.wt-tasks-v2__recap-item small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  color: var(--wt-text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.wt-tasks-v2__recap-item strong {
  font-family: var(--wt-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
}
.wt-tasks-v2__recap-item--main strong {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-tasks-v2__recap-unit {
  font-size: .75rem;
  font-weight: 500;
  color: var(--wt-text-mute);
  letter-spacing: .04em;
  -webkit-text-fill-color: var(--wt-text-mute);
}
.wt-tasks-v2__recap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: .75rem;
  border-top: 1px dashed color-mix(in srgb, var(--wt-border) 70%, transparent);
  z-index: 1;
}

/* ==== BEST ACTION NOW ==== */
.wt-bestaction {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
  box-shadow: 0 12px 32px var(--wt-accent-glow);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.wt-bestaction__halo {
  position: absolute;
  inset: -50% -10% auto auto;
  width: 50%; height: 200%;
  background: radial-gradient(closest-side,
              color-mix(in srgb, var(--wt-accent) 40%, transparent),
              transparent 70%);
  z-index: -1;
  filter: blur(30px);
  opacity: .7;
  animation: wt-bestaction-glow 5s ease-in-out infinite;
}
@keyframes wt-bestaction-glow {
  0%, 100% { transform: translate(0, 0)      scale(1);   opacity: .7; }
  50%      { transform: translate(-10px, 8px) scale(1.1); opacity: 1;  }
}
/* Variantes couleur par module */
.wt-bestaction--faucet    { border-color: color-mix(in srgb, #06b6d4 40%, var(--wt-border)); box-shadow: 0 12px 32px rgba(6,182,212,.25); }
.wt-bestaction--shortlink { border-color: color-mix(in srgb, #8b5cf6 40%, var(--wt-border)); box-shadow: 0 12px 32px rgba(139,92,246,.25); }
.wt-bestaction--ptc       { border-color: color-mix(in srgb, var(--wt-accent-hot,#fb923c) 40%, var(--wt-border)); }
.wt-bestaction--offerwall { border-color: color-mix(in srgb, var(--wt-success,#22c55e) 40%, var(--wt-border)); box-shadow: 0 12px 32px rgba(34,197,94,.25); }

.wt-bestaction__icon {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  display: inline-grid; place-items: center;
  font-size: 2.2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wt-accent) 18%, var(--wt-bg-soft));
  filter: drop-shadow(0 4px 12px var(--wt-accent-glow));
}
.wt-bestaction__content {
  flex: 1; min-width: 240px;
}
.wt-bestaction__eyebrow {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wt-accent);
  margin-bottom: .35rem;
}
.wt-bestaction__pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wt-accent);
  animation: wt-bestaction-pulse 1.5s ease-in-out infinite;
}
@keyframes wt-bestaction-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%      { opacity: .4;  transform: scale(1.6); }
}
.wt-bestaction__title {
  margin: 0 0 .35rem;
  font-family: var(--wt-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wt-text);
  line-height: 1.25;
}
.wt-bestaction__body {
  margin: 0;
  font-size: .95rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
}
.wt-bestaction__cta {
  flex: 0 0 auto;
}

/* ==== GRILLE 4 CARDS RICHES ==== */
.wt-tasks-v2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .wt-tasks-v2__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .wt-tasks-v2__grid { grid-template-columns: repeat(4, 1fr); }
}

/* Variant --rich : enrichissement du composant utilitaire .wt-task-card
 * existant. Aligne en grille interne, header avec pill, pricing en gros. */
.wt-task-card--rich {
  display: flex; flex-direction: column;
  gap: .85rem;
  padding: 1.4rem 1.25rem;
  opacity: 0;
  transform: translateY(12px);
  animation: wt-taskcard-in .55s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 90ms + 80ms);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
@keyframes wt-taskcard-in {
  to { opacity: 1; transform: translateY(0); }
}
.wt-task-card--rich:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
  box-shadow: 0 18px 38px rgba(0,0,0,.14);
}

.wt-task-card__header {
  display: flex; align-items: center; gap: .65rem;
  position: relative;
}
.wt-task-card__header .wt-task-card__icon {
  flex: 0 0 auto;
  margin-bottom: 0;  /* override du composant utilitaire */
}
.wt-task-card__header .wt-task-card__title {
  flex: 1; min-width: 0;
  margin: 0;
  font-size: 1.05rem;
}
.wt-task-card__pill {
  flex: 0 0 auto;
  padding: .2rem .55rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-bg-soft) 70%, transparent);
  color: var(--wt-text-mute);
  font-family: var(--wt-font-mono);
  font-size: .65rem;
  letter-spacing: .04em;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}
.wt-task-card__pill--ready {
  background: color-mix(in srgb, var(--wt-success, #22c55e) 22%, transparent);
  color: var(--wt-success, #22c55e);
}
.wt-task-card__pill--gold {
  background: color-mix(in srgb, var(--wt-accent2, #facc15) 22%, transparent);
  color: var(--wt-accent2, #facc15);
}

.wt-task-card--rich .wt-task-card__desc {
  margin: 0;
  font-size: .85rem;
  color: var(--wt-text-soft);
  line-height: 1.45;
  /* Limite à 2 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
}

/* Pricing en gros */
.wt-task-card__price {
  display: flex; align-items: baseline;
  gap: .35rem; flex-wrap: wrap;
  padding: .5rem 0;
  border-top: 1px dashed color-mix(in srgb, var(--wt-border) 70%, transparent);
  border-bottom: 1px dashed color-mix(in srgb, var(--wt-border) 70%, transparent);
}
.wt-task-card__price-amount {
  font-family: var(--wt-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wt-task-card--faucet     .wt-task-card__price-amount { color: #06b6d4; }
.wt-task-card--shortlinks .wt-task-card__price-amount { color: #8b5cf6; }
.wt-task-card--ptc        .wt-task-card__price-amount { color: var(--wt-accent-hot, #fb923c); }
.wt-task-card--offerwalls .wt-task-card__price-amount { color: var(--wt-success, #22c55e); }
.wt-task-card--bingo      .wt-task-card__price-amount { color: #ec4899; }
.wt-task-card__price-unit {
  font-size: .85rem;
  color: var(--wt-text-mute);
  font-weight: 500;
}
.wt-task-card__price-bonus {
  margin-left: auto;
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
  padding: .15rem .5rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-bg-soft) 70%, transparent);
}

.wt-task-card--rich .wt-task-card__meta {
  display: flex; flex-direction: column;
  gap: .3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .78rem;
  color: var(--wt-text-mute);
}
.wt-task-card--rich .wt-task-card__meta li {
  display: inline-flex; align-items: center; gap: .4rem;
}
.wt-task-card--rich .wt-task-card__meta svg {
  flex: 0 0 13px;
  color: var(--wt-text-mute);
}
.wt-task-card__meta--countdown {
  color: var(--wt-accent) !important;
  font-family: var(--wt-font-mono);
  font-variant-numeric: tabular-nums;
}
.wt-task-card__meta--countdown strong {
  color: var(--wt-accent);
  font-weight: 700;
}

.wt-task-card--rich .wt-task-card__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ==== DAILY EARNINGS BAR CHART ==== */
.wt-tasks-v2__daily {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 2rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-tasks-v2__daily-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.wt-tasks-v2__daily-bars {
  display: flex; flex-direction: column;
  gap: 1rem;
}
.wt-tasks-v2__daily-bar-label {
  display: flex; justify-content: space-between;
  margin-bottom: .35rem;
  font-size: .85rem;
}
.wt-tasks-v2__daily-bar-label strong {
  font-family: var(--wt-font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wt-tasks-v2__daily-bar-track {
  height: 8px;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-border) 60%, transparent);
  overflow: hidden;
}
.wt-tasks-v2__daily-bar-fill {
  height: 100%;
  width: var(--pct, 0%);
  border-radius: inherit;
  background: var(--wt-accent);
  transform-origin: left;
  animation: wt-bar-grow 1s var(--wt-ease-emph, ease-out) forwards;
}
@keyframes wt-bar-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.wt-tasks-v2__daily-bar.wt-task-card--faucet     .wt-tasks-v2__daily-bar-fill { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.wt-tasks-v2__daily-bar.wt-task-card--shortlink  .wt-tasks-v2__daily-bar-fill { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.wt-tasks-v2__daily-bar.wt-task-card--ptc        .wt-tasks-v2__daily-bar-fill { background: linear-gradient(90deg, var(--wt-accent-hot, #fb923c), #ea580c); }
.wt-tasks-v2__daily-bar.wt-task-card--offerwall  .wt-tasks-v2__daily-bar-fill { background: linear-gradient(90deg, var(--wt-success, #22c55e), #16a34a); }

/* ==== TIPS GRID ==== */
.wt-tasks-v2__tips {
  max-width: 1200px;
  margin: 0 auto;
}
.wt-tasks-v2__tips-head {
  text-align: center;
  margin-bottom: 2rem;
}
.wt-tasks-v2__tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .wt-tasks-v2__tips-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .wt-tasks-v2__tips-grid { grid-template-columns: repeat(4, 1fr); } }

.wt-tasks-v2__tip {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(8px);
  animation: wt-tip-in .45s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 80ms);
  transition: transform .2s ease, border-color .2s ease;
}
@keyframes wt-tip-in { to { opacity: 1; transform: translateY(0); } }
.wt-tasks-v2__tip:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
}
.wt-tasks-v2__tip-num {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--wt-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .85;
}
.wt-tasks-v2__tip-icon {
  position: absolute;
  bottom: -8px; right: -8px;
  font-size: 4rem;
  opacity: .15;
  z-index: -1;
  filter: blur(.3px);
}
.wt-tasks-v2__tip-text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--wt-text-soft);
}

/* =====================================================================
 *  V8 — Faucet flow (/tasks/faucet/*)
 *
 *  3 pages : index / transition / verify.
 *  Layout commun : wrap centré ≤ 720px, stepper en haut, hero card,
 *  variations spécifiques par étape.
 * ===================================================================== */
.wt-faucet-v2 {
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem 4rem;
  display: flex; align-items: flex-start; justify-content: center;
}
.wt-faucet-v2__wrap {
  width: 100%;
  max-width: 720px;
  display: flex; flex-direction: column;
  gap: 1.5rem;
}
.wt-faucet-v2__wrap--narrow { max-width: 560px; }

/* ===== STEPPER ===== */
.wt-stepper {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.wt-stepper::before {
  content: '';
  position: absolute;
  top: 16px; left: 16.66%; right: 16.66%;
  height: 2px;
  background: var(--wt-border);
  z-index: 0;
}
.wt-stepper__item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: .5rem;
  position: relative;
  z-index: 1;
}
.wt-stepper__bullet {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--wt-bg);
  border: 2px solid var(--wt-border);
  color: var(--wt-text-mute);
  transition: all .3s ease;
  font-size: 1rem;
}
.wt-stepper__bullet-icon { font-size: 1rem; line-height: 1; }
.wt-stepper__meta { line-height: 1.2; }
.wt-stepper__meta small {
  display: block;
  font-family: var(--wt-font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}
.wt-stepper__meta strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--wt-text-soft);
  margin-top: .15rem;
}

/* État courant */
.wt-stepper__item--current .wt-stepper__bullet {
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  border-color: transparent;
  color: var(--wt-accent-on, #fff);
  box-shadow: 0 6px 18px var(--wt-accent-glow);
  transform: scale(1.08);
}
.wt-stepper__item--current .wt-stepper__meta strong { color: var(--wt-text); }

/* État terminé */
.wt-stepper__item--done .wt-stepper__bullet {
  background: color-mix(in srgb, var(--wt-success, #22c55e) 22%, transparent);
  border-color: var(--wt-success, #22c55e);
  color: var(--wt-success, #22c55e);
}
.wt-stepper__item--done .wt-stepper__meta strong { color: var(--wt-text-soft); }
/* Pour la ligne entre done et current : prolonger en vert sur la partie done */
.wt-stepper__item--done + .wt-stepper__item--current::before,
.wt-stepper__item--done + .wt-stepper__item--done::before {
  content: '';
  position: absolute;
  top: 16px; left: -50%; right: 50%;
  height: 2px;
  background: var(--wt-success, #22c55e);
  z-index: -1;
}

/* ===== HERO CARD ===== */
.wt-faucet-v2__hero,
.wt-faucet-v2__transition,
.wt-faucet-v2__verify {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  isolation: isolate;
}
/* Halo radial en fond, accent + accent2 */
.wt-faucet-v2__hero::before,
.wt-faucet-v2__transition::before,
.wt-faucet-v2__verify::before {
  content: '';
  position: absolute;
  inset: -50% 0 auto;
  height: 60%;
  background: radial-gradient(closest-side,
              color-mix(in srgb, var(--wt-accent2) 22%, transparent),
              transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

.wt-faucet-v2__logo {
  display: inline-flex; line-height: 0;
  margin-bottom: .25rem;
  animation: wt-faucet-logo-float 4s ease-in-out infinite;
}
.wt-faucet-v2__logo img {
  width: 80px; height: 80px;
  filter: drop-shadow(0 8px 24px var(--wt-accent-glow));
}
@keyframes wt-faucet-logo-float {
  0%, 100% { transform: translateY(0)    rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg);  }
}

.wt-faucet-v2__title {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--wt-text) 40%, var(--wt-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-faucet-v2__lead {
  margin: 0;
  font-size: 1rem;
  color: var(--wt-text-soft);
  max-width: 48ch;
  line-height: 1.55;
}

/* ===== REWARD BANNER ===== */
.wt-faucet-v2__reward {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--wt-radius-pill);
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-accent) 12%, transparent),
              color-mix(in srgb, var(--wt-accent2) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--wt-accent) 25%, transparent);
  box-shadow: 0 8px 24px var(--wt-accent-glow);
}
.wt-faucet-v2__reward--compact { padding: .75rem 1.25rem; }
.wt-faucet-v2__reward-icon {
  font-size: 2rem; line-height: 1;
  animation: wt-faucet-gift 2.5s ease-in-out infinite;
}
@keyframes wt-faucet-gift {
  0%, 100% { transform: rotate(-6deg) scale(1);    }
  50%      { transform: rotate(8deg)  scale(1.12); }
}
.wt-faucet-v2__reward--compact .wt-faucet-v2__reward-icon { font-size: 1.5rem; }
.wt-faucet-v2__reward-text {
  text-align: left;
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.wt-faucet-v2__reward-text small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}
.wt-faucet-v2__reward-text strong {
  font-family: var(--wt-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-faucet-v2__reward--compact .wt-faucet-v2__reward-text strong { font-size: 1.15rem; }
.wt-faucet-v2__reward-text span {
  font-size: .85rem;
  font-weight: 600;
  color: var(--wt-text-soft);
  -webkit-text-fill-color: var(--wt-text-soft);
}
.wt-faucet-v2__reward-text em {
  font-style: normal;
  font-family: var(--wt-font-mono);
  font-size: .75rem;
  color: var(--wt-accent2);
  -webkit-text-fill-color: var(--wt-accent2);
}

/* ===== COOLDOWN COUNTDOWN (index) ===== */
.wt-faucet-v2__cd {
  position: relative;
  width: 200px; height: 200px;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin: .5rem 0;
}
.wt-faucet-v2__cd-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.wt-faucet-v2__cd-track {
  fill: none; stroke: var(--wt-border); stroke-width: 6;
}
.wt-faucet-v2__cd-bar {
  fill: none; stroke-width: 6;
  stroke-linecap: round;
  stroke: url(#wt-faucet-grad);
  transition: stroke-dashoffset .5s linear;
  filter: drop-shadow(0 0 8px var(--wt-accent-glow));
}
/* Pas de gradient SVG sans <defs>, on fait simple : */
.wt-faucet-v2__cd-bar { stroke: var(--wt-accent); }

.wt-faucet-v2__cd-digits {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .25rem;
}
.wt-faucet-v2__cd-row {
  display: flex; gap: .35rem;
  font-family: var(--wt-font-display);
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--wt-text);
}
.wt-faucet-v2__cd-num::after {
  content: ':';
  margin-left: .35rem;
  color: var(--wt-text-mute);
  opacity: .5;
}
.wt-faucet-v2__cd-num:last-child::after { content: ''; }
.wt-faucet-v2__cd-labels {
  display: flex; gap: 1.4rem;
  font-family: var(--wt-font-mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}
.wt-faucet-v2__cd-hint {
  font-size: .85rem; color: var(--wt-text-mute);
  margin: 0;
}
.wt-faucet-v2__cta { margin-top: .25rem; }
.wt-faucet-v2__warning {
  margin: 0;
  font-size: .8rem;
  color: var(--wt-text-mute);
}

/* ===== TRANSITION CIRCULAR PROGRESS ===== */
.wt-transition-v2 {
  position: relative;
  width: 160px; height: 160px;
  margin: .5rem 0;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.wt-transition-v2__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.wt-transition-v2__track {
  fill: none; stroke: var(--wt-border); stroke-width: 5;
}
.wt-transition-v2__bar {
  fill: none; stroke: var(--wt-accent); stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 6px var(--wt-accent-glow));
}
.wt-transition-v2__num {
  position: absolute;
  font-family: var(--wt-font-display);
  font-size: 3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-transition-v2__label {
  position: absolute;
  bottom: -1.75rem;
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
  white-space: nowrap;
}

/* ===== STATS RECAP (sous le hero index) ===== */
.wt-faucet-v2__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.wt-faucet-v2__stat {
  display: flex; flex-direction: column;
  align-items: center; gap: .25rem;
  padding: 1rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  transition: transform .2s ease, border-color .2s ease;
}
.wt-faucet-v2__stat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
}
.wt-faucet-v2__stat-icon { font-size: 1.5rem; line-height: 1; }
.wt-faucet-v2__stat strong {
  font-family: var(--wt-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
}
.wt-faucet-v2__stat small {
  font-family: var(--wt-font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}

.wt-faucet-v2__bonus {
  text-align: center;
  font-size: .85rem;
  color: var(--wt-text-mute);
}
.wt-faucet-v2__bonus a {
  color: var(--wt-accent);
  font-weight: 600;
  text-decoration: none;
}
.wt-faucet-v2__bonus a:hover { text-decoration: underline; }

/* ===== AD SLOT (transition + verify) ===== */
.wt-ad-slot {
  width: 100%;
  min-height: 90px;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-bg-soft) 80%, transparent);
  border: 1px dashed var(--wt-border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.wt-ad-slot--300x250 { max-width: 300px; min-height: 250px; }
.wt-ad-slot__placeholder {
  font-family: var(--wt-font-mono);
  font-size: .75rem;
  color: var(--wt-text-mute);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ===== VERIFY — Session timer LIVE ===== */
.wt-faucet-v2__session-timer {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .75rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 25%, transparent);
  font-size: .78rem;
  color: var(--wt-text-soft);
  font-family: var(--wt-font-mono);
}
.wt-faucet-v2__session-timer strong {
  color: var(--wt-accent2-hot, #f59e0b);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wt-faucet-v2__session-timer strong.is-ready { color: var(--wt-danger); }

/* ===== VERIFY — Captcha layout ===== */
.wt-faucet-v2__form {
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.wt-faucet-v2__notrobot {
  align-self: stretch;
  display: flex; align-items: center; gap: .65rem;
  padding: .85rem 1rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg);
  border: 1px solid var(--wt-border);
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .2s ease;
}
.wt-faucet-v2__notrobot:hover { border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border)); }
.wt-faucet-v2__notrobot input { width: 18px; height: 18px; accent-color: var(--wt-accent); }

.wt-faucet-v2__captcha-instruction {
  text-align: center;
  font-size: .95rem;
  color: var(--wt-text-soft);
  padding: .5rem 0;
}
.wt-faucet-v2__captcha-prompt { display: inline; }
.wt-faucet-v2__captcha-target {
  display: inline-block;
  margin-left: .3rem;
  padding: .15rem .5rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-accent) 18%, transparent);
  color: var(--wt-accent);
  font-weight: 700;
}

.wt-faucet-v2__captcha-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .65rem;
  width: 100%;
  max-width: 360px;
}
@media (max-width: 480px) {
  .wt-faucet-v2__captcha-grid { gap: .45rem; }
}
.wt-faucet-v2__captcha-icon {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg);
  border: 2px solid var(--wt-border);
  color: var(--wt-text-soft);
  cursor: pointer;
  transition: all .15s ease;
  padding: .65rem;
}
.wt-faucet-v2__captcha-icon svg {
  width: 100%; height: 100%;
  max-width: 32px; max-height: 32px;
}
.wt-faucet-v2__captcha-icon:hover {
  border-color: color-mix(in srgb, var(--wt-accent) 50%, var(--wt-border));
  color: var(--wt-text);
  transform: translateY(-2px);
}
.wt-faucet-v2__captcha-icon.is-selected {
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-accent) 18%, var(--wt-bg)),
              color-mix(in srgb, var(--wt-accent2) 12%, var(--wt-bg)));
  border-color: var(--wt-accent);
  color: var(--wt-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--wt-accent) 15%, transparent);
}
.wt-faucet-v2__captcha-reset {
  font-family: var(--wt-font-mono);
  font-size: .78rem;
  color: var(--wt-text-mute);
  background: none;
  border: none;
  cursor: pointer;
  padding: .35rem .75rem;
  transition: color .2s ease;
}
.wt-faucet-v2__captcha-reset:hover { color: var(--wt-accent); }

/* =====================================================================
 *  V8 — Shortlinks pages (/tasks/shortlinks/*)
 *
 *  index : liste des liens avec filtres + récap + cards riches
 *  gateway : passerelle compte à rebours avant l'URL externe
 * ===================================================================== */
.wt-sl-v2 {
  padding: 2rem 1rem 4rem;
}
.wt-sl-v2__wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.5rem;
}
.wt-sl-v2__wrap--narrow { max-width: 600px; }

/* ===== HEADER 2-col ===== */
.wt-sl-v2__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: .5rem;
}
@media (min-width: 900px) {
  .wt-sl-v2__header {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }
}
.wt-sl-v2__title {
  font-family: var(--wt-font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: .5rem 0 .75rem;
  background: linear-gradient(135deg,
              var(--wt-text) 40%,
              #8b5cf6 100%); /* violet shortlinks */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-sl-v2__lead {
  font-size: 1rem;
  color: var(--wt-text-soft);
  max-width: 52ch;
  margin: 0;
  line-height: 1.55;
}

/* Récap user — 3 KPI compacts en colonne */
.wt-sl-v2__recap {
  display: flex; flex-direction: column;
  gap: .65rem;
  padding: 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  position: relative;
  overflow: hidden;
}
.wt-sl-v2__recap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 100% 0%,
              color-mix(in srgb, #8b5cf6 18%, transparent),
              transparent 70%);
  pointer-events: none;
}
.wt-sl-v2__recap-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: .5rem;
  z-index: 1;
}
.wt-sl-v2__recap-item small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  color: var(--wt-text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.wt-sl-v2__recap-item strong {
  font-family: var(--wt-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
  text-align: right;
}
.wt-sl-v2__recap-item em {
  font-style: normal;
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  color: var(--wt-text-mute);
}

/* ===== FILTRES (pills) ===== */
.wt-sl-v2__filters {
  display: flex; flex-wrap: wrap;
  gap: .5rem;
}
.wt-sl-v2__filter {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-size: .88rem;
  font-weight: 600;
  transition: all .2s ease;
}
.wt-sl-v2__filter:hover {
  border-color: color-mix(in srgb, #8b5cf6 30%, var(--wt-border));
  color: var(--wt-text);
}
.wt-sl-v2__filter.is-active {
  background: color-mix(in srgb, #8b5cf6 18%, var(--wt-bg-elev));
  border-color: #8b5cf6;
  color: var(--wt-text);
  box-shadow: 0 4px 14px color-mix(in srgb, #8b5cf6 25%, transparent);
}
.wt-sl-v2__filter-count {
  padding: .12rem .45rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-bg-soft) 70%, transparent);
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  font-weight: 700;
}
.wt-sl-v2__filter-count--ready {
  background: color-mix(in srgb, var(--wt-success, #22c55e) 22%, transparent);
  color: var(--wt-success, #22c55e);
}
.wt-sl-v2__filter-count--locked {
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 22%, transparent);
  color: var(--wt-accent2-hot, #f59e0b);
}

/* ===== GRILLE DES LIENS ===== */
.wt-sl-v2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px)  { .wt-sl-v2__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wt-sl-v2__grid { grid-template-columns: repeat(3, 1fr); } }

.wt-sl-v2__card {
  display: flex; flex-direction: column;
  gap: .85rem;
  padding: 1.4rem 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  animation: wt-taskcard-in .55s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 70ms + 80ms);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.wt-sl-v2__card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, #8b5cf6 30%, var(--wt-border));
  box-shadow: 0 18px 38px rgba(139, 92, 246, .14);
}
.wt-sl-v2__card.is-locked {
  opacity: .85;
  background: color-mix(in srgb, var(--wt-bg-soft) 85%, var(--wt-bg-elev));
}
.wt-sl-v2__card.is-locked:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--wt-border);
}

.wt-sl-v2__card-head {
  display: flex; align-items: center; gap: .6rem;
}
.wt-sl-v2__card-icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, #8b5cf6 12%, transparent);
  color: #8b5cf6;
}
.wt-sl-v2__card-name {
  flex: 1; min-width: 0;
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-sl-v2__pill {
  flex: 0 0 auto;
  padding: .2rem .55rem;
  border-radius: var(--wt-radius-pill);
  font-family: var(--wt-font-mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wt-sl-v2__pill--ready {
  background: color-mix(in srgb, var(--wt-success, #22c55e) 22%, transparent);
  color: var(--wt-success, #22c55e);
}
.wt-sl-v2__pill--locked {
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 22%, transparent);
  color: var(--wt-accent2-hot, #f59e0b);
}

/* Pricing en gros */
.wt-sl-v2__card-price {
  display: flex; align-items: baseline;
  gap: .35rem; flex-wrap: wrap;
  padding: .5rem 0;
  border-top: 1px dashed color-mix(in srgb, var(--wt-border) 70%, transparent);
  border-bottom: 1px dashed color-mix(in srgb, var(--wt-border) 70%, transparent);
}
.wt-sl-v2__card-amount {
  font-family: var(--wt-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #8b5cf6;
}
.wt-sl-v2__card-unit {
  font-size: .85rem;
  color: var(--wt-text-mute);
  font-weight: 500;
}
.wt-sl-v2__card-xp {
  margin-left: auto;
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  color: var(--wt-accent2);
  padding: .15rem .5rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-accent2) 12%, transparent);
}

.wt-sl-v2__card-meta {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .3rem;
  font-size: .78rem;
  color: var(--wt-text-mute);
}
.wt-sl-v2__card-meta li {
  display: inline-flex; align-items: center; gap: .4rem;
}

.wt-sl-v2__card-cd {
  margin-top: auto;
  padding: .75rem 1rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 25%, transparent);
  display: flex; flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.wt-sl-v2__card-cd small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  color: var(--wt-text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.wt-sl-v2__card-cd strong {
  font-family: var(--wt-font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wt-accent2-hot, #f59e0b);
  font-variant-numeric: tabular-nums;
}
.wt-sl-v2__card-cd strong.is-ready { color: var(--wt-success, #22c55e); }

.wt-sl-v2__card-cta {
  margin-top: auto;
}

/* ===== EMPTY STATE ===== */
.wt-sl-v2__empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px dashed var(--wt-border);
  display: flex; flex-direction: column;
  align-items: center;
  gap: .65rem;
}
.wt-sl-v2__empty-icon {
  font-size: 3rem; line-height: 1;
  opacity: .6;
}
.wt-sl-v2__empty h2 {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.wt-sl-v2__empty p {
  margin: 0 0 .5rem;
  color: var(--wt-text-soft);
}

/* ===== FOOTER BONUS ===== */
.wt-sl-v2__bonus {
  text-align: center;
  font-size: .85rem;
  color: var(--wt-text-mute);
  margin-top: 1rem;
}
.wt-sl-v2__bonus a {
  color: #8b5cf6;
  font-weight: 600;
  text-decoration: none;
}
.wt-sl-v2__bonus a:hover { text-decoration: underline; }

/* ===== GATEWAY V8 ===== */
.wt-sl-gw-v2 {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  isolation: isolate;
}
.wt-sl-gw-v2::before {
  content: '';
  position: absolute;
  inset: -50% 0 auto;
  height: 60%;
  background: radial-gradient(closest-side,
              color-mix(in srgb, #8b5cf6 22%, transparent),
              transparent 70%);
  z-index: -1;
  filter: blur(40px);
}
/* Override accent du title pour gateway = violet shortlinks */
.wt-sl-gw-v2 .wt-sl-v2__title {
  background: linear-gradient(135deg, var(--wt-text) 40%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-sl-v2__cta { margin-top: .25rem; }
.wt-sl-v2__footnote {
  font-size: .8rem;
  color: var(--wt-text-mute);
  max-width: 36ch;
  margin: 0;
  line-height: 1.5;
}

/* Override accent du transition ring pour shortlinks (violet) */
.wt-sl-gw-v2 .wt-transition-v2__bar {
  stroke: #8b5cf6;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, .35));
}
.wt-sl-gw-v2 .wt-transition-v2__num {
  background: linear-gradient(135deg, #8b5cf6, var(--wt-accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================================
 *  V8 — PTC index modernisé (/tasks/ptc/index.php)
 *
 *  Couleur module : ORANGE (--accent-hot / #fb923c)
 *  Layout calqué sur shortlinks-v2 mais avec accent orange et 4 filtres
 *  au lieu de 3 (ajout du filtre "limite atteinte").
 *
 *  Hooks JS conservés : [data-ptc-list], [data-ptc-card], [data-ptc-start],
 *  [data-ptc-id] — voir wintaskly.js bloc PTC.
 * ===================================================================== */
.wt-ptc-v2 {
  padding: 2rem 1rem 4rem;
}
.wt-ptc-v2__wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.5rem;
}

/* ===== HEADER 2-col ===== */
.wt-ptc-v2__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .wt-ptc-v2__header {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }
}
.wt-ptc-v2__title {
  font-family: var(--wt-font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: .5rem 0 .75rem;
  background: linear-gradient(135deg,
              var(--wt-text) 40%,
              var(--wt-accent-hot, #fb923c) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-ptc-v2__lead {
  font-size: 1rem;
  color: var(--wt-text-soft);
  max-width: 52ch;
  margin: 0;
  line-height: 1.55;
}

/* Récap user — orange tinted */
.wt-ptc-v2__recap {
  display: flex; flex-direction: column;
  gap: .65rem;
  padding: 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  position: relative;
  overflow: hidden;
}
.wt-ptc-v2__recap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 100% 0%,
              color-mix(in srgb, var(--wt-accent-hot, #fb923c) 18%, transparent),
              transparent 70%);
  pointer-events: none;
}
.wt-ptc-v2__recap-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: .5rem;
  z-index: 1;
}
.wt-ptc-v2__recap-item small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  color: var(--wt-text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.wt-ptc-v2__recap-item strong {
  font-family: var(--wt-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
  text-align: right;
}
.wt-ptc-v2__recap-item em {
  font-style: normal;
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  color: var(--wt-text-mute);
}

/* ===== FILTRES (4 pills) ===== */
.wt-ptc-v2__filters {
  display: flex; flex-wrap: wrap;
  gap: .5rem;
}
.wt-ptc-v2__filter {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-size: .88rem;
  font-weight: 600;
  transition: all .2s ease;
}
.wt-ptc-v2__filter:hover {
  border-color: color-mix(in srgb, var(--wt-accent-hot, #fb923c) 30%, var(--wt-border));
  color: var(--wt-text);
}
.wt-ptc-v2__filter.is-active {
  background: color-mix(in srgb, var(--wt-accent-hot, #fb923c) 18%, var(--wt-bg-elev));
  border-color: var(--wt-accent-hot, #fb923c);
  color: var(--wt-text);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--wt-accent-hot, #fb923c) 25%, transparent);
}
.wt-ptc-v2__filter-count {
  padding: .12rem .45rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-bg-soft) 70%, transparent);
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  font-weight: 700;
}
.wt-ptc-v2__filter-count--ready {
  background: color-mix(in srgb, var(--wt-success, #22c55e) 22%, transparent);
  color: var(--wt-success, #22c55e);
}
.wt-ptc-v2__filter-count--locked {
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 22%, transparent);
  color: var(--wt-accent2-hot, #f59e0b);
}
.wt-ptc-v2__filter-count--limited {
  background: color-mix(in srgb, var(--wt-danger, #ef4444) 22%, transparent);
  color: var(--wt-danger, #ef4444);
}

/* ===== GRILLE ===== */
.wt-ptc-v2__grid {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px)  { .wt-ptc-v2__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wt-ptc-v2__grid { grid-template-columns: repeat(3, 1fr); } }

.wt-ptc-v2__card {
  display: flex; flex-direction: column;
  gap: .85rem;
  padding: 1.4rem 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  animation: wt-taskcard-in .55s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 70ms + 80ms);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.wt-ptc-v2__card--ready:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--wt-accent-hot, #fb923c) 30%, var(--wt-border));
  box-shadow: 0 18px 38px color-mix(in srgb, var(--wt-accent-hot, #fb923c) 18%, transparent);
}
.wt-ptc-v2__card--locked,
.wt-ptc-v2__card--limited {
  opacity: .85;
  background: color-mix(in srgb, var(--wt-bg-soft) 85%, var(--wt-bg-elev));
}
.wt-ptc-v2__card--limited {
  opacity: .65;
}

.wt-ptc-v2__card-head {
  display: flex; align-items: center; gap: .6rem;
}
.wt-ptc-v2__card-icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--wt-accent-hot, #fb923c) 12%, transparent);
  color: var(--wt-accent-hot, #fb923c);
}
.wt-ptc-v2__card-title {
  flex: 1; min-width: 0;
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-ptc-v2__pill {
  flex: 0 0 auto;
  padding: .2rem .55rem;
  border-radius: var(--wt-radius-pill);
  font-family: var(--wt-font-mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wt-ptc-v2__pill--ready {
  background: color-mix(in srgb, var(--wt-success, #22c55e) 22%, transparent);
  color: var(--wt-success, #22c55e);
}
.wt-ptc-v2__pill--locked {
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 22%, transparent);
  color: var(--wt-accent2-hot, #f59e0b);
}
.wt-ptc-v2__pill--limited {
  background: color-mix(in srgb, var(--wt-danger, #ef4444) 22%, transparent);
  color: var(--wt-danger, #ef4444);
}

.wt-ptc-v2__card-desc {
  margin: 0;
  font-size: .85rem;
  color: var(--wt-text-soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
}

/* Pricing en gros — orange */
.wt-ptc-v2__card-price {
  display: flex; align-items: baseline;
  gap: .35rem; flex-wrap: wrap;
  padding: .5rem 0;
  border-top: 1px dashed color-mix(in srgb, var(--wt-border) 70%, transparent);
  border-bottom: 1px dashed color-mix(in srgb, var(--wt-border) 70%, transparent);
}
.wt-ptc-v2__card-amount {
  font-family: var(--wt-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--wt-accent-hot, #fb923c);
}
.wt-ptc-v2__card-unit {
  font-size: .85rem;
  color: var(--wt-text-mute);
  font-weight: 500;
}
.wt-ptc-v2__card-xp {
  margin-left: auto;
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  color: var(--wt-accent2);
  padding: .15rem .5rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-accent2) 12%, transparent);
}

.wt-ptc-v2__card-meta {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .3rem;
  font-size: .78rem;
  color: var(--wt-text-mute);
}
.wt-ptc-v2__card-meta li {
  display: inline-flex; align-items: center; gap: .4rem;
}

.wt-ptc-v2__card-cd,
.wt-ptc-v2__card-status {
  margin-top: auto;
  padding: .75rem 1rem;
  border-radius: var(--wt-radius-md);
  display: flex; flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.wt-ptc-v2__card-cd {
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 25%, transparent);
}
.wt-ptc-v2__card-status {
  background: color-mix(in srgb, var(--wt-danger, #ef4444) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--wt-danger, #ef4444) 22%, transparent);
}
.wt-ptc-v2__card-cd small,
.wt-ptc-v2__card-status small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  color: var(--wt-text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
}
.wt-ptc-v2__card-cd strong {
  font-family: var(--wt-font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wt-accent2-hot, #f59e0b);
  font-variant-numeric: tabular-nums;
}
.wt-ptc-v2__card-cd strong.is-ready { color: var(--wt-success, #22c55e); }

.wt-ptc-v2__card-cta { margin-top: auto; }

/* ===== EMPTY ===== */
.wt-ptc-v2__empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px dashed var(--wt-border);
  display: flex; flex-direction: column;
  align-items: center;
  gap: .65rem;
}
.wt-ptc-v2__empty-icon { font-size: 3rem; line-height: 1; opacity: .6; }
.wt-ptc-v2__empty h2 {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.wt-ptc-v2__empty p {
  margin: 0 0 .5rem;
  color: var(--wt-text-soft);
}

/* ===== FOOTER BONUS ===== */
.wt-ptc-v2__bonus {
  text-align: center;
  font-size: .85rem;
  color: var(--wt-text-mute);
  margin-top: 1rem;
}
.wt-ptc-v2__bonus a {
  color: var(--wt-accent-hot, #fb923c);
  font-weight: 600;
  text-decoration: none;
}
.wt-ptc-v2__bonus a:hover { text-decoration: underline; }

/* =====================================================================
 *  V8 — Offerwalls modernisés (/tasks/offerwalls/*)
 *
 *  Couleur module : VERT (--success / #22c55e)
 *  Pages : index (liste partenaires + historique) et open (iframe).
 * ===================================================================== */
.wt-ow-v2 {
  padding: 2rem 1rem 4rem;
}
.wt-ow-v2__wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.5rem;
}
.wt-ow-v2__wrap--full { max-width: 1400px; }

/* ===== HEADER 2-col (index) ===== */
.wt-ow-v2__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .wt-ow-v2__header {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }
}
.wt-ow-v2__title {
  font-family: var(--wt-font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: .5rem 0 .75rem;
  background: linear-gradient(135deg,
              var(--wt-text) 40%,
              var(--wt-success, #22c55e) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-ow-v2__lead {
  font-size: 1rem;
  color: var(--wt-text-soft);
  max-width: 52ch;
  margin: 0;
  line-height: 1.55;
}

/* Récap user — tinted vert */
.wt-ow-v2__recap {
  display: flex; flex-direction: column;
  gap: .65rem;
  padding: 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  position: relative;
  overflow: hidden;
}
.wt-ow-v2__recap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 100% 0%,
              color-mix(in srgb, var(--wt-success, #22c55e) 18%, transparent),
              transparent 70%);
  pointer-events: none;
}
.wt-ow-v2__recap-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: .5rem;
  z-index: 1;
}
.wt-ow-v2__recap-item small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  color: var(--wt-text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.wt-ow-v2__recap-item strong {
  font-family: var(--wt-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
  text-align: right;
}
.wt-ow-v2__recap-item em {
  font-style: normal;
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  color: var(--wt-text-mute);
}

/* ===== GRILLE PARTENAIRES ===== */
.wt-ow-v2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px)  { .wt-ow-v2__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wt-ow-v2__grid { grid-template-columns: repeat(3, 1fr); } }

.wt-ow-v2__card {
  display: flex; flex-direction: column;
  gap: .85rem;
  padding: 1.4rem 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  animation: wt-taskcard-in .55s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 90ms + 80ms);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.wt-ow-v2__card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--wt-success, #22c55e) 30%, var(--wt-border));
  box-shadow: 0 18px 38px color-mix(in srgb, var(--wt-success, #22c55e) 18%, transparent);
}
.wt-ow-v2__card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .65rem;
}
.wt-ow-v2__card-logo {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-success, #22c55e) 18%, var(--wt-bg-soft)),
              color-mix(in srgb, var(--wt-accent2) 12%, var(--wt-bg-soft)));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--wt-success, #22c55e) 25%, transparent);
}
.wt-ow-v2__card-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
}
.wt-ow-v2__card-logo span {
  font-family: var(--wt-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--wt-success, #22c55e);
  letter-spacing: .02em;
}
.wt-ow-v2__pill {
  flex: 0 0 auto;
  padding: .25rem .6rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-accent2) 22%, transparent);
  color: var(--wt-accent2);
  font-family: var(--wt-font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wt-ow-v2__card-name {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-ow-v2__card-desc {
  margin: 0;
  font-size: .88rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.wt-ow-v2__card-meta {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .25rem;
  font-size: .78rem;
  color: var(--wt-text-mute);
}
.wt-ow-v2__card-meta li {
  display: inline-flex; align-items: center; gap: .4rem;
}
.wt-ow-v2__card-cta { margin-top: auto; }

/* ===== EMPTY ===== */
.wt-ow-v2__empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px dashed var(--wt-border);
  display: flex; flex-direction: column;
  align-items: center;
  gap: .65rem;
}
.wt-ow-v2__empty-icon { font-size: 3rem; line-height: 1; opacity: .6; }
.wt-ow-v2__empty h2 {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.wt-ow-v2__empty p {
  margin: 0 0 .5rem;
  color: var(--wt-text-soft);
}

/* ===== HISTORIQUE ===== */
.wt-ow-v2__history { margin-top: 2rem; }
.wt-ow-v2__history-head { margin-bottom: 1rem; }
.wt-ow-v2__history-head .wt-section__title {
  /* Reuse global wt-section__title with vert accent ici */
  background: linear-gradient(135deg, var(--wt-text) 50%, var(--wt-success, #22c55e) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-align: left;
}
.wt-ow-v2__history-head .wt-section__lead {
  text-align: left;
  margin: .25rem 0 1rem;
}

/* Filtres historique */
.wt-ow-v2__filters {
  display: flex; flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.wt-ow-v2__filter {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .9rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-size: .85rem;
  font-weight: 600;
  transition: all .2s ease;
}
.wt-ow-v2__filter:hover {
  border-color: color-mix(in srgb, var(--wt-success, #22c55e) 30%, var(--wt-border));
  color: var(--wt-text);
}
.wt-ow-v2__filter.is-active {
  background: color-mix(in srgb, var(--wt-success, #22c55e) 18%, var(--wt-bg-elev));
  border-color: var(--wt-success, #22c55e);
  color: var(--wt-text);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--wt-success, #22c55e) 22%, transparent);
}
.wt-ow-v2__filter-count {
  padding: .12rem .45rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-bg-soft) 70%, transparent);
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  font-weight: 700;
}
.wt-ow-v2__filter-count--pending  { background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 22%, transparent); color: var(--wt-accent2-hot, #f59e0b); }
.wt-ow-v2__filter-count--credited { background: color-mix(in srgb, var(--wt-success,    #22c55e) 22%, transparent); color: var(--wt-success,    #22c55e); }
.wt-ow-v2__filter-count--rejected { background: color-mix(in srgb, var(--wt-danger,     #ef4444) 22%, transparent); color: var(--wt-danger,     #ef4444); }

/* Liste historique en cards */
.wt-ow-v2__history-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.wt-ow-v2__history-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  border-left: 3px solid var(--wt-border);
  transition: transform .15s ease, border-color .15s ease;
  opacity: 0;
  transform: translateY(6px);
  animation: wt-feed-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 50ms);
}
.wt-ow-v2__history-item:hover {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--wt-success, #22c55e) 25%, var(--wt-border));
}
.wt-ow-v2__history-item--credited { border-left-color: var(--wt-success, #22c55e); }
.wt-ow-v2__history-item--pending  { border-left-color: var(--wt-accent2-hot, #f59e0b); }
.wt-ow-v2__history-item--rejected { border-left-color: var(--wt-danger, #ef4444); opacity: .8; }

.wt-ow-v2__history-logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--wt-success, #22c55e) 12%, var(--wt-bg-soft));
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-family: var(--wt-font-display);
  font-size: .82rem;
  font-weight: 700;
  color: var(--wt-success, #22c55e);
}
.wt-ow-v2__history-logo img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 5px;
}
.wt-ow-v2__history-info {
  display: flex; flex-direction: column;
  min-width: 0;
}
.wt-ow-v2__history-info strong {
  font-size: .92rem;
  font-weight: 700;
  color: var(--wt-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wt-ow-v2__history-info small {
  font-size: .72rem;
  font-family: var(--wt-font-mono);
  color: var(--wt-text-mute);
}
.wt-ow-v2__history-amount {
  font-family: var(--wt-font-display);
  font-weight: 800;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: var(--wt-success, #22c55e);
  white-space: nowrap;
}
.wt-ow-v2__history-amount small {
  font-family: var(--wt-font-mono);
  font-size: .65em;
  font-weight: 500;
  opacity: .6;
  margin-left: .2rem;
}
.wt-ow-v2__history-status {
  padding: .25rem .65rem;
  border-radius: var(--wt-radius-pill);
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wt-ow-v2__history-status--credited {
  background: color-mix(in srgb, var(--wt-success, #22c55e) 22%, transparent);
  color: var(--wt-success, #22c55e);
}
.wt-ow-v2__history-status--pending {
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 22%, transparent);
  color: var(--wt-accent2-hot, #f59e0b);
}
.wt-ow-v2__history-status--rejected {
  background: color-mix(in srgb, var(--wt-danger, #ef4444) 22%, transparent);
  color: var(--wt-danger, #ef4444);
}
.wt-ow-v2__history-empty {
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px dashed var(--wt-border);
}

/* Mobile : l'historique passe en 2 lignes */
@media (max-width: 640px) {
  .wt-ow-v2__history-item {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo info amount"
      "logo info status";
  }
  .wt-ow-v2__history-logo   { grid-area: logo; }
  .wt-ow-v2__history-info   { grid-area: info; }
  .wt-ow-v2__history-amount { grid-area: amount; }
  .wt-ow-v2__history-status { grid-area: status; }
}

/* ===== FOOTER BONUS ===== */
.wt-ow-v2__bonus {
  text-align: center;
  font-size: .85rem;
  color: var(--wt-text-mute);
  margin-top: 1rem;
}
.wt-ow-v2__bonus a {
  color: var(--wt-success, #22c55e);
  font-weight: 600;
  text-decoration: none;
}
.wt-ow-v2__bonus a:hover { text-decoration: underline; }

/* =====================================================================
 *  OPEN PAGE (iframe)
 * ===================================================================== */
.wt-ow-v2--open .wt-ow-v2__wrap { gap: 1rem; }

.wt-ow-v2__open-head {
  display: flex; flex-direction: column;
  gap: 1rem;
}
.wt-ow-v2__open-back {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .9rem;
  color: var(--wt-text-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s ease, gap .15s ease;
  align-self: flex-start;
}
.wt-ow-v2__open-back:hover {
  color: var(--wt-success, #22c55e);
  gap: .55rem;
}
.wt-ow-v2__open-brand {
  display: flex; align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-ow-v2__open-logo {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-success, #22c55e) 22%, var(--wt-bg-soft)),
              color-mix(in srgb, var(--wt-accent2) 15%, var(--wt-bg-soft)));
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--wt-success, #22c55e) 25%, transparent);
}
.wt-ow-v2__open-logo img {
  width: 100%; height: 100%; object-fit: contain; padding: 10px;
}
.wt-ow-v2__open-logo span {
  font-family: var(--wt-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--wt-success, #22c55e);
}
.wt-ow-v2__open-meta { flex: 1; min-width: 0; }
.wt-ow-v2__open-name {
  margin: 0 0 .2rem;
  font-family: var(--wt-font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--wt-text);
}
.wt-ow-v2__open-desc {
  margin: 0;
  font-size: .88rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
}

/* Bandeau info postback */
.wt-ow-v2__open-banner {
  display: flex; align-items: center;
  gap: .85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--wt-accent) 22%, var(--wt-border));
}
.wt-ow-v2__open-banner-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.wt-ow-v2__open-banner > div {
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-ow-v2__open-banner strong {
  font-size: .92rem;
  color: var(--wt-text);
  font-weight: 700;
}
.wt-ow-v2__open-banner small {
  font-size: .82rem;
  color: var(--wt-text-soft);
  line-height: 1.45;
}

/* Iframe wrapper */
.wt-ow-v2__iframe-wrap {
  position: relative;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  overflow: hidden;
  min-height: 600px;
}
.wt-ow-v2__iframe {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: 0;
}
.wt-ow-v2__iframe-loader {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .85rem;
  background: var(--wt-bg-elev);
  font-family: var(--wt-font-mono);
  font-size: .85rem;
  color: var(--wt-text-mute);
  letter-spacing: .04em;
  z-index: 1;
  pointer-events: none;
}
.wt-ow-v2__iframe-spinner {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--wt-success, #22c55e) 22%, var(--wt-border));
  border-top-color: var(--wt-success, #22c55e);
  animation: wt-ow-spin .9s linear infinite;
}
@keyframes wt-ow-spin {
  to { transform: rotate(360deg); }
}

/* =====================================================================
 *  V8 — Testimonials (/testimonials/)
 *
 *  Page communautaire avec note moyenne, filtres par note, cards riches
 *  et formulaire premium (rating en boutons radio stylés + compteur).
 *  Accent module : jaune doré (--wt-accent2) pour les étoiles.
 * ===================================================================== */
.wt-testi-v2 {
  padding: 2rem 1rem 4rem;
}
.wt-testi-v2__wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.75rem;
}

/* ===== HEADER 2-col ===== */
.wt-testi-v2__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .wt-testi-v2__header {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 2.5rem;
  }
}
.wt-testi-v2__title {
  font-family: var(--wt-font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: .5rem 0 .75rem;
  background: linear-gradient(135deg,
              var(--wt-text) 40%,
              var(--wt-accent2, #facc15) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-testi-v2__lead {
  font-size: 1rem;
  color: var(--wt-text-soft);
  max-width: 52ch;
  margin: 0;
  line-height: 1.55;
}

/* Score panel : note moyenne en grand */
.wt-testi-v2__score {
  display: flex; flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.wt-testi-v2__score::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 0%,
              color-mix(in srgb, var(--wt-accent2, #facc15) 22%, transparent),
              transparent 70%);
  pointer-events: none;
}
.wt-testi-v2__score-num {
  font-family: var(--wt-font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--wt-accent, #f59e0b), var(--wt-accent2, #facc15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 1;
}
.wt-testi-v2__score-stars {
  display: inline-flex; gap: 2px;
  z-index: 1;
}
.wt-testi-v2__score-star {
  color: var(--wt-border);
}
.wt-testi-v2__score-star.is-on {
  color: var(--wt-accent2, #facc15);
  filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--wt-accent2, #facc15) 50%, transparent));
}
.wt-testi-v2__score-star.is-half {
  background: linear-gradient(90deg, var(--wt-accent2, #facc15) 50%, var(--wt-border) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* fallback : sur navigateurs sans support, le SVG reste lisible */
}
.wt-testi-v2__score-meta {
  font-family: var(--wt-font-mono);
  font-size: .78rem;
  color: var(--wt-text-mute);
  letter-spacing: .04em;
  z-index: 1;
}

/* ===== FILTRES ===== */
.wt-testi-v2__filters {
  display: flex; flex-wrap: wrap;
  gap: .5rem;
}
.wt-testi-v2__filter {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-size: .88rem;
  font-weight: 600;
  transition: all .2s ease;
}
.wt-testi-v2__filter:hover {
  border-color: color-mix(in srgb, var(--wt-accent2, #facc15) 35%, var(--wt-border));
  color: var(--wt-text);
}
.wt-testi-v2__filter.is-active {
  background: color-mix(in srgb, var(--wt-accent2, #facc15) 18%, var(--wt-bg-elev));
  border-color: var(--wt-accent2, #facc15);
  color: var(--wt-text);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--wt-accent2, #facc15) 25%, transparent);
}
.wt-testi-v2__filter-count {
  padding: .12rem .45rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-bg-soft) 70%, transparent);
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  font-weight: 700;
}
.wt-testi-v2__filter-count--gold {
  background: color-mix(in srgb, var(--wt-accent2, #facc15) 22%, transparent);
  color: var(--wt-accent2, #facc15);
}
.wt-testi-v2__filter-count--featured {
  background: color-mix(in srgb, var(--wt-accent, #f59e0b) 22%, transparent);
  color: var(--wt-accent, #f59e0b);
}

/* ===== GRILLE PRINCIPALE ===== */
.wt-testi-v2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .wt-testi-v2__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wt-testi-v2__grid { grid-template-columns: repeat(3, 1fr); } }

.wt-testi-v2__card {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  display: flex; flex-direction: column;
  gap: .75rem;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(12px);
  animation: wt-testi-in .55s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 60ms + 80ms);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.wt-testi-v2__card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--wt-accent2, #facc15) 30%, var(--wt-border));
  box-shadow: 0 18px 38px rgba(0,0,0,.14);
}
.wt-testi-v2__card::before {
  /* Liseré dégradé en haut */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wt-accent, #f59e0b), var(--wt-accent2, #facc15));
  opacity: .8;
}
.wt-testi-v2__card.is-featured {
  border-color: color-mix(in srgb, var(--wt-accent2, #facc15) 40%, var(--wt-border));
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--wt-accent2, #facc15) 5%, var(--wt-bg-elev)),
              var(--wt-bg-elev));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wt-accent2, #facc15) 15%, transparent);
}

.wt-testi-v2__featured-badge {
  position: absolute;
  top: .85rem; right: .85rem;
  font-family: var(--wt-font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: var(--wt-radius-pill);
  background: linear-gradient(135deg, var(--wt-accent, #f59e0b), var(--wt-accent2, #facc15));
  color: var(--wt-accent-on, #fff);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--wt-accent2, #facc15) 35%, transparent);
  z-index: 1;
}

.wt-testi-v2__quote {
  position: absolute;
  top: -25px; right: 12px;
  font-family: 'Georgia', serif;
  font-size: 9rem;
  line-height: 1;
  color: color-mix(in srgb, var(--wt-accent2, #facc15) 14%, transparent);
  z-index: -1;
  user-select: none;
  pointer-events: none;
}

.wt-testi-v2__stars {
  display: inline-flex; gap: 2px;
}
.wt-testi-v2__star {
  color: var(--wt-border);
}
.wt-testi-v2__star.is-on {
  color: var(--wt-accent2, #facc15);
  filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--wt-accent2, #facc15) 40%, transparent));
}

.wt-testi-v2__card-title {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wt-text);
  line-height: 1.3;
}
.wt-testi-v2__card-body {
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--wt-text-soft);
  /* Limite à 6 lignes (sur la page liste, on n'a pas un mode "lire plus" ici) */
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.wt-testi-v2__card-foot {
  display: flex; align-items: center;
  gap: .65rem;
  padding-top: .75rem;
  border-top: 1px dashed color-mix(in srgb, var(--wt-border) 70%, transparent);
}
.wt-testi-v2__card-author {
  display: flex; flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.wt-testi-v2__card-author strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-testi-v2__card-author small {
  font-size: .72rem;
  color: var(--wt-text-mute);
  font-family: var(--wt-font-mono);
}

/* ===== EMPTY ===== */
.wt-testi-v2__empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px dashed var(--wt-border);
  display: flex; flex-direction: column;
  align-items: center;
  gap: .65rem;
}
.wt-testi-v2__empty-icon { font-size: 3rem; line-height: 1; opacity: .6; }
.wt-testi-v2__empty h2 {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.wt-testi-v2__empty p {
  margin: 0 0 .5rem;
  color: var(--wt-text-soft);
}

/* =====================================================================
 *  Formulaire de dépôt
 * ===================================================================== */
.wt-testi-v2__form-section {
  margin-top: 1.5rem;
}
.wt-testi-v2__form-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Locked state (anon ou non-active) */
.wt-testi-v2__form-locked {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px dashed var(--wt-border);
}
.wt-testi-v2__form-locked-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: .5rem;
  opacity: .7;
}
.wt-testi-v2__form-locked h3 {
  margin: 0 0 .5rem;
  font-family: var(--wt-font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.wt-testi-v2__form-locked p {
  margin: 0 0 1.25rem;
  color: var(--wt-text-soft);
  font-size: .92rem;
}
.wt-testi-v2__form-locked-cta {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center;
}

/* Form card */
.wt-testi-v2__form-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}

/* Mes stats personnelles */
.wt-testi-v2__mystats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
  padding: .85rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-bg-soft) 60%, transparent);
  border: 1px solid var(--wt-border);
}
.wt-testi-v2__mystats > div {
  display: flex; flex-direction: column;
  align-items: center;
  gap: .1rem;
  text-align: center;
}
.wt-testi-v2__mystats strong {
  font-family: var(--wt-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.wt-testi-v2__mystats-ok   { color: var(--wt-success, #22c55e); }
.wt-testi-v2__mystats-wait { color: var(--wt-accent2-hot, #f59e0b); }
.wt-testi-v2__mystats small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  color: var(--wt-text-mute);
  letter-spacing: .04em;
}

/* Rating en boutons radio stylés */
.wt-testi-v2__rating-field {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.wt-testi-v2__rating-field legend {
  margin-bottom: .5rem;
}
.wt-testi-v2__rating-group {
  display: flex; flex-direction: column;
  gap: .35rem;
}
.wt-testi-v2__rating-radio {
  display: flex; align-items: center;
  gap: .75rem;
  padding: .55rem .85rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg);
  border: 2px solid var(--wt-border);
  cursor: pointer;
  transition: all .15s ease;
}
.wt-testi-v2__rating-radio:hover {
  border-color: color-mix(in srgb, var(--wt-accent2, #facc15) 40%, var(--wt-border));
}
.wt-testi-v2__rating-radio input { position: absolute; opacity: 0; pointer-events: none; }
.wt-testi-v2__rating-radio:has(input:checked) {
  border-color: var(--wt-accent2, #facc15);
  background: color-mix(in srgb, var(--wt-accent2, #facc15) 8%, var(--wt-bg));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wt-accent2, #facc15) 15%, transparent);
}
.wt-testi-v2__rating-stars {
  display: inline-flex; gap: 2px;
}
.wt-testi-v2__rating-star {
  color: var(--wt-border);
}
.wt-testi-v2__rating-star.is-on {
  color: var(--wt-accent2, #facc15);
}
.wt-testi-v2__rating-label {
  margin-left: auto;
  font-family: var(--wt-font-mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--wt-text-mute);
}
.wt-testi-v2__rating-radio:has(input:checked) .wt-testi-v2__rating-label {
  color: var(--wt-accent2, #facc15);
}

/* Compteur de caractères */
.wt-testi-v2__counter {
  display: block;
  text-align: right;
  margin-top: .25rem;
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
}
.wt-testi-v2__counter[data-warn="true"] { color: var(--wt-accent2-hot, #f59e0b); }
.wt-testi-v2__counter[data-over="true"] { color: var(--wt-danger, #ef4444); font-weight: 700; }

.wt-testi-v2__note {
  margin: 1rem 0 0;
  padding: .75rem 1rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--wt-accent) 22%, var(--wt-border));
  font-size: .82rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
}

/* =====================================================================
 *  V8 — Leaderboard page modernisé (/leaderboard/)
 *
 *  Inclut : header + bandeau cagnotte + podium 2-1-3 + grille des parts
 *  par rang + liste élite 4-10 + bloc "vous" avec simulateur.
 *  Accent module : doré (--wt-accent2).
 * ===================================================================== */
.wt-lb-v2 {
  padding: 2rem 1rem 4rem;
}
.wt-lb-v2__wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.75rem;
}

/* ===== HEADER ===== */
.wt-lb-v2__header {
  text-align: center;
}
.wt-lb-v2__title {
  font-family: var(--wt-font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: .5rem 0 .5rem;
  background: linear-gradient(135deg,
              var(--wt-text) 30%,
              var(--wt-accent, #f59e0b) 70%,
              var(--wt-accent2, #facc15) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-lb-v2__lead {
  font-size: 1rem;
  color: var(--wt-text-soft);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.55;
}

.wt-lb-v2__periods {
  display: flex; flex-wrap: wrap;
  gap: .35rem;
  justify-content: center;
  margin-top: 1rem;
}
.wt-lb-v2__period {
  padding: .35rem .75rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-family: var(--wt-font-mono);
  font-size: .78rem;
  font-weight: 600;
  transition: all .2s ease;
}
.wt-lb-v2__period:hover {
  border-color: color-mix(in srgb, var(--wt-accent2, #facc15) 35%, var(--wt-border));
  color: var(--wt-text);
}
.wt-lb-v2__period.is-active {
  background: color-mix(in srgb, var(--wt-accent2, #facc15) 18%, var(--wt-bg-elev));
  border-color: var(--wt-accent2, #facc15);
  color: var(--wt-text);
}

/* ===== BANDEAU CAGNOTTE ===== */
.wt-lb-v2__prize {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: var(--wt-radius-lg);
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-accent, #f59e0b) 14%, var(--wt-bg-elev)),
              color-mix(in srgb, var(--wt-accent2, #facc15) 8%, var(--wt-bg-elev)));
  border: 1px solid color-mix(in srgb, var(--wt-accent2, #facc15) 30%, var(--wt-border));
  box-shadow: 0 12px 32px color-mix(in srgb, var(--wt-accent2, #facc15) 18%, transparent);
  flex-wrap: wrap;
}
.wt-lb-v2__prize-halo {
  position: absolute;
  inset: -30% -10% auto auto;
  width: 40%; height: 220%;
  background: radial-gradient(closest-side,
              color-mix(in srgb, var(--wt-accent2, #facc15) 35%, transparent),
              transparent 70%);
  z-index: -1;
  filter: blur(40px);
  animation: wt-lb-prize-glow 5s ease-in-out infinite;
}
@keyframes wt-lb-prize-glow {
  0%, 100% { transform: translate(0, 0)        scale(1);   opacity: .8; }
  50%      { transform: translate(-10px, 6px)  scale(1.1); opacity: 1;  }
}

.wt-lb-v2__prize-main { flex: 1; min-width: 220px; }
.wt-lb-v2__prize-label {
  font-family: var(--wt-font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
  display: block;
  margin-bottom: .35rem;
}
.wt-lb-v2__prize-amount {
  display: flex; align-items: baseline;
  gap: .5rem;
  font-family: var(--wt-font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--wt-accent, #f59e0b), var(--wt-accent2, #facc15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-lb-v2__prize-amount span {
  font-size: .35em;
  font-weight: 600;
  color: var(--wt-text-soft);
  -webkit-text-fill-color: var(--wt-text-soft);
  letter-spacing: 0;
}
.wt-lb-v2__prize-meta {
  display: block;
  margin-top: .35rem;
  font-size: .85rem;
  color: var(--wt-text-soft);
}

.wt-lb-v2__prize-countdown {
  display: flex; flex-direction: column;
  align-items: center;
  gap: .25rem;
}
.wt-lb-v2__prize-countdown small {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}
.wt-lb-v2__prize-timer {
  font-family: var(--wt-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-accent, #f59e0b);
  padding: .5rem 1rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid color-mix(in srgb, var(--wt-accent, #f59e0b) 25%, var(--wt-border));
}

/* Grille des parts (collapsible) */
.wt-lb-v2__grid-detail {
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-lb-v2__grid-summary {
  list-style: none;
  cursor: pointer;
  padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600;
  font-size: .92rem;
  color: var(--wt-text-soft);
  transition: background .15s ease;
}
.wt-lb-v2__grid-summary::-webkit-details-marker { display: none; }
.wt-lb-v2__grid-summary:hover {
  background: color-mix(in srgb, var(--wt-accent2, #facc15) 5%, transparent);
}
.wt-lb-v2__grid-detail[open] .wt-lb-v2__grid-summary svg {
  transform: rotate(180deg);
}
.wt-lb-v2__grid-summary svg {
  transition: transform .25s var(--wt-ease, ease-out);
  color: var(--wt-text-mute);
}
.wt-lb-v2__grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .75rem;
  padding: 0 1.25rem 1.25rem;
}
.wt-lb-v2__grid-item {
  display: flex; flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .65rem .5rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-soft);
  border: 1px solid var(--wt-border);
}
.wt-lb-v2__grid-rank {
  font-family: var(--wt-font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--wt-text-mute);
}
.wt-lb-v2__grid-coins {
  font-family: var(--wt-font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-accent2, #facc15);
}
.wt-lb-v2__grid-coins small {
  font-family: var(--wt-font-mono);
  font-size: .65em;
  font-weight: 500;
  color: var(--wt-text-mute);
  margin-left: .15rem;
}

/* ===== PODIUM ===== */
.wt-lb-v2__podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding: 1rem 0 0;
}
@media (min-width: 640px) { .wt-lb-v2__podium { gap: 1.5rem; } }

.wt-lb-v2__confetti {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.wt-lb-v2__step {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px) scale(.94);
  animation: wt-lbv2-bounce .7s var(--wt-ease-emph, ease-out) forwards;
}
.wt-lb-v2__step--gold   { animation-delay: 0ms; }
.wt-lb-v2__step--silver { animation-delay: 180ms; }
.wt-lb-v2__step--bronze { animation-delay: 360ms; }
@keyframes wt-lbv2-bounce {
  60%  { opacity: 1; transform: translateY(-6px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0)     scale(1);    }
}

.wt-lb-v2__crown {
  position: absolute;
  top: -2rem;
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--wt-accent2, #facc15) 50%, transparent));
  animation: wt-lbv2-crown 3s ease-in-out infinite;
}
@keyframes wt-lbv2-crown {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-4px) rotate(3deg); }
}

.wt-lb-v2__step-medal {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}
.wt-lb-v2__step-avatar {
  /* avatar du podium plus grand pour rank 1 */
  border: 3px solid;
}
.wt-lb-v2__step--gold   .wt-lb-v2__step-avatar { border-color: var(--wt-accent2, #facc15); }
.wt-lb-v2__step--silver .wt-lb-v2__step-avatar { border-color: #c0c0c0; }
.wt-lb-v2__step--bronze .wt-lb-v2__step-avatar { border-color: #cd7f32; }

.wt-lb-v2__step-name {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--wt-text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex; flex-direction: column;
  align-items: center;
  gap: .1rem;
}
.wt-lb-v2__step--gold .wt-lb-v2__step-name { font-size: 1.15rem; }

.wt-lb-v2__step-you {
  font-family: var(--wt-font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .12rem .45rem;
  border-radius: var(--wt-radius-pill);
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
  font-weight: 700;
}
.wt-lb-v2__step-level {
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--wt-text-mute);
  padding: .12rem .45rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-accent2, #facc15) 8%, transparent);
}

.wt-lb-v2__step-coins {
  display: flex; flex-direction: column;
  align-items: center;
  line-height: 1.1;
  margin: .25rem 0;
}
.wt-lb-v2__step-amount {
  font-family: var(--wt-font-display);
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
}
.wt-lb-v2__step--gold .wt-lb-v2__step-amount {
  font-size: 1.45rem;
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-lb-v2__step-coins small {
  font-size: .65rem;
  font-family: var(--wt-font-mono);
  color: var(--wt-text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Prize on podium */
.wt-lb-v2__step-prize {
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: .35rem .65rem;
  margin-top: .15rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-accent2, #facc15) 18%, transparent);
  color: var(--wt-accent2, #facc15);
  border: 1px solid color-mix(in srgb, var(--wt-accent2, #facc15) 30%, transparent);
  white-space: nowrap;
}
.wt-lb-v2__step-prize small {
  font-size: .75em; opacity: .8; font-weight: 500;
  margin-left: .15rem;
}

/* Base graduée du podium */
.wt-lb-v2__step-base {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--wt-font-display);
  font-weight: 800;
  color: var(--wt-text-soft);
  font-size: 1.5rem;
  border-radius: 12px 12px 0 0;
  margin-top: .5rem;
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--wt-bg-elev) 95%, transparent),
              color-mix(in srgb, var(--wt-bg-soft) 80%, transparent));
  border: 1px solid var(--wt-border);
  border-bottom: none;
}
.wt-lb-v2__step-base--gold {
  height: 100px;
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--wt-accent) 28%, var(--wt-bg-elev)),
              color-mix(in srgb, var(--wt-accent2) 22%, var(--wt-bg-soft)));
  border-color: color-mix(in srgb, var(--wt-accent2, #facc15) 40%, var(--wt-border));
  box-shadow: 0 -10px 32px color-mix(in srgb, var(--wt-accent2, #facc15) 25%, transparent);
}
.wt-lb-v2__step-base--silver { height: 72px; }
.wt-lb-v2__step-base--bronze { height: 56px; }

/* Mobile : podium plus serré */
@media (max-width: 540px) {
  .wt-lb-v2__podium { gap: .5rem; }
  .wt-lb-v2__step-name { font-size: .85rem; }
  .wt-lb-v2__step--gold .wt-lb-v2__step-name { font-size: .95rem; }
  .wt-lb-v2__step-amount { font-size: 1rem; }
  .wt-lb-v2__step--gold .wt-lb-v2__step-amount { font-size: 1.2rem; }
  .wt-lb-v2__step-medal { font-size: 1.4rem; }
  .wt-lb-v2__step-prize { font-size: .72rem; padding: .25rem .5rem; }
  .wt-lb-v2__step-base--gold   { height: 75px; }
  .wt-lb-v2__step-base--silver { height: 55px; }
  .wt-lb-v2__step-base--bronze { height: 40px; }
}

/* ===== LISTE ÉLITE ===== */
.wt-lb-v2__list { margin-top: 1.5rem; }
.wt-lb-v2__rows {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .35rem;
}
.wt-lb-v2__row {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  transition: transform .15s ease, border-color .15s ease;
  opacity: 0;
  transform: translateY(8px);
  animation: wt-feed-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 60ms);
}
.wt-lb-v2__row:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--wt-accent2, #facc15) 30%, var(--wt-border));
}
.wt-lb-v2__row.is-me {
  background: color-mix(in srgb, var(--wt-accent) 6%, var(--wt-bg-elev));
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--wt-accent) 15%, transparent);
}
.wt-lb-v2__row-rank {
  font-family: var(--wt-font-mono);
  font-size: .92rem;
  font-weight: 700;
  color: var(--wt-text-mute);
  min-width: 40px;
}
.wt-lb-v2__row-user {
  display: flex; align-items: center;
  gap: .35rem;
  min-width: 0;
  flex-wrap: wrap;
}
.wt-lb-v2__row-user strong {
  font-weight: 700;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-lb-v2__row-user small {
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  color: var(--wt-text-mute);
}
.wt-lb-v2__row-you-pill {
  font-family: var(--wt-font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .1rem .4rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-accent);
  color: var(--wt-accent-on, #fff);
  font-weight: 700;
}
.wt-lb-v2__row-coins {
  font-family: var(--wt-font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
  white-space: nowrap;
}
.wt-lb-v2__row-coins small {
  font-size: .65em; opacity: .6; font-weight: 500; margin-left: .15rem;
}
.wt-lb-v2__row-prize {
  font-family: var(--wt-font-mono);
  font-size: .75rem;
  font-weight: 700;
  color: var(--wt-accent2, #facc15);
  padding: .2rem .55rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-accent2, #facc15) 15%, transparent);
  white-space: nowrap;
}

/* Mobile : list passe en 2 lignes */
@media (max-width: 640px) {
  .wt-lb-v2__row {
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "rank avatar user"
      "rank avatar coins"
      "rank avatar prize";
    gap: .35rem .75rem;
  }
  .wt-lb-v2__row-rank   { grid-area: rank; }
  .wt-lb-v2__row-user   { grid-area: user; }
  .wt-lb-v2__row-coins  { grid-area: coins; }
  .wt-lb-v2__row-prize  { grid-area: prize; justify-self: start; }
}

/* ===== EMPTY ===== */
.wt-lb-v2__empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px dashed var(--wt-border);
  display: flex; flex-direction: column;
  align-items: center;
  gap: .65rem;
}
.wt-lb-v2__empty-icon { font-size: 3rem; line-height: 1; opacity: .6; }
.wt-lb-v2__empty h2 {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ===== BLOC "VOUS" ===== */
.wt-lb-v2__you {
  padding: 1.75rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid color-mix(in srgb, var(--wt-accent) 25%, var(--wt-border));
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.wt-lb-v2__you::before {
  content: '';
  position: absolute;
  inset: -50% -10% auto;
  height: 80%;
  background: radial-gradient(closest-side,
              color-mix(in srgb, var(--wt-accent) 20%, transparent),
              transparent 65%);
  z-index: -1;
  filter: blur(40px);
}
.wt-lb-v2__you-head {
  display: flex; align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.wt-lb-v2__you-info {
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-lb-v2__you-info small {
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  color: var(--wt-text-mute);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.wt-lb-v2__you-position {
  font-family: var(--wt-font-display);
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.wt-lb-v2__you-info > span {
  font-size: .88rem;
  color: var(--wt-text-soft);
}
.wt-lb-v2__you-motivation {
  padding: .85rem 1rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--wt-accent) 22%, var(--wt-border));
  font-size: .92rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.wt-lb-v2__you-motivation strong { color: var(--wt-accent); }

/* Simulator */
.wt-lb-v2__you-sim {
  margin-bottom: 1rem;
}
.wt-lb-v2__you-sim > small {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}
.wt-lb-v2__you-sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .65rem;
}
.wt-lb-v2__you-sim-item {
  padding: .75rem .85rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-soft);
  border: 1px solid var(--wt-border);
  display: flex; flex-direction: column;
  align-items: center;
  gap: .15rem;
  transition: transform .15s ease, border-color .15s ease;
}
.wt-lb-v2__you-sim-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--wt-accent2, #facc15) 30%, var(--wt-border));
}
.wt-lb-v2__you-sim-target {
  font-family: var(--wt-font-mono);
  font-size: .75rem;
  font-weight: 700;
  color: var(--wt-text-soft);
}
.wt-lb-v2__you-sim-amount {
  font-family: var(--wt-font-display);
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-accent2, #facc15);
}
.wt-lb-v2__you-sim-item small {
  font-family: var(--wt-font-mono);
  font-size: .65rem;
  color: var(--wt-text-mute);
}

.wt-lb-v2__you-cta {
  display: flex; flex-wrap: wrap; gap: .5rem;
}

/* =====================================================================
 *  V8 — Admin Cron page (/admin/cron.php)
 *
 *  Dashboard santé, tâches avec ETA, logs filtrables et paginés.
 *  Hérite de la grille admin globale, ajoute des composants spécifiques.
 * ===================================================================== */
.wt-admin-cron {
  display: flex; flex-direction: column;
  gap: 1.5rem;
}
.wt-admin-cron__header h1 { margin: 0 0 .35rem; }

.wt-admin-cron__alert {
  display: flex; flex-direction: column;
  gap: .25rem;
}
.wt-admin-cron__alert p {
  margin: 0;
  font-size: .92rem;
}
.wt-admin-cron__alert small {
  font-family: var(--wt-font-mono);
  opacity: .8;
}

/* ===== Dashboard santé (5 stats horizontales) ===== */
.wt-admin-cron__health {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
}
.wt-admin-cron__stat {
  padding: 1rem 1.25rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  display: flex; flex-direction: column;
  gap: .25rem;
  position: relative;
  overflow: hidden;
}
.wt-admin-cron__stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 100% 0%,
              color-mix(in srgb, var(--wt-accent) 8%, transparent),
              transparent 70%);
  pointer-events: none;
}
.wt-admin-cron__stat small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
  z-index: 1;
}
.wt-admin-cron__stat strong {
  font-family: var(--wt-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
  line-height: 1.1;
  z-index: 1;
}
.wt-admin-cron__stat--ok strong  { color: var(--wt-success, #22c55e); }
.wt-admin-cron__stat--err strong { color: var(--wt-danger, #ef4444); }
.wt-admin-cron__stat--err {
  border-color: color-mix(in srgb, var(--wt-danger, #ef4444) 30%, var(--wt-border));
}

/* ===== Card générique (URL, Tâches, Logs) ===== */
.wt-admin-cron__card {
  padding: 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-admin-cron__card-head {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.wt-admin-cron__card-head h2 {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  flex: 1; min-width: 0;
}
.wt-admin-cron__card-head p {
  width: 100%;
  margin: 0;
  font-size: .85rem;
  color: var(--wt-text-soft);
}
.wt-admin-cron__card-actions {
  display: flex; gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ===== URL + Token block ===== */
.wt-admin-cron__url-block {
  margin-bottom: 1rem;
}
.wt-admin-cron__url-label {
  display: block;
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
  margin-bottom: .35rem;
}
.wt-admin-cron__url-input {
  display: flex; gap: .35rem;
  flex-wrap: wrap;
}
.wt-admin-cron__url-text {
  flex: 1; min-width: 220px;
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  background: var(--wt-bg-soft);
  cursor: text;
  user-select: all;
}

.wt-admin-cron__details {
  margin-top: .75rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-soft);
  border: 1px solid var(--wt-border);
  overflow: hidden;
}
.wt-admin-cron__details summary {
  cursor: pointer;
  padding: .65rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  list-style: none;
}
.wt-admin-cron__details summary::-webkit-details-marker { display: none; }
.wt-admin-cron__details summary::before {
  content: '▸';
  display: inline-block;
  margin-right: .5rem;
  transition: transform .2s ease;
  color: var(--wt-text-mute);
}
.wt-admin-cron__details[open] summary::before {
  transform: rotate(90deg);
}
.wt-admin-cron__crontab {
  margin: 0;
  padding: .85rem 1rem;
  background: var(--wt-bg);
  border-top: 1px solid var(--wt-border);
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  overflow-x: auto;
  color: var(--wt-text);
}
.wt-admin-cron__details p {
  padding: 0 1rem 1rem;
  margin: 0;
}

/* ===== Liste des tâches ===== */
.wt-admin-cron__tasks {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .55rem;
}
.wt-admin-cron__task {
  display: flex; align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-soft);
  border: 1px solid var(--wt-border);
  border-left: 3px solid var(--wt-border);
  transition: border-color .15s ease;
  flex-wrap: wrap;
}
.wt-admin-cron__task.is-due {
  border-left-color: var(--wt-accent2-hot, #f59e0b);
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 4%, var(--wt-bg-soft));
}
.wt-admin-cron__task.is-fresh {
  border-left-color: var(--wt-success, #22c55e);
}
.wt-admin-cron__task-main {
  flex: 1; min-width: 240px;
  display: flex; flex-direction: column;
  gap: .35rem;
}
.wt-admin-cron__task-name {
  display: flex; align-items: center; gap: .55rem;
  font-size: .95rem;
}
.wt-admin-cron__task-name strong {
  font-family: var(--wt-font-mono);
  font-weight: 700;
  color: var(--wt-text);
}
.wt-admin-cron__task-meta {
  display: flex; gap: 1.25rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--wt-text-soft);
}
.wt-admin-cron__task-meta code {
  font-size: inherit;
  background: color-mix(in srgb, var(--wt-bg-elev) 70%, transparent);
  padding: .1rem .4rem;
  border-radius: 4px;
  color: var(--wt-text);
}
.wt-admin-cron__task-now {
  color: var(--wt-accent2-hot, #f59e0b);
}

/* ===== Filtres logs ===== */
.wt-admin-cron__filters {
  display: flex; flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}
.wt-admin-cron__filters--small {
  margin-top: -.5rem;
  margin-bottom: 1rem;
  padding: .5rem .65rem;
  background: var(--wt-bg-soft);
  border-radius: var(--wt-radius-md);
}
.wt-admin-cron__filter {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .75rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-size: .82rem;
  font-weight: 600;
  transition: all .15s ease;
}
.wt-admin-cron__filter:hover {
  border-color: color-mix(in srgb, var(--wt-accent) 35%, var(--wt-border));
  color: var(--wt-text);
}
.wt-admin-cron__filter.is-active {
  background: color-mix(in srgb, var(--wt-accent) 14%, var(--wt-bg));
  border-color: var(--wt-accent);
  color: var(--wt-text);
}
.wt-admin-cron__filter code {
  font-family: var(--wt-font-mono);
  font-size: .78rem;
  background: none;
}
.wt-admin-cron__filter-count {
  padding: .08rem .4rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-bg-soft) 80%, transparent);
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  font-weight: 700;
}
.wt-admin-cron__filter-count--success { background: color-mix(in srgb, var(--wt-success, #22c55e) 22%, transparent); color: var(--wt-success, #22c55e); }
.wt-admin-cron__filter-count--error   { background: color-mix(in srgb, var(--wt-danger,  #ef4444) 22%, transparent); color: var(--wt-danger,  #ef4444); }
.wt-admin-cron__filter-count--skipped { background: color-mix(in srgb, var(--wt-text-mute) 22%, transparent); color: var(--wt-text-soft); }

/* ===== Logs list ===== */
.wt-admin-cron__logs {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .35rem;
}
.wt-admin-cron__log {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr auto;
  gap: 1rem;
  align-items: center;
  padding: .65rem .85rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg);
  border: 1px solid var(--wt-border);
  border-left: 3px solid var(--wt-border);
  font-size: .85rem;
}
.wt-admin-cron__log--success { border-left-color: var(--wt-success, #22c55e); }
.wt-admin-cron__log--error   { border-left-color: var(--wt-danger, #ef4444); background: color-mix(in srgb, var(--wt-danger, #ef4444) 3%, var(--wt-bg)); }
.wt-admin-cron__log--skipped { border-left-color: var(--wt-text-mute); opacity: .8; }
.wt-admin-cron__log--running { border-left-color: var(--wt-accent); }

.wt-admin-cron__log-meta {
  display: flex; flex-direction: column;
  gap: .15rem;
  font-size: .78rem;
}
.wt-admin-cron__log-meta time {
  font-family: var(--wt-font-mono);
  color: var(--wt-text-mute);
}
.wt-admin-cron__log-task {
  font-family: var(--wt-font-mono);
  font-weight: 700;
  color: var(--wt-text);
  font-size: .82rem;
}
.wt-admin-cron__log-body {
  font-size: .85rem;
  line-height: 1.45;
  min-width: 0;
}
.wt-admin-cron__log-summary {
  color: var(--wt-text-soft);
}
.wt-admin-cron__log-error {
  color: var(--wt-danger, #ef4444);
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  font-weight: 600;
  word-break: break-word;
}
.wt-admin-cron__log-side {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  text-align: right;
  min-width: 80px;
}
.wt-admin-cron__log-status {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wt-admin-cron__log--success .wt-admin-cron__log-status { color: var(--wt-success, #22c55e); }
.wt-admin-cron__log--error   .wt-admin-cron__log-status { color: var(--wt-danger,  #ef4444); }
.wt-admin-cron__log--skipped .wt-admin-cron__log-status { color: var(--wt-text-mute); }
.wt-admin-cron__log-side small {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
}

/* Mobile : logs en colonne unique */
@media (max-width: 640px) {
  .wt-admin-cron__log {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "meta   side"
      "body   body";
    gap: .5rem;
  }
  .wt-admin-cron__log-meta { grid-area: meta; }
  .wt-admin-cron__log-side { grid-area: side; }
  .wt-admin-cron__log-body { grid-area: body; }
}

/* ===== Empty / Pagination ===== */
.wt-admin-cron__empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--wt-text-mute);
}
.wt-admin-cron__empty span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: .25rem;
  opacity: .6;
}
.wt-admin-cron__pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--wt-border);
}
.wt-admin-cron__page-info {
  font-family: var(--wt-font-mono);
  font-size: .85rem;
  color: var(--wt-text-mute);
}

.wt-inline { display: inline; }

/* =====================================================================
 *  V8 — /help/* pages modernisées
 *
 *  4 sous-pages :
 *    /help/                → Hub (3 cards + popular FAQ + my tickets)
 *    /help/faq.php         → FAQ avec recherche + sections
 *    /help/contact.php     → Form 2-col + sidebar raccourcis
 *    /help/contact-track/  → Thread style messagerie moderne
 * ===================================================================== */

/* =================== /help/ HUB =================== */
.wt-help-v2 {
  padding: 2rem 1rem 4rem;
}
.wt-help-v2__wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 2rem;
}
.wt-help-v2__header {
  text-align: center;
}
.wt-help-v2__title {
  font-family: var(--wt-font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: .5rem 0 .5rem;
  background: linear-gradient(135deg,
              var(--wt-text) 40%,
              var(--wt-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-help-v2__lead {
  font-size: 1.05rem;
  color: var(--wt-text-soft);
  max-width: 56ch;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

/* Search bar du hub */
.wt-help-v2__search {
  display: flex; gap: .5rem;
  max-width: 580px;
  margin: 0 auto;
  padding: .35rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wt-help-v2__search:focus-within {
  border-color: var(--wt-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--wt-accent) 12%, transparent);
}
.wt-help-v2__search-label {
  display: inline-flex; align-items: center;
  padding-left: .85rem;
  color: var(--wt-text-mute);
}
.wt-help-v2__search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--wt-text);
  font-family: inherit;
}
.wt-help-v2__search-input::placeholder { color: var(--wt-text-mute); }

/* 3 cards principales */
.wt-help-v2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .wt-help-v2__grid { grid-template-columns: repeat(3, 1fr); } }

.wt-help-v2__card {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .65rem;
  padding: 2rem 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(12px);
  animation: wt-help-card-in .55s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 100ms + 100ms);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
@keyframes wt-help-card-in {
  to { opacity: 1; transform: translateY(0); }
}
.wt-help-v2__card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
  box-shadow: 0 18px 38px rgba(0,0,0,.14);
}
.wt-help-v2__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wt-accent), var(--wt-accent2));
  opacity: .8;
}
.wt-help-v2__card--faq::before     { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.wt-help-v2__card--contact::before { background: linear-gradient(90deg, var(--wt-accent), var(--wt-accent-hot, #fb923c)); }
.wt-help-v2__card--track::before   { background: linear-gradient(90deg, #8b5cf6, var(--wt-accent2)); }

.wt-help-v2__card-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--wt-accent) 20%, transparent));
}
.wt-help-v2__card h2 {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.wt-help-v2__card p {
  margin: 0;
  font-size: .92rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
}
.wt-help-v2__card-arrow {
  font-size: 1.25rem;
  color: var(--wt-text-mute);
  transition: transform .2s ease, color .2s ease;
}
.wt-help-v2__card:hover .wt-help-v2__card-arrow {
  color: var(--wt-accent);
  transform: translateX(4px);
}

/* Mes tickets récents */
.wt-help-v2__my-tickets-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.wt-help-v2__tickets {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.wt-help-v2__ticket {
  display: flex; align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  opacity: 0;
  transform: translateY(6px);
  animation: wt-feed-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 60ms);
}
.wt-help-v2__ticket-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-help-v2__ticket-info strong {
  font-size: .92rem;
  font-weight: 700;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-help-v2__ticket-info small {
  font-size: .72rem;
  font-family: var(--wt-font-mono);
  color: var(--wt-text-mute);
}
.wt-help-v2__ticket-status {
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: var(--wt-radius-pill);
  white-space: nowrap;
}
.wt-help-v2__ticket-status--open     { background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 22%, transparent); color: var(--wt-accent2-hot, #f59e0b); }
.wt-help-v2__ticket-status--answered { background: color-mix(in srgb, var(--wt-success, #22c55e) 22%, transparent);     color: var(--wt-success, #22c55e); }
.wt-help-v2__ticket-status--closed   { background: color-mix(in srgb, var(--wt-text-mute) 22%, transparent);             color: var(--wt-text-mute); }

/* Questions populaires */
.wt-help-v2__popular-head {
  text-align: center;
  margin-bottom: 1.25rem;
}
.wt-help-v2__popular-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .35rem;
  max-width: 760px;
  margin: 0 auto;
}
.wt-help-v2__popular-list a {
  display: flex; align-items: center;
  gap: 1rem;
  padding: .85rem 1.25rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: inherit;
  transition: all .15s ease;
}
.wt-help-v2__popular-list a:hover {
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
  background: color-mix(in srgb, var(--wt-accent) 4%, var(--wt-bg-elev));
  transform: translateX(4px);
}
.wt-help-v2__popular-q {
  flex: 1;
  font-size: .92rem;
  color: var(--wt-text);
}
.wt-help-v2__popular-arrow {
  color: var(--wt-text-mute);
}
.wt-help-v2__popular-list a:hover .wt-help-v2__popular-arrow {
  color: var(--wt-accent);
}

/* =================== /help/faq.php =================== */
.wt-faq-v2 {
  padding: 2rem 1rem 4rem;
}
.wt-faq-v2__wrap {
  max-width: 900px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.75rem;
}
.wt-faq-v2__header {
  text-align: center;
}
.wt-faq-v2__title {
  font-family: var(--wt-font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: .5rem 0 .5rem;
  background: linear-gradient(135deg, var(--wt-text) 40%, var(--wt-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-faq-v2__lead {
  font-size: 1rem;
  color: var(--wt-text-soft);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.55;
}

/* Search bar */
.wt-faq-v2__search-wrap {
  display: flex; flex-direction: column;
  gap: .35rem;
}
.wt-faq-v2__search {
  display: flex; align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wt-faq-v2__search:focus-within {
  border-color: var(--wt-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--wt-accent) 12%, transparent);
}
.wt-faq-v2__search svg { color: var(--wt-text-mute); }
.wt-faq-v2__search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--wt-text);
  font-family: inherit;
}
.wt-faq-v2__search input::placeholder { color: var(--wt-text-mute); }
.wt-faq-v2__clear {
  background: var(--wt-bg-soft);
  border: none;
  border-radius: 50%;
  width: 24px; height: 24px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--wt-text-mute);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.wt-faq-v2__clear:hover { color: var(--wt-text); background: var(--wt-bg); }
.wt-faq-v2__count {
  font-family: var(--wt-font-mono);
  font-size: .8rem;
  text-align: right;
  margin: 0;
  min-height: 1.2em;
}

/* Sections */
.wt-faq-v2__section {
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  overflow: hidden;
}
.wt-faq-v2__section-head {
  display: flex; align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--wt-border);
  background: color-mix(in srgb, var(--wt-accent) 4%, var(--wt-bg-elev));
}
.wt-faq-v2__section-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.wt-faq-v2__section-title {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wt-text);
  flex: 1;
}
.wt-faq-v2__section-count {
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  padding: .15rem .55rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-soft);
}

.wt-faq-v2__list {
  list-style: none;
  padding: 0; margin: 0;
}
.wt-faq-v2__item-wrap {
  border-bottom: 1px solid var(--wt-border);
}
.wt-faq-v2__item-wrap:last-child { border-bottom: none; }
.wt-faq-v2__item {
  scroll-margin-top: 80px;
}
.wt-faq-v2__q {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--wt-font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--wt-text);
  user-select: none;
  transition: background-color .15s ease;
}
.wt-faq-v2__q::-webkit-details-marker { display: none; }
.wt-faq-v2__q:hover {
  background: color-mix(in srgb, var(--wt-accent) 5%, transparent);
}
.wt-faq-v2__q-text { flex: 1; }
.wt-faq-v2__q-icons {
  display: inline-flex; align-items: center;
  gap: .5rem;
  color: var(--wt-text-mute);
}
.wt-faq-v2__q-anchor {
  text-decoration: none;
  font-size: .9rem;
  opacity: 0;
  transition: opacity .15s ease, color .15s ease;
  color: var(--wt-text-mute);
}
.wt-faq-v2__q:hover .wt-faq-v2__q-anchor { opacity: 1; }
.wt-faq-v2__q-anchor:hover { color: var(--wt-accent); }
.wt-faq-v2__q-chevron {
  transition: transform .25s var(--wt-ease, ease-out);
}
.wt-faq-v2__item[open] .wt-faq-v2__q-chevron {
  transform: rotate(180deg);
  color: var(--wt-accent);
}
.wt-faq-v2__item[open] .wt-faq-v2__q {
  background: color-mix(in srgb, var(--wt-accent) 6%, transparent);
}
.wt-faq-v2__a {
  padding: 0 1.25rem 1.25rem;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--wt-text-soft);
  border-top: 1px dashed color-mix(in srgb, var(--wt-border) 70%, transparent);
  padding-top: 1rem;
}

/* État caché pour les items filtrés */
.wt-faq-v2__item-wrap.is-hidden,
.wt-faq-v2__section.is-hidden {
  display: none !important;
}

/* Empty state */
.wt-faq-v2__empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px dashed var(--wt-border);
  display: flex; flex-direction: column;
  align-items: center;
  gap: .65rem;
}
.wt-faq-v2__empty-icon { font-size: 3rem; line-height: 1; opacity: .6; }
.wt-faq-v2__empty h2 {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

/* CTA bottom */
.wt-faq-v2__cta {
  display: flex; align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--wt-radius-lg);
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-accent) 8%, var(--wt-bg-elev)),
              color-mix(in srgb, var(--wt-accent2) 5%, var(--wt-bg-elev)));
  border: 1px solid color-mix(in srgb, var(--wt-accent) 22%, var(--wt-border));
  flex-wrap: wrap;
}
.wt-faq-v2__cta-icon { font-size: 2rem; }
.wt-faq-v2__cta-text { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: .1rem; }
.wt-faq-v2__cta-text strong {
  font-family: var(--wt-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-faq-v2__cta-text small {
  font-size: .85rem;
  color: var(--wt-text-soft);
}

/* =================== /help/contact.php =================== */
.wt-contact-v2 {
  padding: 2rem 1rem 4rem;
}
.wt-contact-v2__wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.75rem;
}
.wt-contact-v2__header {
  text-align: center;
}
.wt-contact-v2__title {
  font-family: var(--wt-font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: .5rem 0 .5rem;
  background: linear-gradient(135deg, var(--wt-text) 40%, var(--wt-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-contact-v2__lead {
  font-size: 1rem;
  color: var(--wt-text-soft);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.55;
}

.wt-contact-v2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .wt-contact-v2__grid { grid-template-columns: 1.4fr 1fr; gap: 2rem; }
}

/* Form section */
.wt-contact-v2__card {
  padding: 2rem 1.75rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-contact-v2__logged-as {
  display: flex; align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--wt-accent) 22%, var(--wt-border));
}
.wt-contact-v2__logged-as small {
  display: block;
  font-family: var(--wt-font-mono);
  font-size: .65rem;
  color: var(--wt-text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.wt-contact-v2__logged-as strong { display: block; color: var(--wt-text); }
.wt-contact-v2__logged-as em {
  display: block;
  font-style: normal;
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  color: var(--wt-text-mute);
}

.wt-contact-v2__form { display: flex; flex-direction: column; gap: 1rem; }
.wt-contact-v2__row-2 {
  display: grid; gap: 1rem;
}
@media (min-width: 540px) { .wt-contact-v2__row-2 { grid-template-columns: 1fr 1fr; } }

.wt-contact-v2__counter {
  display: block;
  text-align: right;
  margin-top: .25rem;
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
}

.wt-contact-v2__captcha {
  padding: 1rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 25%, var(--wt-border));
}
.wt-contact-v2__captcha-row {
  display: flex; align-items: center;
  gap: .85rem;
}
.wt-contact-v2__captcha-q {
  font-family: var(--wt-font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--wt-accent2-hot, #f59e0b);
  font-variant-numeric: tabular-nums;
}
.wt-contact-v2__captcha-row input { max-width: 120px; }

.wt-contact-v2__note {
  margin: 0;
  padding: .75rem 1rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-accent) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--wt-accent) 20%, var(--wt-border));
  font-size: .82rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
}

/* Success block */
.wt-contact-v2__success {
  padding: 2rem 1.75rem;
  border-radius: var(--wt-radius-lg);
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-success, #22c55e) 8%, var(--wt-bg-elev)),
              var(--wt-bg-elev));
  border: 1px solid color-mix(in srgb, var(--wt-success, #22c55e) 30%, var(--wt-border));
  text-align: center;
  margin-bottom: 1rem;
}
.wt-contact-v2__success-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: .5rem;
}
.wt-contact-v2__success h2 {
  margin: 0 0 .35rem;
  font-family: var(--wt-font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.wt-contact-v2__success p {
  margin: 0 0 1rem;
  color: var(--wt-text-soft);
}
.wt-contact-v2__success-link {
  text-align: left;
  margin-bottom: 1rem;
}
.wt-contact-v2__copy {
  display: flex; gap: .35rem;
  flex-wrap: wrap;
}
.wt-contact-v2__copy input {
  flex: 1; min-width: 200px;
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  cursor: text;
  user-select: all;
}
.wt-contact-v2__security-notice {
  margin: .5rem 0 0;
  font-size: .8rem;
  color: var(--wt-text-mute);
}
.wt-contact-v2__success-actions {
  display: flex; gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sidebar */
.wt-contact-v2__sidebar {
  display: flex; flex-direction: column;
  gap: 1rem;
}
.wt-contact-v2__panel {
  padding: 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-contact-v2__panel--info {
  background: color-mix(in srgb, var(--wt-accent) 5%, var(--wt-bg-elev));
  border-color: color-mix(in srgb, var(--wt-accent) 22%, var(--wt-border));
}
.wt-contact-v2__panel-title {
  margin: 0 0 .35rem;
  font-family: var(--wt-font-display);
  font-size: 1.05rem;
  font-weight: 700;
}
.wt-contact-v2__panel-lead {
  margin: 0 0 1rem;
  font-size: .88rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
}
.wt-contact-v2__panel h3 {
  margin: 0 0 .35rem;
  font-family: var(--wt-font-display);
  font-size: .95rem;
  font-weight: 700;
}
.wt-contact-v2__panel p {
  margin: 0;
  font-size: .85rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
}

.wt-contact-v2__faq-list {
  list-style: none;
  padding: 0; margin: 0 0 1rem;
  display: flex; flex-direction: column;
  gap: .25rem;
}
.wt-contact-v2__faq-list a {
  display: flex; align-items: flex-start;
  gap: .5rem;
  padding: .55rem .75rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-soft);
  text-decoration: none;
  color: inherit;
  transition: all .15s ease;
  font-size: .85rem;
}
.wt-contact-v2__faq-list a:hover {
  background: color-mix(in srgb, var(--wt-accent) 8%, var(--wt-bg-soft));
  transform: translateX(3px);
}
.wt-contact-v2__faq-list span:first-child { flex: 1; }
.wt-contact-v2__faq-arrow {
  color: var(--wt-text-mute);
  flex-shrink: 0;
}

/* =================== /help/contact-track/ =================== */
.wt-track-v2 {
  padding: 2rem 1rem 4rem;
}
.wt-track-v2__wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.5rem;
}

/* Error state */
.wt-track-v2__error {
  text-align: center;
  padding: 4rem 1.5rem;
  align-items: center;
}
.wt-track-v2__error-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  opacity: .7;
}
.wt-track-v2__error h1 {
  margin: 0 0 .5rem;
  font-family: var(--wt-font-display);
  font-size: 1.6rem;
}
.wt-track-v2__error p {
  margin: 0 0 1.5rem;
}

/* Header */
.wt-track-v2__back {
  font-size: .9rem;
  color: var(--wt-text-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s ease, gap .15s ease;
  display: inline-flex; align-items: center;
  gap: .25rem;
  align-self: flex-start;
}
.wt-track-v2__back:hover { color: var(--wt-accent); gap: .5rem; }
.wt-track-v2__title-row {
  display: flex; align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: .5rem 0;
}
.wt-track-v2__title {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--wt-text);
}
.wt-track-v2__new-badge {
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .3rem .65rem;
  border-radius: var(--wt-radius-pill);
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
  box-shadow: 0 4px 12px var(--wt-accent-glow);
  animation: wt-track-pulse 2s ease-in-out infinite;
}
@keyframes wt-track-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* Ticket card */
.wt-track-v2__ticket-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  display: flex; flex-direction: column;
  gap: 1rem;
}
.wt-track-v2__ticket-status {
  display: flex; align-items: center;
  gap: .5rem;
}
.wt-track-v2__status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.wt-track-v2__status-dot--open     { background: var(--wt-accent2-hot, #f59e0b); animation: wt-status-pulse 2s ease-in-out infinite; }
.wt-track-v2__status-dot--answered { background: var(--wt-success, #22c55e); }
.wt-track-v2__status-dot--closed   { background: var(--wt-text-mute); }
@keyframes wt-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 50%, transparent); }
  70%      { box-shadow: 0 0 0 8px transparent; }
}
.wt-track-v2__status-label {
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wt-track-v2__status-label--open     { color: var(--wt-accent2-hot, #f59e0b); }
.wt-track-v2__status-label--answered { color: var(--wt-success, #22c55e); }
.wt-track-v2__status-label--closed   { color: var(--wt-text-mute); }

.wt-track-v2__ticket-meta {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.wt-track-v2__ticket-meta li {
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-track-v2__ticket-meta small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}
.wt-track-v2__ticket-meta strong {
  font-size: .9rem;
  color: var(--wt-text);
}
.wt-track-v2__ticket-by {
  font-family: var(--wt-font-mono);
  font-size: .75rem;
  color: var(--wt-text-mute);
  font-weight: 500;
}

/* Thread */
.wt-track-v2__thread {
  display: flex; flex-direction: column;
  gap: 1rem;
}
.wt-track-v2__msg {
  display: flex; align-items: flex-start;
  gap: .75rem;
  opacity: 0;
  transform: translateY(8px);
  animation: wt-track-msg-in .45s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 80ms + 80ms);
}
@keyframes wt-track-msg-in {
  to { opacity: 1; transform: translateY(0); }
}
.wt-track-v2__msg--admin {
  flex-direction: row-reverse;
}
.wt-track-v2__msg-avatar {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--wt-font-display);
  font-weight: 700;
  font-size: .85rem;
  background: var(--avatar-bg, var(--wt-bg-soft));
  color: var(--avatar-fg, var(--wt-text));
}
.wt-track-v2__msg--admin .wt-track-v2__msg-avatar {
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
}
.wt-track-v2__msg-content {
  flex: 1; min-width: 0;
  max-width: calc(100% - 60px);
}
.wt-track-v2__msg-head {
  display: flex; align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
  font-size: .82rem;
  flex-wrap: wrap;
}
.wt-track-v2__msg--admin .wt-track-v2__msg-head {
  justify-content: flex-end;
}
.wt-track-v2__msg-head strong {
  font-weight: 700;
  color: var(--wt-text);
}
.wt-track-v2__msg-badge {
  font-family: var(--wt-font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .12rem .45rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-success, #22c55e) 22%, transparent);
  color: var(--wt-success, #22c55e);
  font-weight: 700;
}
.wt-track-v2__msg-head time {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
}

.wt-track-v2__msg-bubble {
  padding: .85rem 1.1rem;
  border-radius: 18px 18px 18px 4px;
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  font-size: .92rem;
  line-height: 1.55;
  color: var(--wt-text-soft);
  word-wrap: break-word;
}
.wt-track-v2__msg--admin .wt-track-v2__msg-bubble {
  border-radius: 18px 18px 4px 18px;
  background: color-mix(in srgb, var(--wt-accent) 8%, var(--wt-bg-elev));
  border-color: color-mix(in srgb, var(--wt-accent) 25%, var(--wt-border));
  color: var(--wt-text);
}

/* Reply form */
.wt-track-v2__reply {
  padding: 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-track-v2__reply-title {
  margin: 0 0 1rem;
  font-family: var(--wt-font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.wt-track-v2__reply-form { display: flex; flex-direction: column; gap: 1rem; }
.wt-track-v2__reply-note {
  margin: 0;
  font-size: .82rem;
  color: var(--wt-text-mute);
  font-style: italic;
}

/* Closed state */
.wt-track-v2__closed {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--wt-radius-lg);
  background: color-mix(in srgb, var(--wt-text-mute) 5%, var(--wt-bg-elev));
  border: 1px solid var(--wt-border);
  display: flex; flex-direction: column;
  align-items: center;
  gap: .65rem;
}
.wt-track-v2__closed-icon {
  font-size: 2.5rem;
  opacity: .6;
}
.wt-track-v2__closed h2 {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.15rem;
}
.wt-track-v2__closed p {
  margin: 0 0 .5rem;
  color: var(--wt-text-soft);
  font-size: .92rem;
}

/* =====================================================================
 *  V8 — /auth/* pages modernisées (layout 2-col)
 *
 *  Layout :
 *    - Desktop : 2 colonnes (form gauche, marketing/info droite)
 *    - Mobile  : 1 colonne, marketing caché (sauf en bas si pertinent)
 *
 *  6 pages : login, signup, forgot-password, reset-password,
 *  verify-email, verify-2fa. Toutes utilisent .wt-auth-v2 et héritent
 *  des hooks JS (data-toggle-pw, data-strength-*, data-otp-*, etc.).
 * ===================================================================== */
.wt-auth-v2 {
  padding: 2rem 1rem 4rem;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}
.wt-auth-v2__wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.12);
}
@media (min-width: 920px) {
  .wt-auth-v2__wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* ============ Colonne form (gauche) ============ */
.wt-auth-v2__form-col {
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 920px) { .wt-auth-v2__form-col { padding: 3rem 2.5rem; } }

.wt-auth-v2__head {
  display: flex; flex-direction: column;
  gap: .35rem;
}
.wt-auth-v2__head--centered { text-align: center; align-items: center; }

.wt-auth-v2__title {
  margin: .25rem 0;
  font-family: var(--wt-font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--wt-text) 40%, var(--wt-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-auth-v2__lead {
  margin: 0;
  font-size: .95rem;
  color: var(--wt-text-soft);
  line-height: 1.55;
}

.wt-auth-v2__form { display: flex; flex-direction: column; gap: 1rem; }

/* Lien "Mot de passe oublié" inline dans le label */
.wt-auth-v2__forgot-link {
  float: right;
  font-size: .82rem;
  font-weight: 500;
  color: var(--wt-text-mute);
  text-decoration: none;
  transition: color .15s ease;
}
.wt-auth-v2__forgot-link:hover { color: var(--wt-accent); text-decoration: underline; }

.wt-auth-v2__remember { margin: -.25rem 0 .5rem; }

.wt-auth-v2__alt {
  margin: 0;
  text-align: center;
  font-size: .92rem;
  color: var(--wt-text-soft);
}
.wt-auth-v2__alt a {
  color: var(--wt-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}
.wt-auth-v2__alt a:hover { text-decoration: underline; }

.wt-auth-v2__terms span { font-size: .85rem; line-height: 1.45; color: var(--wt-text-soft); }
.wt-auth-v2__terms a { color: var(--wt-accent); font-weight: 600; }

/* Pill "Inscrit par X" sur signup */
.wt-auth-v2__ref-pill {
  display: flex; align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  margin-top: .25rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-success, #22c55e) 8%, var(--wt-bg-soft));
  border: 1px solid color-mix(in srgb, var(--wt-success, #22c55e) 30%, var(--wt-border));
}
.wt-auth-v2__ref-icon { font-size: 1.4rem; line-height: 1; }
.wt-auth-v2__ref-pill > div { display: flex; flex-direction: column; gap: .1rem; }
.wt-auth-v2__ref-pill strong { font-size: .92rem; color: var(--wt-text); font-weight: 700; }
.wt-auth-v2__ref-pill small {
  font-family: var(--wt-font-mono);
  font-size: .75rem;
  color: var(--wt-text-mute);
}

/* Illustrations en haut (mail, shield) */
.wt-auth-v2__mail-illust,
.wt-auth-v2__shield-illust {
  display: flex;
  justify-content: center;
  margin: -.5rem auto 0;
  animation: wt-auth-illust-in .6s var(--wt-ease, ease-out) .1s backwards;
}
@keyframes wt-auth-illust-in {
  from { opacity: 0; transform: translateY(-12px) scale(.92); }
  to   { opacity: 1; transform: translateY(0)     scale(1);   }
}
.wt-auth-v2__pending-email {
  display: inline-block;
  margin-top: .25rem;
  padding: .15rem .55rem;
  font-family: var(--wt-font-mono);
  font-size: .88rem;
  background: color-mix(in srgb, var(--wt-accent) 8%, transparent);
  border-radius: var(--wt-radius-pill);
  color: var(--wt-accent);
}
.wt-auth-v2__spam-note {
  margin: .25rem 0 0;
  padding: .85rem 1rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 22%, var(--wt-border));
  font-size: .85rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
}

/* OTP cells dans le wrap V8 */
.wt-auth-v2__otp {
  justify-content: center;
  margin: .25rem 0;
}

/* ============ Colonne marketing (droite) ============ */
.wt-auth-v2__side {
  position: relative;
  padding: 3rem 2.5rem;
  display: flex; flex-direction: column;
  gap: 1.5rem;
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-accent) 8%, var(--wt-bg-elev)),
              color-mix(in srgb, var(--wt-accent2) 6%, var(--wt-bg-elev)));
  border-left: 1px solid var(--wt-border);
  overflow: hidden;
  isolation: isolate;
}
/* Hide sidebar on mobile to keep focus on form */
@media (max-width: 919px) {
  .wt-auth-v2__side {
    display: none;
  }
}

.wt-auth-v2__side-bg {
  position: absolute;
  inset: -30% -30% auto auto;
  width: 80%; height: 90%;
  background: radial-gradient(closest-side,
              color-mix(in srgb, var(--wt-accent) 25%, transparent),
              transparent 70%);
  z-index: -1;
  filter: blur(50px);
  animation: wt-auth-glow 8s ease-in-out infinite;
}
@keyframes wt-auth-glow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .8; }
  50%      { transform: translate(-15px, 10px) scale(1.1); opacity: 1; }
}

.wt-auth-v2__side-head { display: flex; flex-direction: column; gap: .35rem; }
.wt-auth-v2__side-eyebrow {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--wt-accent);
}
.wt-auth-v2__side-title {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--wt-text);
}
.wt-auth-v2__side-foot {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px dashed color-mix(in srgb, var(--wt-border) 60%, transparent);
  font-size: .8rem;
  color: var(--wt-text-mute);
  font-family: var(--wt-font-mono);
  line-height: 1.5;
}

/* Live stat (login) */
.wt-auth-v2__live-stat {
  display: flex; align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-success, #22c55e) 8%, var(--wt-bg-elev));
  border: 1px solid color-mix(in srgb, var(--wt-success, #22c55e) 30%, var(--wt-border));
}
.wt-auth-v2__live-stat-pulse {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--wt-success, #22c55e);
  animation: wt-live-pulse 1.5s ease-in-out infinite;
}
@keyframes wt-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wt-success, #22c55e) 60%, transparent); }
  70%      { box-shadow: 0 0 0 12px transparent; }
}
.wt-auth-v2__live-stat > div { display: flex; flex-direction: column; }
.wt-auth-v2__live-stat strong {
  font-family: var(--wt-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-success, #22c55e);
  line-height: 1;
}
.wt-auth-v2__live-stat small {
  font-size: .82rem;
  color: var(--wt-text-soft);
}

/* Bonus banner (signup) */
.wt-auth-v2__bonus {
  display: flex; align-items: center;
  gap: .85rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--wt-accent) 30%, transparent);
  position: relative;
  overflow: hidden;
}
.wt-auth-v2__bonus::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,.15) 100%);
  pointer-events: none;
}
.wt-auth-v2__bonus-icon { font-size: 2rem; line-height: 1; z-index: 1; }
.wt-auth-v2__bonus > div { display: flex; flex-direction: column; z-index: 1; }
.wt-auth-v2__bonus strong {
  font-family: var(--wt-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.wt-auth-v2__bonus small {
  font-size: .82rem;
  opacity: .9;
}

/* Benefits list (login + signup) */
.wt-auth-v2__benefits {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 1rem;
}
.wt-auth-v2__benefits li {
  display: flex; align-items: flex-start;
  gap: .85rem;
}
.wt-auth-v2__benefit-icon {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-auth-v2__benefits > li > div { flex: 1; display: flex; flex-direction: column; gap: .1rem; }
.wt-auth-v2__benefits strong {
  font-family: var(--wt-font-display);
  font-size: .98rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-auth-v2__benefits small {
  font-size: .85rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
}

/* Timeline étapes (forgot/verify-email) */
.wt-auth-v2__steps {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 0;
  position: relative;
}
.wt-auth-v2__steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 20px; bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--wt-accent) 40%, var(--wt-border)) 0%,
              var(--wt-border) 100%);
}
.wt-auth-v2__steps > li {
  display: flex; align-items: flex-start;
  gap: 1rem;
  padding: .65rem 0;
  position: relative;
  z-index: 1;
}
.wt-auth-v2__step-num {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--wt-font-display);
  font-weight: 800;
  font-size: 1rem;
  background: var(--wt-bg-elev);
  border: 2px solid var(--wt-border);
  color: var(--wt-text-mute);
  transition: all .2s ease;
}
.wt-auth-v2__steps > li.is-done .wt-auth-v2__step-num {
  background: var(--wt-success, #22c55e);
  border-color: var(--wt-success, #22c55e);
  color: var(--wt-accent-on, #fff);
}
.wt-auth-v2__steps > li.is-current .wt-auth-v2__step-num {
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  border-color: var(--wt-accent2);
  color: var(--wt-accent-on, #fff);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--wt-accent) 18%, transparent);
}
.wt-auth-v2__steps > li > div { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.wt-auth-v2__steps strong {
  font-family: var(--wt-font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-auth-v2__steps small {
  font-size: .85rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
}

/* Tips list (reset/2fa) */
.wt-auth-v2__tips {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .65rem;
}
.wt-auth-v2__tips li {
  display: flex; align-items: flex-start;
  gap: .65rem;
  padding: .65rem .85rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  font-size: .9rem;
  color: var(--wt-text);
  line-height: 1.5;
}
.wt-auth-v2__tip-icon {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wt-success, #22c55e) 18%, transparent);
  color: var(--wt-success, #22c55e);
}

/* =====================================================================
 *  V8 — /legal/* pages modernisées
 *
 *  Layout 2-col : TOC sticky à gauche (desktop) + article au centre.
 *  En mobile, la TOC passe au-dessus de l'article (mais collapsible).
 *
 *  3 pages : cgu, privacy, cookies — toutes utilisent .wt-legal-v2.
 * ===================================================================== */
.wt-legal-v2 {
  padding: 2rem 1rem 4rem;
}
.wt-legal-v2__wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 2rem;
}

/* ============ HEADER ============ */
.wt-legal-v2__header {
  text-align: center;
  padding: 1.5rem 1rem 0;
}
.wt-legal-v2__title {
  font-family: var(--wt-font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: .5rem 0;
  background: linear-gradient(135deg,
              var(--wt-text) 40%,
              var(--wt-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-legal-v2__lead {
  font-size: 1rem;
  color: var(--wt-text-soft);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.55;
}
.wt-legal-v2__meta {
  margin: 1rem 0 .5rem;
}
.wt-legal-v2__updated {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .85rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  font-family: var(--wt-font-mono);
  font-size: .78rem;
  color: var(--wt-text-mute);
}

/* Navigation entre les 3 pages */
.wt-legal-v2__nav {
  display: flex; flex-wrap: wrap;
  gap: .35rem;
  justify-content: center;
  margin-top: 1rem;
}
.wt-legal-v2__nav-link {
  padding: .5rem 1rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-size: .88rem;
  font-weight: 600;
  transition: all .2s ease;
}
.wt-legal-v2__nav-link:hover {
  border-color: color-mix(in srgb, var(--wt-accent) 35%, var(--wt-border));
  color: var(--wt-text);
}
.wt-legal-v2__nav-link.is-active {
  background: color-mix(in srgb, var(--wt-accent) 18%, var(--wt-bg-elev));
  border-color: var(--wt-accent);
  color: var(--wt-text);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--wt-accent) 22%, transparent);
}

/* ============ LAYOUT 2-COL ============ */
.wt-legal-v2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 920px) {
  .wt-legal-v2__grid {
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

/* ============ TOC ============ */
.wt-legal-v2__toc {
  padding: 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
@media (min-width: 920px) {
  .wt-legal-v2__toc {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}
.wt-legal-v2__toc-title {
  display: block;
  font-family: var(--wt-font-display);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--wt-text);
}
.wt-legal-v2__toc-list {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: toc-counter;
  display: flex; flex-direction: column;
  gap: .1rem;
}
.wt-legal-v2__toc-list li {
  counter-increment: toc-counter;
}
.wt-legal-v2__toc-list a {
  display: flex; align-items: center;
  gap: .5rem;
  padding: .4rem .65rem;
  border-radius: var(--wt-radius-md);
  text-decoration: none;
  font-size: .85rem;
  color: var(--wt-text-soft);
  line-height: 1.4;
  transition: all .15s ease;
}
.wt-legal-v2__toc-list a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--wt-text-mute);
  flex-shrink: 0;
}
.wt-legal-v2__toc-list a:hover {
  background: color-mix(in srgb, var(--wt-accent) 6%, transparent);
  color: var(--wt-text);
}
.wt-legal-v2__toc-list a:hover::before {
  color: var(--wt-accent);
}

/* Mobile : TOC se replie en accordéon implicite */
@media (max-width: 919px) {
  .wt-legal-v2__toc-list {
    columns: 2;
    column-gap: .5rem;
  }
  .wt-legal-v2__toc-list a {
    break-inside: avoid;
  }
}

/* ============ ARTICLE ============ */
.wt-legal-v2__article {
  padding: 2rem 2rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
@media (min-width: 920px) {
  .wt-legal-v2__article { padding: 2.5rem 3rem; }
}

.wt-legal-v2__article section {
  padding-top: 1.5rem;
  scroll-margin-top: 90px;
}
.wt-legal-v2__article section:first-child {
  padding-top: 0;
}

.wt-legal-v2__article h2 {
  margin: 0 0 .75rem;
  font-family: var(--wt-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--wt-text);
  letter-spacing: -.01em;
}
.wt-legal-v2__article h2::before {
  /* Ligne d'accent verticale gauche */
  content: '';
  display: inline-block;
  width: 3px;
  height: .85em;
  background: linear-gradient(180deg, var(--wt-accent), var(--wt-accent2));
  border-radius: 2px;
  margin-right: .65rem;
  vertical-align: middle;
}

.wt-legal-v2__sub {
  margin: 1.25rem 0 .65rem;
  font-family: var(--wt-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wt-text);
}

.wt-legal-v2__article p {
  margin: 0 0 1rem;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--wt-text-soft);
}
.wt-legal-v2__article p:last-child { margin-bottom: 0; }

.wt-legal-v2__article ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.wt-legal-v2__article ul li {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--wt-text-soft);
}
.wt-legal-v2__article ul li::marker {
  color: var(--wt-accent);
}

.wt-legal-v2__article strong {
  color: var(--wt-text);
  font-weight: 700;
}
.wt-legal-v2__article a {
  color: var(--wt-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--wt-accent) 40%, transparent);
  transition: border-color .15s ease;
}
.wt-legal-v2__article a:hover {
  border-bottom-color: var(--wt-accent);
  border-bottom-style: solid;
}
.wt-legal-v2__article code {
  font-family: var(--wt-font-mono);
  font-size: .85em;
  padding: .12rem .4rem;
  border-radius: 4px;
  background: var(--wt-bg-soft);
  color: var(--wt-text);
  border: 1px solid var(--wt-border);
}

/* Table dans articles légaux */
.wt-legal-v2__table {
  font-size: .88rem;
  margin: .5rem 0 1rem;
}
.wt-legal-v2__table th {
  background: var(--wt-bg-soft);
  font-weight: 700;
  color: var(--wt-text);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Footer "Une question ?" */
.wt-legal-v2__footer {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-accent) 6%, var(--wt-bg-soft));
  border: 1px solid color-mix(in srgb, var(--wt-accent) 22%, var(--wt-border));
  text-align: center;
}
.wt-legal-v2__footer p {
  margin: 0;
  font-size: .92rem;
}

/* =====================================================================
 *  V8 — Footer principal modernisé
 *
 *  Layout :
 *    - 4 colonnes desktop (brand + Produit + Support + Légal)
 *    - 2 colonnes tablette (brand pleine largeur + 3 nav)
 *    - 1 colonne mobile (tout empilé)
 *  + Bandeau méthodes de paiement
 *  + Bottom bar avec switchers langue/thème
 * ===================================================================== */
.wt-footer-v2 {
  margin-top: 4rem;
  padding: 3rem 1rem 1.5rem;
  background: linear-gradient(180deg,
              var(--wt-bg-soft) 0%,
              color-mix(in srgb, var(--wt-bg-soft) 80%, var(--wt-bg)) 100%);
  border-top: 1px solid var(--wt-border);
  position: relative;
  overflow: hidden;
}
.wt-footer-v2::before {
  /* Liseré dégradé décoratif en haut */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
              transparent,
              var(--wt-accent) 30%,
              var(--wt-accent2) 70%,
              transparent);
  opacity: .6;
}
.wt-footer-v2__wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============ GRILLE 4 COLONNES ============ */
.wt-footer-v2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .wt-footer-v2__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

/* ============ Colonne BRAND ============ */
.wt-footer-v2__brand-col {
  display: flex; flex-direction: column;
  gap: 1rem;
}
.wt-footer-v2__brand {
  display: inline-flex; align-items: center;
  text-decoration: none;
  color: var(--wt-text);
  font-family: var(--wt-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  width: fit-content;
}
.wt-footer-v2__brand .wt-brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
  border-radius: 8px;
  margin-right: -2px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--wt-accent) 30%, transparent);
}
.wt-footer-v2__tagline {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--wt-text-soft);
  max-width: 36ch;
}

/* Réseaux sociaux */
.wt-footer-v2__socials {
  display: flex; gap: .5rem;
  margin-top: .25rem;
}
.wt-footer-v2__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  color: var(--wt-text-soft);
  transition: all .2s ease;
}
.wt-footer-v2__social:hover {
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  border-color: transparent;
  color: var(--wt-accent-on, #fff);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--wt-accent) 30%, transparent);
}

/* ============ Colonnes navigation ============ */
.wt-footer-v2__col {
  display: flex; flex-direction: column;
  gap: .75rem;
}
.wt-footer-v2__col-title {
  margin: 0 0 .25rem;
  font-family: var(--wt-font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wt-text);
}
.wt-footer-v2__col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .4rem;
}
.wt-footer-v2__col a,
.wt-footer-v2__link-btn {
  display: inline-block;
  font-size: .9rem;
  color: var(--wt-text-soft);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: color .15s ease, transform .15s ease;
}
.wt-footer-v2__col a:hover,
.wt-footer-v2__link-btn:hover {
  color: var(--wt-accent);
  transform: translateX(2px);
}

/* ============ Bandeau paiements ============ */
.wt-footer-v2__payments {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 1.5rem;
}
.wt-footer-v2__payments-title {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
  white-space: nowrap;
}
.wt-footer-v2__payments-list {
  display: flex; flex-wrap: wrap;
  gap: .5rem;
}
.wt-footer-v2__payment {
  padding: .35rem .85rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg);
  border: 1px solid var(--wt-border);
  font-family: var(--wt-font-mono);
  font-size: .78rem;
  font-weight: 600;
  color: var(--wt-text-soft);
  transition: all .15s ease;
}
.wt-footer-v2__payment:hover {
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
  color: var(--wt-text);
}

/* ============ Bottom bar ============ */
.wt-footer-v2__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wt-border);
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.wt-footer-v2__copyright {
  font-size: .85rem;
  color: var(--wt-text-mute);
  line-height: 1.5;
}
.wt-footer-v2__made {
  display: inline-block;
}
@media (max-width: 540px) {
  .wt-footer-v2__made { display: block; margin-top: .25rem; padding-left: 0; }
}

.wt-footer-v2__controls {
  display: flex; align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

/* Switchers langue/thème (pattern segmented control) */
.wt-footer-v2__switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-footer-v2__switch-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px;
  padding: .35rem .65rem;
  border-radius: var(--wt-radius-pill);
  text-decoration: none;
  font-family: var(--wt-font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--wt-text-mute);
  transition: all .15s ease;
}
.wt-footer-v2__switch-btn:hover {
  color: var(--wt-text);
}
.wt-footer-v2__switch-btn.is-active {
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--wt-accent) 35%, transparent);
}

/* =====================================================================
 *  V8 — Header principal modernisé
 *
 *  Différences vs ancien :
 *    - Sticky avec backdrop-blur + shadow au scroll
 *    - Active-state des liens de nav (page courante highlight)
 *    - Switcher langue en segmented control (au lieu de <select>)
 *    - Solde Coins en pill gradient avec icône
 *    - Avatar bordé subtilement
 *    - Drawer mobile avec sections groupées
 *    - Skip link accessibilité
 * ===================================================================== */

/* ---- Skip link (accessibilité clavier) ---- */
.wt-skip-link {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  padding: .65rem 1.25rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-accent);
  color: var(--wt-accent-on, #fff);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  z-index: 10000;
  transition: top .2s ease;
}
.wt-skip-link:focus {
  top: .5rem;
  outline: 3px solid var(--wt-accent2);
  outline-offset: 2px;
}
.wt-skip-anchor {
  display: block;
  height: 0; width: 0;
  overflow: hidden;
}

/* ---- Header sticky ---- */
.wt-header-v2 {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--wt-bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--wt-border) 70%, transparent);
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.wt-header-v2.is-scrolled {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  border-bottom-color: var(--wt-border);
}

.wt-header-v2__inner {
  display: flex; align-items: center;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: .85rem 1rem;
}

/* ---- Brand ---- */
.wt-header-v2__brand {
  display: inline-flex; align-items: center;
  gap: .25rem;
  text-decoration: none;
  color: var(--wt-text);
  font-family: var(--wt-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  transition: transform .2s ease;
}
.wt-header-v2__brand:hover { transform: scale(1.02); }
.wt-header-v2__brand-mark {
  display: inline-flex;
  width: 32px; height: 32px;
}
.wt-header-v2__brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.wt-header-v2__brand-name {
  margin-left: -1px;
}

/* ---- Navigation desktop ---- */
.wt-header-v2__nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-left: 1rem;
  flex: 1;
}
.wt-header-v2__nav a {
  position: relative;
  padding: .5rem .85rem;
  border-radius: var(--wt-radius-md);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-size: .92rem;
  font-weight: 600;
  transition: color .15s ease, background .15s ease;
}
.wt-header-v2__nav a:hover {
  color: var(--wt-text);
  background: color-mix(in srgb, var(--wt-accent) 6%, transparent);
}
.wt-header-v2__nav a.is-active {
  color: var(--wt-accent);
  background: color-mix(in srgb, var(--wt-accent) 10%, transparent);
}
.wt-header-v2__nav a.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--wt-accent), var(--wt-accent2));
  border-radius: 2px;
}

/* Cache navigation desktop en mobile via data-nav */
@media (max-width: 959px) {
  [data-nav="desktop"] {
    display: none !important;
  }
}
@media (min-width: 960px) {
  [data-nav="mobile"] {
    display: none !important;
  }
}

/* ---- Actions à droite ---- */
.wt-header-v2__actions {
  display: flex; align-items: center;
  gap: .4rem;
  margin-left: auto;
}

/* Bouton icône réutilisable */
.wt-header-v2__icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--wt-radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--wt-text-soft);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: all .15s ease;
}
.wt-header-v2__icon-btn:hover {
  color: var(--wt-text);
  background: var(--wt-bg-elev);
  border-color: var(--wt-border);
}
.wt-header-v2__icon-btn svg {
  width: 18px; height: 18px;
}
.wt-header-v2__icon-btn--badge .wt-ping {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wt-danger, #ef4444);
  box-shadow: 0 0 0 2px var(--wt-bg);
  animation: wt-ping 1.5s ease-out infinite;
}
@keyframes wt-ping {
  0%   { transform: scale(1); opacity: 1; }
  70%  { transform: scale(2.3); opacity: 0; }
  100% { transform: scale(2.3); opacity: 0; }
}
.wt-header-v2__icon-btn--badge .wt-pill-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--wt-danger, #ef4444);
  color: #fff;
  font-family: var(--wt-font-mono);
  font-size: .65rem;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--wt-bg);
}

/* Toggle thème : icônes sun/moon échangées selon le thème actif */
.wt-header-v2__theme-btn .wt-icon-sun  { display: none; }
.wt-header-v2__theme-btn .wt-icon-moon { display: block; }
:root.light .wt-header-v2__theme-btn .wt-icon-sun  { display: block; }
:root.light .wt-header-v2__theme-btn .wt-icon-moon { display: none; }

/* Animation rotation au clic (déclenchée par le JS qui set la classe) */
.wt-header-v2__theme-btn:active svg { transform: rotate(180deg); transition: transform .3s ease; }

/* Segmented control langue/thème (cohérent footer) */
.wt-header-v2__lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-header-v2__lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px;
  padding: .3rem .55rem;
  border-radius: var(--wt-radius-pill);
  text-decoration: none;
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--wt-text-mute);
  transition: all .15s ease;
}
.wt-header-v2__lang-btn:hover { color: var(--wt-text); }
.wt-header-v2__lang-btn.is-active {
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--wt-accent) 35%, transparent);
}
.wt-header-v2__lang-fallback {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px; height: 1px;
}

/* ---- Solde Coins ---- */
.wt-header-v2__balance {
  display: inline-flex; align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border-radius: var(--wt-radius-pill);
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-accent) 10%, var(--wt-bg-elev)),
              color-mix(in srgb, var(--wt-accent2) 8%, var(--wt-bg-elev)));
  border: 1px solid color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
  text-decoration: none;
  color: var(--wt-text);
  font-family: var(--wt-font-mono);
  font-size: .85rem;
  font-weight: 700;
  transition: all .2s ease;
}
.wt-header-v2__balance:hover {
  border-color: var(--wt-accent);
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-accent) 14%, var(--wt-bg-elev)),
              color-mix(in srgb, var(--wt-accent2) 12%, var(--wt-bg-elev)));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--wt-accent) 25%, transparent);
  transform: translateY(-1px);
}
.wt-header-v2__balance-icon { font-size: 1rem; line-height: 1; }
.wt-header-v2__balance-amt {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.wt-header-v2__balance-unit {
  font-size: .7rem;
  color: var(--wt-text-mute);
  font-weight: 500;
}

/* ---- Avatar ---- */
.wt-header-v2__avatar {
  border: 2px solid var(--wt-border);
  transition: border-color .15s ease, transform .15s ease;
}
.wt-header-v2__avatar:hover {
  border-color: var(--wt-accent);
  transform: scale(1.03);
}

/* ---- Dropdown profile (V8 spécifique — position relative géré au-dessus) ---- */
.wt-header-v2__dropdown {
  min-width: 240px;
}
.wt-header-v2__dropdown .wt-dropdown__item {
  display: flex; align-items: center;
  gap: .65rem;
}
.wt-header-v2__dropdown .wt-dropdown__item span[aria-hidden] {
  font-size: 1rem;
  width: 1.2rem; text-align: center;
  flex-shrink: 0;
}

/* ---- Hamburger button ---- */
.wt-hamburger {
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.wt-hamburger__bar {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s ease, opacity .15s ease;
}

/* =====================================================================
 *  Drawer mobile V8
 * ===================================================================== */
.wt-drawer-v2 {
  display: flex; flex-direction: column;
}
.wt-drawer-v2__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--wt-border);
}

.wt-drawer-v2__profile {
  display: flex; align-items: center;
  gap: .85rem;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--wt-accent) 6%, transparent);
  border-bottom: 1px solid var(--wt-border);
}
.wt-drawer-v2__profile-info {
  display: flex; flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.wt-drawer-v2__profile-info strong {
  font-family: var(--wt-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-drawer-v2__profile-info small {
  font-family: var(--wt-font-mono);
  font-size: .75rem;
  color: var(--wt-text-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card balance dans drawer */
.wt-drawer-v2__balance {
  display: flex; align-items: center;
  gap: .85rem;
  margin: 1rem 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--wt-radius-md);
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
  text-decoration: none;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--wt-accent) 30%, transparent);
  transition: transform .2s ease;
}
.wt-drawer-v2__balance:hover { transform: translateY(-2px); }
.wt-drawer-v2__balance-icon { font-size: 1.6rem; }
.wt-drawer-v2__balance > div {
  flex: 1;
  display: flex; flex-direction: column;
  line-height: 1.1;
}
.wt-drawer-v2__balance small {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  font-family: var(--wt-font-mono);
}
.wt-drawer-v2__balance strong {
  font-family: var(--wt-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.wt-drawer-v2__balance-arrow {
  font-size: 1.3rem;
  opacity: .7;
  transition: transform .2s ease;
}
.wt-drawer-v2__balance:hover .wt-drawer-v2__balance-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Navigation drawer en sections */
.wt-drawer-v2__nav {
  flex: 1;
  overflow-y: auto;
  padding: .5rem 1.25rem 1.5rem;
  display: flex; flex-direction: column;
  gap: 1.25rem;
}
.wt-drawer-v2__section {
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-drawer-v2__section-title {
  margin: .25rem 0 .35rem;
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
  padding-left: .25rem;
}
.wt-drawer-v2__nav a {
  display: flex; align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  border-radius: var(--wt-radius-md);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-size: .95rem;
  font-weight: 600;
  transition: all .15s ease;
  opacity: 0;
  transform: translateX(-12px);
  animation: wt-drawer-link-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 35ms + 120ms);
}
@keyframes wt-drawer-link-in {
  to { opacity: 1; transform: translateX(0); }
}
.wt-drawer-v2__nav a:hover {
  background: color-mix(in srgb, var(--wt-accent) 8%, transparent);
  color: var(--wt-text);
}
.wt-drawer-v2__nav a.is-active {
  background: color-mix(in srgb, var(--wt-accent) 14%, transparent);
  color: var(--wt-accent);
  font-weight: 700;
}
.wt-drawer-v2__nav a span[aria-hidden] {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}
.wt-drawer-v2__nav a .wt-pill-badge {
  margin-left: auto;
}

/* Foot drawer */
.wt-drawer-v2__foot {
  padding: 1.25rem;
  border-top: 1px solid var(--wt-border);
  display: flex; flex-direction: column;
  gap: 1rem;
}
.wt-drawer-v2__prefs {
  display: flex; flex-direction: column;
  gap: .5rem;
}
.wt-drawer-v2__pref-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .35rem 0;
}
.wt-drawer-v2__pref-row small {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}

/* =====================================================================
 *  V8 — Dashboard sidebar modernisée
 *
 *  Sidebar enrichie avec :
 *    - Profile card avec mini-jauge XP intégrée
 *    - 4 sections groupées (Vue d'ensemble / Comm / Finance / Compte)
 *    - Section titles en font-mono uppercase petits
 *    - Animation cascade des items via --idx
 *
 *  Réutilise le layout .wt-dash__layout existant (côté .wt-dash__content)
 * ===================================================================== */
.wt-dash-v2__sidebar {
  display: flex; flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  align-self: start;
}
@media (min-width: 960px) {
  .wt-dash-v2__sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

/* ====== Profile card avec mini-jauge XP ====== */
.wt-dash-v2__profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: .5rem .85rem;
  padding: 1rem;
  border-radius: var(--wt-radius-md);
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-accent) 8%, var(--wt-bg)),
              color-mix(in srgb, var(--wt-accent2) 4%, var(--wt-bg)));
  border: 1px solid color-mix(in srgb, var(--wt-accent) 22%, var(--wt-border));
}
.wt-dash-v2__profile-card .wt-avatar {
  grid-row: 1 / span 2;
  border: 2px solid color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
}
.wt-dash-v2__profile-info {
  display: flex; flex-direction: column;
  gap: .25rem;
  min-width: 0;
  align-self: center;
}
.wt-dash-v2__profile-info strong {
  font-family: var(--wt-font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-dash-v2__level-pill {
  display: inline-flex; align-items: center;
  gap: .25rem;
  padding: .15rem .55rem;
  border-radius: var(--wt-radius-pill);
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  align-self: flex-start;
  width: fit-content;
}

/* Mini-jauge XP */
.wt-dash-v2__xp-mini {
  grid-column: 1 / -1;
  display: flex; flex-direction: column;
  gap: .25rem;
}
.wt-dash-v2__xp-bar {
  width: 100%;
  height: 5px;
  background: color-mix(in srgb, var(--wt-text-mute) 18%, transparent);
  border-radius: 3px;
  overflow: hidden;
}
.wt-dash-v2__xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wt-accent), var(--wt-accent2));
  border-radius: 3px;
  transition: width .6s var(--wt-ease, ease-out);
}
.wt-dash-v2__xp-mini small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  color: var(--wt-text-mute);
  text-align: right;
}

/* ====== Navigation ====== */
.wt-dash-v2__nav {
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-dash-v2__nav-title {
  margin: 0 0 .25rem;
  padding: 0 .5rem;
  font-family: var(--wt-font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}
.wt-dash-v2__nav a {
  position: relative;
  display: flex; align-items: center;
  gap: .65rem;
  padding: .5rem .75rem;
  border-radius: var(--wt-radius-md);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-size: .9rem;
  font-weight: 600;
  transition: all .15s ease;
  opacity: 0;
  transform: translateX(-8px);
  animation: wt-dash-link-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 40ms + 100ms);
}
@keyframes wt-dash-link-in {
  to { opacity: 1; transform: translateX(0); }
}
.wt-dash-v2__nav a:hover {
  background: color-mix(in srgb, var(--wt-accent) 8%, transparent);
  color: var(--wt-text);
}
.wt-dash-v2__nav a.is-active {
  background: color-mix(in srgb, var(--wt-accent) 14%, transparent);
  color: var(--wt-accent);
  font-weight: 700;
}
.wt-dash-v2__nav a.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 3px;
  background: linear-gradient(180deg, var(--wt-accent), var(--wt-accent2));
  border-radius: 0 2px 2px 0;
}
.wt-dash-v2__nav-ico {
  display: inline-flex;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.wt-dash-v2__nav-ico svg {
  width: 100%; height: 100%;
}
.wt-dash-v2__nav a .wt-pill-badge {
  margin-left: auto;
}

/* Lien admin en bas */
.wt-dash-v2__admin-link {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px dashed color-mix(in srgb, var(--wt-border) 60%, transparent);
}

/* =====================================================================
 *  V8 — Dashboard content modernisé
 *
 *  4 pages refondues : index / messages / notifications
 *  (sidebar gérée dans le bloc précédent .wt-dash-v2__sidebar)
 *
 *  - KPI cards avec halos colorés + glow rotatif
 *  - Quick actions en grille 2/4 colonnes
 *  - Chart bars 7 jours avec animation cascade
 *  - Activité récente en cards colorées par type
 *  - Messages : tabs pills + cards inbox + thread bulles
 *  - Notifications : cards avec icône colorée par type
 * ===================================================================== */

.wt-dash-v2__content {
  display: flex; flex-direction: column;
  gap: 1.75rem;
}

/* ====== Header pages dashboard ====== */
.wt-dash-v2__header,
.wt-dash-v2__page-header {
  display: flex; flex-direction: column;
  gap: .35rem;
}
.wt-dash-v2__header {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.wt-dash-v2__header > div:first-child { flex: 1; min-width: 200px; }
.wt-dash-v2__title {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--wt-text) 40%, var(--wt-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wt-dash-v2__section-title {
  margin: 0 0 .85rem;
  font-family: var(--wt-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wt-text);
}

/* Pill "Today's gains" */
.wt-dash-v2__today {
  display: flex; align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-success, #22c55e) 12%, var(--wt-bg-elev)),
              var(--wt-bg-elev));
  border: 1px solid color-mix(in srgb, var(--wt-success, #22c55e) 30%, var(--wt-border));
}
.wt-dash-v2__today-icon { font-size: 1.5rem; line-height: 1; }
.wt-dash-v2__today > div { display: flex; flex-direction: column; line-height: 1.1; }
.wt-dash-v2__today small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  color: var(--wt-text-mute);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wt-dash-v2__today strong {
  font-family: var(--wt-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--wt-success, #22c55e);
  font-variant-numeric: tabular-nums;
}

/* ============ KPI CARDS ============ */
.wt-dash-v2__kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .wt-dash-v2__kpis { grid-template-columns: repeat(3, 1fr); }
}

.wt-dash-v2__kpi {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(8px);
  animation: wt-kpi-in .5s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 80ms + 100ms);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.wt-dash-v2__kpi:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}
@keyframes wt-kpi-in {
  to { opacity: 1; transform: translateY(0); }
}
.wt-dash-v2__kpi-glow {
  position: absolute;
  inset: -30% -40% auto auto;
  width: 60%; height: 100%;
  background: radial-gradient(closest-side,
              color-mix(in srgb, var(--wt-accent) 35%, transparent),
              transparent 70%);
  filter: blur(40px);
  z-index: -1;
  opacity: .9;
  animation: wt-kpi-rotate 12s linear infinite;
}
@keyframes wt-kpi-rotate {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}
.wt-dash-v2__kpi--balance .wt-dash-v2__kpi-glow {
  background: radial-gradient(closest-side,
              color-mix(in srgb, var(--wt-accent) 35%, transparent),
              transparent 70%);
}
.wt-dash-v2__kpi--level .wt-dash-v2__kpi-glow {
  background: radial-gradient(closest-side,
              color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 30%, transparent),
              transparent 70%);
}
.wt-dash-v2__kpi--refs .wt-dash-v2__kpi-glow {
  background: radial-gradient(closest-side,
              color-mix(in srgb, var(--wt-success, #22c55e) 30%, transparent),
              transparent 70%);
}

.wt-dash-v2__kpi-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.wt-dash-v2__kpi-body {
  display: flex; flex-direction: column;
  gap: .25rem;
  flex: 1; min-width: 0;
}
.wt-dash-v2__kpi-label {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}
.wt-dash-v2__kpi-value {
  font-family: var(--wt-font-display);
  font-size: 1.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
  line-height: 1.05;
}
.wt-dash-v2__kpi-value em {
  display: block;
  font-style: normal;
  font-size: .7rem;
  font-weight: 500;
  color: var(--wt-text-mute);
  font-family: var(--wt-font-mono);
  letter-spacing: .04em;
  margin-top: .1rem;
}
.wt-dash-v2__kpi-cta {
  display: inline-block;
  margin-top: .25rem;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--wt-accent);
  font-family: var(--wt-font-mono);
  transition: gap .15s ease, color .15s ease;
}
a.wt-dash-v2__kpi-cta:hover {
  color: var(--wt-accent2);
}
.wt-dash-v2__kpi-progress {
  height: 5px;
  background: color-mix(in srgb, var(--wt-text-mute) 18%, transparent);
  border-radius: 3px;
  overflow: hidden;
  margin: .35rem 0 .15rem;
}
.wt-dash-v2__kpi-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--wt-accent), var(--wt-accent2));
  border-radius: 3px;
  transition: width .6s var(--wt-ease, ease-out);
}

/* ============ QUICK ACTIONS ============ */
.wt-dash-v2__actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
}
@media (min-width: 540px) {
  .wt-dash-v2__actions-grid { grid-template-columns: repeat(4, 1fr); }
}
.wt-dash-v2__action {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .35rem;
  padding: 1.15rem .75rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: var(--wt-text);
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  animation: wt-kpi-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 60ms + 200ms);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.wt-dash-v2__action:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--wt-accent) 35%, var(--wt-border));
  background: color-mix(in srgb, var(--wt-accent) 5%, var(--wt-bg-elev));
}
.wt-dash-v2__action-icon { font-size: 1.6rem; line-height: 1; }
.wt-dash-v2__action-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--wt-text-soft);
}
.wt-dash-v2__action:hover .wt-dash-v2__action-label { color: var(--wt-text); }

/* ============ CHART 7D ============ */
.wt-dash-v2__chart-card {
  padding: 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-dash-v2__chart-head {
  margin-bottom: 1rem;
}
.wt-dash-v2__chart-head h2 { margin-bottom: .15rem; }

.wt-dash-v2__chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem;
  height: 140px;
}
.wt-dash-v2__chart-col {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center;
  gap: .35rem;
  height: 100%;
  position: relative;
}
.wt-dash-v2__chart-bar-wrap {
  flex: 1;
  display: flex; align-items: flex-end;
  width: 100%;
  max-width: 32px;
  margin: 0 auto;
}
.wt-dash-v2__chart-bar {
  width: 100%;
  background: linear-gradient(180deg,
              var(--wt-accent),
              var(--wt-accent2));
  border-radius: 4px 4px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: wt-chart-grow .6s cubic-bezier(.34, 1.56, .64, 1) forwards;
  animation-delay: calc(var(--idx, 0) * 70ms + 200ms);
  position: relative;
  cursor: help;
  transition: filter .15s ease;
}
.wt-dash-v2__chart-bar:hover { filter: brightness(1.15); }
@keyframes wt-chart-grow {
  to { transform: scaleY(1); }
}
.wt-dash-v2__chart-col.is-today .wt-dash-v2__chart-bar {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--wt-accent) 50%, transparent);
}
.wt-dash-v2__chart-label {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  color: var(--wt-text-mute);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wt-dash-v2__chart-col.is-today .wt-dash-v2__chart-label {
  color: var(--wt-accent);
  font-weight: 700;
}

/* ============ REFERRAL CARD ============ */
.wt-dash-v2__referral-card {
  display: flex; gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-accent) 8%, var(--wt-bg-elev)),
              color-mix(in srgb, var(--wt-accent2) 6%, var(--wt-bg-elev)));
  border: 1px solid color-mix(in srgb, var(--wt-accent) 22%, var(--wt-border));
  align-items: flex-start;
}
.wt-dash-v2__referral-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.wt-dash-v2__referral-body {
  flex: 1; min-width: 0;
}
.wt-dash-v2__referral-link {
  display: flex; gap: .5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.wt-dash-v2__referral-link input {
  flex: 1; min-width: 200px;
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  cursor: text;
  user-select: all;
}

/* ============ ACTIVITÉ RÉCENTE (tx list) ============ */
.wt-dash-v2__tx-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.wt-dash-v2__tx {
  display: flex; align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  border-left-width: 3px;
  opacity: 0;
  transform: translateX(-6px);
  animation: wt-tx-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 30ms);
  transition: transform .15s ease, border-color .15s ease;
}
@keyframes wt-tx-in {
  to { opacity: 1; transform: translateX(0); }
}
.wt-dash-v2__tx:hover {
  transform: translateX(2px);
}
.wt-dash-v2__tx--cyan   { border-left-color: #06b6d4; }
.wt-dash-v2__tx--violet { border-left-color: #8b5cf6; }
.wt-dash-v2__tx--orange { border-left-color: #fb923c; }
.wt-dash-v2__tx--green  { border-left-color: #22c55e; }
.wt-dash-v2__tx--pink   { border-left-color: #ec4899; }
.wt-dash-v2__tx--red    { border-left-color: #ef4444; }
.wt-dash-v2__tx--gray   { border-left-color: var(--wt-text-mute); }
.wt-dash-v2__tx--gold   { border-left-color: #facc15; }

.wt-dash-v2__tx-icon { font-size: 1.5rem; line-height: 1; }
.wt-dash-v2__tx-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: .1rem;
}
.wt-dash-v2__tx-info strong {
  font-size: .92rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-dash-v2__tx-info small {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
}
.wt-dash-v2__tx-amount {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: .1rem;
  line-height: 1.1;
}
.wt-dash-v2__tx-amount strong {
  font-family: var(--wt-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.wt-dash-v2__tx-amount.is-pos strong { color: var(--wt-success, #22c55e); }
.wt-dash-v2__tx-amount.is-neg strong { color: var(--wt-danger,  #ef4444); }
.wt-dash-v2__tx-amount small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  color: var(--wt-text-mute);
}

/* ============ EMPTY STATE générique dashboard ============ */
.wt-dash-v2__empty {
  display: flex; flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 3rem 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px dashed var(--wt-border);
  text-align: center;
}
.wt-dash-v2__empty-icon { font-size: 3rem; line-height: 1; opacity: .55; }
.wt-dash-v2__empty p {
  margin: 0;
  font-size: .95rem;
  color: var(--wt-text-soft);
}

/* ============ Tabs pills (messages) ============ */
.wt-dash-v2__tabs {
  display: flex; gap: .35rem;
  margin-top: 1rem;
}
.wt-dash-v2__tab {
  display: inline-flex; align-items: center;
  gap: .35rem;
  padding: .5rem 1rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-size: .88rem;
  font-weight: 600;
  transition: all .15s ease;
}
.wt-dash-v2__tab:hover {
  border-color: color-mix(in srgb, var(--wt-accent) 35%, var(--wt-border));
  color: var(--wt-text);
}
.wt-dash-v2__tab.is-active {
  background: color-mix(in srgb, var(--wt-accent) 18%, var(--wt-bg-elev));
  border-color: var(--wt-accent);
  color: var(--wt-text);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--wt-accent) 20%, transparent);
}

/* ============ Bulk toolbar ============ */
.wt-dash-v2__bulk {
  display: flex; align-items: center;
  gap: 1rem;
  padding: .65rem 1rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-soft);
  border: 1px solid var(--wt-border);
  flex-wrap: wrap;
}

/* ============ Inbox messages cards ============ */
.wt-dash-v2__msglist {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.wt-dash-v2__msg {
  display: flex; align-items: stretch;
  gap: .5rem;
  padding: 0;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  opacity: 0;
  transform: translateY(6px);
  animation: wt-tx-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 40ms);
  transition: border-color .15s ease;
}
.wt-dash-v2__msg:hover {
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
}
.wt-dash-v2__msg.is-unread {
  background: color-mix(in srgb, var(--wt-accent) 5%, var(--wt-bg-elev));
}
.wt-dash-v2__msg-check {
  padding: 1rem 0 1rem 1rem;
  align-self: flex-start;
}
.wt-dash-v2__msg-details {
  flex: 1; min-width: 0;
}
.wt-dash-v2__msg-summary {
  display: flex; align-items: center;
  gap: .85rem;
  padding: 1rem 1.25rem 1rem .35rem;
  cursor: pointer;
  list-style: none;
}
.wt-dash-v2__msg-summary::-webkit-details-marker { display: none; }
.wt-dash-v2__msg-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.wt-dash-v2__msg-meta {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-dash-v2__msg-meta strong {
  font-size: .92rem;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-dash-v2__msg-meta small {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
}
.wt-dash-v2__msg-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wt-accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wt-accent) 25%, transparent);
}
.wt-dash-v2__msg-body {
  padding: 0 1.25rem 1rem 4rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--wt-text-soft);
}

/* ============ Tickets list ============ */
.wt-dash-v2__tickets {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.wt-dash-v2__ticket {
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  opacity: 0;
  transform: translateY(6px);
  animation: wt-tx-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 50ms);
  transition: border-color .15s ease;
}
.wt-dash-v2__ticket:hover {
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
}
.wt-dash-v2__ticket.is-unread {
  background: color-mix(in srgb, var(--wt-accent) 5%, var(--wt-bg-elev));
}
.wt-dash-v2__ticket-link {
  display: flex; align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
}
.wt-dash-v2__ticket-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: .25rem;
}
.wt-dash-v2__ticket-row {
  display: flex; align-items: center;
  gap: .5rem;
}
.wt-dash-v2__ticket-row strong {
  font-size: .95rem;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.wt-dash-v2__ticket-arrow {
  font-size: 1.2rem;
  color: var(--wt-text-mute);
  transition: transform .15s ease;
}
.wt-dash-v2__ticket-link:hover .wt-dash-v2__ticket-arrow {
  transform: translateX(3px);
  color: var(--wt-accent);
}

/* Status dot */
.wt-dash-v2__status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wt-dash-v2__status-dot--open {
  background: var(--wt-accent2-hot, #f59e0b);
  animation: wt-status-pulse 2s ease-in-out infinite;
}
.wt-dash-v2__status-dot--answered { background: var(--wt-success, #22c55e); }
.wt-dash-v2__status-dot--closed   { background: var(--wt-text-mute); }

/* ============ Thread bulles ============ */
.wt-dash-v2__back {
  display: inline-flex; align-items: center;
  gap: .25rem;
  text-decoration: none;
  color: var(--wt-text-soft);
  font-weight: 600;
  font-size: .9rem;
  transition: gap .15s ease, color .15s ease;
}
.wt-dash-v2__back:hover { gap: .5rem; color: var(--wt-accent); }

.wt-dash-v2__ticket-header {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-dash-v2__ticket-status {
  display: inline-flex; align-items: center;
  gap: .5rem;
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wt-dash-v2__thread {
  display: flex; flex-direction: column;
  gap: 1rem;
}
.wt-dash-v2__bubble {
  display: flex; align-items: flex-start;
  gap: .75rem;
  opacity: 0;
  transform: translateY(8px);
  animation: wt-tx-in .4s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 70ms + 80ms);
}
.wt-dash-v2__bubble--me {
  flex-direction: row-reverse;
}
.wt-dash-v2__bubble-avatar {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--wt-font-display);
  font-weight: 700;
  font-size: .85rem;
  background: var(--avatar-bg, var(--wt-bg-soft));
  color: var(--avatar-fg, var(--wt-text));
}
.wt-dash-v2__bubble--admin .wt-dash-v2__bubble-avatar {
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
}
.wt-dash-v2__bubble-content {
  flex: 1; min-width: 0;
  max-width: calc(100% - 60px);
}
.wt-dash-v2__bubble-head {
  display: flex; align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
  font-size: .82rem;
  flex-wrap: wrap;
}
.wt-dash-v2__bubble--me .wt-dash-v2__bubble-head { justify-content: flex-end; }
.wt-dash-v2__bubble-head strong { color: var(--wt-text); }
.wt-dash-v2__bubble-head time {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
}
.wt-dash-v2__bubble-badge {
  font-family: var(--wt-font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .12rem .45rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-success, #22c55e) 22%, transparent);
  color: var(--wt-success, #22c55e);
  font-weight: 700;
}
.wt-dash-v2__bubble-body {
  padding: .85rem 1.1rem;
  border-radius: 18px 18px 18px 4px;
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  font-size: .92rem;
  line-height: 1.55;
  color: var(--wt-text-soft);
  word-wrap: break-word;
}
.wt-dash-v2__bubble--admin .wt-dash-v2__bubble-body {
  background: color-mix(in srgb, var(--wt-accent) 8%, var(--wt-bg-elev));
  border-color: color-mix(in srgb, var(--wt-accent) 25%, var(--wt-border));
  color: var(--wt-text);
}
.wt-dash-v2__bubble--me .wt-dash-v2__bubble-body {
  border-radius: 18px 18px 4px 18px;
  background: var(--wt-bg-soft);
}

.wt-dash-v2__reply,
.wt-dash-v2__closed-notice {
  padding: 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-dash-v2__closed-notice {
  display: flex; align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: color-mix(in srgb, var(--wt-text-mute) 5%, var(--wt-bg-elev));
}

/* ============ Notifications cards ============ */
.wt-dash-v2__notifs {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.wt-dash-v2__notif {
  display: flex; align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  border-left-width: 3px;
  opacity: 0;
  transform: translateY(6px);
  animation: wt-tx-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 35ms);
}
.wt-dash-v2__notif--cyan   { border-left-color: #06b6d4; }
.wt-dash-v2__notif--violet { border-left-color: #8b5cf6; }
.wt-dash-v2__notif--orange { border-left-color: #fb923c; }
.wt-dash-v2__notif--green  { border-left-color: #22c55e; }
.wt-dash-v2__notif--pink   { border-left-color: #ec4899; }
.wt-dash-v2__notif--red    { border-left-color: #ef4444; }
.wt-dash-v2__notif--gray   { border-left-color: var(--wt-text-mute); }
.wt-dash-v2__notif--gold   { border-left-color: #facc15; }
.wt-dash-v2__notif-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.wt-dash-v2__notif-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-dash-v2__notif-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--wt-text);
}
.wt-dash-v2__notif-title a {
  text-decoration: none;
  color: inherit;
}
.wt-dash-v2__notif-title a:hover { color: var(--wt-accent); }
.wt-dash-v2__notif-text {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--wt-text-soft);
}
.wt-dash-v2__notif-time {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
  margin-top: .1rem;
}

/* =====================================================================
 *  V8 — Dashboard : referrals + withdraw
 * ===================================================================== */

/* ============ REFERRALS ============ */
.wt-ref-v2__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .wt-ref-v2__stats { grid-template-columns: repeat(3, 1fr); }
}
.wt-ref-v2__stat {
  display: flex; align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  opacity: 0;
  transform: translateY(8px);
  animation: wt-kpi-in .45s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 80ms + 100ms);
}
.wt-ref-v2__stat-icon {
  font-size: 2rem; line-height: 1;
  flex-shrink: 0;
}
.wt-ref-v2__stat > div {
  display: flex; flex-direction: column;
  gap: .15rem;
  line-height: 1.1;
}
.wt-ref-v2__stat small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}
.wt-ref-v2__stat strong {
  font-family: var(--wt-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
}
.wt-ref-v2__stat strong em {
  font-style: normal;
  font-size: .75rem;
  font-weight: 500;
  color: var(--wt-text-mute);
  font-family: var(--wt-font-mono);
  margin-left: .15rem;
}

/* Share card */
.wt-ref-v2__share-card {
  padding: 2rem;
  border-radius: var(--wt-radius-lg);
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-accent) 8%, var(--wt-bg-elev)),
              color-mix(in srgb, var(--wt-accent2) 6%, var(--wt-bg-elev)));
  border: 1px solid color-mix(in srgb, var(--wt-accent) 22%, var(--wt-border));
}
.wt-ref-v2__link {
  display: flex; gap: .5rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}
.wt-ref-v2__link input {
  flex: 1; min-width: 220px;
  font-family: var(--wt-font-mono);
  font-size: .85rem;
  cursor: text;
  user-select: all;
}

.wt-ref-v2__share-buttons {
  display: flex; flex-wrap: wrap;
  gap: .5rem;
}
.wt-ref-v2__share-btn {
  display: inline-flex; align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: var(--wt-radius-pill);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  transition: transform .15s ease, filter .15s ease;
}
.wt-ref-v2__share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.wt-ref-v2__share-btn--x  { background: #000; }
.wt-ref-v2__share-btn--fb { background: #1877f2; }
.wt-ref-v2__share-btn--tg { background: #0088cc; }
.wt-ref-v2__share-btn--wa { background: #25d366; }

/* Invitees list */
.wt-ref-v2__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.wt-ref-v2__invitee {
  display: flex; align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  opacity: 0;
  transform: translateY(6px);
  animation: wt-tx-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 40ms);
}
.wt-ref-v2__invitee-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-ref-v2__invitee-info strong {
  font-family: var(--wt-font-mono);
  font-size: .92rem;
  color: var(--wt-text);
}
.wt-ref-v2__invitee-info small {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
}
.wt-ref-v2__invitee-earned {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: .1rem;
}
.wt-ref-v2__invitee-earned strong {
  font-family: var(--wt-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-success, #22c55e);
}
.wt-ref-v2__invitee-earned small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  color: var(--wt-text-mute);
}

/* ============ WITHDRAW ============ */
.wt-wd-v2__balance-hero {
  display: flex; align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--wt-radius-lg);
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--wt-accent) 35%, transparent);
}
.wt-wd-v2__balance-icon { font-size: 3rem; line-height: 1; }
.wt-wd-v2__balance-hero > div {
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-wd-v2__balance-hero small {
  font-size: .82rem;
  opacity: .9;
  font-family: var(--wt-font-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.wt-wd-v2__balance-hero strong {
  font-family: var(--wt-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.wt-wd-v2__balance-hero em {
  font-style: normal;
  font-size: .9rem;
  opacity: .9;
  margin-left: .25rem;
}

/* Form card */
.wt-wd-v2__form-card {
  padding: 2rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
.wt-wd-v2__fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.wt-wd-v2__legend {
  padding: 0;
  margin-bottom: .85rem;
  font-family: var(--wt-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--wt-text);
}

/* Methods en cards radio */
.wt-wd-v2__methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}
@media (min-width: 540px) {
  .wt-wd-v2__methods { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 800px) {
  .wt-wd-v2__methods { grid-template-columns: repeat(3, 1fr); }
}
.wt-wd-v2__method {
  position: relative;
  cursor: pointer;
}
.wt-wd-v2__method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wt-wd-v2__method-card {
  padding: 1rem 1.15rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg);
  border: 2px solid var(--wt-border);
  display: flex; flex-direction: column;
  gap: .25rem;
  transition: all .15s ease;
  position: relative;
}
.wt-wd-v2__method:hover .wt-wd-v2__method-card {
  border-color: color-mix(in srgb, var(--wt-accent) 35%, var(--wt-border));
}
.wt-wd-v2__method input:checked + .wt-wd-v2__method-card {
  border-color: var(--wt-accent);
  background: color-mix(in srgb, var(--wt-accent) 6%, var(--wt-bg));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--wt-accent) 20%, transparent);
}
.wt-wd-v2__method-check {
  position: absolute;
  top: .75rem; right: .75rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wt-accent);
  color: var(--wt-accent-on, #fff);
  opacity: 0;
  transform: scale(.5);
  transition: all .15s ease;
}
.wt-wd-v2__method input:checked ~ .wt-wd-v2__method-card .wt-wd-v2__method-check,
.wt-wd-v2__method input:checked + .wt-wd-v2__method-card .wt-wd-v2__method-check {
  opacity: 1; transform: scale(1);
}
.wt-wd-v2__method-label {
  font-size: .95rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-wd-v2__method-min {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
}

.wt-wd-v2__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .wt-wd-v2__row { grid-template-columns: 1fr 1.5fr; }
}

.wt-wd-v2__summary {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-accent) 6%, var(--wt-bg));
  border: 1px dashed color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
}
.wt-wd-v2__summary span {
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--wt-text-mute);
}
.wt-wd-v2__summary strong {
  font-family: var(--wt-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--wt-accent);
  font-variant-numeric: tabular-nums;
}

/* History */
.wt-wd-v2__history {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.wt-wd-v2__entry {
  display: flex; align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  border-left-width: 3px;
  opacity: 0;
  transform: translateY(6px);
  animation: wt-tx-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 40ms);
}
.wt-wd-v2__entry--completed { border-left-color: var(--wt-success, #22c55e); }
.wt-wd-v2__entry--pending   { border-left-color: var(--wt-accent2-hot, #f59e0b); }
.wt-wd-v2__entry--refused   { border-left-color: var(--wt-danger, #ef4444); }

.wt-wd-v2__entry-icon { font-size: 1.6rem; line-height: 1; }
.wt-wd-v2__entry-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-wd-v2__entry-info strong {
  font-size: .95rem;
  color: var(--wt-text);
}
.wt-wd-v2__entry-info small {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
}
.wt-wd-v2__entry-reason {
  color: var(--wt-danger, #ef4444) !important;
  font-weight: 600;
}
.wt-wd-v2__entry-amounts {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: .1rem;
}
.wt-wd-v2__entry-amounts strong {
  font-family: var(--wt-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
}
.wt-wd-v2__entry-amounts small {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
}
.wt-wd-v2__entry-status {
  margin-top: .25rem;
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wt-wd-v2__entry--completed .wt-wd-v2__entry-status { color: var(--wt-success, #22c55e); }
.wt-wd-v2__entry--pending   .wt-wd-v2__entry-status { color: var(--wt-accent2-hot, #f59e0b); }
.wt-wd-v2__entry--refused   .wt-wd-v2__entry-status { color: var(--wt-danger, #ef4444); }

/* =====================================================================
 *  V8 — Admin layout modernisé
 *
 *  Layout :
 *    - Sidebar gauche avec sections groupées (sticky desktop)
 *    - Content droit avec header + stats hero + cards + entries
 *  Réutilisé par : _nav.php, faucet.php, shortlinks.php, ptc.php,
 *  offerwalls.php (et migrable pour les autres pages admin).
 * ===================================================================== */

.wt-admin-v2 {
  padding: 1.5rem 1rem 4rem;
}
.wt-admin-v2__layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  /* min-width: 0 sur le grid permet aux colonnes enfants de se rétrécir
     correctement (sinon, une colonne avec un mot long ou un tableau
     large force le grid à dépasser sa largeur disponible). */
  min-width: 0;
}
@media (min-width: 960px) {
  .wt-admin-v2__layout {
    grid-template-columns: 240px minmax(0, 1fr);  /* minmax(0,1fr) au lieu de 1fr → la colonne peut shrink */
    gap: 2rem;
    align-items: start;
  }
}

/* ============ SIDEBAR ============ */
.wt-admin-v2__sidebar {
  display: flex; flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
}
@media (min-width: 960px) {
  .wt-admin-v2__sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

.wt-admin-v2__brand {
  display: flex; align-items: center;
  gap: .5rem;
  padding: .35rem .5rem .85rem;
  border-bottom: 1px solid var(--wt-border);
  font-family: var(--wt-font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--wt-text);
}
.wt-admin-v2__brand .wt-brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--wt-accent), var(--wt-accent2));
  color: var(--wt-accent-on, #fff);
  font-weight: 800;
}

.wt-admin-v2__nav {
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-admin-v2__nav-title {
  margin: 0 0 .25rem;
  padding: 0 .5rem;
  font-family: var(--wt-font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}
.wt-admin-v2__nav a {
  position: relative;
  display: flex; align-items: center;
  gap: .65rem;
  padding: .5rem .75rem;
  border-radius: var(--wt-radius-md);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-size: .9rem;
  font-weight: 600;
  transition: all .15s ease;
  opacity: 0;
  transform: translateX(-8px);
  animation: wt-dash-link-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 40ms + 100ms);
}
.wt-admin-v2__nav a:hover {
  background: color-mix(in srgb, var(--wt-accent) 8%, transparent);
  color: var(--wt-text);
}
.wt-admin-v2__nav a.is-active {
  background: color-mix(in srgb, var(--wt-accent) 14%, transparent);
  color: var(--wt-accent);
  font-weight: 700;
}
.wt-admin-v2__nav a.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 3px;
  background: linear-gradient(180deg, var(--wt-accent), var(--wt-accent2));
  border-radius: 0 2px 2px 0;
}
.wt-admin-v2__nav-ico {
  display: inline-flex;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.wt-admin-v2__nav-ico svg {
  width: 100%; height: 100%;
}

/* ============ CONTENT ============ */
.wt-admin-v2__content {
  display: flex; flex-direction: column;
  gap: 1.5rem;
  /* min-width: 0 est CRUCIAL pour permettre aux flex items enfants (et au
     contenu en grid parent) de se rétrécir correctement. Sans ça, le
     contenu intrinsèque (tableau large, titre long avec mot non-cassable,
     ligne de code mono, etc.) refuse de se shrink en dessous de sa
     largeur naturelle → déborde la viewport mobile → toute la page
     scroll horizontalement.

     C'était LA cause du débordement visible sur /admin/users.php :
     le tableau 7-colonnes (avec emails longs + boutons actions) ne
     pouvait pas être contenu par .wt-table-wrap overflow-x:auto car
     ce parent lui-même refusait de se rétrécir. */
  min-width: 0;
  /* Filet de sécurité : si malgré tout du contenu déborde, on cache
     l'overflow horizontal au niveau de cette section. Les enfants qui
     ont besoin d'un scroll horizontal interne (comme .wt-table-wrap)
     gèrent leur propre overflow:auto. */
  overflow-x: clip;
}

/* Page header */
.wt-admin-v2__page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.wt-admin-v2__page-header > div:first-child {
  flex: 1; min-width: 200px;
}
.wt-admin-v2__title {
  margin: .25rem 0 .35rem;
  font-family: var(--wt-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--wt-text) 40%, var(--wt-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Stats hero */
.wt-admin-v2__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .wt-admin-v2__stats { grid-template-columns: repeat(3, 1fr); }
}
.wt-admin-v2__stat {
  display: flex; align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  opacity: 0;
  transform: translateY(8px);
  animation: wt-kpi-in .45s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 80ms + 100ms);
  transition: transform .25s ease, border-color .25s ease;
}
.wt-admin-v2__stat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border)); }
.wt-admin-v2__stat--ok {
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--wt-success, #22c55e) 8%, var(--wt-bg-elev)),
              var(--wt-bg-elev));
  border-color: color-mix(in srgb, var(--wt-success, #22c55e) 25%, var(--wt-border));
}
.wt-admin-v2__stat-icon {
  font-size: 2rem; line-height: 1;
  flex-shrink: 0;
}
.wt-admin-v2__stat > div { display: flex; flex-direction: column; gap: .15rem; line-height: 1.1; }
.wt-admin-v2__stat small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}
.wt-admin-v2__stat strong {
  font-family: var(--wt-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
}
.wt-admin-v2__stat strong em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 500;
  color: var(--wt-text-mute);
  font-family: var(--wt-font-mono);
  margin-left: .15rem;
}

/* ============ Cards (form / doc) ============ */
.wt-admin-v2__card {
  padding: 1.75rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  opacity: 0;
  transform: translateY(8px);
  animation: wt-kpi-in .45s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 80ms + 150ms);
}
.wt-admin-v2__card-head {
  display: flex; align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.wt-admin-v2__card-icon {
  font-size: 1.8rem; line-height: 1;
  flex-shrink: 0;
}
.wt-admin-v2__card-head h2 {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-admin-v2__card-head small {
  display: block;
  margin-top: .15rem;
}

/* Form body */
.wt-admin-v2__form,
.wt-admin-v2__form-body {
  display: flex; flex-direction: column;
  gap: 1rem;
}
.wt-admin-v2__form-section {
  margin: 1.25rem 0 .25rem;
  font-family: var(--wt-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--wt-text);
  padding-bottom: .35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--wt-border) 70%, transparent);
}
.wt-admin-v2__form-section:first-child { margin-top: 0; }

.wt-admin-v2__grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .wt-admin-v2__grid-2 { grid-template-columns: 1fr 1fr; } }

.wt-admin-v2__grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) { .wt-admin-v2__grid-3 { grid-template-columns: repeat(3, 1fr); } }

.wt-admin-v2__grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 720px) { .wt-admin-v2__grid-4 { grid-template-columns: repeat(4, 1fr); } }

.wt-admin-v2__preview {
  display: inline-block;
  margin-left: .35rem;
  padding: .1rem .45rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-accent) 12%, transparent);
  color: var(--wt-accent);
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  font-weight: 600;
}

.wt-admin-v2__active-check {
  padding: .85rem 1rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--wt-accent) 20%, var(--wt-border));
  font-size: .92rem;
}

.wt-admin-v2__form-actions {
  display: flex; gap: .65rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

/* ============ Doc collapsible ============ */
.wt-admin-v2__doc {
  padding: 0;
  border-radius: var(--wt-radius-lg);
  background: color-mix(in srgb, var(--wt-accent) 5%, var(--wt-bg-elev));
  border: 1px solid color-mix(in srgb, var(--wt-accent) 22%, var(--wt-border));
  overflow: hidden;
}
.wt-admin-v2__doc summary {
  list-style: none;
  display: flex; align-items: center;
  gap: .65rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: .95rem;
}
.wt-admin-v2__doc summary::-webkit-details-marker { display: none; }
.wt-admin-v2__doc summary span[aria-hidden] { font-size: 1.25rem; }
.wt-admin-v2__doc summary strong { color: var(--wt-text); }
.wt-admin-v2__doc summary small { margin-left: auto; }
.wt-admin-v2__doc-body {
  padding: 0 1.25rem 1.25rem;
  font-size: .9rem;
  line-height: 1.6;
}
.wt-admin-v2__doc-body p { margin: 0 0 .5rem; }
.wt-admin-v2__code {
  display: flex; gap: .5rem;
  align-items: center;
  padding: .75rem 1rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg);
  border: 1px solid var(--wt-border);
  overflow-x: auto;
  flex-wrap: wrap;
}
.wt-admin-v2__code code {
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  color: var(--wt-text);
  flex: 1;
  white-space: nowrap;
}
.wt-admin-v2__code code span {
  color: var(--wt-accent);
  font-weight: 700;
}
.wt-admin-v2__inline-code {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: 4px;
  background: var(--wt-bg);
  border: 1px solid var(--wt-border);
  font-family: var(--wt-font-mono);
  font-size: .82rem;
  color: var(--wt-text);
  word-break: break-all;
}

/* ============ Entries list (cards) ============ */
.wt-admin-v2__list-section {
  display: flex; flex-direction: column;
  gap: .85rem;
}
.wt-admin-v2__list-head {
  display: flex; align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.wt-admin-v2__list-title {
  margin: 0;
  font-family: var(--wt-font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.wt-admin-v2__entries {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.wt-admin-v2__entry {
  display: flex; align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  opacity: 0;
  transform: translateY(6px);
  animation: wt-tx-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 35ms);
  transition: border-color .15s ease, background .15s ease;
}
.wt-admin-v2__entry:hover {
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
}
.wt-admin-v2__entry.is-inactive {
  opacity: .7;
  background: color-mix(in srgb, var(--wt-text-mute) 4%, var(--wt-bg-elev));
}
/* État pendant le drag-and-drop (offerwall reorder) */
.wt-admin-v2__entry.is-dragging {
  border-color: var(--wt-accent);
  background: color-mix(in srgb, var(--wt-accent) 8%, var(--wt-bg-elev));
  cursor: grabbing !important;
}
/* Cursor pointer sur le handle de drag */
.wt-admin-v2__entry-drag:active {
  cursor: grabbing;
}
.wt-admin-v2__entry[draggable="true"]:hover .wt-admin-v2__entry-drag {
  color: var(--wt-accent);
}

.wt-admin-v2__entry-status {
  flex-shrink: 0;
}
.wt-admin-v2__status-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
}
.wt-admin-v2__status-dot--on {
  background: var(--wt-success, #22c55e);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--wt-success, #22c55e) 25%, transparent);
}
.wt-admin-v2__status-dot--off {
  background: var(--wt-text-mute);
  opacity: .5;
}

.wt-admin-v2__entry-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: .35rem;
}
.wt-admin-v2__entry-head {
  display: flex; align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.wt-admin-v2__entry-head strong {
  font-size: .95rem;
  font-weight: 700;
  color: var(--wt-text);
}
.wt-admin-v2__entry-head small {
  font-size: .72rem;
  color: var(--wt-text-mute);
}
.wt-admin-v2__entry-tag {
  padding: .12rem .55rem;
  border-radius: var(--wt-radius-pill);
  background: color-mix(in srgb, var(--wt-accent) 12%, transparent);
  color: var(--wt-accent);
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.wt-admin-v2__entry-key {
  padding: .1rem .45rem;
  border-radius: 4px;
  background: var(--wt-bg);
  border: 1px solid var(--wt-border);
  font-size: .75rem;
  color: var(--wt-text);
}

.wt-admin-v2__entry-meta {
  display: flex; flex-wrap: wrap;
  gap: .85rem;
  font-family: var(--wt-font-mono);
  font-size: .78rem;
  color: var(--wt-text-mute);
}
.wt-admin-v2__entry-meta span {
  display: inline-flex; align-items: center;
  gap: .25rem;
}
.wt-admin-v2__warning {
  color: var(--wt-accent2-hot, #f59e0b) !important;
  font-weight: 700;
}

.wt-admin-v2__entry-actions {
  display: flex; gap: .25rem;
  flex-shrink: 0;
}

/* ============ Empty state ============ */
.wt-admin-v2__empty {
  display: flex; flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 3rem 1.5rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px dashed var(--wt-border);
  text-align: center;
}
.wt-admin-v2__empty-icon { font-size: 3rem; line-height: 1; opacity: .55; }
.wt-admin-v2__empty p { margin: 0; color: var(--wt-text-soft); font-size: .95rem; }

/* =====================================================================
 *  V8 — Admin dashboard (index.php) — extras
 * ===================================================================== */

/* Alertes actionnables */
.wt-admin-v2__alerts {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}
@media (min-width: 720px) {
  .wt-admin-v2__alerts { grid-template-columns: repeat(3, 1fr); }
}
.wt-admin-v2__alert {
  display: flex; align-items: center;
  gap: .85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--wt-radius-md);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--wt-border);
  background: var(--wt-bg-elev);
  opacity: 0;
  transform: translateX(-6px);
  animation: wt-tx-in .35s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 60ms + 80ms);
  transition: border-color .15s ease, transform .15s ease;
}
.wt-admin-v2__alert:hover { transform: translateX(2px); }
.wt-admin-v2__alert--warn {
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 10%, var(--wt-bg-elev));
  border-color: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 35%, var(--wt-border));
}
.wt-admin-v2__alert--warn:hover { border-color: var(--wt-accent2-hot, #f59e0b); }
.wt-admin-v2__alert--info {
  background: color-mix(in srgb, var(--wt-accent) 8%, var(--wt-bg-elev));
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
}
.wt-admin-v2__alert--info:hover { border-color: var(--wt-accent); }
.wt-admin-v2__alert-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.wt-admin-v2__alert > div {
  flex: 1; display: flex; flex-direction: column;
  line-height: 1.1; gap: .15rem;
}
.wt-admin-v2__alert strong {
  font-family: var(--wt-font-display);
  font-size: 1.5rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.wt-admin-v2__alert small {
  font-size: .82rem;
  color: var(--wt-text-soft);
}
.wt-admin-v2__alert-arrow {
  font-size: 1.2rem;
  color: var(--wt-text-mute);
  transition: transform .15s ease;
}
.wt-admin-v2__alert:hover .wt-admin-v2__alert-arrow { transform: translateX(3px); }

/* KPI cards admin dashboard */
.wt-admin-v2__kpis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 720px) {
  .wt-admin-v2__kpis-grid { grid-template-columns: repeat(4, 1fr); }
}
.wt-admin-v2__kpi-card {
  display: flex; flex-direction: column;
  gap: .35rem;
  padding: 1.25rem;
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  opacity: 0;
  transform: translateY(8px);
  animation: wt-kpi-in .45s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 70ms + 100ms);
  transition: border-color .15s ease, transform .15s ease;
}
.wt-admin-v2__kpi-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--wt-accent) 30%, var(--wt-border));
}
.wt-admin-v2__kpi-card header {
  display: flex; align-items: center;
  gap: .5rem;
  margin-bottom: .25rem;
}
.wt-admin-v2__kpi-card-icon { font-size: 1.4rem; line-height: 1; }
.wt-admin-v2__kpi-card header small {
  font-family: var(--wt-font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wt-text-mute);
}
.wt-admin-v2__kpi-card strong {
  font-family: var(--wt-font-display);
  font-size: 1.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--wt-text);
  line-height: 1.1;
}
.wt-admin-v2__kpi-card footer {
  margin-top: .25rem;
}
.wt-admin-v2__variation {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--wt-text-mute);
}
.wt-admin-v2__variation--pos { color: var(--wt-success, #22c55e); }
.wt-admin-v2__variation--neg { color: var(--wt-danger, #ef4444); }
.wt-admin-v2__variation--neutral { color: var(--wt-text-mute); }

/* Quick grid (2 col) */
.wt-admin-v2__quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 960px) {
  .wt-admin-v2__quick-grid { grid-template-columns: 1fr 1fr; }
}

/* Mini lists */
.wt-admin-v2__mini-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .35rem;
}
.wt-admin-v2__mini-list li {
  display: flex; align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  border-radius: var(--wt-radius-md);
  background: var(--wt-bg);
  border: 1px solid var(--wt-border);
  opacity: 0;
  transform: translateX(-4px);
  animation: wt-tx-in .3s var(--wt-ease, ease-out) forwards;
  animation-delay: calc(var(--idx, 0) * 40ms);
}
.wt-admin-v2__mini-list > li > div {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: .1rem;
}
.wt-admin-v2__mini-list strong {
  font-size: .88rem;
  font-weight: 700;
  color: var(--wt-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wt-admin-v2__mini-list small {
  font-family: var(--wt-font-mono);
  font-size: .72rem;
  color: var(--wt-text-mute);
}
.wt-admin-v2__mini-list time {
  font-family: var(--wt-font-mono);
  font-size: .7rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.wt-admin-v2__mini-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wt-admin-v2__mini-dot--pos     { background: var(--wt-success, #22c55e); }
.wt-admin-v2__mini-dot--neg     { background: var(--wt-danger, #ef4444); }
.wt-admin-v2__mini-dot--pending {
  background: var(--wt-accent2-hot, #f59e0b);
  animation: wt-status-pulse 2s ease-in-out infinite;
}

/* Compat : ancien .wt-admin__title hérite des styles V8 — pour les pages
 * qui n'ont pas encore migré le contenu interne (cron tables, etc.) */
.wt-admin-v2__content .wt-admin__title {
  margin: 0 0 .35rem;
  font-family: var(--wt-font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
}

/* Tabs admin (testimonials/withdrawals/tickets) — héritent du look pills */
.wt-admin-v2__content .wt-admin__tabs,
.wt-admin-v2__content .wt-admin__tabs[style*="margin"] {
  display: flex; gap: .35rem;
  margin: 1rem 0 !important;
  flex-wrap: wrap;
}
.wt-admin-v2__content .wt-admin__tabs a {
  display: inline-flex; align-items: center;
  gap: .35rem;
  padding: .5rem 1rem;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  text-decoration: none;
  color: var(--wt-text-soft);
  font-size: .88rem;
  font-weight: 600;
  transition: all .15s ease;
}
.wt-admin-v2__content .wt-admin__tabs a:hover {
  border-color: color-mix(in srgb, var(--wt-accent) 35%, var(--wt-border));
  color: var(--wt-text);
}
.wt-admin-v2__content .wt-admin__tabs a.is-active {
  background: color-mix(in srgb, var(--wt-accent) 18%, var(--wt-bg-elev));
  border-color: var(--wt-accent);
  color: var(--wt-text);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--wt-accent) 20%, transparent);
}

/* Compat : tables admin héritent du look V8 dans .wt-admin-v2__content */
.wt-admin-v2__content .wt-table-wrap {
  border-radius: var(--wt-radius-lg);
  background: var(--wt-bg-elev);
  border: 1px solid var(--wt-border);
  overflow-x: auto;
}
.wt-admin-v2__content .wt-table {
  margin: 0;
}

/* Box "💡 Exemple" : affichage live de la conversion dans le form payment_methods */
.wt-admin-v2__preview-box {
  margin: -0.5rem 0 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 8%, var(--wt-bg));
  border: 1px dashed color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 30%, var(--wt-border));
  font-family: var(--wt-font-mono);
  font-size: 0.82rem;
  color: var(--wt-text-soft);
}
.wt-admin-v2__preview-box strong { color: var(--wt-text); }

/* API warning box dans le form payment_methods */
.wt-admin-v2__api-warn {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .75rem 1rem;
  margin: 0 0 .5rem;
  border-radius: var(--wt-radius-md);
  background: color-mix(in srgb, var(--wt-danger, #ef4444) 8%, var(--wt-bg));
  border: 1px solid color-mix(in srgb, var(--wt-danger, #ef4444) 25%, var(--wt-border));
  font-size: .82rem;
  color: var(--wt-text-soft);
  line-height: 1.5;
}
.wt-admin-v2__api-warn span[aria-hidden] { font-size: 1.1rem; line-height: 1.2; flex-shrink: 0; }

/* Variantes tags entry-tag */
.wt-admin-v2__entry-tag--ok {
  background: color-mix(in srgb, var(--wt-success, #22c55e) 14%, var(--wt-bg-elev));
  border-color: color-mix(in srgb, var(--wt-success, #22c55e) 40%, var(--wt-border));
  color: var(--wt-success, #22c55e);
}
.wt-admin-v2__entry-tag--accent {
  background: color-mix(in srgb, var(--wt-accent) 14%, var(--wt-bg-elev));
  border-color: color-mix(in srgb, var(--wt-accent) 40%, var(--wt-border));
  color: var(--wt-accent);
  font-weight: 700;
}
.wt-admin-v2__entry-tag--warn {
  background: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 14%, var(--wt-bg-elev));
  border-color: color-mix(in srgb, var(--wt-accent2-hot, #f59e0b) 40%, var(--wt-border));
  color: var(--wt-accent2-hot, #f59e0b);
}

/* ====== Tabs navigation (admin/settings.php) ====== */
.wt-tabs {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--wt-border);
  margin: 0 0 1.5rem;
  padding: 0 0 .25rem;
}
.wt-tabs__tab {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--wt-radius-sm) var(--wt-radius-sm) 0 0;
  color: var(--wt-text-soft);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
  bottom: -1px;
}
.wt-tabs__tab:hover {
  color: var(--wt-text);
  background: color-mix(in srgb, var(--wt-accent) 6%, transparent);
}
.wt-tabs__tab.is-active {
  color: var(--wt-accent);
  border-color: var(--wt-border) var(--wt-border) var(--wt-bg-card);
  background: var(--wt-bg-card);
  position: relative;
}
.wt-tabs__tab.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--wt-accent);
}

.wt-tabs__panel {
  display: none;
  animation: tabFadeIn .25s ease-out;
}
.wt-tabs__panel.is-active {
  display: block;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* État erreur sur un champ */
.wt-field--error .wt-input {
  border-color: var(--wt-danger, #ef4444) !important;
  background: color-mix(in srgb, var(--wt-danger, #ef4444) 5%, var(--wt-bg)) !important;
}
.wt-field__error {
  display: block;
  margin-top: .3rem;
  font-size: .82rem;
  color: var(--wt-danger, #ef4444);
}

/* ====== PWA Install Banner ====== */
.wt-pwa-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  background: linear-gradient(135deg, var(--wt-bg-card, #1a2138) 0%, var(--wt-bg-elev, #131829) 100%);
  border: 1px solid var(--wt-border, #2a3252);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  transform: translateY(150%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .25s ease;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.wt-pwa-banner--shown {
  transform: translateY(0);
  opacity: 1;
}
.wt-pwa-banner--hidden {
  transform: translateY(150%);
  opacity: 0;
}

.wt-pwa-banner__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--wt-accent, #ff9933) 0%, var(--wt-accent2, #ffcc33) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(255, 153, 51, .35);
}

.wt-pwa-banner__text {
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column;
  gap: .15rem;
}
.wt-pwa-banner__text strong {
  font-size: .92rem;
  color: var(--wt-text, #e8eaf0);
  line-height: 1.25;
}
.wt-pwa-banner__text small {
  font-size: .78rem;
  color: var(--wt-text-soft, #a4abc4);
  line-height: 1.35;
}

.wt-pwa-banner__install {
  flex-shrink: 0;
  padding: .55rem 1rem;
  background: linear-gradient(135deg, var(--wt-accent, #ff9933) 0%, var(--wt-accent2, #ffcc33) 100%);
  color: #0a0f1e;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.wt-pwa-banner__install:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 153, 51, .4);
}
.wt-pwa-banner__install:active {
  transform: translateY(0);
}

.wt-pwa-banner__close {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  color: var(--wt-text-soft, #a4abc4);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s ease, color .15s ease;
}
.wt-pwa-banner__close:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--wt-text, #e8eaf0);
}

/* Responsive : sur très petit écran, la bannière prend toute la largeur */
@media (max-width: 480px) {
  .wt-pwa-banner {
    left: .5rem;
    right: .5rem;
    bottom: .5rem;
    padding: .7rem .85rem;
    gap: .65rem;
  }
  .wt-pwa-banner__icon {
    width: 38px; height: 38px;
    font-size: 1.2rem;
  }
  .wt-pwa-banner__install {
    padding: .5rem .8rem;
    font-size: .8rem;
  }
}

/* En mode standalone (PWA installée), pas de marge en bas pour les iPhone à encoche */
@media (display-mode: standalone) {
  .wt-pwa-banner { display: none !important; }
}

/* ====== Audit responsive : touch targets ≥ 44px sur mobile ====== */
@media (max-width: 959px) {
  .wt-header-v2__icon-btn,
  .wt-hamburger {
    width: 44px;
    height: 44px;
  }
}

/* === Bannière SVG d'article === */
.wt-article__banner {
  max-width: 720px; margin: 0 auto 1.5rem; border-radius: 18px;
  overflow: hidden; aspect-ratio: 1200 / 480; background: var(--wt-bg-soft);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.wt-article__banner svg { display: block; width: 100%; height: 100%; }

/* === Boutons de partage social === */
.wt-article__share {
  max-width: 720px; margin: 2rem auto 0; display: flex; align-items: center;
  gap: 1rem; flex-wrap: wrap; padding: 1.25rem; border-radius: 14px;
  background: var(--wt-bg-elev, #131829); border: 1px solid var(--wt-border, #232a40);
}
.wt-article__share-label { font-weight: 700; font-size: .92rem; }
.wt-article__share-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.wt-share {
  width: 42px; height: 42px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff; cursor: pointer;
  border: none; transition: transform .15s, opacity .15s; text-decoration: none;
}
.wt-share:hover { transform: translateY(-3px); opacity: .9; }
.wt-share--fb   { background: #1877f2; }
.wt-share--x    { background: #000; }
.wt-share--wa   { background: #25d366; }
.wt-share--tg   { background: #0088cc; }
.wt-share--li   { background: #0a66c2; }
.wt-share--copy { background: var(--wt-bg-soft); color: var(--wt-text, #e8eaf0); border: 1px solid var(--wt-border, #232a40); }
.wt-share--copy.is-copied { background: #22c55e; color: #fff; border-color: #22c55e; }

/* === Liens réseaux sociaux dans le footer === */
.wt-footer-v2__socials .wt-social[data-empty="1"] { display: none; }

@media (max-width: 600px) {
  .wt-article__share { flex-direction: column; align-items: flex-start; }
}


/* =====================================================================
   BINGO — carte tâche + compte à rebours
   ===================================================================== */
.wt-task-card--bingo .wt-task-card__icon {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
}
.wt-task-card--soon { position: relative; opacity: .96; }
.wt-task-card__pill--soon {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  animation: wtBingoPulse 2s ease-in-out infinite;
}
@keyframes wtBingoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .65; }
}
.wt-task-card__cta--disabled {
  background: var(--wt-bg-soft, #1a2138);
  color: var(--wt-text-soft, #8b93a7);
  cursor: not-allowed;
  text-align: center;
  pointer-events: none;
}

/* Compte à rebours */
.wt-bingo-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin: 1rem 0;
}
.wt-bingo-countdown__unit {
  background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(236,72,153,.1));
  border: 1px solid rgba(168,85,247,.3);
  border-radius: 12px;
  padding: .6rem .3rem;
  text-align: center;
}
.wt-bingo-countdown__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #c084fc, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.wt-bingo-countdown__lbl {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .65;
  margin-top: .15rem;
}
@media (max-width: 380px) {
  .wt-bingo-countdown__num { font-size: 1.2rem; }
}

/* =====================================================================
   BINGO — page joueur
   ===================================================================== */
.wt-bingo-page__wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
.wt-bingo-page__title-row { display: flex; align-items: center; gap: 1rem; }
.wt-bingo-badge-test {
  background: #a855f7; color: #fff; font-size: .7rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 6px; letter-spacing: .05em;
}
.wt-bingo-page__title { font-size: 2rem; margin: .25rem 0 1rem; }

/* Jackpot */
.wt-bingo-jackpot {
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; border-radius: 18px;
  background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(236,72,153,.12));
  border: 1px solid rgba(168,85,247,.3); margin-bottom: 1rem;
}
.wt-bingo-jackpot__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; width: 100%; }
.wt-bingo-jackpot__amount {
  font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #c084fc, #f0abfc);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wt-bingo-jackpot__unit { font-size: 1rem; opacity: .7; }
.wt-bingo-meta { display: flex; gap: 1.5rem; font-size: .9rem; opacity: .8; margin-bottom: 1.5rem; flex-wrap: wrap; }

/* Notification de fin */
.wt-bingo-ending {
  display: flex; gap: 1rem; align-items: center; padding: 1.25rem 1.5rem;
  border-radius: 16px; background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(239,68,68,.1));
  border: 1px solid rgba(245,158,11,.4); margin-bottom: 1.5rem;
}
.wt-bingo-ending__icon { font-size: 2.2rem; }
.wt-bingo-ending strong { display: block; margin-bottom: .2rem; }
.wt-bingo-ending p { margin: 0; font-size: .9rem; opacity: .85; }

/* Numéros tirés */
.wt-bingo-drawn { margin-bottom: 2rem; }
.wt-bingo-drawn__title { font-size: 1.1rem; margin-bottom: .5rem; }
.wt-bingo-drawn__legend { display: flex; gap: 1.5rem; font-size: .8rem; opacity: .75; margin-bottom: .75rem; }
.wt-bingo-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: .3rem; }
.wt-bingo-dot--today { background: #ec4899; }
.wt-bingo-dot--old { background: #475569; }
.wt-bingo-drawn__balls { display: flex; flex-wrap: wrap; gap: .4rem; }
.wt-bingo-ball {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.wt-bingo-ball--today {
  background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff;
  box-shadow: 0 2px 10px rgba(236,72,153,.4); animation: wtBallPop .4s ease;
}
.wt-bingo-ball--old {
  background: linear-gradient(135deg, color-mix(in srgb, var(--wt-bg-soft) 55%, var(--wt-accent) 45%),
    color-mix(in srgb, var(--wt-bg-elev) 70%, var(--wt-accent-cold) 30%));
  color: var(--wt-text);
  border: 1px solid color-mix(in srgb, var(--wt-accent) 25%, var(--wt-border));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--wt-accent-glow) 35%, transparent);
  opacity: .82;
}
@keyframes wtBallPop { from { transform: scale(0); } to { transform: scale(1); } }

/* Cartons : bande horizontale responsive (style témoignages) */
.wt-bingo-cards__title { font-size: 1.3rem; margin-bottom: .25rem; }
.wt-bingo-cards__hint { font-size: .88rem; opacity: .7; margin-bottom: 1.25rem; }
.wt-bingo-cards__track {
  display: flex; gap: 1.25rem; overflow-x: auto; padding: .5rem .25rem 1.5rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.wt-bingo-cards__track::-webkit-scrollbar { height: 8px; }
.wt-bingo-cards__track::-webkit-scrollbar-thumb { background: var(--wt-border, #232a40); border-radius: 4px; }

.wt-bingo-card {
  flex: 0 0 300px; scroll-snap-align: start;
  background: var(--wt-bg-elev, #131829); border: 1px solid var(--wt-border, #232a40);
  border-radius: 18px; padding: 1rem; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.wt-bingo-card--active { border-color: rgba(34,197,94,.4); box-shadow: 0 4px 20px rgba(34,197,94,.12); }
.wt-bingo-card--claimed { border-color: rgba(245,158,11,.5); box-shadow: 0 4px 20px rgba(245,158,11,.15); }
.wt-bingo-card--void { opacity: .5; }
.wt-bingo-card--locked { background: linear-gradient(135deg, var(--wt-bg-elev,#131829), var(--wt-bg-soft,#1a2138)); }

/* En-tête B.I.N.G.O */
.wt-bingo-card__head { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; margin-bottom: .5rem; }
.wt-bingo-card__letter {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff; border-radius: 10px;
  background: var(--lc, #666);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--lc) 40%, transparent);
}

/* Grille 5x5 */
.wt-bingo-card__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; margin-bottom: .75rem; }
.wt-bingo-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums;
  border-radius: 8px; border: none; cursor: default;
  background: var(--wt-bg-soft, #1a2138); color: var(--wt-text, #e8eaf0);
  transition: all .15s;
}
/* Cases argentées (carton non activé) */
.wt-bingo-cell--empty {
  background: linear-gradient(135deg, #c0c7d1, #8b94a3);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.4), inset 0 -1px 2px rgba(0,0,0,.2);
}
/* Case validable (numéro tiré, pas encore coché) */
.wt-bingo-cell.is-drawable {
  cursor: pointer; background: linear-gradient(135deg, #3b82f6, #60a5fa); color: #fff;
  animation: wtCellGlow 1.6s ease-in-out infinite;
}
@keyframes wtCellGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(59,130,246,0); }
  50% { box-shadow: 0 0 12px rgba(59,130,246,.7); }
}
.wt-bingo-cell.is-drawable:hover { transform: scale(1.08); }
/* Case validée */
.wt-bingo-cell.is-marked {
  background: linear-gradient(135deg, #22c55e, #4ade80); color: #fff;
  box-shadow: 0 2px 8px rgba(34,197,94,.4);
}
.wt-bingo-cell:disabled { cursor: default; }

/* Pied du carton */
.wt-bingo-card__foot { margin-top: auto; }
.wt-bingo-card__progress { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.wt-bingo-card__count { font-weight: 700; font-variant-numeric: tabular-nums; opacity: .8; }
.wt-bingo-card__status { font-size: .85rem; font-weight: 600; display: block; text-align: center; padding: .5rem; }
.wt-bingo-card__status--claimed { color: #22c55e; }
.wt-bingo-card__status--void { color: var(--wt-text-soft, #64748b); }

/* Boutons */
.wt-bingo-btn {
  border: none; border-radius: 10px; padding: .6rem 1rem; font-weight: 700;
  font-size: .9rem; cursor: pointer; width: 100%; transition: transform .15s, opacity .15s;
}
.wt-bingo-btn:hover { transform: translateY(-2px); }
.wt-bingo-btn.is-loading { opacity: .6; cursor: wait; }
.wt-bingo-btn--activate { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.wt-bingo-btn--buy { background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; }
.wt-bingo-btn--claim {
  background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #1a1208;
  animation: wtClaimPulse 1.4s ease-in-out infinite;
}
@keyframes wtClaimPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(245,158,11,0); }
  50% { box-shadow: 0 0 16px rgba(245,158,11,.7); }
}

/* Toasts */
.wt-bingo-toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: .85rem 1.5rem; border-radius: 12px; font-weight: 600; font-size: .92rem;
  color: #fff; z-index: 10000; opacity: 0; transition: all .3s; max-width: 90vw;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
.wt-bingo-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.wt-bingo-toast--success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.wt-bingo-toast--error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.wt-bingo-toast--info { background: linear-gradient(135deg, #3b82f6, #2563eb); }

@media (max-width: 600px) {
  .wt-bingo-card { flex-basis: 270px; }
  .wt-bingo-jackpot__amount { font-size: 2rem; }
}

/* =====================================================================
   BINGO — plateau complet 1..99 (joueur avec carton payant)
   ===================================================================== */
.wt-bingo-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: .4rem;
  margin-top: .25rem;
}
@media (min-width: 600px) {
  .wt-bingo-board { grid-template-columns: repeat(15, 1fr); }
}
/* Numéro pas encore tiré : éteint */
.wt-bingo-ball--none {
  background: transparent;
  color: var(--wt-text-soft, #64748b);
  border: 1px dashed var(--wt-border, #2a3346);
  opacity: .45;
}
/* Pastille de légende "pas encore tiré" */
.wt-bingo-dot--none {
  background: transparent;
  border: 1px dashed var(--wt-text-soft, #64748b);
}

/* Compte à rebours dans un article de blog : centré, plus grand */
.wt-bingo-countdown--article {
  max-width: 480px;
  margin: 1.5rem auto;
}
.wt-bingo-countdown--article .wt-bingo-countdown__num { font-size: 1.8rem; }

/* =====================================================================
   PUBLICITÉS — mise à l'échelle responsive des iframes (ex: A-ADS)
   =====================================================================
   Les régies comme A-ADS fournissent des iframes à taille FIXE (728x90,
   300x250, etc.). Sur mobile, ces formats débordent. Cette solution met
   l'iframe À L'ÉCHELLE proportionnellement : elle reste entièrement
   visible et nette, juste réduite. Aucun contenu n'est masqué.

   Principe : on enveloppe la zone pub dans .wt-ad-scale. On neutralise la
   largeur fixe de l'iframe interne et on lui applique un facteur d'échelle
   via une variable CSS calculée par un petit script (wt-ads-responsive.js).
   ===================================================================== */

.wt-ad-scale {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;        /* sécurité anti-débordement pendant le calcul */
}

/* Le conteneur interne qui sera mis à l'échelle. Sa largeur RÉELLE reste
   celle de la pub (ex: 728px), mais on le réduit visuellement. */
.wt-ad-scale__inner {
  /* --ad-scale (0..1) et --ad-w/--ad-h sont posées par le script JS. */
  transform: scale(var(--ad-scale, 1));
  transform-origin: top center;
  width: var(--ad-w, auto);
  /* Compense la hauteur "perdue" par le scale pour ne pas laisser de blanc :
     hauteur réelle occupée = hauteur native × échelle. */
  height: calc(var(--ad-h, 0px) * var(--ad-scale, 1));
}

/* IMPORTANT : à l'intérieur d'une zone à l'échelle, l'iframe doit GARDER
   sa taille native (sinon le scale n'a rien à réduire). On surcharge donc
   la règle globale `iframe { max-width:100% }` uniquement ici. */
.wt-ad-scale__inner iframe,
.wt-ad-scale__inner #frame,
.wt-ad-scale__inner [data-aa] {
  max-width: none !important;
}

/* =====================================================================
   PUBLICITÉS — bannière auto-responsive (choisit le format selon l'écran)
   =====================================================================
   wt_ad_banner_auto() rend les 3 formats (728/468/300). Le CSS n'en
   affiche qu'UN seul selon la largeur, pour ne jamais déborder :
     - ≥ 768px  → 728x90 (desktop/tablette large)
     - 480–767px → 468x60 (tablette/grand mobile)
     - < 480px  → 300x250 (mobile)
   Chaque format reste en plus protégé par le scale (.wt-ad-scale).
   ===================================================================== */
.wt-ad-auto { width: 100%; display: flex; justify-content: center; }
.wt-ad-auto__fmt { display: none; }  /* masqués par défaut */

/* Mobile (< 480px) : 300x250 */
.wt-ad-auto__300 { display: block; }

/* Tablette / grand mobile (480–767px) : 468x60 */
@media (min-width: 480px) {
  .wt-ad-auto__300 { display: none; }
  .wt-ad-auto__468 { display: block; }
}

/* Desktop / tablette large (≥ 768px) : 728x90 */
@media (min-width: 768px) {
  .wt-ad-auto__468 { display: none; }
  .wt-ad-auto__728 { display: block; }
}

/* Repli : si un format manque, on tombe sur le plus proche disponible.
   (géré côté PHP : seuls les formats configurés sont rendus) */

/* =====================================================================
   HERO — état vide de la sidebar retraits (invitation "Sois le premier")
   Remplace les anciennes fausses données par un appel à l'action sobre.
   ===================================================================== */
.wt-hero__withdraw-firstcta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  padding: 1.75rem 1.25rem;
}
.wt-hero__withdraw-firstcta-icon {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
  animation: wt-firstcta-float 3s ease-in-out infinite;
}
@keyframes wt-firstcta-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.wt-hero__withdraw-firstcta-title {
  font-size: 1.05rem;
  color: var(--wt-text, #e8eef9);
  font-family: var(--wt-font-display, inherit);
}
.wt-hero__withdraw-firstcta-text {
  margin: 0;
  max-width: 28ch;
  line-height: 1.5;
}
/* Respecte les préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  .wt-hero__withdraw-firstcta-icon { animation: none; }
}

/* =====================================================================
   TASK CARDS — finition : l'icône s'anime légèrement au survol de la carte
   Détail subtil qui rend la grille de tâches plus vivante (revue design).
   ===================================================================== */
.wt-task-card__icon {
  transition: transform .3s var(--wt-ease-emph, cubic-bezier(.34,1.56,.64,1)),
              box-shadow .3s ease;
}
.wt-task-card--rich:hover .wt-task-card__icon {
  transform: scale(1.08) rotate(-3deg);
}
/* Le prix (gain) prend une légère emphase au survol pour attirer l'œil */
.wt-task-card__price-amount {
  transition: transform .25s ease;
  display: inline-block;
}
.wt-task-card--rich:hover .wt-task-card__price-amount {
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .wt-task-card--rich:hover .wt-task-card__icon,
  .wt-task-card--rich:hover .wt-task-card__price-amount { transform: none; }
}

/* ===== Admin — Cropper de bannières (upload intelligent) ===== */
.wt-cropper__stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  background: #111827;
  border-radius: 8px;
  overflow: hidden;
}
.wt-cropper__stage img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  user-select: none;
  -webkit-user-drag: none;
}
.wt-cropper__box {
  position: absolute;
  border: 2px solid #f59e0b;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.55);
  cursor: move;
  touch-action: none;
}
.wt-cropper__handle {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #fff;
  cursor: nwse-resize;
  touch-action: none;
}

/* ===== Parrainage — grille de bannières promotionnelles ===== */
.wt-ref-v2__banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: .75rem;
}
.wt-ref-v2__banner-card {
  background: var(--wt-card-bg, #fff);
  border: 1px solid var(--wt-border, #e5e7eb);
  border-radius: 10px;
  padding: .75rem;
  text-align: center;
}
