/* =============================================================
   AGORA RETAKE — Design System & Global Styles
   Version: MVP 1.0
   Fonts: Barlow Condensed (titles) + Manrope (body) via Google Fonts
   ============================================================= */

/* ---- 1. Design Tokens ------------------------------------ */
:root {
  /* Backgrounds */
  --bg-900:  #0C1118;
  --bg-800:  #131A24;
  --bg-700:  #1A2330;

  /* Text */
  --text-100: #F3F6FA;
  --text-300: #B7C2D1;

  /* Borders */
  --line-500: #2A3547;

  /* Brand */
  --brand-500: #FF6B2C;
  --brand-600: #E75A1E;

  /* Status */
  --success-500: #23C16B;
  --warning-500: #F4B740;
  --danger-500:  #E5484D;

  /* Spacing scale (8px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 56px;
  --sp-9: 72px;

  /* Border radius */
  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   14px;
  --r-pill: 999px;

  /* Typography */
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Manrope', 'Segoe UI', system-ui, sans-serif;

  /* Transitions */
  --t-fast:   120ms ease;
  --t-normal: 200ms ease;
}

/* ---- 2. Reset & Base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-900);
  color: var(--text-100);
  font-family: var(--font-body);
  font-size: 1.125rem;   /* 18px desktop */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- 3. Typography --------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.125rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }

p { max-width: 68ch; }

.text-secondary { color: var(--text-300); }
.text-brand     { color: var(--brand-500); }
.text-success   { color: var(--success-500); }
.text-danger    { color: var(--danger-500); }

/* ---- 4. Layout ------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--sp-7);
}

.section       { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-8); }

/* ---- 5. Accessibility Helpers ---------------------------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: var(--sp-4);
  z-index: 9999;
  background: var(--brand-500);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--r-xs) var(--r-xs);
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- 6. Buttons ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--t-normal),
    color var(--t-normal),
    border-color var(--t-normal),
    box-shadow var(--t-normal),
    transform var(--t-fast);
}
.btn:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--brand-500);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 107, 44, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--text-300);
  border-color: var(--line-500);
}
.btn--secondary:hover {
  border-color: var(--text-300);
  color: var(--text-100);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-100);
  border-color: var(--line-500);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--text-300);
}

.btn--sm {
  padding: 9px 20px;
  font-size: 0.875rem;
}

.btn--icon {
  gap: var(--sp-2);
}

/* ---- 7. Header ------------------------------------------- */
.header-primary {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 17, 24, 0.80);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--t-normal),
    border-color var(--t-normal);
}
.header-primary.is-scrolled {
  background: rgba(12, 17, 24, 0.97);
  border-bottom-color: var(--line-500);
}

.header-primary__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--sp-5);
}

.header-primary__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-100);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.header-primary__logo .logo-accent { color: var(--brand-500); }

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo--footer {
  width: 30px;
  height: 30px;
}

.header-primary__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.header-primary__nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-300);
  padding-block: var(--sp-1);
  position: relative;
  transition: color var(--t-fast);
}
.header-primary__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--brand-500);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--t-fast);
}
.header-primary__nav-link:hover,
.header-primary__nav-link[aria-current="page"] {
  color: var(--text-100);
}
.header-primary__nav-link:hover::after,
.header-primary__nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}
.header-primary__nav-link:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 4px;
  border-radius: 3px;
}

.header-primary__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.auth-menu {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.auth-menu__user {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  max-width: 210px;
}

.auth-menu__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-500);
}

.auth-menu__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-700);
  color: var(--text-300);
  font-size: 0.75rem;
  font-weight: 700;
}

.auth-menu__name {
  font-size: 0.8125rem;
  color: var(--text-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-menu__link {
  font-size: 0.8125rem;
  color: var(--text-100);
  border: 1px solid var(--line-500);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.auth-menu__link:hover {
  border-color: var(--brand-500);
  color: #fff;
  background: rgba(255, 107, 44, 0.12);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: var(--sp-2);
  color: var(--text-100);
}
.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 4px; border-radius: 3px; }

/* Mobile nav drawer */
.header-primary__mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-3) 0 var(--sp-5);
  border-top: 1px solid var(--line-500);
}
.header-primary__mobile-nav.is-open { display: flex; }
.header-primary__mobile-nav .header-primary__nav-link {
  padding: var(--sp-2) 0;
  font-size: 1.0625rem;
}
.header-primary__mobile-nav .btn {
  margin-top: var(--sp-2);
  width: fit-content;
}

