/* ═══════════════════════════════════════════════════════════════════════════
   KatteCraft Modération — design system
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0c0e13;
  --bg-soft: #11141c;
  --panel: #161a24;
  --panel-2: #1b2030;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #e8eaf1;
  --muted: #8b91a7;
  --accent: #5b8cff;
  --accent-2: #8b5cf6;
  --grad-accent: linear-gradient(135deg, #5b8cff, #8b5cf6);
  --green: #34d399;
  --red: #f87171;
  --orange: #fbbf24;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --nav-h: 64px;
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

* { box-sizing: border-box; }

html { scrollbar-color: #333a4d var(--bg); }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

body::before {
  /* halos discrets en fond, fixes au scroll */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% -10%, rgba(91, 140, 255, 0.09), transparent 60%),
    radial-gradient(700px 500px at 110% 20%, rgba(139, 92, 246, 0.07), transparent 60%);
}

.hidden { display: none !important; }

a { color: var(--accent); text-decoration: none; }

::selection { background: rgba(91, 140, 255, 0.35); }

/* ── Animations réutilisables ─────────────────────────────────────────────── */

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  60%      { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.1); }
  66%      { transform: translate(-30px, 25px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Écran de connexion ───────────────────────────────────────────────────── */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.login-blobs span {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  animation: blob 14s ease-in-out infinite;
}
.login-blobs span:nth-child(1) { background: #5b8cff; top: -10%; left: 8%; }
.login-blobs span:nth-child(2) { background: #8b5cf6; bottom: -15%; right: 5%; animation-delay: -5s; }
.login-blobs span:nth-child(3) { background: #34d399; top: 45%; left: 55%; width: 300px; height: 300px; animation-delay: -9s; }

.login-card {
  position: relative;
  background: rgba(22, 26, 36, 0.85);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 44px 42px 30px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: popIn 0.5s var(--ease-spring) both;
}

.login-logo {
  font-size: 44px;
  margin-bottom: 6px;
  animation: floaty 4s ease-in-out infinite;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.login-card h1 span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-card p { color: var(--muted); margin: 0 0 26px; }

.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: #5865f2;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s, filter 0.18s;
}
.discord-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.35);
}
.discord-btn:active { transform: translateY(0) scale(0.98); }

.login-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px) 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: rgba(12, 14, 19, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  justify-self: start;
}
.brand-icon { font-size: 24px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-text small {
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Recherche unifiée, centrée */
.search-wrap { position: relative; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  height: 42px;
  transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
}
.search-wrap.focus .search-box {
  border-color: rgba(91, 140, 255, 0.6);
  background: var(--panel);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.14);
}
.search-icon { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.search-wrap.focus .search-icon { color: var(--accent); }

#search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  min-width: 0;
}
#search-input::placeholder { color: var(--muted); }

.search-kbd {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 2px 7px;
  background: var(--panel);
}

.search-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: 430px;
  overflow-y: auto;
  animation: popIn 0.18s var(--ease-spring) both;
}

.search-group {
  padding: 10px 14px 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.search-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.12s;
}
.search-item:hover, .search-item.selected { background: rgba(91, 140, 255, 0.1); }
.search-item .head {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  image-rendering: pixelated;
  background: var(--panel-2);
}
.search-item .clan-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}
.search-item .label { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item .sub { color: var(--muted); font-weight: 400; font-size: 12px; }
.search-empty { padding: 18px 14px; color: var(--muted); text-align: center; font-size: 13px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chip.banni { background: rgba(248, 113, 113, 0.14); color: var(--red); }
.chip.mute { background: rgba(251, 191, 36, 0.14); color: var(--orange); }
.chip.online { background: rgba(52, 211, 153, 0.13); color: var(--green); }
.chip.offline { background: rgba(139, 145, 167, 0.14); color: var(--muted); }
.chip.discord { background: rgba(88, 101, 242, 0.16); color: #a6b0f7; }
.chip.afk { background: rgba(251, 191, 36, 0.14); color: var(--orange); }
.chip.neutre { background: rgba(139, 145, 167, 0.12); color: var(--muted); }

/* Droite navbar */
.nav-right { display: flex; align-items: center; gap: 12px; justify-self: end; }

.server-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.3s;
}
.server-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.3s;
}
.server-pill.online { color: var(--text); }
.server-pill.online .dot { background: var(--green); animation: pulseDot 2s infinite; }
.server-pill.offline .dot { background: var(--red); }

.user-wrap { position: relative; }

.user-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px 5px 6px;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.user-pill:hover { border-color: var(--border-strong); background: var(--panel); }

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--panel-2);
  object-fit: cover;
}
.user-names { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.user-pseudo { font-weight: 700; font-size: 13px; }
.user-grade { font-size: 10.5px; color: var(--muted); }
.user-pill .chevron { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s; }
.user-wrap.open .chevron { transform: rotate(180deg); }

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 60;
  animation: popIn 0.18s var(--ease-spring) both;
}
.user-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.user-menu-item:hover { background: rgba(255, 255, 255, 0.05); }
/* Neutralise le style global button.danger (fond dégradé rouge) qui rendait
   le texte invisible sur le bouton "Se déconnecter". */
button.user-menu-item.danger { background: none; color: var(--red); }
button.user-menu-item.danger:hover { background: rgba(248, 113, 113, 0.1); box-shadow: none; filter: none; transform: none; }

/* ── Cloche de notifications (navbar) ─────────────────────────────────────── */

.notif-wrap { position: relative; }

.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.notif-bell svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }
.notif-bell:hover { border-color: var(--border-strong); background: var(--panel); color: var(--text); }
.notif-bell.a-des-non-lues { color: var(--accent); animation: notifShake 4s ease-in-out infinite; }

@keyframes notifShake {
  0%, 92%, 100% { transform: rotate(0); }
  93% { transform: rotate(-12deg); }
  94% { transform: rotate(10deg); }
  95% { transform: rotate(-8deg); }
  96% { transform: rotate(6deg); }
  97% { transform: rotate(0); }
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}

.notif-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 60;
  animation: popIn 0.18s var(--ease-spring) both;
}
.notif-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 800;
}
.notif-tout-lu {
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.notif-tout-lu:hover { text-decoration: underline; }
.notif-liste { max-height: 360px; overflow-y: auto; }
.notif-item {
  display: block;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
}
.notif-liste .notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255, 255, 255, 0.05); }
.notif-item.non-lue { background: rgba(91, 140, 255, 0.06); }
.notif-item.non-lue:hover { background: rgba(91, 140, 255, 0.1); }
.notif-item-titre { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.notif-item-msg { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.notif-item-date { font-size: 11px; color: var(--muted); margin-top: 4px; }
.notif-vide { padding: 26px 15px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ── Layout / sidebar ─────────────────────────────────────────────────────── */

.layout { display: flex; min-height: calc(100vh - var(--nav-h)); }

.sidebar {
  width: 208px;
  flex-shrink: 0;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
}
.sidebar-spacer { flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  position: relative;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); transform: translateX(2px); }
.nav-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(91, 140, 255, 0.14), rgba(139, 92, 246, 0.07));
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 3px;
  background: var(--grad-accent);
}
.nav-ico { font-size: 16px; }
.nav-count {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 99px;
  line-height: 1.5;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 26px 30px 60px;
  max-width: 1060px;
  margin: 0 auto;
}

/* Page Logs : filtre latéral + tableau ont besoin de plus de largeur. */
.content.content-wide { max-width: 1440px; }

/* ── Vues / entrées animées ───────────────────────────────────────────────── */

.view { animation: fadeSlideUp 0.35s ease both; }

.view-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 20px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.view-title .emoji { font-size: 24px; }
.view-title .count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
}

.stagger > * { animation: fadeSlideUp 0.4s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.07s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.17s; }
.stagger > *:nth-child(5) { animation-delay: 0.22s; }
.stagger > *:nth-child(6) { animation-delay: 0.27s; }

/* ── Panneaux / cartes ────────────────────────────────────────────────────── */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.panel > h2 {
  margin: 0 0 16px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}
.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.panel-head-row h2 { margin: 0; }

