@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: url('/img/vkorp_mouse.png'), auto;
}

:root {
  /* Accent rouge 7DTD — mêmes noms de tokens que le site GMod
     pour garder les deux feuilles de style comparables. */
  --purple:       #E02222;
  --purple-light: #FF6262;
  --purple-glow:  rgba(224, 34, 34, 0.35);
  --gold:         #FFBA00;
  --gold-glow:    rgba(255, 186, 0, 0.25);
  --green:        #22c55e;
  --red:          #ef4444;
  --dark:         #0d0d0d;
  --card-bg:      rgba(0, 0, 0, 0.55);
  --border:       rgba(224, 34, 34, 0.2);
  --text-muted:   rgba(255, 255, 255, 0.35);
  --sidebar-w:    280px;
}

html, body {
  min-height: 100vh;
  background: var(--dark);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  overflow-x: hidden;
}

/* Sélection de texte aux couleurs V-KORP. */
::selection {
  background: rgba(224, 34, 34, 0.55);
  color: #fff;
}

/* -- BACKGROUND -- */

.bg {
  position: fixed;
  inset: -30px;
  background: url('/img/vkorp_background.jpg') center center / cover no-repeat;
  z-index: 0;
}

.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(224, 34, 34, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 34, 34, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* -- SIDEBAR -- */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.side-logo img {
  width: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.9));
}

.side-divider {
  width: calc(100% - 1.2rem);
  height: 1px;
  margin: 1.1rem 0;
  background: rgba(255, 255, 255, 0.1);
}

.side-gmod {
  width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8));
}

.side-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  color: rgba(255,255,255,0.65);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-link i { width: 22px; text-align: center; font-size: 1.15rem; }

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-link.active i { color: var(--gold); }

.side-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.side-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  overflow: hidden;
  white-space: nowrap;
}

.side-user img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
}

.side-user span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: rgba(239,68,68,0.75);
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.logout-icon:hover { color: #fff; background: rgba(239,68,68,0.2); }

.steam-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  background: #171a21;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.steam-login i { font-size: 1.2rem; }

.steam-login:hover {
  background: #2a475e;
  box-shadow: 0 0 16px rgba(102, 192, 244, 0.25);
}

/* -- CONTENU -- */

.content {
  position: relative;
  z-index: 3;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 2.2rem 2.4rem;
}

.page-head { margin-bottom: 1.6rem; }

.page-head h1 {
  font-size: 2.2rem;
  letter-spacing: 0.12em;
}

.page-head h1 span { color: var(--gold); }

.page-head h1 i {
  font-size: 1.7rem;
  color: var(--gold);
  margin-right: 0.45rem;
  vertical-align: 2px;
}

.page-sub {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
  color: #fff;
}

.page-sub span { color: var(--purple); }

.muted { color: var(--text-muted); font-size: 1.15rem; letter-spacing: 0.06em; }

/* -- CARTES SERVEURS (5 par ligne) -- */

.server-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  max-width: calc(5 * 320px + 4 * 1.8rem);
  margin: 0 auto;
}

.server-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: calc((100% - 4 * 1.8rem) / 5);
  max-width: 320px;
  padding: 1rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.server-card:hover {
  border-color: rgba(224, 34, 34, 0.45);
  box-shadow: 0 0 18px var(--purple-glow);
}

.server-img-wrap {
  position: relative;
  margin: -1rem -1.1rem 0;
}

.server-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.server-img-wrap .badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.server-card.off .server-img { filter: grayscale(1); }

