/* ============================================================
   KeySystem — Theme noir/violet néon
   Perf: uniquement transform/opacity pour les animations
   ============================================================ */

:root {
  /* ===== Charte noir/violet — variables nommées ===== */
  --color-bg: #08070c;          /* fond principal: noir profond */
  --color-bg-soft: #0d0b12;     /* surfaces secondaires */
  --color-card: #12101a;         /* cards: plus claires que le fond = profondeur */
  --color-card-hover: #1a1526;
  --color-input: #17141f;        /* champs: encore plus clairs = actionnables */
  --color-border: #ffffff10;
  --color-border-violet: #8b5cf62e;   /* bordure violette semi-transparente */
  --color-text: #ffffff;
  --color-muted: #a1a1aa;       /* gris clair lisible sur noir */
  --color-muted-2: #71717a;     /* gris discret (metadata) */
  --color-accent: #8b5cf6;       /* violet principal */
  --color-accent-soft: #a855f7;
  --color-glow: #c084fc;         /* violet néon (lueurs, chiffres) */
  --color-glow-2: #d8b4fe;       /* violet très clair */
  --color-err: #f472b6;          /* erreur: rouge-violet, pas rouge pur */
  --color-ok: #d8b4fe;           /* succes: reste dans le violet clair */
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-deep: 0 12px 40px #00000090, 0 2px 8px #00000070;
  --glow-card: 0 0 0 1px #8b5cf62e, 0 16px 48px #7c3aed26;
  --glow-strong: 0 0 32px #8b5cf64d;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);          /* easing standard 200-300ms */
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);   /* rebond léger */
  --dur-1: 200ms;
  --dur-2: 300ms;

  /* Alias retro-compat (le reste du fichier utilise ces noms) */
  --bg: var(--color-bg);
  --bg2: var(--color-bg-soft);
  --card: var(--color-card);
  --card-solid: #12101a;
  --stroke: var(--color-border);
  --stroke2: #ffffff1c;
  --text: var(--color-text);
  --muted: var(--color-muted);
  --accent: var(--color-glow);
  --accent2: var(--color-accent);
  --accent3: var(--color-accent-soft);
  --violet-glow: var(--color-accent);
  --red: var(--color-err);
  --green: var(--color-ok);
  --radius-lg2: var(--radius-lg);
  --shadow: var(--shadow-deep);
  --ease-out: var(--ease);
  --dur-3: 400ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Halos violets fixes — l'ambiance néon de fond */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% -10%, #7c3aed2b, transparent 70%),
    radial-gradient(500px 350px at 10% 110%, #c084fc14, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Grain de verre (feTurbulence SVG inline): texture "verre fumé" au-dessus des halos.
   Soft-light = subtil, n'assombrit pas, casse le rendu trop "flat" du noir pur. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
main, nav, footer { position: relative; z-index: 1; }

/* ===== NAVBAR ===== */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: #0d0b13aa;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
  position: sticky; top: 0; z-index: 50;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.logo-badge {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 0 14px #7c3aed66;
  transition: transform var(--dur-2) var(--ease-bounce), box-shadow var(--dur-2) ease;
}
.logo:hover .logo-badge { transform: rotate(-8deg) scale(1.12); box-shadow: 0 0 22px #8b5cf688; }
nav .links a {
  color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 14px;
  padding: 8px 14px; border-radius: 8px;
  transition: color var(--dur-1) ease, background var(--dur-2) ease;
}
nav .links a:hover { color: var(--text); background: #ffffff0d; }

/* Curseur violet custom (tous navigateurs modernes, fallback natif sinon) */
body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7.5-6.2 1.8L9.5 19z' fill='%23c084fc' stroke='%2312101a' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto; }
a, button, .btn, [onclick] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7.5-6.2 1.8L9.5 19z' fill='%23d8b4fe' stroke='%23c084fc' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, pointer; }
input, textarea, select { cursor: text; }

/* ===== HERO ===== */
.hero { text-align: center; padding: 90px 20px 50px; max-width: 800px; margin: 0 auto; }
/* Titre: dégradé violet + scanlines CRT rétro-futuristes (2 couches clip) */
.hero h1 {
  font-size: 46px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  background:
    repeating-linear-gradient(0deg, #ffffff 0 2px, #c084fc 2px 4px),
    linear-gradient(135deg, #ffffff, #c084fc 70%, #8b5cf6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px #8b5cf62e);
}
.hero p { color: var(--color-muted); font-size: 17px; margin-top: 16px; line-height: 1.6; }
.hero .actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BOUTONS — hover glow / active press / disabled / shine
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff; border: 1px solid #ffffff2e;
  border-radius: var(--radius);
  padding: 13px 26px; font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 14px #7c3aed40, inset 0 1px 0 #ffffff35;
  /* 200-400ms, ease fluide — transform/box-shadow/filter uniquement */
  transition:
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-3) ease,
    filter var(--dur-2) ease,
    border-color var(--dur-2) ease,
    background var(--dur-2) ease;
  will-change: transform;
}
/* Hover: élévation + glow néon violet */
.btn:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: #c084fc88;
  box-shadow:
    0 6px 22px #8b5cf64d,
    0 0 30px #7c3aed33,
    inset 0 1px 0 #ffffff35;
}
/* Active: enfoncement net */
.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 80ms;
  box-shadow: 0 1px 6px #7c3aed30, inset 0 2px 6px #00000040;
}
/* Shine qui traverse au survol */
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, #ffffff2e 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform .55s ease;
  pointer-events: none;
}
.btn:hover::after { transform: translateX(130%); }
/* Disabled: dans la charte, désaturé et plat */
.btn:disabled, .btn[disabled], .btn.disabled {
  background: #171320; color: #ffffff42; border-color: #ffffff12;
  box-shadow: none; cursor: not-allowed;
  transform: none !important; filter: grayscale(.4);
}
.btn:disabled::after, .btn[disabled]::after { display: none; }
.btn.secondary {
  background: #ffffff0d; border: 1px solid var(--stroke2); box-shadow: inset 0 1px 0 #ffffff18;
}
.btn.secondary:hover {
  background: #c084fc14; border-color: #c084fc55;
  box-shadow: 0 4px 18px #8b5cf626, inset 0 1px 0 #ffffff18;
}
.btn.small { padding: 8px 16px; font-size: 13px; }