/* ---- 8. Hero Conversion ---------------------------------- */
.hero-conversion {
  padding-block: var(--sp-9) var(--sp-8);
  position: relative;
  overflow: hidden;
}
.hero-conversion::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(255,107,44,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(35,193,107,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-conversion__inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--sp-8);
  align-items: center;
  position: relative;
}

.hero-conversion__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.hero-conversion__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--brand-500);
}
.hero-conversion__eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--brand-500);
  border-radius: 1px;
  flex-shrink: 0;
}

.hero-conversion__title {
  font-size: clamp(2.625rem, 5.5vw, 4rem);
  line-height: 1.0;
}

.hero-conversion__subtitle {
  font-size: 1.0625rem;
  color: var(--text-300);
  max-width: 52ch;
  line-height: 1.7;
}

.hero-conversion__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.hero-conversion__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--text-300);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-item::before {
  content: '●';
  font-size: 0.375rem;
  color: var(--brand-500);
  flex-shrink: 0;
}
.trust-item:first-child::before { display: none; }

/* ---- 9. Server Live Card --------------------------------- */
.server-live-card {
  background: var(--bg-800);
  border: 1px solid var(--line-500);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-height: 240px;
}
.server-live-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--success-500);
  transition: background var(--t-normal);
}
.server-live-card.is-offline::before  { background: var(--danger-500); }
.server-live-card.is-loading::before  { background: var(--line-500); }
.server-live-card.is-error::before    { background: var(--warning-500); }
.server-live-card.is-empty::before    { background: var(--line-500); }

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  width: fit-content;
}
.status-badge--online  { background: rgba(35,193,107,0.15); color: var(--success-500); }
.status-badge--offline { background: rgba(229,72,77,0.15);  color: var(--danger-500); }
.status-badge--loading { background: rgba(42,53,71,0.5);    color: var(--text-300); }

.status-badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status-badge--online .status-badge__dot {
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* Player count */
.player-count {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.player-count__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-100);
  font-variant-numeric: tabular-nums;
}
.player-count__label { font-size: 0.875rem; color: var(--text-300); }

/* Server name */
.server-name {
  font-size: 0.9375rem;
  color: var(--text-300);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Freshness */
.server-freshness {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--text-300);
  margin-top: auto;
}
.freshness-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success-500);
  flex-shrink: 0;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg,
    var(--line-500) 25%,
    rgba(42,53,71,0.7) 50%,
    var(--line-500) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-xs);
}
.skeleton--badge  { height: 26px; width: 110px; border-radius: var(--r-pill); }
.skeleton--number { height: 3.25rem; width: 5rem; }
.skeleton--text   { height: 0.875rem; width: 70%; }
.skeleton--text-sm { height: 0.75rem; width: 50%; }
.skeleton--number-offset { margin-top: 4px; }
.skeleton--text-offset { margin-top: 2px; }

/* State message */
.server-state-msg {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
  justify-content: center;
}
.server-state-msg__text {
  font-size: 0.9375rem;
  color: var(--text-300);
  max-width: 30ch;
}
.server-state-msg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* Connect command */
.connect-cmd {
  background: var(--bg-700);
  border: 1px solid var(--line-500);
  border-radius: var(--r-xs);
  padding: var(--sp-2) var(--sp-3);
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: var(--success-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  cursor: text;
}

.connect-cmd__actions {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.connect-cmd__join {
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: #fff;
  background: var(--brand-500);
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast);
}

.connect-cmd__join:hover {
  background: var(--brand-600);
}

.connect-cmd__join:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}
.connect-cmd__copy {
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: var(--text-300);
  background: var(--line-500);
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  flex-shrink: 0;
}
.connect-cmd__copy:hover { background: var(--brand-500); color: #fff; }
.connect-cmd__copy:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* ---- 10. Community Gateway Grid -------------------------- */
.community-gateway {
  background: var(--bg-800);
  padding-block: var(--sp-9);
}
.community-gateway__header {
  text-align: center;
  margin-bottom: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
}
.community-gateway__intro {
  color: var(--text-300);
  max-width: 56ch;
  text-align: center;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.platform-card {
  background: var(--bg-700);
  border: 1px solid var(--line-500);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.platform-card:focus-within { border-color: rgba(255,107,44,0.4); }

.platform-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
/* Platform colors */
.platform-card--discord .platform-card__icon  { background: linear-gradient(135deg, rgba(88,101,242,0.28), rgba(88,101,242,0.16)); }
.platform-card--steam   .platform-card__icon  { background: linear-gradient(135deg, rgba(102,192,244,0.22), rgba(102,192,244,0.1)); }
.platform-card--leetify .platform-card__icon  { background: linear-gradient(135deg, rgba(255,211,55,0.28), rgba(255,211,55,0.12)); }
.platform-card--faceit  .platform-card__icon  { background: linear-gradient(135deg, rgba(255,117,44,0.26), rgba(255,117,44,0.12)); }

.platform-mark {
  width: 22px;
  height: 22px;
  display: block;
}
.platform-mark * {
  display: none;
}
.platform-mark--discord {
  background: url('../Asset/platform/discord.svg') center/contain no-repeat;
}
.platform-mark--steam {
  background: url('../Asset/platform/steam.svg') center/contain no-repeat;
}
.platform-mark--leetify {
  background: url('../Asset/platform/leetify.svg') center/contain no-repeat;
}
.platform-mark--faceit {
  background: url('../Asset/platform/faceit.svg') center/contain no-repeat;
}

.platform-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.platform-card__description {
  font-size: 0.9375rem;
  color: var(--text-300);
  line-height: 1.55;
  flex: 1;
}
.platform-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-500);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-500);
  margin-top: auto;
  transition: gap var(--t-fast), color var(--t-fast);
}
.platform-card__cta:hover { gap: var(--sp-3); color: var(--brand-600); }
.platform-card__cta:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 4px; border-radius: 3px; }