/* Cartes de stats (dashboard) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}
.stat-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.stat-ico.bleu { background: rgba(91, 140, 255, 0.14); }
.stat-ico.rouge { background: rgba(248, 113, 113, 0.12); }
.stat-ico.orange { background: rgba(251, 191, 36, 0.12); }
.stat-ico.vert { background: rgba(52, 211, 153, 0.12); }
.stat-ico.violet { background: rgba(139, 92, 246, 0.14); }
.stat-val { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 600; }

/* Carte serveur */
.server-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.server-status-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  background: var(--panel-2);
  flex-shrink: 0;
}
.server-main { flex: 1; min-width: 180px; }
.server-name { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.server-motd { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.online-list { display: flex; flex-wrap: wrap; gap: 7px; }
.online-player {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 5px 11px 5px 6px;
  border-radius: 99px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.15s, transform 0.15s;
}
.online-player:hover { border-color: var(--accent); transform: translateY(-1px); }
.online-player img { width: 20px; height: 20px; border-radius: 5px; image-rendering: pixelated; }

/* ── Fiche joueur ─────────────────────────────────────────────────────────── */

.player-header {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.player-head-img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  image-rendering: pixelated;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  animation: floaty 5s ease-in-out infinite;
}
.player-id { flex: 1; min-width: 220px; }
.player-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.player-uuid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-family: ui-monospace, monospace;
  cursor: pointer;
  margin-top: 3px;
  transition: color 0.15s;
}
.player-uuid:hover { color: var(--text); }

.badges { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.badge {
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}
.badge.online { background: rgba(52, 211, 153, 0.13); color: var(--green); }
.badge.offline { background: rgba(139, 145, 167, 0.12); color: var(--muted); }
.badge.warn { background: rgba(251, 191, 36, 0.13); color: var(--yellow, #fbbf24); }
.badge.muted { background: rgba(251, 191, 36, 0.13); color: var(--orange); }
.badge.banned { background: rgba(248, 113, 113, 0.13); color: var(--red); }
.badge.clan { background: rgba(251, 146, 60, 0.13); color: #fb923c; }
.badge.clan:hover { border-color: #fb923c; }
.badge.rang-roi { background: rgba(255, 196, 50, 0.14); color: #ffc432; }
.badge.rang-jarl { background: rgba(192, 192, 192, 0.14); color: #cfcfcf; }
.badge.rang-skarl { background: rgba(230, 230, 230, 0.1); color: #e6e6e6; }
.badge.rang-thrall { background: rgba(139, 145, 167, 0.12); color: var(--muted); }
.badge.pending { background: rgba(251, 191, 36, 0.13); color: var(--orange); }
.badge.resolved { background: rgba(52, 211, 153, 0.13); color: var(--green); }
.badge.linked { background: rgba(91, 140, 255, 0.13); color: var(--accent); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.info-cell {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 14px;
}
.info-cell .label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 3px;
}
.info-cell .value { font-weight: 600; font-size: 13.5px; }

/* ── Récapitulatif : colonne principale (live) + colonne latérale (petites cards) ── */
.recap-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: start;
}
.recap-principal { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.recap-side { display: flex; flex-direction: column; gap: 14px; }
.recap-carte { padding: 16px 18px; }
.recap-carte h3 { margin: 0 0 12px; font-size: 13.5px; }
.recap-ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.recap-ligne:last-child { border-bottom: none; padding-bottom: 0; }
.recap-ligne .label { color: var(--muted); font-weight: 600; flex-shrink: 0; }
.recap-ligne .value { font-weight: 600; text-align: right; }
.recap-ligne.empilee { flex-direction: column; align-items: flex-start; }
.recap-ligne.empilee .value { text-align: left; }
.uuid-mini {
  font-size: 11px;
  font-family: ui-monospace, monospace;
  cursor: pointer;
  color: var(--muted);
}
.uuid-mini:hover { color: var(--text); }

@media (max-width: 900px) {
  .recap-layout { grid-template-columns: 1fr; }
}

.actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }

.badge.frozen { background: rgba(91, 140, 255, 0.15); color: #7aa2ff; }

/* Menu « Plus » de la fiche joueur : poussé à droite du header. */
.player-plus { margin-left: auto; align-self: flex-start; }

/* ── Card « Action rapide » ───────────────────────────────────────────────── */

.action-rapide-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.action-rapide-head h2 { margin: 0; font-size: 16px; }
.action-rapide-head .td-muted { font-size: 12px; }
.panel.action-rapide { padding: 16px 18px; }

.action-rapide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}
.qa {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s, background 0.15s;
}
.qa:hover { transform: translateY(-2px); }
.qa .qa-ico { font-size: 21px; line-height: 1; }
.qa .qa-lbl { font-size: 12.5px; font-weight: 700; }
.qa-mute:hover { border-color: var(--orange); background: rgba(251, 191, 36, 0.08); }
.qa-ban:hover { border-color: var(--red); background: rgba(248, 113, 113, 0.08); }
.qa-warn:hover { border-color: var(--orange); background: rgba(251, 191, 36, 0.08); }
.qa-tp:hover { border-color: var(--accent); background: rgba(91, 140, 255, 0.08); }
.qa-secondary:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.05); }
.qa-tp-wrap { width: 100%; }
.qa-tp-wrap .qa-tp { width: 100%; }

/* ── Config des rôles Discord par grade (Administration) ──────────────────── */

.role-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.role-config-row { display: flex; align-items: center; gap: 10px; }
.role-config-row .grade-tag { flex-shrink: 0; min-width: 92px; text-align: center; }
.role-input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.role-input:focus { outline: none; border-color: var(--accent); }

/* ── Remboursement ────────────────────────────────────────────────────────── */

.remb-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 18px;
  align-items: start;
}
.remb-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 14px 0 6px;
}
/* Seul le tout premier label du formulaire (juste après l'intro) n'a pas de
   marge haute — :first-of-type seul matchait aussi le 1er label de CHAQUE
   bloc imbriqué (remb-champs-money/item), collant leur contenu au bloc au-dessus. */
.remb-form > p + label { margin-top: 0; }
.remb-form input {
  width: 100%;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
}
.remb-form input:focus { outline: none; border-color: var(--accent); }
.remb-joueur-row { display: flex; gap: 8px; }
.remb-joueur-row input { flex: 1; }
.remb-joueur-row button { flex-shrink: 0; }
.remb-solde { font-size: 12.5px; margin-top: 8px; min-height: 16px; }
.remb-toggle { display: flex; gap: 8px; }
.remb-champs { margin-top: 14px; }
.remb-item-row {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px;
  margin-bottom: 8px;
}
.remb-item-main { display: flex; align-items: center; gap: 8px; }
.remb-item-nom-wrap { position: relative; flex: 1; min-width: 0; }
/* Spécificité renforcée (2 classes) : sans ça, ".remb-form input" (1 classe +
   1 élément, spécificité supérieure) impose width:100% malgré cette règle,
   la quantité s'étire alors sur toute la ligne et écrase le champ item. */
.remb-item-row .remb-item-qte { width: 90px; flex-shrink: 0; }
.remb-item-row .icon-btn { flex-shrink: 0; }
.remb-item-drop { max-height: 220px; }
.remb-item-trad { font-size: 11.5px; margin-top: 6px; padding-left: 2px; }

.remb-ench-list { margin-top: 8px; }
.remb-ench-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.remb-ench-nom-wrap { position: relative; flex: 1; min-width: 0; }
.remb-ench-row .remb-ench-niveau { width: 64px; flex-shrink: 0; }
.remb-ench-row .icon-btn { flex-shrink: 0; }
.remb-ench-drop { max-height: 200px; }
.remb-ench-ajouter { margin-top: 4px; font-size: 12px; padding: 6px 11px; }
.remb-chip {
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.remb-chip:hover { color: var(--text); }
.remb-chip.active { border-color: var(--accent); background: rgba(91, 140, 255, 0.12); color: var(--text); }

/* Historique : colonnes fixes pour que la Raison (flexible) ne soit plus écrasée
   par la colonne Action, et que tout reste lisible sur toute la largeur. */
.remb-table { table-layout: fixed; width: 100%; }
.remb-table th, .remb-table td { padding: 11px 12px; vertical-align: top; }
.remb-table .col-date { width: 108px; }
.remb-table .col-staff { width: 130px; }
.remb-table .col-joueur { width: 150px; }
.remb-table .col-action { width: 190px; }
.remb-table .col-ticket { width: 84px; }
/* col-raison n'a pas de largeur → prend tout l'espace restant. */
.remb-table td { word-break: break-word; }
.remb-action { font-weight: 700; line-height: 1.4; }
.remb-action.remb-add { color: var(--green); }
.remb-action.remb-remove { color: var(--red); }
.remb-raison { color: var(--text); line-height: 1.5; }
.remb-table .log-date { color: var(--muted); }
.remb-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

@media (max-width: 860px) {
  .remb-layout { grid-template-columns: 1fr; }
  .remb-table { table-layout: auto; }
}

/* ── Boutons ──────────────────────────────────────────────────────────────── */

button, .btn {
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  color: #fff;
  background: var(--grad-accent);
  transition: transform 0.16s var(--ease-spring), box-shadow 0.16s, filter 0.16s;
}
button:hover, .btn:hover { transform: translateY(-1.5px); filter: brightness(1.1); box-shadow: 0 8px 18px rgba(91, 140, 255, 0.25); }
button:active, .btn:active { transform: translateY(0) scale(0.97); }
button.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--border-strong); }
button.secondary:hover { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); }
button.danger { background: linear-gradient(135deg, #f87171, #ef4444); }
button.danger:hover { box-shadow: 0 8px 18px rgba(248, 113, 113, 0.3); }
button.warn { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #241a02; }
button.warn:hover { box-shadow: 0 8px 18px rgba(251, 191, 36, 0.25); }

.icon-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}
.icon-btn:hover { color: var(--red); background: rgba(248, 113, 113, 0.1); transform: none; box-shadow: none; filter: none; }

/* ── Tableaux ─────────────────────────────────────────────────────────────── */

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-bottom: 1px solid var(--border-strong);
}
td { padding: 10px; border-bottom: 1px solid var(--border); }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
tbody tr:last-child td { border-bottom: none; }
td a { font-weight: 600; }
td a:hover { text-decoration: underline; }
.td-muted { color: var(--muted); }
.td-empty { color: var(--muted); text-align: center; padding: 22px !important; }

.type-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.type-chip.BAN { background: rgba(248, 113, 113, 0.13); color: var(--red); }
.type-chip.MUTE { background: rgba(251, 191, 36, 0.13); color: var(--orange); }
.type-chip.WARN { background: rgba(251, 191, 36, 0.13); color: var(--orange); }

.status-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid;
}
.status-badge.yes { color: var(--green); border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.08); }
.status-badge.no { color: var(--muted); border-color: var(--border-strong); background: none; }

.mini-head { width: 22px; height: 22px; border-radius: 5px; image-rendering: pixelated; vertical-align: -5px; margin-right: 8px; }

/* ── Onglets (fiche joueur) ───────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px 12px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  border-radius: 10px 10px 0 0;
  transition: color 0.15s, background 0.15s;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.tab.active { color: var(--text); }
.tab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--grad-accent);
  animation: fadeIn 0.25s ease both;
}
.tab-count {
  font-size: 10.5px;
  font-weight: 700;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 1px 8px;
  color: var(--muted);
}
.tab.active .tab-count { color: var(--text); border-color: var(--border-strong); }

/* Les onglets-filtres des signalements sont des <button> : on annule le style
   global des boutons (fond dégradé, relief au survol). */
button.tab { background: none; border: none; cursor: pointer; font-family: inherit; }
button.tab:hover { transform: none; box-shadow: none; filter: none; background: rgba(255, 255, 255, 0.03); }

/* Pagination (signalements) */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pagination-info { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

/* Rôle staff (ou "Joueur") affiché avant le pseudo */
.player-role { margin-right: 10px; vertical-align: 4px; }
.player-role.none {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(139, 145, 167, 0.12);
  color: var(--muted);
}

/* ── Casier (cards) ───────────────────────────────────────────────────────── */

.casier-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.casier-liste { display: flex; flex-direction: column; gap: 14px; }
.casier-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s var(--ease-spring), border-color 0.18s, box-shadow 0.18s;
}
.casier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  border-color: var(--border-strong);
}
/* Bandeau supérieur coloré : porte le type de l'entrée. */
.casier-band {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
}
.casier-type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.casier-suppr { margin-left: auto; }

