/* ============================================================
   AZURA SMP - Design System
   Gradient signature : #4DCCFF → #B066FF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Garantir que hidden fonctionne meme avec display:flex sur les classes */
[hidden] { display: none !important; }

/* ---- Custom properties ---- */
:root {
  --bg:           #0A0A0F;
  --surface:      #15151F;
  --surface-2:    #1A1A27;
  --border:       #1F1F2A;
  --text:         #FFFFFF;
  --text-muted:   #9AA3B8;
  --accent:       #4DCCFF;
  --accent-2:     #B066FF;
  --gradient:     linear-gradient(135deg, #4DCCFF 0%, #B066FF 100%);
  --gradient-h:   linear-gradient(90deg,  #4DCCFF 0%, #B066FF 100%);

  /* Rank gradients */
  --rank-legend:  linear-gradient(90deg, #FF6B6B, #FFAA00);
  --rank-premium: linear-gradient(90deg, #FFD700, #FFA500);
  --rank-elite:   linear-gradient(90deg, #9B59B6, #C39BD3);
  --rank-vip:     linear-gradient(90deg, #4D96FF, #85C1E9);
  --rank-novice:  linear-gradient(90deg, #888888, #CCCCCC);

  --radius:    6px;
  --radius-lg: 10px;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --t:         200ms ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* RTL - propriétés logiques dès la base */
[dir="rtl"] { direction: rtl; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 62px;
}
.nav__logo {
  font-size: 17px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  margin-inline-end: 16px;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
}
.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
  background: var(--surface);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-inline-start: auto;
}
.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  border-radius: var(--radius);
  line-height: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background: var(--gradient);
  color: #000;
}
.btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(77, 204, 255, 0.25);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--lg { padding: 12px 28px; font-size: 16px; }

/* Play button with IP copy */
.btn--play {
  position: relative;
  background: var(--gradient);
  color: #000;
  font-weight: 700;
}
.btn--play:hover { opacity: 0.9; }
.btn--play .copy-confirm {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
.btn--play.copied .copy-confirm { display: block; }

/* ---- Hero ---- */
.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  inset-inline-start: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(77,204,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  inset-inline-end: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(176,102,255,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.7);
  animation: pulse-dot 2.5s ease infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}
.hero__title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero__title .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero__ip-display {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--t);
}
.hero__ip-display:hover { border-color: var(--accent); }
.hero__ip-display code {
  color: var(--text);
  font-family: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 14px;
}

/* ---- Stats banner ---- */
.stats-banner {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-banner__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 0 24px;
  border-inline-end: 1px solid var(--border);
}
.stat-item:first-child { padding-inline-start: 0; }
.stat-item:last-child  { border-inline-end: none; }
.stat-item__value {
  font-size: 30px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-item__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ---- Sections ---- */
.section {
  padding: 80px 0;
}
.section--bordered { border-top: 1px solid var(--border); }
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}
.section-header { margin-bottom: 48px; }

/* ---- Feature cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.feature-card:hover {
  border-color: rgba(77,204,255,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(77,204,255,0.08);
}
.feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(77, 204, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}
.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- News cards ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t), transform var(--t);
}
.news-card:hover {
  border-color: rgba(77,204,255,0.4);
  transform: translateY(-2px);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
}
.badge--new   { background: rgba(77,204,255,0.12);  color: var(--accent); }
.badge--fix   { background: rgba(34,197,94,0.12);   color: #22c55e; }
.badge--event { background: rgba(176,102,255,0.12); color: var(--accent-2); }
.badge--i18n  { background: rgba(251,191,36,0.12);  color: #fbbf24; }

.news-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.news-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.news-card__date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.section-footer { display: flex; justify-content: flex-end; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand-name {
  font-size: 17px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.footer__brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 260px;
}
.footer__socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer__social {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  transition: border-color var(--t), color var(--t), transform var(--t);
}
.footer__social:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.footer__lang {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--t), color var(--t);
}
.lang-btn:hover,
.lang-btn--active {
  border-color: var(--accent);
  color: var(--text);
}
.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text);
  margin-bottom: 18px;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t);
}
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__copyright, .footer__not-affiliated {
  font-size: 12px;
  color: var(--text-muted);
}
.footer__version {
  font-size: 11px;
  color: var(--border);
  font-family: 'SF Mono', 'Consolas', monospace;
}

/* ---- Page header ---- */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
}
.page-header__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.page-header__title {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.page-header__desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ---- Profile page ---- */
.profile-search-section {
  max-width: 620px;
  margin: 0 auto 64px;
  text-align: center;
  padding-top: 12px;
}
.search-box {
  position: relative;
  margin-top: 24px;
  text-align: start;
}
.search-box__input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 130px 14px 18px;
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
[dir="rtl"] .search-box__input { padding: 14px 18px 14px 130px; }
.search-box__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77,204,255,0.12);
}
.search-box__input::placeholder { color: var(--text-muted); }
.search-box__btn {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline-start: 0;
  inset-inline-end: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 50;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.autocomplete-dropdown.open { display: block; }
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  transition: background var(--t), color var(--t);
}
.autocomplete-item:hover { background: var(--surface-2); color: var(--text); }
.autocomplete-item img {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

/* Profile grid */
.profile-wrapper { display: none; }
.profile-wrapper.loaded { display: block; }
.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 64px;
}
.profile-sidebar, .profile-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Identity card */
.identity-card {
  padding: 0;
  overflow: hidden;
  text-align: center;
}
.identity-card__banner {
  height: 80px;
  background: linear-gradient(135deg, rgba(77,204,255,0.18) 0%, rgba(176,102,255,0.22) 100%);
  position: relative;
}
.identity-card__banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-h);
}
.identity-card__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(77,204,255,0.12) 0%, transparent 70%);
}
.identity-card__skin {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 90px;
  height: 160px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.prof-avatar-head {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  image-rendering: pixelated;
  border: 3px solid var(--surface);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  display: block;
}
.identity-card__skin canvas {
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  image-rendering: pixelated;
}
.identity-card__body {
  padding: 98px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.identity-card__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.identity-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.identity-card__meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Status dot */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot--online  { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.status-dot--offline { background: var(--text-muted); }

/* Rank badge */
.rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rank-badge--legend  { background: var(--rank-legend);  color: #000; }
.rank-badge--premium { background: var(--rank-premium); color: #000; }
.rank-badge--elite   { background: var(--rank-elite);   color: #fff; }
.rank-badge--vip     { background: var(--rank-vip);     color: #000; }
.rank-badge--novice,
.rank-badge--default { background: var(--rank-novice);  color: #000; }

/* Economy card */
.prof-economy-card { position: relative; overflow: hidden; }
.prof-economy-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(77,204,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.economy-balance {
  font-size: 38px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
  line-height: 1;
}
.economy-currency {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
  font-weight: 500;
}
.economy-rank {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-weight: 500;
}

/* Clan card */
.clan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.clan-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(77,204,255,0.1);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(77,204,255,0.2);
}
.clan-name {
  font-size: 16px;
  font-weight: 700;
}
.clan-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.clan-meta-item {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.clan-meta-item__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.clan-meta-item__value {
  font-size: 15px;
  font-weight: 700;
}

/* Stats mini-grid - 3 colonnes */
.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-mini {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
}
.stat-mini__icon {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-mini__value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-mini__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

/* Jobs card - grille 2 colonnes */
.job-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.job-item {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.job-item__icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 6px;
}
.job-item__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
}
.job-item__level {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.job-item__xp {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- Leaderboards ---- */
.lb-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.lb-tabs::-webkit-scrollbar { display: none; }
.lb-tab {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t), border-color var(--t);
  white-space: nowrap;
}
.lb-tab:hover { color: var(--text); }
.lb-tab--active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.lb-table {
  width: 100%;
  border-collapse: collapse;
}
.lb-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  text-align: start;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.lb-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.lb-table tr:last-child td { border-bottom: none; }
.lb-table tbody tr:hover td { background: var(--surface-2); }
.lb-table td a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-table td a:hover { color: var(--accent); }
.lb-table td a img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  image-rendering: pixelated;
}
.lb-rank {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 32px;
}
.lb-rank.gold   { color: #FFD700; }
.lb-rank.silver { color: #C0C0C0; }
.lb-rank.bronze { color: #CD7F32; }
.lb-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}
.lb-page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--t);
}
.lb-page-btn:hover { border-color: var(--accent); color: var(--text); }
.lb-page-btn--active {
  background: var(--gradient);
  border-color: transparent;
  color: #000;
}

/* ---- Changelog / Updates ---- */
.updates-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t);
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn--active {
  background: var(--gradient);
  border-color: transparent;
  color: #000;
}
.changelog-timeline { position: relative; }
.changelog-entry {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-entry__aside {
  min-width: 90px;
  padding-top: 2px;
}
.changelog-entry__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}
.changelog-entry__content { flex: 1; }
.changelog-entry__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.changelog-entry__title {
  font-size: 18px;
  font-weight: 700;
}
.changelog-entry__body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}
.changelog-entry__body ul {
  padding-inline-start: 20px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.changelog-entry__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 14px;
}
.changelog-entry__link:hover { opacity: 0.8; }

/* ---- Vote page ---- */
/* Vote search step 1 */
.vote-search-wrap {
  display: flex;
  gap: 10px;
}
.vote-search-input {
  flex: 1;
  font-size: 15px;
  padding: 12px 16px;
}
.vote-search-btn { white-space: nowrap; }

/* Vote result bar (step 2) */
.vote-result-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.vote-result-player {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.vote-result-msg {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  min-width: 200px;
}
.vote-result--ok   { background: rgba(34,197,94,0.1);  color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }
.vote-result--warn { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.vote-result--err  { background: rgba(239,68,68,0.1);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.vote-change-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  flex-shrink: 0;
  white-space: nowrap;
}
.vote-change-link:hover { color: var(--accent); }

.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.vote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vote-card__site {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.vote-card__name {
  font-size: 17px;
  font-weight: 700;
}
.vote-card__reward {
  font-size: 13px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vote-card__cooldown {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.vote-card__cooldown.ready { color: #22c55e; }
.vote-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.vote-my-total {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vote-my-total__label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.vote-my-total__count {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Wiki ---- */
.wiki-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
}
.wiki-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2e2e3e #15151F;
}
.wiki-sidebar::-webkit-scrollbar { width: 5px; }
.wiki-sidebar::-webkit-scrollbar-track { background: #15151F; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.wiki-sidebar::-webkit-scrollbar-thumb { background: #2e2e3e; border-radius: 4px; }
.wiki-sidebar::-webkit-scrollbar-thumb:hover { background: #4a4a60; }
.wiki-sidebar__search {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  width: 100%;
  margin-bottom: 16px;
  outline: none;
  transition: border-color var(--t);
}
.wiki-sidebar__search:focus { border-color: var(--accent); }
.wiki-sidebar__search::placeholder { color: var(--text-muted); }
.wiki-cat-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 8px 4px;
}
.wiki-nav-link {
  display: block;
  padding: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--t), background var(--t);
}
.wiki-nav-link:hover,
.wiki-nav-link--active {
  color: var(--text);
  background: var(--surface-2);
}
.wiki-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.wiki-content h1 { font-size: 28px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.wiki-content h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.wiki-content h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.wiki-content p  { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.wiki-content ul, .wiki-content ol { padding-inline-start: 22px; margin-bottom: 16px; }
.wiki-content li { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }
.wiki-content code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono','Consolas',monospace;
}
.wiki-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.wiki-content hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.wiki-content blockquote {
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 16px;
  color: var(--text-muted);
  margin: 16px 0;
}

/* Wiki - composants de contenu */
.wiki-lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.wiki-infobox {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.wiki-infobox__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.wiki-infobox__row:last-child { border-bottom: none; }
.wiki-infobox__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  min-width: 80px;
}
.wiki-code {
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: 'SF Mono','Consolas',monospace;
  font-size: 13px;
}
.wiki-callout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  border-inline-start: 4px solid;
}
.wiki-callout--tip {
  background: rgba(77,204,255,0.06);
  border-color: var(--accent);
  color: var(--text-muted);
}
.wiki-callout--info {
  background: rgba(176,102,255,0.06);
  border-color: var(--accent-2);
  color: var(--text-muted);
}
.wiki-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wiki-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 14px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.wiki-list li::before {
  content: '>';
  color: var(--accent);
  font-family: monospace;
  font-weight: 700;
  flex-shrink: 0;
}
/* Wiki - grille metiers */
.wiki-job-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}
.wiki-job-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  transition: border-color var(--t), background var(--t);
}
.wiki-job-card:hover { border-color: var(--accent); background: rgba(77,204,255,0.04); }
.wiki-job-card__icon { font-size: 30px; line-height: 1; }
.wiki-job-card__name { font-size: 13px; font-weight: 700; color: var(--text); }

/* Wiki - items personnalises */
.wiki-item-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.wiki-item {
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius);
}
.wiki-item--legendary {
  border-inline-start-color: #fbbf24;
  background: rgba(251,191,36,0.04);
}
.wiki-item__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.wiki-item__name { font-size: 14px; font-weight: 700; color: var(--text); }
.wiki-item__aka  { font-size: 13px; color: var(--text-muted); }
.wiki-item__legend-badge {
  margin-inline-start: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
  white-space: nowrap;
}
.wiki-item__desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.wiki-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.wiki-cat-item {
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.wiki-cat-item strong { color: var(--text); display: block; margin-bottom: 2px; }
.wiki-rank-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.wiki-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.wiki-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-muted);
}
.wiki-table tbody tr:last-child td { border-bottom: none; }
.wiki-table tbody tr:hover td { background: var(--surface-2); }
.wiki-table code { gap: 4px; display: inline-flex; flex-wrap: wrap; }

/* ---- Wiki craft grids & tier badges ---- */
.wiki-craft {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 20px;
  flex-wrap: wrap;
}
.wiki-craft__grid {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 2px;
  background: #2a1f0f;
  padding: 5px;
  border-radius: 4px;
  border: 2px solid #5a4a2a;
}
.wiki-craft__cell {
  background: #4a3820;
  border: 1px solid #6a5a3a;
  border-radius: 2px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  color: #d4c090;
  padding: 4px;
  line-height: 1.3;
}
.wiki-craft__cell--empty {
  background: #2e2216;
  border-color: #4a3820;
}
.wiki-craft__arrow { font-size: 22px; color: var(--text-muted); }
.wiki-craft__result {
  background: #4a3820;
  border: 2px solid var(--accent);
  border-radius: 4px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  padding: 4px;
  line-height: 1.3;
}
.wiki-tier {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 7px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}
.wiki-tier--1 { background: rgba(148,163,184,0.15); color: #94a3b8; border: 1px solid rgba(148,163,184,0.3); }
.wiki-tier--2 { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.wiki-tier--3 { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.wiki-tier--4 { background: rgba(168,85,247,0.12); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }
.wiki-tier--5 { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.35); }

/* ---- Legal pages ---- */
.legal-content {
  max-width: 780px;
  margin: 0 auto 64px;
  padding: 40px 48px;
}
.legal-content h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 32px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.legal-content h2:first-of-type { border-top: none; margin-top: 8px; padding-top: 0; }
.legal-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-content ul {
  padding-inline-start: 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-content li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-content a { color: var(--accent); text-underline-offset: 3px; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-updated {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px !important;
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 64px;
}
.contact-card {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  grid-column: span 1;
}
.contact-card:hover {
  border-color: rgba(77,204,255,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(77,204,255,0.08);
}
.contact-card--discord { border-color: rgba(88,101,242,0.3); }
.contact-card--discord:hover { border-color: #5865F2; box-shadow: 0 8px 32px rgba(88,101,242,0.15); }
.contact-card--email:hover { border-color: rgba(77,204,255,0.5); }
.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-card--discord .contact-card__icon { color: #5865F2; }
.contact-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 10px;
}
.contact-card__action {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.contact-card--discord .contact-card__action { color: #5865F2; }
.contact-info-card {
  grid-column: 1 / -1;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.contact-info-card__icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-info-card__body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.contact-info-card__body strong { color: var(--text); }

/* ---- Admin login ---- */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  width: 100%;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77,204,255,0.12);
}
.form-error {
  font-size: 13px;
  color: #ef4444;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
}

/* ---- Admin dashboard ---- */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.admin-sidebar__logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.admin-sidebar__nav { padding: 12px 0; flex: 1; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t), background var(--t);
  border-inline-start: 2px solid transparent;
}
.admin-nav-link:hover { color: var(--text); background: rgba(77,204,255,0.05); }
.admin-nav-link--active {
  color: var(--text);
  background: rgba(77,204,255,0.08);
  border-inline-start-color: var(--accent);
}
.admin-sidebar__logout {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.admin-main { padding: 32px; overflow-y: auto; }
.admin-page-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}
.admin-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.admin-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.admin-kpi__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.admin-kpi__value {
  font-size: 26px;
  font-weight: 800;
}
.admin-kpi__value.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: start;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 11px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.admin-table tr:last-child td { border-bottom: none; }

/* ---- Utilities ---- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}

/* ---- Responsive ---- */

/* Tablette (960px) */
@media (max-width: 960px) {
  .stats-banner__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-inline-end: none; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-inline-end: 1px solid var(--border); padding-inline-end: 24px; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .profile-grid { grid-template-columns: 1fr; }
  .stats-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-sidebar { position: static; max-height: none; overflow-y: visible; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { height: auto; position: static; flex-direction: row; flex-wrap: wrap; }
  .vote-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (640px) */
@media (max-width: 640px) {
  /* Nav */
  .nav__links { display: none; }
  .nav__links.nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 2px;
    z-index: 99;
  }
  .nav__mobile-toggle { display: flex; }

  /* Hero */
  .hero { padding: 44px 0 36px; }
  .hero__subtitle { font-size: 15px; margin-bottom: 28px; }
  .hero__actions .btn--lg { padding: 11px 22px; font-size: 15px; }

  /* Page header */
  .page-header { padding: 36px 0 28px; margin-bottom: 32px; }

  /* Sections */
  .stats-banner__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }

  /* Vote */
  .vote-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }

  /* Footer */
  .footer { padding: 40px 0 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__brand-desc { max-width: 100%; }

  /* Profile */
  .profile-search-section { margin-bottom: 36px; }
  .clan-meta { grid-template-columns: 1fr 1fr; }

  /* Updates */
  .changelog-entry { flex-direction: column; gap: 8px; }

  /* Tables : scroll horizontal */
  .lb-table-wrap,
  .card { overflow-x: auto; }

  /* Lang picker dropdown position */
  .lang-picker__menu { inset-inline-end: auto; inset-inline-start: 0; }

  /* Contact page */
  .contact-grid { grid-template-columns: 1fr; }

  /* Wiki - jobs grid */
  .wiki-job-grid { grid-template-columns: repeat(2, 1fr); }

  /* Custom items grid */
  .ci-grid { grid-template-columns: 1fr; }

  /* Wiki nav scroll */
  .ci-nav { flex-wrap: wrap; }
}

/* Petit mobile (480px) */
@media (max-width: 480px) {
  /* Conteneur plus serré */
  .container { padding-inline: 16px; }

  /* Hero */
  .hero { padding: 32px 0 28px; }
  .hero__eyebrow { font-size: 11px; }

  /* Boutons héro pleine largeur */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stat-item__value { font-size: 24px; }

  /* Page header compact */
  .page-header { padding: 28px 0 22px; margin-bottom: 24px; }

  /* Vote card footer */
  .vote-card__footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .vote-card__footer .btn { width: 100%; justify-content: center; }

  /* Search box : bouton en dessous */
  .search-box__input { padding-inline-end: 18px; padding-bottom: 58px; }
  .search-box__btn { inset-inline-end: 8px; top: auto; bottom: 8px; transform: none; }

  /* Admin KPIs : 2 colonnes */
  .admin-kpis { grid-template-columns: 1fr 1fr !important; }

  /* Footer bas */
  .footer__bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* Section spacing */
  .section { padding: 36px 0; }
}

/* ---- Clan card clickable ---- */
.clan-card-clickable {
  cursor: pointer;
  user-select: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.clan-card-clickable:hover {
  border-color: rgba(77,204,255,0.4);
  box-shadow: 0 4px 20px rgba(77,204,255,0.06);
}
.clan-card-clickable--open {
  border-color: rgba(77,204,255,0.35);
}
.clan-card-clickable--loading { opacity: 0.65; pointer-events: none; }
.clan-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.clan-card-chevron {
  color: var(--text-muted);
  margin-inline-start: auto;
  flex-shrink: 0;
  transition: transform var(--t);
}
.clan-card-clickable--open .clan-card-chevron { transform: rotate(180deg); }

/* ---- Clan module ---- */
.clan-module {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid rgba(77,204,255,0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  animation: fadeSlideDown 220ms ease;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.clan-module__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.clan-module__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.clan-module__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.clan-module__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.clan-module__sep { color: var(--border); }

.clan-module__members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.clan-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.clan-member:hover {
  border-color: var(--accent);
  background: rgba(77,204,255,0.04);
}
.clan-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.clan-member-name {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clan-member-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.clan-member-badge--owner {
  background: rgba(251,191,36,0.12);
  border-color: rgba(251,191,36,0.3);
  color: #fbbf24;
}
.clan-member-kills {
  margin-inline-start: auto;
  font-size: 10px;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}

/* Clan module - nouvelles sections */
.clan-module__motto {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}
.clan-war-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 20px;
  padding: 3px 10px;
  margin-inline-start: 8px;
  animation: pulse-war 2s ease-in-out infinite;
}
@keyframes pulse-war {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
.clan-module__stats {
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
  flex-wrap: wrap;
}
.clan-stat {
  flex: 1;
  min-width: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.clan-stat__value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.clan-stat__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.clan-active-war {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  flex-wrap: wrap;
}
.clan-active-war__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ef4444;
}
.clan-active-war__vs {
  font-size: 13px;
  color: var(--text-muted);
}
.clan-active-war__opponent {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.clan-active-war__score {
  margin-inline-start: auto;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.clan-active-war__score--win  { color: #22c55e; }
.clan-active-war__score--lose { color: #ef4444; }
.clan-active-war__cb {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
}
.clan-chips-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.clan-chips-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.clan-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
}
.clan-chip__tag {
  font-size: 10px;
  opacity: 0.7;
}
.clan-chip--ally {
  background: rgba(34,211,238,0.06);
  border-color: rgba(34,211,238,0.25);
  color: #22d3ee;
}
.clan-chip--sub {
  background: rgba(77,204,255,0.05);
  border-color: rgba(77,204,255,0.2);
  color: var(--accent);
}
.clan-chip--parent {
  background: rgba(251,191,36,0.06);
  border-color: rgba(251,191,36,0.2);
  color: #fbbf24;
}
.clan-module__members-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 16px 0 10px;
}

/* ---- Language picker ---- */
.lang-picker {
  position: relative;
}
.lang-picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
  white-space: nowrap;
  font-family: var(--font);
}
.lang-picker__btn:hover,
.lang-picker--open .lang-picker__btn {
  color: var(--text);
  border-color: var(--accent);
}
.lang-picker__chevron {
  transition: transform var(--t);
}
.lang-picker--open .lang-picker__chevron {
  transform: rotate(180deg);
}
.lang-picker__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  min-width: 160px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.lang-picker--open .lang-picker__menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-picker__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--t), color var(--t);
}
.lang-picker__opt:hover {
  background: var(--surface-2);
  color: var(--text);
}
.lang-picker__opt--active {
  color: var(--accent);
  background: rgba(77, 204, 255, 0.08);
}
.lang-picker__code {
  font-weight: 700;
  font-size: 12px;
  min-width: 24px;
}

/* ---- Custom Items page ---- */
.ci-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.ci-nav__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.ci-nav__btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(77,204,255,0.04);
}
.ci-nav__icon { font-size: 18px; line-height: 1; }

.ci-section { margin-bottom: 48px; }
.ci-section__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
}
.ci-section__icon { font-size: 26px; line-height: 1; }
.ci-section__name { font-size: 17px; font-weight: 700; color: var(--text); }
.ci-section__count {
  margin-inline-start: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}

.ci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.ci-card {
  background: var(--surface);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--t);
}
.ci-card:hover { background: var(--surface-2); }
.ci-card--legendary { background: rgba(251,191,36,0.025); }
.ci-card--legendary:hover { background: rgba(251,191,36,0.05); }

.ci-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ci-card__lvl {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.ci-card__lvl-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.ci-card__lvl-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.ci-card--legendary .ci-card__lvl { border-color: rgba(251,191,36,0.35); }
.ci-card--legendary .ci-card__lvl-num { color: #fbbf24; }

.ci-card__info { flex: 1; min-width: 0; }
.ci-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.ci-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ci-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.ci-tag--legendary {
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
}
.ci-tag--consumable {
  background: rgba(176,102,255,0.10);
  border: 1px solid rgba(176,102,255,0.25);
  color: #c084fc;
}
.ci-tag--armor {
  background: rgba(77,204,255,0.08);
  border: 1px solid rgba(77,204,255,0.2);
  color: var(--accent);
}
.ci-card__effect {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}