/* External link SVG icon */
.icon-external {
  display: inline-block;
  width: 13px; height: 13px;
  opacity: 0.75;
  flex-shrink: 0;
}

/* ---- 11. Benefits Strip ---------------------------------- */
.benefits-strip { padding-block: var(--sp-9); }
.benefits-strip__header {
  text-align: center;
  margin-bottom: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.benefit-card {
  background: var(--bg-800);
  border: 1px solid var(--line-500);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.benefit-card__icon {
  font-size: 1.75rem;
  line-height: 1;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-700);
  border-radius: var(--r-xs);
}
.benefit-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.benefit-card__text {
  font-size: 0.9375rem;
  color: var(--text-300);
  line-height: 1.65;
}

/* ---- 12. FAQ Accordion ----------------------------------- */
.faq-section { padding-block: var(--sp-9); }
.faq-section__header {
  text-align: center;
  margin-bottom: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 780px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg-800);
  border: 1px solid var(--line-500);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item.is-open { border-color: rgba(255,107,44,0.3); }

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-100);
  background: none;
  cursor: pointer;
  transition: color var(--t-fast);
}
.faq-item__trigger:hover { color: var(--brand-500); }
.faq-item__trigger:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: -3px;
  border-radius: var(--r-md);
}

.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--text-300);
  transition: transform 200ms ease;
}
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

/* CSS height animation using grid trick */
.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 200ms ease;
}
.faq-item.is-open .faq-item__body { grid-template-rows: 1fr; }

.faq-item__body-inner { overflow: hidden; }