/* Feedback "Copied": fond flashé violet clair puis retour doux */
.btn.copied {
  background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
  border-color: #d8b4fe !important;
  box-shadow: 0 0 24px #c084fc66, inset 0 1px 0 #ffffff35 !important;
}

/* CTA principal: pulse lent 2s, discret (scale+opacity = GPU) */
.btn.pulse::before {
  content: '';
  position: absolute; inset: -2px; border-radius: inherit;
  border: 2px solid #8b5cf6;
  opacity: 0;
  pointer-events: none;
  animation: ctaPulseSoft 2s var(--ease) infinite;
}
@keyframes ctaPulseSoft {
  0%   { transform: scale(1); opacity: .40; }
  50%  { transform: scale(1.05); opacity: .14; }
  100% { transform: scale(1); opacity: .40; }
}

/* ============================================================
   CARDS — relief: fond + clair que le fond, bordure gradient
   violet (double pseudo), glow au survol
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* Bordure gradient violette: technique border-image-fallback via
   background double couche (pas de support border-image gradient partout) */
.card, .stat, .game-card, .keypanel, .activity-list, .modal, .countdown-wrap {
  border: 1px solid var(--color-border-violet);
}

.card {
  background: linear-gradient(180deg, var(--color-card) 0%, #0e0c15 100%);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-deep), inset 0 1px 0 #ffffff0d;
  transition:
    transform var(--dur-2) var(--ease),
    border-color var(--dur-1) ease,
    box-shadow var(--dur-2) ease;
  will-change: transform;
}
/* Relief au survol: élévation + halo violet diffus */
.card:hover {
  transform: translateY(-4px);
  border-color: #8b5cf673;
  box-shadow:
    var(--shadow-deep),
    0 16px 48px #7c3aed2e,
    0 0 26px #8b5cf61f,
    inset 0 1px 0 #ffffff0d;
}
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card p { color: var(--color-muted); font-size: 14px; line-height: 1.6; }
/* Icônes: réaction au survol — rotation + rebond + lueur */
.card .icon {
  font-size: 22px;
  display: inline-block;
  transition: transform var(--dur-2) var(--ease-bounce), filter var(--dur-1) ease;
}
.card:hover .icon { transform: rotate(-10deg) scale(1.25); filter: drop-shadow(0 0 8px #c084fcaa); }

/* ============================================================
   KEY PANEL + bordure néon animée (signature)
   ============================================================ */
@property --ks-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.keypanel {
  background: var(--card); backdrop-filter: blur(24px);
  border: 1px solid var(--stroke); border-radius: var(--radius-lg);
  max-width: 720px; margin: 10px auto 0; padding: 34px;
  box-shadow: var(--shadow), inset 0 1px 0 #ffffff12;
}
.keypanel h2 { font-size: 22px; margin-bottom: 6px; }
.keypanel .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* Cadre néon: gradient conique violet qui tourne autour des panneaux clés */
.neon-frame { position: relative; }
.neon-frame::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ks-angle),
    transparent 0deg, #7c3aed 40deg, #c084fc 80deg, transparent 120deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: .8;
  animation: ksSpin 7s linear infinite;
  pointer-events: none;
}
@keyframes ksSpin { to { --ks-angle: 360deg; } }
/* Fallback: pas de @property/conic = pas de cadre (pas de casse) */
@supports not (background: conic-gradient(from var(--ks-angle), red, blue)) {
  .neon-frame::before { display: none; }
}

/* Champs interactifs: identifiables immédiatement — fond #17141f (plus clair
   que les cards #12101a), bordure violette semi-transparente -> pleine + glow au focus */
.keybox {
  display: flex; gap: 10px; align-items: stretch;
  background: var(--color-input); border: 1px solid var(--color-border-violet);
  border-radius: var(--radius); padding: 6px;
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-2) ease;
}
.keybox:hover { border-color: #8b5cf65c; }
.keybox:focus-within {
  border-color: #c084fcd9;
  box-shadow: 0 0 0 3px #7c3aed2e, 0 0 28px #8b5cf633;
}
.keybox textarea {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--color-glow); font-family: Consolas, monospace; font-size: 14px;
  resize: none; padding: 10px 12px; user-select: all;
}
.keybox textarea::placeholder { color: #ffffff45; }

.status { margin-top: 14px; font-size: 14px; min-height: 22px; color: var(--muted); transition: color var(--dur-1) ease; }
.status.ok { color: var(--accent); }
.status.err { color: var(--red); }

.countdown-wrap { margin-top: 20px; padding: 18px; border-radius: var(--radius);
  background: var(--input); border: 1px solid var(--stroke);
  display: flex; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap; }
.countdown { font-size: 32px; font-weight: 700; font-family: Consolas, monospace; color: var(--accent);
  text-shadow: 0 0 24px #c084fc50; }
.countdown .lbl { display: block; font-size: 12px; color: var(--muted); font-family: 'Segoe UI', sans-serif; font-weight: 400; margin-top: 4px; }

/* ===== STATS — chiffres en violet clair (identité) ===== */
.stats { display: flex; gap: 18px; justify-content: center; margin: 40px auto 0; flex-wrap: wrap; max-width: 720px; padding: 0 24px; }
.stat {
  flex: 1; min-width: 180px; text-align: center;
  background: linear-gradient(180deg, var(--color-card) 0%, #0e0c15 100%);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-deep), inset 0 1px 0 #ffffff0d;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-1) ease, box-shadow var(--dur-2) ease;
}
.stat:hover {
  transform: translateY(-3px);
  border-color: #c084fc45;
  box-shadow: var(--shadow-deep), 0 12px 36px #7c3aed26, 0 0 22px #8b5cf619;
}
/* Chiffres: violet clair #c084fc + lueur néon (count-up géré en JS) */
.stat .num {
  font-size: 30px; font-weight: 700;
  background: linear-gradient(135deg, #d8b4fe, #c084fc);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px #c084fc40);
}
.stat .lbl { color: var(--color-muted); font-size: 13px; margin-top: 4px; }
.stat .num, .count-num { display: inline-block; }
/* Respiration très subtile sur la stat "online now" (temps réel) */
.stat.live { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: .88; }
}

/* ===== CODE — zone copiable: meme langage visuel que keybox ===== */
.codebox {
  background: var(--color-input); border: 1px solid var(--color-border-violet);
  border-radius: var(--radius); padding: 16px 18px; margin-top: 14px;
  font-family: Consolas, monospace; font-size: 13px; color: #d8b4fe;
  user-select: all; word-break: break-all; position: relative;
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-2) ease;
}
.codebox:hover { border-color: #c084fc55; box-shadow: 0 0 22px #8b5cf626, inset 0 1px 0 #ffffff0d; }

/* ===== FOOTER ===== */
footer { text-align: center; padding: 40px; color: #ffffff60; font-size: 13px; margin-top: 80px;
  border-top: 1px solid var(--stroke); }
footer a { color: var(--muted); text-decoration: none; position: relative;
  transition: color var(--dur-1) ease; }
footer a:hover { color: var(--accent); }
/* Soulignement animé des liens footer */
footer a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
footer a:hover::after { transform: scaleX(1); }
.hidden { display: none !important; }

/* ===== KEY MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: #000000cc; backdrop-filter: blur(6px);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-2) ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(440px, calc(100vw - 40px));
  background: var(--card-solid);
  border: 1px solid var(--stroke2);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px #000000c0, 0 0 50px #7c3aed26;
  padding: 30px;
  transform: translateY(16px) scale(.96);
  transition: transform var(--dur-3) cubic-bezier(.2,.9,.3,1.15);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal .modal-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px;
  background: linear-gradient(135deg, #c084fc, #7c3aed);
  display: grid; place-items: center; font-size: 26px;
  box-shadow: 0 0 24px #c084fc55;
}
.modal h2 { text-align: center; font-size: 20px; margin-bottom: 4px; }
.modal .modal-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.modal .keycode {
  background: var(--input); border: 1px solid var(--stroke2);
  border-radius: var(--radius); padding: 14px;
  font-family: Consolas, monospace; font-size: 13px; color: var(--accent);
  word-break: break-all; user-select: all; text-align: center;
}
.modal .modal-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: center; flex-wrap: wrap; }
.modal .expires { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }

/* ===== MOBILE NAV HAMBURGER ===== */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative; z-index: 60;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px; background: var(--muted);
  border-radius: 2px; position: absolute; left: 6px;
  transition: all var(--dur-2) var(--ease);
}
.nav-hamburger span:nth-child(1) { top: 9px; }
.nav-hamburger span:nth-child(2) { top: 15px; }
.nav-hamburger span:nth-child(3) { top: 21px; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 15px; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 15px; }

/* ===== HOW IT WORKS — steps visuels ===== */
.steps-section {
  max-width: 860px; margin: 0 auto; padding: 60px 24px 20px;
}
.steps-section h2 {
  text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 40px;
}
.steps-flow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative;
}
/* Ligne de connexion entre les steps */
.steps-flow::before {
  content: '';
  position: absolute; top: 38px; left: 16%; right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b5cf640, #c084fc60, #8b5cf640, transparent);
  z-index: 0;
}
.step-card {
  text-align: center; position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--color-card) 0%, #0e0c15 100%);
  border: 1px solid var(--color-border-violet);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  box-shadow: var(--shadow-deep), inset 0 1px 0 #ffffff0d;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-1) ease, box-shadow var(--dur-2) ease;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: #8b5cf673;
  box-shadow: var(--shadow-deep), 0 16px 48px #7c3aed2e, inset 0 1px 0 #ffffff0d;
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700; color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 0 24px #7c3aed55, 0 4px 12px #00000060;
}
.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ===== STEP PROGRESS BAR (getkey/robux) ===== */
.progress-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 30px; padding: 0 20px;
}
.progress-step {
  display: flex; align-items: center; gap: 0;
}
.progress-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: #17141f; border: 2px solid var(--color-border-violet);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--muted);
  transition: all var(--dur-2) var(--ease);
  flex-shrink: 0;
}
.progress-dot.active {
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  border-color: #c084fc;
  color: #fff;
  box-shadow: 0 0 20px #7c3aed55;
}
.progress-dot.done {
  background: #7c3aed30; border-color: #8b5cf6;
  color: var(--accent);
}
.progress-line {
  width: 60px; height: 2px;
  background: var(--color-border-violet);
  transition: background var(--dur-2) var(--ease);
}
.progress-line.active {
  background: linear-gradient(90deg, #8b5cf6, #c084fc);
}

/* ===== LOADING SPINNER ===== */
.ks-spinner {
  width: 48px; height: 48px;
  border: 3px solid #8b5cf620;
  border-top-color: #c084fc;
  border-radius: 50%;
  animation: ksSpinLoader .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes ksSpinLoader { to { transform: rotate(360deg); } }

/* ===== ANIMATED CHECKMARK ===== */
.ks-check {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed30, #c084fc20);
  border: 2px solid #8b5cf660;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  animation: ksCheckPop .4s var(--ease-bounce);
}
.ks-check svg { width: 28px; height: 28px; }
@keyframes ksCheckPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== HERO MINI (compact pour getkey/robux) ===== */
.hero-mini { padding: 60px 20px 30px; text-align: center; }
.hero-mini h1 { font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  background: linear-gradient(135deg, #ffffff, #c084fc 70%, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-mini p { color: var(--color-muted); font-size: 16px; margin-top: 12px; }

/* ===== OFFER CARD ENHANCED (robux) ===== */
.offer-enhanced {
  background: linear-gradient(180deg, var(--color-card) 0%, #0e0c15 100%);
  border: 1px solid var(--color-border-violet);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-2) var(--ease);
  position: relative; overflow: hidden;
}
.offer-enhanced:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #c084fc66;
  box-shadow: 0 12px 36px #7c3aed2e, 0 0 26px #8b5cf61f;
}
.offer-enhanced.selected {
  border-color: #c084fc;
  box-shadow: 0 0 0 2px #8b5cf640, 0 12px 36px #7c3aed2e;
}
.offer-enhanced .offer-tag {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.offer-enhanced .offer-price {
  font-size: 32px; font-weight: 700;
  background: linear-gradient(135deg, #d8b4fe, #c084fc);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.offer-enhanced .offer-name { font-size: 15px; color: var(--muted); margin-top: 4px; }
.offer-enhanced .offer-duration { font-size: 12px; color: var(--muted); margin-top: 6px; }

@media (max-width: 640px) {
  nav { padding: 12px 20px; }
  nav .links { display: none; }
  nav .links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #0d0b13ee; backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stroke);
    padding: 12px 20px; z-index: 55;
  }
  nav .links.open a { padding: 12px 0; margin-left: 0; border-bottom: 1px solid var(--stroke); }
  .nav-hamburger { display: block; }
  .hero h1 { font-size: 34px; }
  .hero .actions { flex-direction: column; align-items: center; }
  .keypanel { padding: 22px; }
  .steps-flow { grid-template-columns: 1fr; gap: 16px; }
  .steps-flow::before { display: none; }
  .hero-mini { padding: 50px 16px 20px; }
  .hero-mini h1 { font-size: 28px; }
}

/* ============================================================
   AD BANNERS — Adsterra / sponsors
   ============================================================ */
.ad-banner {
  display: flex; justify-content: center; align-items: center;
  margin: 0 auto; position: relative;
  overflow: hidden;
  background: #0a091080;
  border: 1px dashed #ffffff12;
  border-radius: var(--radius);
}
.ad-banner::before {
  content: 'PUBLICITÉ';
  position: absolute; top: 4px; right: 8px;
  font-size: 9px; letter-spacing: 0.08em; color: #ffffff25;
  text-transform: uppercase; z-index: 1;
}
/* Desktop leaderboard 728x90 */
.ad-banner.leaderboard { max-width: 728px; min-height: 90px; padding: 8px; }
/* Desktop sidebar 300x250 */
.ad-banner.sidebar { width: 300px; min-height: 250px; padding: 8px; }
/* Mobile banner 320x50 */
.ad-banner.mobile { max-width: 320px; min-height: 50px; padding: 4px; }
/* In-content 728x90 */
.ad-banner.in-content { max-width: 728px; min-height: 90px; padding: 8px; margin-top: 24px; margin-bottom: 24px; }
/* Responsive: masquer sidebar sur mobile */
@media (max-width: 768px) {
  .ad-banner.sidebar { display: none; }
  .ad-banner.leaderboard, .ad-banner.in-content { max-width: 100%; min-height: 60px; }
}
/* Animation subtile au chargement */
.ad-banner { opacity: 0; animation: adFadeIn .6s ease .3s forwards; }
@keyframes adFadeIn { to { opacity: 1; } }
/* Clickable: pointer si lien */
.ad-banner a { display: block; width: 100%; height: 100%; }

/* Layout 2 colonnes: contenu + sidebar */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .page-with-sidebar { grid-template-columns: 1fr; }
}
.sidebar-col {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; gap: 16px;
}
.sidebar-col .ad-banner { margin: 0; }

/* ============================================================
   ANIMATIONS D'APPARITION — reveal + stagger
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger: décalages progressifs */
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

/* Hero: entrée en cascade */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero > * { animation: heroIn .65s var(--ease-out) both; }
.hero > *:nth-child(2) { animation-delay: .12s; }
.hero > *:nth-child(3) { animation-delay: .24s; }

/* ===== SKELETON ===== */
.skeleton {
  background: linear-gradient(100deg, #131018 40%, #241d38 50%, #131018 60%);
  background-size: 200% 100%;
  animation: skeletonWave 1.4s ease infinite;
  border-radius: var(--radius);
  min-height: 90px;
}
@keyframes skeletonWave { to { background-position: -200% 0; } }

/* ============================================================
   SUPPORTED GAMES
   ============================================================ */
.games-head {
  display: flex; align-items: baseline; justify-content: space-between;
  max-width: 1060px; margin: 70px auto 20px; padding: 0 24px; flex-wrap: wrap; gap: 8px;
}
.games-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.games-head .sub { color: var(--muted); font-size: 14px; }
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px; max-width: 1060px; margin: 0 auto; padding: 0 24px;
}
.game-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); backdrop-filter: blur(24px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow), inset 0 1px 0 #ffffff12;
  transition:
    transform var(--dur-2) var(--ease-out),
    border-color var(--dur-2) ease,
    box-shadow var(--dur-3) ease;
  opacity: 0; transform: translateY(16px);
  animation: heroIn .5s var(--ease-out) forwards;
  will-change: transform;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #c084fc55;
  box-shadow: var(--shadow), 0 12px 36px #7c3aed2e, 0 0 26px #8b5cf61f, inset 0 1px 0 #ffffff12;
}
.game-card .g-icon {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: var(--input);
  display: grid; place-items: center; font-size: 24px;
  overflow: hidden;
  border: 1px solid var(--stroke2);
  transition: box-shadow var(--dur-2) ease, transform var(--dur-2) var(--ease-bounce);
}
.game-card:hover .g-icon { box-shadow: 0 0 18px #8b5cf640; transform: scale(1.06); }
.game-card .g-icon img { width: 100%; height: 100%; object-fit: cover; }
.game-card .g-body { flex: 1; min-width: 0; }
.game-card .g-name {
  font-size: 14.5px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-card .g-meta { display: flex; gap: 10px; margin-top: 4px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.game-card .g-meta b { color: #c084fc; font-weight: 600; }
.game-card .g-ver {
  font-size: 10.5px; padding: 2px 8px; border-radius: 20px;
  background: #c084fc1e; color: var(--accent); border: 1px solid #c084fc3d;
  white-space: nowrap;
}
.games-empty { color: var(--muted); text-align: center; padding: 30px; grid-column: 1 / -1; }

/* ============================================================
   LIVE ACTIVITY (compteurs)
   ============================================================ */
.activity-head {
  display: flex; align-items: baseline; justify-content: space-between;
  max-width: 1060px; margin: 70px auto 20px; padding: 0 24px; flex-wrap: wrap; gap: 10px;
}
.activity-head h2 { font-size: 28px; font-weight: 700; }
.activity-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  background: var(--input); border: 1px solid var(--stroke);
  border-radius: 30px; padding: 6px 14px;
}
.activity-live .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 10px #c084fccc;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 #c084fc77; }
  50%      { box-shadow: 0 0 0 6px #c084fc00; }
}

/* ===== COUNTDOWN URGENT (< 1h): fuchsia pulsant ===== */
.countdown.urgent { color: #e879f9; animation: urgentPulse 1.2s ease-in-out infinite; }
@keyframes urgentPulse {
  0%, 100% { text-shadow: 0 0 18px #e879f940; }
  50%      { text-shadow: 0 0 32px #e879f980; }
}

/* ===== NAV: soulignement animé ===== */
nav .links a { position: relative; }
nav .links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
nav .links a:hover::after { transform: scaleX(1); }

/* ============================================================
   UI EFFECTS ENGINE (effects.js) — styles miroir
   ============================================================ */
#ks-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, #7c3aed, #c084fc, #e9d5ff);
  z-index: 200;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 14px #c084fc99;
  transform-origin: left;
  transform: scaleX(0);
  /* scaleX animé par effects.js — pas de reflow width */
}
#ks-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#ks-glow {
  position: fixed; width: 340px; height: 340px;
  margin: -170px 0 0 -170px; left: -500px; top: -500px;
  background: radial-gradient(circle, #8b5cf626 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  will-change: left, top;
}
#ks-toasts {
  position: fixed; bottom: 22px; right: 22px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: #131018f0; border: 1px solid #c084fc55;
  color: #f3e8ff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; box-shadow: 0 8px 30px #00000080, 0 0 24px #7c3aed26;
  animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2) both;
  backdrop-filter: blur(10px);
}
.toast.err { border-color: #f472b655; color: #fbcfe8; box-shadow: 0 8px 30px #00000080; }
.toast.out { animation: toastOut .25s ease both; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px) scale(.9); }
}
.ks-ripple {
  position: absolute; border-radius: 50%;
  background: #c084fc55;
  transform: scale(0); animation: rip .55s ease-out forwards;
  pointer-events: none;
}
@keyframes rip { to { transform: scale(2.6); opacity: 0; } }

/* ============================================================
   VIEW TRANSITIONS API — navigation cross-page fluide
   (progressive: ignoré par les navigateurs sans support;
   le JS de effects.js intercepte les liens internes)
   ============================================================ */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: vtOut .18s ease both;
}
::view-transition-new(root) {
  animation: vtIn .26s var(--ease) both;
}
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }

/* ============================================================
   ACCESSIBILITÉ — reduced motion: tout au repos
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero > * { animation: none; opacity: 1; }
  .game-card { animation: none; opacity: 1; transform: none; }
  .stat.live { animation: none; opacity: 1; }
  .btn.pulse::before, .neon-frame::before,
  #ks-particles, #ks-glow, .ks-ripple, .skeleton { display: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