.casier-card.warn .casier-band { background: rgba(251, 191, 36, 0.10); }
.casier-card.warn .casier-type { color: var(--orange); }
.casier-card.info .casier-band { background: rgba(91, 140, 255, 0.10); }
.casier-card.info .casier-type { color: var(--accent); }
.casier-card.note .casier-band { background: rgba(214, 110, 229, 0.12); }
.casier-card.note .casier-type { color: #d66ee5; }
.casier-card.ban  .casier-band { background: rgba(248, 113, 113, 0.10); }
.casier-card.ban  .casier-type { color: var(--red); }
.casier-card.mute .casier-band { background: rgba(234, 179, 8, 0.10); }
.casier-card.mute .casier-type { color: #eab308; }

.casier-corps { padding: 14px 16px; }
.casier-texte { font-size: 14.5px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.casier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
.casier-meta strong { color: var(--text); font-weight: 700; }
.type-chip.INFO { background: rgba(91, 140, 255, 0.13); color: var(--accent); }

/* ── Logs : filtre latéral + badges de catégorie ─────────────────────────── */

/* Barre de filtres horizontale (pleine largeur), au-dessus des résultats. */
.logs-barre { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.logs-barre-section { display: flex; flex-direction: column; gap: 9px; }
.logs-barre-titre {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
}

/* Chips de catégories « à cocher » (multi-sélection, appliquée instantanément). */
.logs-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.cat-chip:hover { color: var(--text); border-color: var(--border-strong); }
.cat-chip .cat-chip-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--cat-color, var(--muted)); opacity: 0.55;
}
.cat-chip .cat-chip-check { display: none; font-size: 12px; }
.cat-chip.active {
  color: var(--cat-color, var(--text));
  border-color: color-mix(in srgb, var(--cat-color, var(--accent)) 55%, transparent);
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 13%, transparent);
}
.cat-chip.active .cat-chip-dot { opacity: 1; box-shadow: 0 0 7px var(--cat-color, transparent); }
.cat-chip.active .cat-chip-check { display: inline; }
.cat-chip.cat-toutes.active { color: var(--text); border-color: var(--border-strong); background: var(--panel-2); }

/* Rangée joueur / dates / raccourcis. */
.logs-champ-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.logs-champ { display: flex; flex-direction: column; gap: 6px; }
.logs-champ label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
}
.logs-champ input {
  padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  font: inherit; font-size: 13.5px;
}
.logs-champ input:focus { outline: none; border-color: var(--accent); }
.logs-champ-joueur { flex: 1; min-width: 220px; }
.logs-champ-joueur input { width: 100%; }
.logs-presets { display: flex; gap: 6px; }
.preset-chip {
  padding: 8px 13px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.preset-chip:hover { color: var(--text); border-color: var(--accent); }
.logs-reset { margin-left: auto; }
.badge-cat {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
  color: var(--cat-color); background: color-mix(in srgb, var(--cat-color) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color) 35%, transparent);
}

/* Table de logs : lisibilité (détails en texte plein, dates discrètes, aération). */
.log-table { table-layout: fixed; width: 100%; }
.log-table th, .log-table td { padding: 11px 12px; vertical-align: top; }
.log-table th:nth-child(2), .log-table td:nth-child(2) { width: 118px; }
.log-table th:nth-child(1), .log-table td:nth-child(1) { width: 128px; }
.log-table th:nth-child(3), .log-table td:nth-child(3),
.log-table th:nth-child(4), .log-table td:nth-child(4) { width: 150px; }
.log-table th:nth-child(6), .log-table td:nth-child(6) { width: 110px; }
.log-date { color: var(--muted); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.log-banque { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.log-details { color: var(--text); line-height: 1.5; word-break: break-word; }
.log-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

@media (max-width: 860px) {
  .log-table { table-layout: auto; }
  .logs-reset { margin-left: 0; }
}

/* ── Inventaire live (modale, icônes api.minecraftitems.xyz) ──────────────── */

.modal.modal-inv { max-width: 560px; width: 100%; }

/* ── Banlist des tickets (modale) ────────────────────────────────────────── */

.modal.modal-large { max-width: 640px; width: 100%; }
.banlist-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.banlist-table th {
  text-align: left; padding: 8px 10px; color: var(--muted); font-weight: 700;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-strong);
}
.banlist-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.banlist-table tbody tr:last-child td { border-bottom: none; }
.inv-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  max-height: 46vh;
  overflow-y: auto;
  margin-top: 6px;
  padding: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.inv-slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}