.faq-item__content {
  padding: 0 var(--sp-6) var(--sp-5);
  font-size: 0.9375rem;
  color: var(--text-300);
  line-height: 1.75;
}
.faq-item__content a {
  color: var(--brand-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-item__content a:hover { color: var(--brand-600); }

/* ---- 13. Page Hero (Communauté & FAQ) -------------------- */
.page-hero {
  padding-block: var(--sp-8);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,107,44,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.page-hero--center .page-hero__inner {
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}
.page-hero--faq .page-hero__inner {
  max-width: 640px;
}
.page-hero__subtitle {
  font-size: 1.0625rem;
  color: var(--text-300);
  max-width: 60ch;
  line-height: 1.7;
}

.faq-group {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.faq-group__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.faq-cta-footer__lead {
  font-size: 1.0625rem;
  color: var(--text-300);
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 50ch;
  margin-inline: auto;
}

/* ---- 14. Community (full cards) -------------------------- */
.community-page-section { padding-block: var(--sp-6) var(--sp-9); }

.platform-card-full {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: var(--sp-6);
  background: var(--bg-800);
  border: 1px solid var(--line-500);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}
.platform-card-full:hover {
  border-color: rgba(255,107,44,0.25);
  box-shadow: 0 4px 32px rgba(0,0,0,0.35);
}
.platform-card-full__header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.platform-card-full__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.platform-card-full__icon .platform-mark {
  width: 30px;
  height: 30px;
}
.platform-card-full__icon--discord { background: linear-gradient(135deg, rgba(88,101,242,0.28), rgba(88,101,242,0.16)); }
.platform-card-full__icon--steam { background: linear-gradient(135deg, rgba(102,192,244,0.22), rgba(102,192,244,0.1)); }
.platform-card-full__icon--leetify { background: linear-gradient(135deg, rgba(255,211,55,0.28), rgba(255,211,55,0.12)); }
.platform-card-full__icon--faceit { background: linear-gradient(135deg, rgba(255,117,44,0.26), rgba(255,117,44,0.12)); }
.platform-card-full__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
}
.platform-card-full__description {
  font-size: 0.9375rem;
  color: var(--text-300);
  line-height: 1.7;
}

/* ---- 15. Conversion Banner ------------------------------- */
.conversion-banner {
  background: linear-gradient(135deg, var(--bg-700) 0%, rgba(255,107,44,0.09) 100%);
  border: 1px solid rgba(255,107,44,0.2);
  border-radius: var(--r-md);
  padding: var(--sp-8) var(--sp-7);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: center;
  margin-block: var(--sp-6);
}
.conversion-banner__title  { font-size: clamp(1.375rem, 3vw, 1.875rem); }
.conversion-banner__text   { color: var(--text-300); max-width: 50ch; }
.conversion-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

/* ---- 16. Footer ------------------------------------------ */
.footer-legal {
  background: var(--bg-800);
  border-top: 1px solid var(--line-500);
  padding-block: var(--sp-8) var(--sp-5);
}
.footer-legal__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}
.footer-legal__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
}
.footer-logo .logo-accent { color: var(--brand-500); }

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-300);
  max-width: 28ch;
  line-height: 1.6;
}
.footer-legal__col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-300);
  margin-bottom: var(--sp-4);
}
.footer-legal__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer-link {
  font-size: 0.9375rem;
  color: var(--text-300);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color var(--t-fast);
}
.footer-link:hover { color: var(--text-100); }
.footer-link:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 3px; }

.footer-platform-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.95;
}
.footer-platform-icon * {
  display: none;
}
.footer-platform-icon--discord {
  background: url('../Asset/platform/discord.svg') center/contain no-repeat;
}
.footer-platform-icon--steam {
  background: url('../Asset/platform/steam.svg') center/contain no-repeat;
}
.footer-platform-icon--leetify {
  background: url('../Asset/platform/leetify.svg') center/contain no-repeat;
}
.footer-platform-icon--faceit {
  background: url('../Asset/platform/faceit.svg') center/contain no-repeat;
}

.footer-legal__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-500);
}
.footer-copy { font-size: 0.8125rem; color: var(--text-300); }
.footer-legal-links { display: flex; gap: var(--sp-5); }
.footer-legal-links a {
  font-size: 0.8125rem;
  color: var(--text-300);
  transition: color var(--t-fast);
}
.footer-legal-links a:hover { color: var(--text-100); }

/* ---- 17. RGPD Consent Banner ----------------------------- */
.consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--bg-800);
  border-top: 1px solid var(--line-500);
  box-shadow: 0 -4px 40px rgba(0,0,0,0.5);
  padding: var(--sp-5) var(--sp-7);
  transform: translateY(0);
  transition: transform 350ms ease;
}
.consent-banner.is-hidden { transform: translateY(110%); pointer-events: none; }

.consent-banner__inner {
  max-width: 1240px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.consent-banner__content {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.consent-banner__title {
  font-size: 1rem;
  font-weight: 700;
}
.consent-banner__text {
  font-size: 0.875rem;
  color: var(--text-300);
  max-width: 80ch;
  line-height: 1.65;
}
.consent-banner__text a {
  color: var(--brand-500);
  text-decoration: underline;
}
.consent-banner__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-self: center;
  flex-shrink: 0;
}
.consent-banner__prefs {
  font-size: 0.875rem;
  color: var(--text-300);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color var(--t-fast);
}
.consent-banner__prefs:hover { color: var(--text-100); }
.consent-banner__prefs:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 3px; }