.badge {
  display: inline-block;
  padding: 0.15em 0.7em;
  border-radius: 6px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.badge.on  { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.badge.off { background: rgba(239,68,68,0.12); color: var(--red);   border: 1px solid rgba(239,68,68,0.3); }

.badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.45em;
  vertical-align: 1px;
}

.badge.on::before {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}

.badge.off::before { background: var(--red); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.server-name {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.player-bar {
  position: relative;
  height: 22px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.player-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  box-shadow: 0 0 10px var(--purple-glow);
  transition: width 0.4s ease;
}

.player-count {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.player-count i { font-size: 0.8rem; margin-right: 0.4em; }

.server-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.server-info i { width: 18px; text-align: center; color: var(--gold); margin-right: 0.3rem; }

.btn-connect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.4em 0.8em;
  background: var(--green);
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-connect:hover {
  background: #16a34a;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.4);
}

.btn-connect.unavailable {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--red);
  cursor: not-allowed;
}

.btn-connect.unavailable:hover {
  background: rgba(239, 68, 68, 0.18);
  box-shadow: none;
}

@media (max-width: 640px) { .server-card { width: 100%; } }

/* -- VERROU (non connecte) -- */

.locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: calc(100vh - 4.4rem);
  text-align: center;
}

.locked > i {
  font-size: 2.6rem;
  color: var(--gold);
  text-shadow: 0 0 16px var(--gold-glow);
}

.locked h2 { font-size: 1.8rem; letter-spacing: 0.14em; }

.locked p { color: var(--text-muted); font-size: 1.15rem; letter-spacing: 0.08em; }

.steam-login.inline { padding: 0.6rem 1.6rem; }

/* -- BARRE DE TRI -- */

.filter-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: calc(5 * 345px + 4 * 1.4rem);
  margin: 0 auto 1.4rem;
  padding: 0.7rem 0.9rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.player-total {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

.player-total i { color: var(--gold); margin-right: 0.3rem; font-size: 1rem; }

.player-total span { color: var(--gold); }

.filter-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 220px;
  max-width: 380px;
  padding: 0 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.filter-search i { color: var(--text-muted); font-size: 0.95rem; }

.filter-search input {
  flex: 1;
  padding: 0.6rem 0;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  outline: none;
}

.sort-group {
  display: flex;
  gap: 0.4rem;
}

.sort-btn {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sort-btn i { margin-right: 0.35rem; font-size: 0.95rem; }

.sort-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }

.sort-btn.active {
  color: var(--gold);
  border-color: rgba(255, 186, 0, 0.35);
  background: rgba(255, 186, 0, 0.08);
}

/* -- CARTES JOUEURS -- */

.player-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  max-width: calc(5 * 345px + 4 * 1.4rem);
  margin: 0 auto;
}

.player-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: calc((100% - 4 * 1.4rem) / 5);
  max-width: 345px;
  padding: 0.8rem 1rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.player-card:hover {
  border-color: rgba(224, 34, 34, 0.45);
  box-shadow: 0 0 18px var(--purple-glow);
}

.status-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.status-dot.on {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.status-dot.off { background: var(--red); }

.player-avatar {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--purple);
  box-shadow: 0 0 14px var(--purple-glow);
  flex-shrink: 0;
}

.player-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.4);
}

.player-info {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.player-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.player-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
}