.inv-slot:hover { transform: scale(1.08); border-color: var(--accent); background: rgba(91, 140, 255, 0.1); z-index: 2; }
.inv-slot.enchanted { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.08); }
/*
 * Tooltip au survol (nom custom + enchantements) : un unique élément flottant
 * géré en JS (position:fixed), pas un ::after positionné dans .inv-slot.
 * .inv-grid défile (overflow-y:auto) : tout descendant positionné qui dépasse
 * cette boîte est ROGNÉ par le navigateur, quel que soit son z-index — c'est
 * une limite du clipping CSS, pas un simple réglage d'empilement. Un élément
 * position:fixed, lui, échappe entièrement au clipping de ses ancêtres.
 */
.inv-tooltip-flottant {
  position: fixed;
  transform: translate(-50%, -100%);
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-line;
  text-align: center;
  width: max-content;
  max-width: 220px;
  box-shadow: var(--shadow);
  z-index: 110;
  pointer-events: none;
  animation: popIn 0.12s var(--ease-spring) both;
}
.inv-tooltip-flottant.hidden { display: none; }
.inv-icon { width: 82%; height: 82%; image-rendering: pixelated; object-fit: contain; }
/* Item sans icône trouvée : petit bloc de repli neutre. */
.inv-icon-fallback { width: 60%; height: 60%; background: linear-gradient(135deg, #3a3f4d, #262a36); border-radius: 4px; }
.inv-amount {
  position: absolute;
  right: 2px;
  bottom: 0;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.9);
  pointer-events: none;
}
.inv-legende { font-size: 11.5px; margin-top: 10px; text-align: center; }

.inv-armure-titre {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 6px;
}
.inv-armure-row {
  display: flex;
  gap: 6px;
  padding: 10px;
  margin-bottom: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.inv-armure-row .equip-slot { width: 46px; height: 46px; }

@media (max-width: 560px) {
  .inv-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ── Fiche joueur : état en jeu (live) ────────────────────────────────────── */

.live-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 22px;
  align-items: start;
}
.paperdoll {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  gap: 12px;
  justify-content: center;
  align-items: start;
  padding: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.paperdoll-body {
  grid-row: 1 / span 2;
  height: 150px;
  width: auto;
  image-rendering: pixelated;
  align-self: center;
}
.equip-colonne { display: flex; flex-direction: column; gap: 7px; }
.equip-mains { grid-column: 2; display: flex; gap: 7px; }
.equip-slot {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.equip-slot.vide { opacity: 0.4; }
.equip-slot-emoji { font-size: 18px; filter: grayscale(1); }
.equip-slot.enchanted { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.08); }
.equip-slot:hover { border-color: var(--accent); z-index: 2; }

.live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.live-cell {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 14px;
}
.live-cell.large { grid-column: span 2; }
.live-cell.full { grid-column: 1 / -1; }
.live-cell .label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 4px;
}
.live-cell .value { font-weight: 600; font-size: 14px; }
.live-cell .value.coords { cursor: pointer; font-family: ui-monospace, monospace; }
.live-cell .value.coords:hover { color: var(--accent); }
.abso-tag { color: var(--orange); font-size: 9px; font-weight: 800; }
.abso-val { color: var(--orange); font-weight: 700; font-size: 12.5px; }
.armure-icones { font-size: 15px; letter-spacing: 1px; line-height: 1.4; margin: 4px 0; }

/* ── Onglet Spy ───────────────────────────────────────────────────────────── */
.spy-avertissement {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--orange);
  background: rgba(251, 191, 36, 0.09);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 10px;
  padding: 11px 14px;
}
.spy-ip { cursor: pointer; }
.spy-ip:hover { color: var(--accent); }
.ping-bon { color: var(--green); }
.ping-moyen { color: var(--orange); }
.ping-mauvais { color: var(--red); }

/* Barres vie / faim / absorption (réutilise .hp-bar de base) */
.hp-bar.vie { position: relative; height: 12px; }
.hp-bar.vie > div { background: linear-gradient(90deg, #f87171, #ef4444); }
.hp-bar.vie .hp-abso {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: repeating-linear-gradient(45deg, #fbbf24, #fbbf24 4px, #f59e0b 4px, #f59e0b 8px);
  opacity: 0.9;
}
.hp-bar.faim { height: 12px; }
.hp-bar.faim > div { background: linear-gradient(90deg, #d0a15f, #a9713b); }

.effets-liste { display: flex; flex-wrap: wrap; gap: 7px; }
.effet-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.12);
  color: #b39df5;
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.effet-chip .effet-duree { color: var(--muted); font-weight: 500; margin-left: 3px; }

@media (max-width: 760px) {
  .live-layout { grid-template-columns: 1fr; }
  .paperdoll { justify-content: start; }
}

/* ── Permissions (Administration) ─────────────────────────────────────────── */

.perm-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 11px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.perm-scroll { overflow-x: auto; }
.perm-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.perm-table th {
  text-align: left;
  padding: 9px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
}
.perm-table th.perm-col { text-align: center; }
.perm-table th.grade-fondateur { color: var(--red); }
.perm-table th.grade-admin { color: #d66ee5; }
.perm-table th.grade-moderateur { color: var(--accent); }
.perm-table th.grade-support { color: var(--green); }
.perm-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.perm-cat-row td {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  background: var(--bg-soft);
  padding: 8px 12px;
}
.perm-libelle { font-weight: 600; font-size: 13.5px; }
.perm-cle {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 1px 7px;
  border-radius: 5px;
}
.perm-col { text-align: center; width: 96px; }

/* Case à cocher stylée */
.perm-check { display: inline-flex; cursor: pointer; }
.perm-check.lock { cursor: not-allowed; }
.perm-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.perm-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-soft);
  display: inline-block;
  position: relative;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.perm-check:hover .perm-box { border-color: var(--accent); }
.perm-check input:checked + .perm-box {
  background: var(--grad-accent);
  border-color: transparent;
}
.perm-check input:checked + .perm-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.perm-check.lock .perm-box { opacity: 0.75; }
.perm-check input:disabled:checked + .perm-box { background: linear-gradient(135deg, #6b7280, #4b5563); }

.lim-select {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 6px 8px;
  border-radius: 8px;
  font: inherit;
  font-size: 12.5px;
  outline: none;
  width: 100%;
}
.lim-select:focus { border-color: var(--accent); }

/* Bouton "⋮ Plus" des actions joueur (aligné sur les autres boutons d'action) */
.kebab-plus { font-weight: 600; }

/* ── Événements ───────────────────────────────────────────────────────────── */

.event-card { display: flex; flex-direction: column; gap: 16px; }
.event-head { display: flex; align-items: center; gap: 16px; }
.event-ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.event-ico.actif {
  border-color: rgba(91, 140, 255, 0.5);
  background: rgba(91, 140, 255, 0.1);
  animation: floaty 3s ease-in-out infinite;
}
.event-titre { flex: 1; min-width: 0; }
.event-nom { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.event-sous { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.event-timer {
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 13.5px;
}
.event-timer strong { color: var(--accent); }
.event-force {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.event-force input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.event-force input:disabled { cursor: not-allowed; }
button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

/* ── Numéros de série / anti-duplication ──────────────────────────────────── */

.serie-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.serie-badge {
  font-family: ui-monospace, monospace;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--accent);
  background: rgba(91, 140, 255, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}
.serie-ok {
  color: var(--green);
  font-weight: 600;
  text-align: center;
  border-color: rgba(52, 211, 153, 0.4);
}
.alert-dup { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.05); }
.alert-dup-head {
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 14px;
}
.dup-list { display: flex; flex-direction: column; gap: 12px; }
.dup-card {
  background: var(--bg-soft);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-left: 3px solid var(--red);
  border-radius: 11px;
  padding: 12px 15px;
}
.dup-titre { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.serie-locs { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.serie-loc {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.serie-loc::before { content: "📍 "; }
.serie-loc.player, .serie-loc.player-offline { border-left: 2px solid var(--accent); }
.serie-loc.container { border-left: 2px solid var(--orange); }
.serie-loc.container::before { content: "📦 "; }
.serie-loc.player-offline::before { content: "💤 "; }
.ligne-dup { background: rgba(248, 113, 113, 0.06); }

/* ── Gestion clan (ajout membre) ──────────────────────────────────────────── */

.clan-add-membre { display: flex; gap: 8px; margin-top: 14px; }
.clan-add-membre input {
  flex: 1; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
}

/* ── Menu kebab (⋮) ───────────────────────────────────────────────────────── */

.kebab-wrap { position: relative; }
.kebab-btn { font-size: 17px; font-weight: 800; padding: 4px 10px; }
.kebab-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
/* Une ligne de staff dont le menu ⋮ est ouvert passe au-dessus des lignes
   suivantes (sinon leur contenu recouvre le menu déroulant). */
.staff-row:has(.kebab-menu:not(.hidden)) { position: relative; z-index: 5; }
.kebab-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 185px;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 70;
  animation: popIn 0.16s var(--ease-spring) both;
}
.kebab-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.kebab-item:hover { background: rgba(255, 255, 255, 0.06); transform: none; box-shadow: none; filter: none; }
/* Neutralise le style global button.danger (fond dégradé rouge) dans le menu. */
button.kebab-item.danger { background: none; color: var(--red); }
button.kebab-item.danger:hover { background: rgba(248, 113, 113, 0.1); box-shadow: none; }

.modal textarea {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 13px;
  border-radius: 10px;
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.2s;
}
.modal textarea:focus {
  border-color: rgba(91, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.12);
}

/* ── Page clan ────────────────────────────────────────────────────────────── */

.clan-header { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.clan-ico-lg {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.25);
  animation: floaty 5s ease-in-out infinite;
}
.clan-name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

/* ── Statut & protections de clan ── */
.clan-statut { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.clan-razzia, .clan-prot {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700;
  border: 1px solid transparent;
}
.clan-razzia.loading, .clan-razzia.offline { background: rgba(148,163,184,.12); color: #94a3b8; border-color: rgba(148,163,184,.25); }
.clan-razzia.calme  { background: rgba(52,211,153,.12); color: #34d399; border-color: rgba(52,211,153,.3); }
.clan-razzia.active { background: rgba(239,68,68,.15); color: #f87171; border-color: rgba(239,68,68,.4);
  animation: pulseRazzia 1.6s ease-in-out infinite; }
@keyframes pulseRazzia { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); } 50% { box-shadow: 0 0 0 5px rgba(239,68,68,0); } }
.clan-prot.fondation { background: rgba(96,165,250,.13); color: #60a5fa; border-color: rgba(96,165,250,.3); }
.clan-prot.defense   { background: rgba(167,139,250,.13); color: #a78bfa; border-color: rgba(167,139,250,.3); }
.clan-prot.treve     { background: rgba(251,191,36,.13); color: #fbbf24; border-color: rgba(251,191,36,.3); }

/* ── Boutons d'action de clan ── */
.clan-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Journaux de clan ── */
.clan-logs-liste { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; }
.clan-log {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 10px; font-size: 13px;
}
.clan-log:nth-child(odd) { background: rgba(148,163,184,.05); }
.clan-log-cat {
  justify-self: start; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
  background: rgba(148,163,184,.15); color: #94a3b8;
}
.clan-log-cat.cat-clan       { background: rgba(251,146,60,.15); color: #fb923c; }
.clan-log-cat.cat-moderation { background: rgba(239,68,68,.13); color: #f87171; }
.clan-log-cat.cat-economie   { background: rgba(52,211,153,.13); color: #34d399; }
.clan-log-msg { color: var(--texte, #e2e8f0); }
.clan-log-date { color: #64748b; font-size: 12px; white-space: nowrap; }

.hp-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 6px;
}
.hp-bar > div {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #34d399, #10b981);
  transition: width 0.8s var(--ease-spring);
}

.role-chip {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.role-chip.chef { background: rgba(255, 196, 50, 0.14); color: #ffc432; }
.role-chip.officier { background: rgba(91, 140, 255, 0.13); color: var(--accent); }
.role-chip.membre { background: rgba(139, 145, 167, 0.12); color: var(--muted); }

/* ── Staff ────────────────────────────────────────────────────────────────── */

.staff-grid { display: flex; flex-direction: column; gap: 10px; }
.staff-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.15s, transform 0.15s;
}
.staff-row:hover { border-color: var(--border-strong); transform: translateX(3px); }
.staff-grade-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.staff-grade-dot.fondateur { background: var(--red); }
.staff-grade-dot.admin { background: #d66ee5; }
.staff-grade-dot.moderateur { background: var(--accent); }
.staff-grade-dot.support { background: var(--green); }
.staff-main { flex: 1; min-width: 0; }
.staff-pseudo { font-weight: 700; }
.staff-sub { color: var(--muted); font-size: 12px; }

.staff-form { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.staff-form input, .staff-form select, .modal input, .modal select, .modal textarea, .chat-compose textarea {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 13px;
  border-radius: 10px;
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.2s;
}
.staff-form input { flex: 1; min-width: 180px; }
.staff-form input:focus, .modal input:focus, .modal select:focus, .modal textarea:focus, .chat-compose textarea:focus {
  border-color: rgba(91, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.12);
}
.modal textarea, .chat-compose textarea { width: 100%; resize: vertical; }
.modal textarea { min-height: 78px; }

.grade-tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.grade-tag.fondateur { background: rgba(248, 113, 113, 0.13); color: var(--red); }
.grade-tag.admin { background: rgba(214, 110, 229, 0.13); color: #d66ee5; }
.grade-tag.moderateur { background: rgba(91, 140, 255, 0.13); color: var(--accent); }
.grade-tag.support { background: rgba(52, 211, 153, 0.13); color: var(--green); }

/* ── Signalements ─────────────────────────────────────────────────────────── */

.report-list { display: flex; flex-direction: column; gap: 10px; }
.report-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.report-row:hover { border-color: var(--border-strong); transform: translateX(3px); }
.report-row .mini-head { width: 36px; height: 36px; border-radius: 8px; margin-top: 2px; margin-right: 0; }
.report-main { flex: 1; min-width: 0; }
.report-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.report-nom { font-weight: 700; }
.report-msg { font-size: 13.5px; color: var(--text); }
.report-row .icon-btn { border: 1px solid var(--border-strong); font-size: 15px; margin-top: 2px; }

/* ── Signalement — panneau latéral (fil de discussion) ───────────────────── */

.side-panel-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 95;
  background: rgba(5, 6, 10, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.18s ease both;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.side-panel {
  width: min(440px, 100%);
  height: 100%;
  background: var(--panel);
  border-left: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.28s var(--ease-spring) both;
}
.side-panel-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.side-panel-head .mini-head { width: 40px; height: 40px; border-radius: 9px; margin-right: 0; }
.side-panel-head-main { flex: 1; min-width: 0; }
.side-panel-head-main .nom { font-weight: 800; font-size: 15.5px; margin-bottom: 4px; }
.side-panel-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.side-panel-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: none; transform: none; filter: none; }

.side-panel-actions { display: flex; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.side-panel-actions button { font-size: 12.5px; padding: 7px 12px; }

.chat-thread { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-bubble { max-width: 88%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.chat-bubble.player { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.chat-bubble.staff { align-self: flex-end; background: var(--grad-accent); color: #fff; border-bottom-right-radius: 3px; }
.chat-bubble .meta {
  display: block;
  font-size: 10px;
  opacity: 0.75;
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chat-compose { border-top: 1px solid var(--border); padding: 14px 20px; }
.chat-compose textarea { min-height: 60px; margin-bottom: 10px; }
.chat-compose-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat-anon-toggle { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.chat-anon-toggle input { accent-color: var(--accent); }

/* ── Tickets ──────────────────────────────────────────────────────────────── */

/* Badges de catégorie */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.cat-badge.ban         { background: rgba(248, 113, 113, 0.14); color: var(--red); }
.cat-badge.deban       { background: rgba(52, 211, 153, 0.14); color: var(--green); }
.cat-badge.candidature { background: rgba(139, 92, 246, 0.16); color: #a78bfa; }
.cat-badge.suggestion  { background: rgba(251, 191, 36, 0.14); color: var(--orange); }
.cat-badge.ticket      { background: rgba(91, 140, 255, 0.14); color: var(--accent); }

/* Filtres par catégorie */
.cat-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cat-chip {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}
.cat-chip:hover { color: var(--text); transform: translateY(-1px); box-shadow: none; filter: none; }
.cat-chip.active { color: var(--text); border-color: transparent; background: rgba(91, 140, 255, 0.16); }
.cat-chip.ban.active         { background: rgba(248, 113, 113, 0.18); color: var(--red); }
.cat-chip.deban.active       { background: rgba(52, 211, 153, 0.18); color: var(--green); }
.cat-chip.candidature.active { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.cat-chip.suggestion.active  { background: rgba(251, 191, 36, 0.18); color: var(--orange); }
.cat-chip.ticket.active      { background: rgba(91, 140, 255, 0.18); color: var(--accent); }

/* Liste des tickets */
.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.ticket-row:hover { border-color: var(--border-strong); transform: translateX(3px); }
.ticket-id {
  font-family: ui-monospace, monospace;
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 52px;
}
.ticket-main { flex: 1; min-width: 0; }
.ticket-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ticket-joueur { font-weight: 700; }
.ticket-assign { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.assign-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(91, 140, 255, 0.13);
  color: var(--accent);
}

/* Grand chat d'un ticket */
.ticket-vue { display: flex; flex-direction: column; height: calc(100vh - var(--nav-h) - 52px); }
.ticket-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  flex-wrap: wrap;
}
.btn-retour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 17px;
  flex-shrink: 0;
}
.btn-retour:hover { background: var(--panel-2); }
.ticket-id-lg { font-family: ui-monospace, monospace; font-weight: 800; font-size: 17px; color: var(--accent); }
.ticket-head-joueur { display: flex; align-items: center; gap: 8px; }
.ticket-head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ticket-assignes {
  padding: 8px 18px;
  background: var(--panel);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.ticket-thread {
  flex: 1;
  overflow-y: auto;
  background: var(--panel);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ticket-vue .chat-compose {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}
.ticket-ferme-banner {
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Profil ───────────────────────────────────────────────────────────────── */

.profil-header { display: flex; align-items: center; gap: 18px; }
.profil-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: var(--grad-accent) border-box;
  padding: 2px;
}
.masque { filter: blur(5px); user-select: none; transition: filter 0.2s; }

.link-account { display: flex; align-items: center; gap: 12px; }
.link-account .mini-head { width: 36px; height: 36px; border-radius: 8px; margin-right: 0; }
.link-code-box { text-align: center; padding: 6px 0; }
.link-code {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 18px;
}
.badge.session-courante {
  background: rgba(52, 211, 153, 0.13);
  color: var(--green);
  font-size: 9.5px;
  margin-left: 8px;
  padding: 2px 8px;
}

/* ── Modales ──────────────────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 6, 10, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s ease both;
}
.modal {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
  animation: popIn 0.24s var(--ease-spring) both;
}
.modal h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.modal .modal-sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.modal label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 13px 0 5px;
}
.modal input, .modal select { width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }

/* ── Toasts ───────────────────────────────────────────────────────────────── */

#toast-root {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--panel-2);
  box-shadow: var(--shadow);
  animation: popIn 0.28s var(--ease-spring) both;
  position: relative;
  overflow: hidden;
}
.toast.sortie { transition: opacity 0.25s, transform 0.25s; opacity: 0; transform: translateX(30px); }
.toast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: 100%;
  transform-origin: left;
  animation: toastBar 4s linear forwards;
}
.toast.success::after { background: var(--green); }
.toast.error::after { background: var(--red); }
.toast .t-ico { font-size: 16px; }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ── Skeletons ────────────────────────────────────────────────────────────── */

.skeleton {
  border-radius: 10px;
  background: linear-gradient(100deg, var(--panel) 40%, var(--panel-2) 50%, var(--panel) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .navbar { grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 12px; }
  .brand-text { display: none; }
  .search-kbd, .server-pill-text { display: none; }
  .user-names { display: none; }
  .sidebar { width: 60px; padding: 12px 6px; }
  .nav-item { justify-content: center; padding: 12px 8px; }
  .nav-item .nav-ico { font-size: 18px; }
  .nav-item { font-size: 0; gap: 0; }
  .content { padding: 18px 14px 50px; }
}

/* ── Paris (PolyMarket) ──────────────────────────────────────────────────── */

.badge.neutre { background: rgba(139, 145, 167, 0.12); color: var(--muted); }

.back-link {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}
.back-link:hover { color: var(--text); }

.bet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px;
}

.bet-section-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.bet-options { display: flex; flex-direction: column; gap: 10px; }

.bet-option {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--panel-2);
  transition: border-color 0.15s;
}
.bet-option.gagnante {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.06);
}

.bet-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.bet-option-lib { font-weight: 600; }

.bet-win-btn {
  background: var(--grad-accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bet-win-btn:hover { filter: brightness(1.08); }

.bet-bar {
  height: 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 7px;
}
.bet-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--grad-accent);
  transition: width 0.4s var(--ease-spring);
}
.bet-option.gagnante .bet-bar-fill { background: var(--green); }

.bet-option-stats { font-size: 12.5px; }

.bet-danger-zone {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th,
.data-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}
.data-table td.num,
.data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ── Paris : création & compteurs ────────────────────────────────────────── */

.view-title #bet-creer { font-size: 13px; padding: 8px 14px; }

.bet-create-modal { max-width: 480px; width: 100%; }

.bet-field { display: block; margin-top: 12px; }
.bet-field > span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.bet-field input, .bet-field select { width: 100%; }

.bet-opt-row { display: flex; gap: 8px; margin-bottom: 6px; }
.bet-opt-row .bet-opt-input { flex: 1; }
.bet-opt-del { padding: 6px 12px; font-size: 13px; }

.ticket-ferme-banner.ouvert {
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.3);
}
.bet-countdown { font-variant-numeric: tabular-nums; }

/* ── Console serveur ──────────────────────────────────────────────────────── */
.console-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.console-panel { padding: 0; overflow: hidden; }
.console-sortie {
  margin: 0;
  padding: 14px 16px;
  height: 56vh;
  overflow-y: auto;
  background: #0a0c11;
  color: #c4c9d4;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.console-saisie {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.console-prompt { color: var(--accent); font-family: ui-monospace, monospace; font-weight: 800; }
.console-saisie input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}
.console-saisie input:focus { outline: none; border-color: var(--accent); }

.reboot-liste { display: flex; flex-wrap: wrap; gap: 10px; }
.reboot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-variant-numeric: tabular-nums;
}
.reboot-chip input[type="time"] {
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-family: ui-monospace, monospace;
}
.reboot-chip input[type="time"]:focus { outline: none; }

/* ── Page X-Ray (anti-triche) ─────────────────────────────────────────────── */

.xray-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.xray-carte { padding: 18px; border-left: 3px solid var(--border-strong); }
.xray-carte.sev-critique  { border-left-color: #b91c1c; }
.xray-carte.sev-suspect   { border-left-color: var(--red); }
.xray-carte.sev-surveille { border-left-color: var(--orange); }

.xray-carte-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.xray-carte-head .mini-head { width: 40px; height: 40px; border-radius: 9px; }
.xray-id { min-width: 0; }
.xray-nom { font-size: 16px; font-weight: 800; color: var(--text); text-decoration: none; }
.xray-nom:hover { color: var(--accent); }
.xray-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.xray-sev {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800;
}
.xray-sev.critique  { background: rgba(185, 28, 28, 0.16); color: #fca5a5; }
.xray-sev.suspect   { background: rgba(248, 113, 113, 0.14); color: var(--red); }
.xray-sev.surveille { background: rgba(251, 191, 36, 0.14); color: var(--orange); }

.xray-metrique-forte {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.xray-metrique-forte .grand { font-size: 30px; font-weight: 800; line-height: 1; color: var(--text); }
.xray-metrique-forte .xray-detail { width: 100%; font-size: 12.5px; color: var(--accent); font-weight: 600; }

.xray-stats { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.xray-stat { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.xray-stat .k { color: var(--muted); }
.xray-stat .v { font-weight: 700; color: var(--text); text-align: right; }

.xray-ores {
  font-size: 12.5px; color: var(--muted); background: var(--bg-soft);
  border-radius: 9px; padding: 8px 11px; margin-bottom: 14px;
}

.xray-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.xray-actions .btn-lien {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  text-decoration: none; transition: border-color 0.15s, background 0.15s;
}
.xray-actions .btn-lien:hover { border-color: var(--border-strong); background: var(--panel-2); }
.xray-ok {
  margin-left: auto; background: linear-gradient(135deg, #34d399, #10b981);
  color: #05261b; font-weight: 700;
}

/* ── Fiche clan : disposition 2 colonnes (inspirée des paramètres) ─────────── */
.clan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.clan-col-main, .clan-col-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.clan-col-main > .panel, .clan-col-aside > .panel { margin: 0; }
@media (max-width: 900px) { .clan-grid { grid-template-columns: 1fr; } }

/* Villages détenus par un clan (colonne latérale) */
.clan-villages { display: flex; flex-direction: column; gap: 10px; }
.clan-village {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.1s;
}
.clan-village:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.clan-village.controle { border-color: rgba(245, 197, 66, 0.45); background: rgba(245, 197, 66, 0.06); }
.clan-village .cv-ico { font-size: 22px; line-height: 1; }
.clan-village .cv-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.clan-village .cv-nom { font-weight: 700; }
.clan-village .cv-type { font-size: 12px; color: var(--muted); }
.clan-village .cv-inf {
  display: flex; flex-direction: column; align-items: flex-end;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.clan-village .cv-pts { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ── Page Villages ────────────────────────────────────────────────────────── */
.vil-recap {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px;
}
.vil-recap-cell {
  flex: 1; min-width: 130px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
}
.vil-recap-cell .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.vil-recap-cell .v { font-size: 26px; font-weight: 800; margin-top: 4px; }

.vil-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}
.vil-carte { margin: 0; display: flex; flex-direction: column; gap: 13px; border-left: 3px solid var(--border-strong); }
.vil-carte.is-dispute { border-left-color: #f0883e; }
.vil-carte.is-controle { border-left-color: #f5c542; }

.vil-head { display: flex; align-items: center; gap: 12px; }
.vil-head .vil-ico { font-size: 30px; line-height: 1; }
.vil-id { flex: 1; min-width: 0; }
.vil-nom { font-size: 19px; font-weight: 800; }
.vil-type { font-size: 13px; color: var(--text); }
.vil-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.vil-badge {
  font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  white-space: nowrap;
}
.vil-badge.controle { background: rgba(245, 197, 66, 0.16); color: #f5c542; }
.vil-badge.dispute { background: rgba(240, 136, 62, 0.16); color: #f0883e; }
.vil-badge.neutre { background: var(--bg-soft); color: var(--muted); }
.vil-badge.alerte { background: rgba(239, 68, 68, 0.16); color: #f87171; }

.vil-effet { font-size: 13px; color: var(--muted); line-height: 1.45; }
.vil-proprio .vil-clan { font-weight: 700; }
.vil-proprio .vil-clan.neutre { color: var(--muted); font-weight: 500; }

.vil-influence-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.vil-influence-head .k { color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.vil-influence-head .v { font-weight: 700; }
.vil-jauge {
  position: relative; height: 12px; border-radius: 999px;
  background: var(--bg-soft); overflow: hidden;
}
.vil-jauge-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #5b8cff, #8b5cf6);
  transition: width 0.4s ease;
}
.vil-jauge-fill.niv-4, .vil-jauge-fill.niv-5 { background: linear-gradient(90deg, #f0883e, #f5c542); }
.vil-seuil {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.vil-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.vil-stat { display: flex; justify-content: space-between; font-size: 13px; gap: 8px; }
.vil-stat .k { color: var(--muted); }
.vil-stat .v { font-weight: 600; text-align: right; }

.vil-demandes {
  border-top: 1px solid var(--border); padding-top: 11px;
  display: flex; flex-direction: column; gap: 6px;
}
.vil-demandes.vide { color: var(--muted); font-size: 12.5px; }
.vil-demandes-titre { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.vil-demande {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center;
  font-size: 13px;
}
.vil-dem-mat { font-weight: 600; }
.vil-dem-qte { color: var(--muted); font-variant-numeric: tabular-nums; }
.vil-dem-prix { color: var(--muted); font-variant-numeric: tabular-nums; }
.vil-dem-inf { color: var(--accent); font-weight: 700; }

/* ── Coffres de la zone du clan (fiche clan) ──────────────────────────────── */
.coffres-liste { display: flex; flex-direction: column; gap: 8px; }
.coffre {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-soft); overflow: hidden;
}
.coffre summary {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer; list-style: none;
  font-size: 13.5px; user-select: none;
}
.coffre summary::-webkit-details-marker { display: none; }
.coffre summary::before { content: '▸'; color: var(--muted); font-size: 12px; transition: transform 0.15s; }
.coffre[open] summary::before { transform: rotate(90deg); }
.coffre summary:hover { background: var(--panel-2); }
.coffre-type { font-weight: 700; }
.coffre-pos { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.coffre-nb { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.coffre-items {
  margin: 0; padding: 10px 16px 12px 34px;
  border-top: 1px solid var(--border);
  columns: 2; column-gap: 28px;
  font-size: 13px; line-height: 1.7;
}
.coffre-items li { break-inside: avoid; }
.coffre-qte { color: var(--muted); font-variant-numeric: tabular-nums; }
.coffre-ench { color: var(--accent-2); font-size: 12px; }
@media (max-width: 700px) { .coffre-items { columns: 1; } }

/* ── Onglets & casier de la fiche clan ────────────────────────────────────── */
.clan-tabs { margin: 0; }

.casier-clan-warns {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(245, 158, 11, 0.14); color: #f59e0b; margin-left: 8px;
  vertical-align: middle;
}
.casier-clan-form { margin-bottom: 18px; }
.casier-clan-form .remb-toggle { max-width: 380px; margin-bottom: 10px; }
.casier-clan-form textarea {
  width: 100%; resize: vertical; min-height: 74px;
  padding: 10px 13px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  font: inherit; font-size: 13.5px; line-height: 1.5;
}
.casier-clan-form textarea:focus { outline: none; border-color: var(--accent); }

.casier-clan-liste { display: flex; flex-direction: column; gap: 10px; }
.casier-clan-entree {
  border: 1px solid var(--border); border-left-width: 3px; border-radius: 10px;
  background: var(--bg-soft); padding: 12px 14px;
}
.casier-clan-entree.warn { border-left-color: #f59e0b; }
.casier-clan-entree.info { border-left-color: var(--accent); }
.cce-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cce-type { font-size: 12.5px; font-weight: 700; }
.cce-type.warn { color: #f59e0b; }
.cce-type.info { color: var(--accent); }
.cce-meta { color: var(--muted); font-size: 12px; }
.cce-head .icon-btn { margin-left: auto; }
.cce-contenu { font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }

/* ── Modale « Assigner d'autres membres du staff » (ticket) ──────────────── */
.assign-autres-liste { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.assign-autres-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px; cursor: pointer;
  transition: background 0.15s;
}
.assign-autres-row:hover { background: var(--bg-soft); }
.assign-autres-row input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.assign-autres-nom { font-size: 13.5px; }

/* ── Onglet Animaux (familiers) de la fiche joueur ────────────────────────── */
.pets-liste { display: flex; flex-direction: column; gap: 10px; }
.pet-carte {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.pet-main { flex: 1; min-width: 0; }
.pet-nom { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.pet-equipe { font-size: 11.5px; font-weight: 700; color: var(--green); }
.pet-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.pet-sub strong { color: var(--text); }
.icon-btn.danger:hover { color: var(--red); border-color: var(--red); }

/* ── Carte KOTH (page Événements) ─────────────────────────────────────────── */
.koth-etat {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 14px 0; padding: 13px 16px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.koth-etat.actif { border-left: 3px solid #ef4444; }
.koth-etat.calme { border-left: 3px solid var(--border-strong); }
.koth-etat.offline { color: var(--muted); }
.koth-points-bloc { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.koth-points-titre {
  font-size: 13px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.koth-etat-main { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.koth-badge {
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
  white-space: nowrap; letter-spacing: 0.03em;
}
.koth-badge.live { background: rgba(239, 68, 68, 0.16); color: #f87171; animation: kothPulse 1.6s ease-in-out infinite; }
.koth-badge.idle { background: var(--bg-soft); color: var(--muted); }
.koth-badge-mini { font-size: 10.5px; padding: 2px 8px; margin-left: 8px; animation: none; }
@keyframes kothPulse { 50% { opacity: 0.6; } }
.koth-point-actif { font-weight: 700; font-size: 15px; }
.koth-timer { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }

.koth-add-form {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.koth-add-form input {
  padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  font: inherit; font-size: 13.5px;
}
.koth-add-form input:focus { outline: none; border-color: var(--accent); }
#koth-add-nom { flex: 1; min-width: 160px; }
#koth-add-monde { width: 110px; }
#koth-add-x, #koth-add-y, #koth-add-z { width: 84px; }

/* ── Page Événements en onglets (pleine largeur) ──────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 18px;
  align-items: start;
}
.events-grid .event-card { margin: 0; }
.event-timer-strip { padding: 13px 18px; margin-bottom: 18px; font-size: 13.5px; }
.event-timer-strip:empty { display: none; }
@media (max-width: 960px) { .events-grid { grid-template-columns: 1fr; } }

/* ── Croix de déliaison Discord (carte « Compte Discord » de la fiche joueur) ── */
.btn-icone {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--red);
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.btn-icone:hover { background: rgba(248, 113, 113, 0.14); border-color: var(--red); }

/* ── Accueil (version douce) ─────────────────────────────────────────────── */

.accueil-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(420px 180px at 8% 0%, rgba(91, 140, 255, 0.12), transparent 70%),
    radial-gradient(420px 200px at 95% 100%, rgba(139, 92, 246, 0.10), transparent 70%),
    var(--panel);
}
.accueil-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
}
.accueil-hello h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.accueil-wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.2s ease-in-out 0.4s 1; }
@keyframes wave {
  0%, 100% { transform: rotate(0); }
  15%, 45% { transform: rotate(16deg); }
  30%, 60% { transform: rotate(-8deg); }
}
.accueil-date { color: var(--muted); font-size: 13px; margin-top: 2px; }
.accueil-serveur { margin-left: auto; text-align: right; min-width: 0; }
.accueil-serveur-ligne {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.accueil-serveur-ligne b { color: var(--text); }
.accueil-serveur-ligne .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.accueil-serveur-ligne .dot.on { background: var(--green); animation: pulseDot 2s infinite; }
.accueil-serveur-ligne .dot.off { background: var(--red); }
.accueil-heads { display: flex; justify-content: flex-end; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.accueil-heads img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: block;
  transition: transform 0.15s var(--ease-spring);
}
.accueil-heads a:hover img { transform: translateY(-3px) scale(1.12); }

.accueil-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.accueil-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
a.accueil-stat:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.accueil-stat.attention { border-color: rgba(251, 191, 36, 0.4); }
.accueil-stat-ico { font-size: 17px; align-self: center; }
.accueil-stat-val { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.accueil-stat-lbl { color: var(--muted); font-size: 12.5px; }

@media (max-width: 760px) {
  .accueil-hero { flex-wrap: wrap; }
  .accueil-serveur { margin-left: 0; text-align: left; width: 100%; }
  .accueil-heads { justify-content: flex-start; }
}

/* ── Accueil : accès rapide ──────────────────────────────────────────────── */

.accueil-acces h2 { margin-top: 0; }
.accueil-acces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.accueil-acces-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s var(--ease-spring);
}
.accueil-acces-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.accueil-acces-ico {
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(91, 140, 255, 0.10);
  flex-shrink: 0;
}
.accueil-acces-txt { display: flex; flex-direction: column; min-width: 0; }
.accueil-acces-txt b { font-size: 13.5px; font-weight: 600; }
.accueil-acces-txt small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Accueil : layout deux colonnes + personnages + absences ─────────────── */

.accueil-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}
.accueil-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--nav-h) + 18px); }
.accueil-side .panel { margin: 0; }
.accueil-side h2 { margin-top: 0; font-size: 15px; }

.accueil-lien-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
}
.accueil-lien-item:hover { background: var(--panel-2); }
.accueil-lien-item span { width: 22px; text-align: center; }

.perso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.perso-carte {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.perso-carte.lie { border-color: rgba(91, 140, 255, 0.45); }
.perso-haut { display: flex; align-items: center; gap: 12px; }
.perso-haut img { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); }
.perso-nom { font-weight: 700; font-size: 15px; color: var(--text); }
.perso-nom:hover { color: var(--accent); }
.perso-badges { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.chip.lie { background: rgba(91, 140, 255, 0.15); color: var(--accent); border: 1px solid rgba(91, 140, 255, 0.3); }
.perso-infos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.perso-bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.perso-uuid {
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.perso-uuid:hover { color: var(--text); }
/* Absences */
.abs-form { display: flex; flex-direction: column; gap: 10px; }
.abs-dates { display: flex; gap: 10px; }
.abs-dates label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); flex: 1; min-width: 0; }
.abs-dates input, .abs-form textarea {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  width: 100%;
  resize: vertical;
}
.abs-dates input:focus, .abs-form textarea:focus { outline: none; border-color: var(--accent); }
.abs-dates input::-webkit-calendar-picker-indicator { filter: invert(0.7); }
.abs-liste { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.abs-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); }
.abs-item-haut { display: flex; justify-content: space-between; align-items: center; }
.abs-item-dates { font-size: 12.5px; margin-top: 6px; }
.abs-item-raison { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.abs-annuler { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 2px 6px; }
.abs-annuler:hover { color: var(--red); }
.abs-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}
.abs-chip.attente { background: rgba(251, 191, 36, 0.14); color: var(--orange); }
.abs-chip.validee { background: rgba(52, 211, 153, 0.14); color: var(--green); }
.abs-chip.refusee { background: rgba(248, 113, 113, 0.14); color: var(--red); }
.abs-decision { font-size: 12px; padding: 5px 9px; margin: 2px 2px 2px 0; }

@media (max-width: 1100px) {
  .accueil-layout { grid-template-columns: 1fr; }
  .accueil-side { position: static; }
}

.abs-ouvrir { width: 100%; margin-bottom: 4px; }
.abs-form { margin-top: 10px; }

/* ── Page Statistiques ───────────────────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 18px;
  align-items: start;
}
.stats-grid .panel { margin: 0; }
.stats-grid .stats-large { grid-column: 1 / -1; }
.stats-grid h2 { margin-top: 0; }

/* Graphe à barres vertical */
.graph {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: calc(var(--graph-h, 120px) + 26px);
  margin-top: 12px;
}
.graph-col { flex: 1; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.graph-barres {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}
.graph-barre {
  width: 100%;
  max-width: 22px;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.4s var(--ease-spring);
}
.graph-barre.accent { background: var(--accent); }
.graph-barre.vert { background: var(--green); }
.graph-barre.rouge { background: var(--red); }
.graph-lbl {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.graph-legende { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.graph-legende .pastille {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
}
.pastille.accent { background: var(--accent); }
.pastille.vert { background: var(--green); }

/* Barres horizontales */
.hbar { display: grid; grid-template-columns: 130px 1fr 90px; align-items: center; gap: 10px; padding: 5px 0; }
.hbar-nom { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-nom a { color: var(--text); }
.hbar-nom a:hover { color: var(--accent); }
.hbar-piste { background: var(--panel-2); border-radius: 6px; height: 10px; overflow: hidden; }
.hbar-jauge { background: var(--grad-accent); height: 100%; border-radius: 6px; transition: width 0.5s var(--ease-spring); }
.hbar-val { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }

.stats-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.abs-suppr { font-size: 12px; padding: 5px 8px; margin: 2px 0; }
.modal-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 10px; cursor: pointer; }
.modal-check input { accent-color: var(--accent); }