/* ---- 18. Legal Pages ------------------------------------- */
.legal-page {
  padding-block: var(--sp-8);
  max-width: 780px;
}
.legal-page h1 { margin-bottom: var(--sp-5); }
.legal-page__date {
  font-size: 0.875rem;
  color: var(--text-300);
  margin-bottom: var(--sp-7);
}
.legal-page h2 {
  font-size: 1.25rem;
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
}
.legal-page p,
.legal-page li {
  font-size: 0.9375rem;
  color: var(--text-300);
  line-height: 1.8;
  margin-bottom: var(--sp-3);
}
.legal-page ul {
  list-style: disc;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-3);
}
.legal-page a {
  color: var(--brand-500);
  text-decoration: underline;
}
.legal-page a:hover { color: var(--brand-600); }

/* ---- 19. Sticky Mobile CTA ------------------------------ */
.cta-sticky-mobile {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(12,17,24,0.96);
  border-top: 1px solid var(--line-500);
  transform: translateY(120%);
  transition: transform 300ms ease;
}
.cta-sticky-mobile.is-visible { transform: translateY(0); }
.cta-sticky-mobile .btn { width: 100%; justify-content: center; }

.faq-section__more {
  text-align: center;
  margin-top: 2.5rem;
}

.u-margin-top-xs {
  margin-top: 0.25rem;
}

/* ---- 20. Join Modal -------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12,17,24,0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--bg-800);
  border: 1px solid var(--line-500);
  border-radius: var(--r-md);
  padding: var(--sp-7);
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: translateY(12px);
  transition: transform 200ms ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.is-open .modal { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-700);
  color: var(--text-300);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.modal__close:hover { background: var(--line-500); color: var(--text-100); }
.modal__close:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

.modal__title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  margin-bottom: var(--sp-5);
  padding-right: var(--sp-7);
}

.modal__steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.modal__step {
  display: flex;
  gap: var(--sp-3);
}
.modal__step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.modal__step-text {
  font-size: 0.9375rem;
  color: var(--text-300);
  line-height: 1.65;
  padding-top: 4px;
}
.modal__step-text strong { color: var(--text-100); }

.modal__divider {
  border: none;
  border-top: 1px solid var(--line-500);
  margin-block: var(--sp-4);
}
.modal__fallback {
  font-size: 0.875rem;
  color: var(--text-300);
  text-align: center;
}
.modal__fallback a {
  color: var(--brand-500);
  text-decoration: underline;
}

/* ---- 21. Notification (copy feedback) -------------------- */
.copy-toast {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-5);
  z-index: 500;
  background: var(--success-500);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}
.copy-toast.is-visible { opacity: 1; transform: translateY(0); }

/* ---- 22.b Stats page ------------------------------------- */
.stats-flash {
  margin-top: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border: 1px solid rgba(35, 193, 107, 0.45);
  background: rgba(35, 193, 107, 0.12);
  color: #c0f3d8;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 0.9375rem;
}

.stats-shell {
  display: grid;
  gap: var(--sp-5);
}

.stats-profile-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--bg-800);
  border: 1px solid var(--line-500);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}

.stats-profile-card__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-500);
}

.stats-profile-card__label {
  font-size: 0.75rem;
  color: var(--text-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-profile-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.stats-profile-card__sync {
  font-size: 0.875rem;
  color: var(--text-300);
}

.stats-state-panel,
.stats-data-view {
  background: var(--bg-800);
  border: 1px solid var(--line-500);
  border-radius: var(--r-md);
  padding: var(--sp-6);
}

.stats-state-panel h2 {
  margin-bottom: var(--sp-2);
}

.stats-state-panel p {
  color: var(--text-300);
}

.stats-state-panel--empty {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 107, 44, 0.28);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 107, 44, 0.12) 0%, rgba(255, 107, 44, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0) 100%),
    var(--bg-800);
}

.stats-empty-hero {
  display: grid;
  gap: var(--sp-3);
}

.stats-empty-hero__badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd7c2;
  border: 1px solid rgba(255, 107, 44, 0.4);
  background: rgba(255, 107, 44, 0.12);
  border-radius: var(--r-pill);
  padding: 7px 12px;
}

.stats-empty-hero h2 {
  margin: 0;
  max-width: 28ch;
}

.stats-empty-hero p {
  margin: 0;
  max-width: 58ch;
}

.stats-empty-steps {
  margin-top: var(--sp-5);
  border: 1px solid var(--line-500);
  border-radius: var(--r-sm);
  background: rgba(12, 16, 26, 0.56);
  padding: var(--sp-4);
}

.stats-empty-steps__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-100);
}

.stats-empty-steps__list {
  margin: var(--sp-3) 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: var(--sp-2);
  color: var(--text-300);
  font-size: 0.9375rem;
}