img.player-flag {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.steam-link {
  color: var(--purple-light);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.steam-link:hover { color: #fff; }

.player-seen {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.player-seen.live { color: var(--green); }

@media (max-width: 640px) { .player-card { width: 100%; } }

/* -- PAGINATION -- */

/* La zone occupe une hauteur fixe (viewport) : la pagination reste au même
   endroit quel que soit le nombre de cartes affichées. */
#players-zone {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 320px);
}

/* Zone à hauteur fixe : grille ancrée en haut, pagination ancrée en bas.
   Quel que soit le nombre de cartes (page pleine, page 3, recherche),
   rien ne bouge verticalement. */
#players-zone .player-grid {
  width: 100%;
  margin: 0 auto;
  align-content: flex-start;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.6rem;
  min-height: calc(38px + 1.6rem);
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.6rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.page-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }

.page-btn.active {
  color: var(--gold);
  border-color: rgba(255, 186, 0, 0.35);
  background: rgba(255, 186, 0, 0.08);
}

.page-btn.disabled { opacity: 0.3; pointer-events: none; }

.page-dots { color: var(--text-muted); padding: 0 0.2rem; }

/* -- ADMIN -- */

.nav-link.back { color: var(--gold); }
.nav-link.back:hover { background: rgba(255, 186, 0, 0.1); color: var(--gold); }

.side-divider.small { margin: 0.4rem 0; }

.admin-card {
  position: relative;
  z-index: 10; /* au-dessus du tableau : le menu déroulant passe devant */
  margin-bottom: 1.6rem;
  padding: 1.3rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-title {
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--purple-light);
  margin-bottom: 1rem;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  align-items: end;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.admin-form input {
  padding: 0.55rem 0.7rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  outline: none;
}

.admin-form input:focus { border-color: var(--purple); box-shadow: 0 0 10px var(--purple-glow); }

.admin-form select {
  padding: 0.55rem 0.7rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  outline: none;
}

.admin-form select:focus { border-color: var(--purple); box-shadow: 0 0 10px var(--purple-glow); }

.btn-mini.danger.solid {
  background: var(--red);
  border: none;
  color: #fff;
}

.btn-mini.danger.solid:hover { background: #dc2626; box-shadow: 0 0 14px rgba(239,68,68,0.4); }

.btn-mini.warn {
  background: #d97706;
  border: none;
  color: #fff;
}

.btn-mini.warn:hover { background: #b45309; box-shadow: 0 0 14px rgba(217,119,6,0.4); }

/* -- SELECT CUSTOM (avatars) -- */

.vk-select { position: relative; }

.vk-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  padding: 0.45rem 0.7rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.vk-select.open .vk-select-btn { border-color: var(--purple); box-shadow: 0 0 10px var(--purple-glow); }

.vk-select-btn .ps-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
}

.vk-select-btn .ps-current img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.vk-select-btn i { color: var(--text-muted); font-size: 0.85rem; }

.vk-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(10, 10, 12, 0.97);
  border: 1px solid rgba(224, 34, 34, 0.35);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  overflow: hidden;
}

.vk-select.open .vk-select-menu { display: block; }

.vk-select-filter {
  width: 100%;
  padding: 0.55rem 0.8rem;
  background: rgba(255,255,255,0.05);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  outline: none;
}

.vk-select-list { max-height: 260px; overflow-y: auto; }

.vk-select-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.vk-select-item:hover { background: rgba(224, 34, 34, 0.15); }

.vk-select-item img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
}

.vk-select-item span {
  flex: 1;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vk-select-item small {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.row-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  vertical-align: middle;
  margin-right: 0.5rem;
}

.row-avatar-icon { margin-right: 0.5rem; color: var(--text-muted); }

.muted.small-inline { font-size: 0.95rem; }

.admin-form-actions { display: flex; gap: 0.6rem; align-items: stretch; }

.admin-form-actions .btn-mini { padding: 0.55rem 1rem; }

.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35em 0.9em;
  background: var(--purple);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-mini:hover { background: #b91c1c; box-shadow: 0 0 14px var(--purple-glow); }

.btn-mini.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255,255,255,0.7);
}

.btn-mini.ghost:hover { background: rgba(255,255,255,0.08); box-shadow: none; color: #fff; }

.btn-mini.danger {
  background: transparent;
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--red);
}

.btn-mini.danger:hover { background: rgba(239,68,68,0.15); box-shadow: none; }

.badge.disabled { background: rgba(255,255,255,0.08); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.15); }
.badge.disabled::before { background: var(--text-muted); }

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.admin-actions form { display: inline; }

.muted.small { font-size: 0.95rem; margin-top: 0.9rem; }

/* -- TABLES -- */

.table-wrap {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.data-table th {
  text-align: left;
  padding: 0.9rem 1.1rem;
  color: var(--purple-light);
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
  padding: 0.75rem 1.1rem;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.03); }

.cell-strong { color: #fff; }

/* -- TOOLTIPS V-KORP -- */

.has-tip { position: relative; }

.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.35em 0.8em;
  background: rgba(10, 10, 12, 0.95);
  border: 1px solid rgba(224, 34, 34, 0.4);
  border-radius: 6px;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 10px var(--purple-glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 50;
}

.has-tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(224, 34, 34, 0.4);
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 50;
}

.has-tip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.has-tip:hover::before { opacity: 1; }

/* -- MODALE CONFIRMATION -- */

.vk-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.vk-modal-overlay.open { display: flex; }

.vk-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  padding: 2rem 1.6rem 1.6rem;
  background: rgba(10, 10, 12, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  text-align: center;
  animation: fadeUp 0.25s ease both;
}

.vk-modal .card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--red);
  border-style: solid;
  border-width: 0;
}

.vk-modal .card-corner.tl { top: 10px;    left: 10px;   border-top-width: 2px;    border-left-width: 2px; }
.vk-modal .card-corner.tr { top: 10px;    right: 10px;  border-top-width: 2px;    border-right-width: 2px; }
.vk-modal .card-corner.bl { bottom: 10px; left: 10px;   border-bottom-width: 2px; border-left-width: 2px; }
.vk-modal .card-corner.br { bottom: 10px; right: 10px;  border-bottom-width: 2px; border-right-width: 2px; }

.vk-modal i.fa-triangle-exclamation {
  font-size: 2.2rem;
  color: var(--red);
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

.vk-modal h3 { font-size: 1.5rem; letter-spacing: 0.14em; }

.vk-modal p {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.4;
}

.vk-modal-actions { display: flex; gap: 0.7rem; margin-top: 0.3rem; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- RESPONSIVE -- */

@media (max-width: 720px) {
  .sidebar { width: 68px; padding: 1rem 0.5rem; }
  .side-logo img { width: 44px; }
  .side-gmod { width: 44px; }
  .nav-link span { display: none; }
  .steam-login span { display: none; }
  .content { margin-left: 68px; padding: 1.4rem 1rem; }
}

/* -- NOM DU JEU (sidebar ; remplace le logo image du site GMod) -- */

.side-game {
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-align: center;
  line-height: 1.15;
}

.side-game span { color: var(--gold); }

@media (max-width: 720px) {
  .side-game { font-size: 0.75rem; letter-spacing: 0.08em; }
}