.stats-empty-steps__list li::marker {
  color: var(--brand-500);
}

.stats-actions-row--empty {
  margin-top: var(--sp-5);
}

.stats-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}

.stats-kpi-card {
  border: 1px solid var(--line-500);
  border-radius: var(--r-sm);
  background: var(--bg-700);
  padding: var(--sp-4);
}

.stats-kpi-card__label {
  color: var(--text-300);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-kpi-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1;
  margin-top: var(--sp-2);
}

.stats-summary-row {
  margin-top: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  color: var(--text-300);
}

.stats-summary-row strong {
  color: var(--text-100);
}

.stats-conversion-banner {
  margin-top: var(--sp-5);
}

/* ---- Stats Progression Graphs ---------------------------- */
.stats-graphs-section {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--bg-800);
  border: 1px solid var(--line-500);
  border-radius: var(--r-md);
}

.stats-graphs-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin-bottom: var(--sp-4);
  color: var(--text-100);
}

.stats-graphs-period-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding: var(--sp-1);
  background: var(--bg-700);
  border-radius: var(--r-sm);
  width: fit-content;
  border: 1px solid var(--line-500);
}

.stats-graphs-period-tab {
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-300);
  background: transparent;
  border: none;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stats-graphs-period-tab:hover {
  color: var(--text-100);
  background: var(--bg-600);
}

.stats-graphs-period-tab.active {
  color: var(--bg-900);
  background: var(--brand-400);
}

.stats-graphs-canvas-wrapper {
  position: relative;
  min-height: 300px;
  background: var(--bg-700);
  border-radius: var(--r-sm);
  padding: var(--sp-4);
  border: 1px solid var(--line-600);
}

.stats-graphs-loading,
.stats-graphs-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-300);
  font-size: 0.9375rem;
  text-align: center;
  width: 100%;
  padding: var(--sp-4);
}

.stats-graphs-error {
  color: var(--text-400);
}

#statsChart {
  max-height: 400px;
  width: 100%;
}

.stats-graphs-section__note {
  margin-top: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--text-400);
  text-align: center;
}

/* Media queries pour graphiques */
@media (max-width: 768px) {
  .stats-graphs-period-tabs {
    width: 100%;
    justify-content: center;
  }
  
  .stats-graphs-period-tab {
    flex: 1;
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.8125rem;
  }
  
  .stats-graphs-canvas-wrapper {
    min-height: 250px;
  }
  
  #statsChart {
    max-height: 300px;
  }
}

/* ---- Badges/Achievements Section ------------------------- */
.stats-badges-section {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--bg-800);
  border: 1px solid var(--line-500);
  border-radius: var(--r-md);
}

.stats-badges-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin-bottom: var(--sp-2);
  color: var(--text-100);
}

.stats-badges-section__summary {
  font-size: 0.9375rem;
  color: var(--text-300);
  margin-bottom: var(--sp-5);
  font-weight: 600;
}

.stats-badges-loading,
.stats-badges-error {
  text-align: center;
  padding: var(--sp-5);
  color: var(--text-300);
  font-size: 0.9375rem;
}

.stats-badges-error {
  color: var(--text-400);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.badge-card {
  position: relative;
  padding: var(--sp-4);
  background: var(--bg-700);
  border: 2px solid var(--line-500);
  border-radius: var(--r-sm);
  text-align: center;
  transition: all 0.2s ease;
  overflow: hidden;
}

.badge-card--unlocked {
  border-color: var(--brand-400);
  background: linear-gradient(135deg, var(--bg-700) 0%, rgba(0, 255, 136, 0.05) 100%);
}

.badge-card--locked {
  opacity: 0.6;
  filter: grayscale(50%);
}

.badge-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-300);
}

.badge-card--locked:hover {
  opacity: 0.8;
}

/* Rarity borders */
.badge-card--common {
  border-color: var(--line-500);
}

.badge-card--common.badge-card--unlocked {
  border-color: #9e9e9e;
}

.badge-card--uncommon.badge-card--unlocked {
  border-color: #4caf50;
}

.badge-card--rare.badge-card--unlocked {
  border-color: #2196f3;
}

.badge-card--epic.badge-card--unlocked {
  border-color: #9c27b0;
}

.badge-card--legendary.badge-card--unlocked {
  border-color: #ff9800;
}

.badge-card__icon {
  font-size: 3rem;
  margin-bottom: var(--sp-2);
  line-height: 1;
}

.badge-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: var(--sp-2);
  line-height: 1.2;
}

.badge-card__desc {
  font-size: 0.8125rem;
  color: var(--text-300);
  margin-bottom: var(--sp-2);
  line-height: 1.4;
}

.badge-card__rarity {
  display: inline-block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--sp-1) var(--sp-2);
  background: var(--bg-600);
  border-radius: var(--r-xs);
  color: var(--text-400);
  font-weight: 600;
}

.badge-card--unlocked .badge-card__rarity {
  background: var(--brand-400);
  color: var(--bg-900);
}

.badge-card__progress {
  margin-top: var(--sp-2);
  font-size: 0.75rem;
  color: var(--text-400);
  font-style: italic;
}

.badge-card__date {
  margin-top: var(--sp-2);
  font-size: 0.75rem;
  color: var(--brand-300);
}

.stats-badges-section__note {
  margin-top: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--text-400);
  text-align: center;
}

/* Media queries pour badges */
@media (max-width: 768px) {
  .badges-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--sp-3);
  }
  
  .badge-card__icon {
    font-size: 2.5rem;
  }
  
  .badge-card__name {
    font-size: 0.9375rem;
  }
}

/* ---- Weapon Stats Table ---------------------------------- */
.stats-weapons-section {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--bg-800);
  border: 1px solid var(--line-500);
  border-radius: var(--r-md);
}

.stats-weapons-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin-bottom: var(--sp-4);
  color: var(--text-100);
}

.stats-weapons-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stats-weapons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.stats-weapons-table thead {
  background: var(--bg-700);
  border-bottom: 2px solid var(--line-500);
}

.stats-weapons-table th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-weight: 600;
  color: var(--text-200);
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.stats-weapons-table tbody tr {
  border-bottom: 1px solid var(--line-600);
  transition: background 0.15s ease;
}

.stats-weapons-table tbody tr:hover {
  background: var(--bg-700);
}

.stats-weapons-table td {
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-100);
}

.stats-weapons-table__weapon {
  font-weight: 600;
  color: var(--brand-400);
}

.stats-weapons-table__kills,
.stats-weapons-table__deaths {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.stats-weapons-table__hs,
.stats-weapons-table__accuracy {
  color: var(--text-300);
}

.stats-weapons-section__note {
  margin-top: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--text-400);
  text-align: center;
}

/* ---- 22. Leaderboard ------------------------------------- */
.leaderboard-hero {
  padding-block: var(--sp-9) var(--sp-6);
  text-align: center;
}

.leaderboard-hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  margin-bottom: var(--sp-3);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.leaderboard-hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-300);
  margin-bottom: var(--sp-7);
}

.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  align-items: center;
  margin-top: var(--sp-6);
}

.leaderboard-tab {
  padding: var(--sp-3) var(--sp-5);
  background: var(--bg-800);
  border: 2px solid var(--line-500);
  border-radius: var(--r-pill);
  color: var(--text-300);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--t-normal);
  cursor: pointer;
}

.leaderboard-tab:hover {
  background: var(--bg-700);
  border-color: var(--brand-500);
  color: var(--text-100);
}

.leaderboard-tab.is-active {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}

.leaderboard-content {
  padding-block: var(--sp-6) var(--sp-9);
}

.leaderboard-state {
  min-height: 400px;
}

.leaderboard-loading,
.leaderboard-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-9) var(--sp-5);
  text-align: center;
}

.leaderboard-loading .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--line-500);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--sp-5);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.leaderboard-loading p {
  color: var(--text-300);
}

.leaderboard-empty__icon {
  font-size: 4rem;
  margin-bottom: var(--sp-4);
}

.leaderboard-empty h2 {
  margin-bottom: var(--sp-3);
}

.leaderboard-empty p {
  color: var(--text-300);
  margin-bottom: var(--sp-5);
}

/* Podium */
.leaderboard-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
}

.podium-card {
  background: var(--bg-800);
  border: 2px solid var(--line-500);
  border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  position: relative;
  transition: transform var(--t-normal), border-color var(--t-normal);
}

.podium-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-500);
}

.podium-card--1 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  order: 2;
  background: linear-gradient(135deg, rgba(255, 107, 44, 0.15), rgba(231, 90, 30, 0.05));
  border-color: var(--brand-500);
}

.podium-card--2 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  order: 1;
  margin-top: var(--sp-6);
}

.podium-card--3 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  order: 3;
  margin-top: var(--sp-6);
}

.podium-card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-700);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: var(--sp-4);
}

.podium-card--1 .podium-card__rank {
  background: var(--brand-500);
  color: #fff;
  font-size: 1.5rem;
  width: 52px;
  height: 52px;
}

.podium-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--line-500);
  margin-inline: auto;
  margin-bottom: var(--sp-3);
  object-fit: cover;
}

.podium-card--1 .podium-card__avatar {
  width: 96px;
  height: 96px;
  border-color: var(--brand-500);
}

.podium-card__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-100);
  margin-bottom: var(--sp-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-card__value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--brand-500);
}

/* Leaderboard Table */
.leaderboard-table-wrapper {
  background: var(--bg-800);
  border: 2px solid var(--line-500);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: var(--sp-5);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table thead {
  background: var(--bg-700);
  border-bottom: 2px solid var(--line-500);
}

.leaderboard-table th {
  padding: var(--sp-4);
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-300);
}

.leaderboard-table th.is-highlighted {
  color: var(--brand-500);
}

.leaderboard-table tbody tr {
  border-bottom: 1px solid var(--line-500);
  transition: background var(--t-fast);
}

.leaderboard-table tbody tr:hover {
  background: var(--bg-700);
}

.leaderboard-table tbody tr:last-child {
  border-bottom: none;
}

.leaderboard-table tbody tr.leaderboard-table__row--podium {
  background: rgba(255, 107, 44, 0.04);
}

.leaderboard-table td {
  padding: var(--sp-4);
}

.leaderboard-table__rank {
  width: 60px;
  text-align: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--text-300);
}

.rank-medal {
  display: inline-block;
  font-size: 1.375rem;
}

.leaderboard-table__player {
  min-width: 200px;
}

.leaderboard-player {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.leaderboard-player__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line-500);
  object-fit: cover;
}

.leaderboard-player__name {
  font-weight: 600;
  color: var(--text-100);
}

.leaderboard-table__stat {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-100);
  text-align: center;
}

.leaderboard-table__stat.is-highlighted {
  color: var(--brand-500);
}

.leaderboard-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-400);
  margin-bottom: var(--sp-7);
}

/* ---- 23. Responsive -------------------------------------- */
@media (max-width: 1023px) {
  .container { padding-inline: var(--sp-5); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-legal__grid { grid-template-columns: 1fr 1fr; }
  .platform-card-full { grid-template-columns: 1fr; }
  .platform-card-full > .btn { align-self: flex-start; }
  .stats-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }
  .container { padding-inline: var(--sp-4); }
  .section { padding-block: var(--sp-8); }

  /* Header */
  .header-primary__nav,
  .header-primary__actions { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero-conversion { padding-block: var(--sp-7) var(--sp-5); }
  .hero-conversion__inner { grid-template-columns: 1fr; gap: var(--sp-5); }

  /* Server card */
  .player-count__number { font-size: 2.75rem; }

  /* Grids */
  .platform-grid    { grid-template-columns: 1fr; }
  .benefits-grid    { grid-template-columns: 1fr; }
  .footer-legal__grid { grid-template-columns: 1fr; }
  .footer-legal__bottom { flex-direction: column; gap: var(--sp-3); }

  .auth-menu__name { display: none; }

  /* Conversion banner */
  .conversion-banner { padding: var(--sp-6) var(--sp-4); }

  /* Stats */
  .stats-state-panel,
  .stats-data-view { padding: var(--sp-5); }
  .stats-kpi-grid { grid-template-columns: 1fr; }
  .stats-summary-row { align-items: flex-start; }

  .stats-empty-hero h2 {
    max-width: none;
  }

  .stats-empty-steps {
    padding: var(--sp-3);
  }

  /* Consent */
  .consent-banner { padding: var(--sp-4); }
  .consent-banner__inner { gap: var(--sp-4); }
  .consent-banner__actions { align-self: flex-start; }

  /* Modal */
  .modal { padding: var(--sp-6) var(--sp-5); }

  /* Sticky CTA */
  .cta-sticky-mobile { display: block; }
}

/* ---- 23. Animations -------------------------------------- */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.35); }
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 320ms ease forwards;
}
.animate-fade-up--d1 { animation-delay: 80ms; }
.animate-fade-up--d2 { animation-delay: 160ms; }
.animate-fade-up--d3 { animation-delay: 240ms; }
.animate-fade-up--d4 { animation-delay: 320ms; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- 24. Reduced Motion ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
