/* ==========================================================================
   ModBot Dashboard — thème "console de surveillance"
   Palette : graphite profond + ambre (alerte) + turquoise (statut actif)
   ========================================================================== */

:root {
  --bg: #1c1b1a;
  --surface: rgba(36, 35, 34, 0.88);
  --surface-raised: #2c2a29;
  --border: #38352f;
  --border-bright: #4a4540;

  --text: #e7ebf1;
  --text-muted: #a39d95;
  --text-dim: #6f6a63;

  --amber: #f15a24;
  --amber-dim: #7a2e12;
  --teal: #4fd1c5;
  --teal-dim: #285a54;
  --danger: #e0576b;
  --danger-dim: #6b2b34;

  --brand: #f15a24;
  --brand-light: #ff7a45;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

/* Barre de défilement sombre, cohérente avec le thème (au lieu de la barre
   blanche/claire par défaut du navigateur) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 6px;
  border: 2px solid var(--bg);
}
*::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Fond plat, sans halo ni animation — look SaaS professionnel */

a { color: inherit; text-decoration: none; }

::selection { background: var(--amber-dim); color: var(--text); }

/* Focus visible pour l'accessibilité clavier */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Layout général ---------- */

.shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.brand b { font-weight: 600; }
.brand span.sub { color: var(--text-dim); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.user-chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
}

.logout-link {
  color: var(--text-dim);
  font-size: 12px;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius);
  transition: border-color 0.15s, color 0.15s;
}
.logout-link:hover { border-color: var(--danger); color: var(--danger); }

/* ---------- Eyebrow / section labels ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 8px;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
}

p.lede {
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 56ch;
}

/* ---------- Signature element : console de log en direct ---------- */

.live-console {
  background: #0d1015;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--teal);
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}

.live-console .console-line {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
}

.live-console .console-line .tag { color: var(--amber); }
.live-console .console-line .ok { color: var(--teal); }

.live-console .cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--teal);
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
  vertical-align: text-bottom;
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Cartes serveur ---------- */

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.guild-card {
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.15s, transform 0.1s;
  display: block;
}

.guild-card:hover {
  border-color: var(--teal-dim);
  transform: translateY(-1px);
}

.guild-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
  overflow: hidden;
}
.guild-card .icon img { width: 100%; height: 100%; object-fit: cover; }

.guild-card .name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.guild-card .role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Panels (config, logs) ---------- */

.panel {
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 8px 24px -8px rgba(0,0,0,0.35);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }

.toggle-row .label { font-size: 14px; font-weight: 500; }
.toggle-row .desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* Switch custom */
.switch {
  position: relative;
  width: 44px;
  height: 25px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute;
  inset: 0;
  background: var(--surface-raised);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.switch .track::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  left: 3px;
  top: 3px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.switch input:checked + .track { background: var(--brand); border-color: var(--brand-light); }
.switch input:checked + .track::before { transform: translateX(19px); background: #fff; }

/* ---------- Table de logs ---------- */

table.logs {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.logs th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

table.logs td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.logs tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: var(--radius);
  border: 1px solid;
}
.badge.ban { color: var(--danger); border-color: var(--danger-dim); background: rgba(224,87,107,0.08); }
.badge.win { color: #57f287; border-color: #2a6b3f; background: rgba(87,242,135,0.08); }
.badge.kick { color: var(--amber); border-color: var(--amber-dim); background: rgba(242,169,59,0.08); }
.badge.timeout { color: var(--teal); border-color: var(--teal-dim); background: rgba(79,209,197,0.08); }
.badge.warn { color: var(--amber); border-color: var(--amber-dim); background: rgba(242,169,59,0.08); }
.badge.unban { color: var(--text-muted); border-color: var(--border-bright); }

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- Login ---------- */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  text-align: center;
  padding: 24px;
}

.login-screen .mark {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #1a1305;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-bright);
}

/* ---------- Page bienvenue : formulaire + aperçu ---------- */

.welcome-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 780px) {
  .welcome-layout { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.text-input,
select {
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  padding: 11px 13px;
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.text-input:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.15);
}

.text-input.mono { font-family: var(--font-mono); }

textarea.text-input { resize: vertical; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.hint {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 6px;
}
.hint code {
  font-family: var(--font-mono);
  background: var(--surface-raised);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--teal);
}

.color-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.color-row input[type="color"] {
  width: 44px;
  height: 40px;
  padding: 2px;
  background: var(--surface-raised);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  cursor: pointer;
}

.save-status {
  margin-left: 12px;
  font-size: 12.5px;
  color: var(--teal);
}

.preview-panel { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; }
.preview-panel .panel { margin-bottom: 0; }

.mono { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

.preview-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  display: block;
  aspect-ratio: 900 / 300;
  object-fit: cover;
}

/* ==========================================================================
   Layout applicatif : sidebar + contenu (pages liées à un serveur)
   ========================================================================== */

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

.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(28, 27, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo { width: 32px; height: 32px; object-fit: contain; }
.sidebar-brand-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text);
}
.sidebar-guild-name {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sidebar-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 12px 4px;
}
.sidebar-group-label:first-of-type { padding-top: 6px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-muted);
  position: relative;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.nav-item:hover { background: var(--surface-raised); color: var(--text); transform: translateX(2px); }
.nav-item.active {
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 600;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--brand);
  border-radius: 0 2px 2px 0;
}
.nav-icon { font-size: 14px; width: 18px; text-align: center; }

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.free-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  background: rgba(79, 209, 197, 0.08);
  border: 1px solid var(--teal-dim);
  padding: 6px 10px;
  border-radius: var(--radius);
  text-align: center;
}

.nav-item-ghost { font-size: 12px; color: var(--text-dim); }

.app-main {
  flex: 1;
  min-width: 0;
  padding: 0 32px 60px;
}

.userbar {
  display: flex;
  align-items: center;
  padding: 20px 0;
}
.userbar-spacer { flex: 1; }

.page-content { max-width: 900px; animation: fadeInUp 0.35s ease both; }

/* ---------- Cartes de statistiques (vue d'ensemble) ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.15s, transform 0.15s;
  animation: fadeInUp 0.4s ease both;
}
.stat-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }

.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-card .stat-icon { font-size: 18px; margin-bottom: 8px; opacity: 0.8; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
}
.status-chip.on { color: var(--teal); border-color: var(--teal-dim); background: rgba(79,209,197,0.08); }
.status-chip.on .dot { background: var(--teal); box-shadow: 0 0 6px var(--teal); }
.status-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); }

/* ---------- Panels génériques : légère animation d'entrée ---------- */

.panel { animation: fadeInUp 0.35s ease both; }
.panel:nth-of-type(2) { animation-delay: 0.05s; }
.panel:nth-of-type(3) { animation-delay: 0.1s; }

/* ---------- Boutons additionnels ---------- */

.btn:active { transform: scale(0.97); }

.btn-sm {
  padding: 7px 14px;
  font-size: 12.5px;
}

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Tags input (mots interdits, etc.) ---------- */

.tag-input-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 8px;
  min-height: 44px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  padding: 4px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.tag-pill button {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}
.tag-pill button:hover { color: var(--danger); }
.tag-input-box input {
  flex: 1;
  min-width: 120px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
}
.tag-input-box input:focus { outline: none; }

/* ---------- Aperçu Discord (embed mock) ---------- */

.discord-mock {
  background: #313338;
  border-radius: 8px;
  padding: 16px;
  font-family: "gg sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #dbdee1;
}
.discord-mock .dm-author { display: flex; gap: 12px; margin-bottom: 4px; }
.discord-mock .dm-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; flex-shrink: 0;
}
.discord-mock .dm-name { font-weight: 600; color: #fff; font-size: 14px; }
.discord-mock .dm-name-row { display: flex; align-items: baseline; gap: 6px; }
.discord-mock .dm-app-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: #5865f2; color: #fff; font-size: 10px; font-weight: 600;
  padding: 1px 5px 1px 4px; border-radius: 3px; line-height: 1.4;
}
.discord-mock .dm-timestamp { font-size: 11.5px; color: #949ba4; font-weight: 400; }
.discord-mock .dm-body { margin-left: 52px; }

.discord-mock .dm-embed {
  border-left: 4px solid var(--brand);
  background: #2b2d31;
  border-radius: 4px;
  padding: 12px 14px;
  margin-top: 6px;
  max-width: 480px;
}
.discord-mock .dm-embed-title { font-weight: 700; color: #fff; margin-bottom: 4px; font-size: 15px; }
.discord-mock .dm-embed-desc { font-size: 13.5px; color: #dbdee1; white-space: pre-wrap; line-height: 1.4; }
.discord-mock .dm-embed-img {
  margin-top: 10px; width: 100%; border-radius: 4px; display: block;
  max-height: 180px; object-fit: cover; background: #1e1f22;
}
.discord-mock .dm-embed-footer { margin-top: 10px; font-size: 11.5px; color: #949ba4; }

.discord-mock .dm-buttons { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; max-width: 480px; }
.discord-mock .dm-btn {
  padding: 7px 14px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: #4e5058;
}
.discord-mock .dm-btn.link { background: #4e5058; }
.discord-mock .dm-btn.role { background: #3b82f6; }

/* ---------- Select multi-line list (rôles, salons) ---------- */

.inline-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: -8px;
  margin-bottom: 16px;
}

/* ---------- Accès fondateur ---------- */

.founder-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, rgba(241, 90, 36, 0.12), rgba(241, 90, 36, 0.03));
  border: 1px solid var(--amber-dim);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--text);
  transition: border-color 0.15s, transform 0.1s;
}
.founder-banner:hover { border-color: var(--brand); transform: translateX(2px); }

.founder-chip {
  display: block;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-light);
  background: rgba(241, 90, 36, 0.1);
  border: 1px solid var(--amber-dim);
  padding: 7px 10px;
  border-radius: var(--radius);
  margin-bottom: 4px;
  transition: background 0.15s;
}
.founder-chip:hover { background: rgba(241, 90, 36, 0.18); }

.emergency-panel {
  border-color: var(--danger-dim);
  background: linear-gradient(180deg, rgba(224, 87, 107, 0.06), transparent);
}
.emergency-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  animation: pulseDanger 2.4s ease-in-out infinite;
  transition: filter 0.15s, transform 0.1s;
}
.btn-danger:hover { filter: brightness(1.1); }
.btn-danger:active { transform: scale(0.97); }

@keyframes pulseDanger {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 87, 107, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(224, 87, 107, 0); }
}

/* ---------- Cartes d'équipe (module e-sport) ---------- */

.team-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.member-checklist {
  max-height: 180px;
  overflow-y: auto;
  background: var(--surface-raised);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 8px;
}
.member-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  font-size: 13px;
  cursor: pointer;
}
.member-check-row:hover { background: var(--surface); border-radius: 4px; }
.member-check-row input { cursor: pointer; }

.player-slot {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}
.player-slot-title {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--brand-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nuke-panel {
  border: 1px solid var(--danger-dim);
  background: linear-gradient(180deg, rgba(224, 87, 107, 0.06), transparent);
}
.nuke-panel h2 { color: var(--danger); }

/* ---------- Vitrine (admin + public) ---------- */

.vitrine-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.vitrine-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.vitrine-tab:hover { color: var(--text); }
.vitrine-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.vitrine-item {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
}

/* ---------- Site public "vitrine" ---------- */

.vitrine-header {
  border-bottom: 1px solid var(--border);
  background: rgba(28, 27, 26, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.vitrine-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.vitrine-brand { display: flex; align-items: center; gap: 12px; }
.vitrine-guild-icon { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.vitrine-guild-icon-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-raised); color: var(--text-muted);
  font-family: var(--font-mono); font-weight: 600;
}
.vitrine-guild-name { font-weight: 700; font-size: 16px; }
.vitrine-powered { font-size: 11px; color: var(--text-dim); }

.vitrine-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.vitrine-nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.vitrine-nav-link:hover { background: var(--surface-raised); color: var(--text); }
.vitrine-nav-link.active { background: rgba(241,90,36,0.12); color: var(--brand-light); }

.vitrine-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  min-height: 60vh;
}

.vitrine-hero {
  text-align: center;
  padding: 40px 20px 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.vitrine-hero-logo { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; margin-bottom: 20px; }
.vitrine-hero h1 { font-size: 34px; margin: 0 0 12px; letter-spacing: -0.02em; }
.vitrine-hero-desc { color: var(--text-muted); max-width: 60ch; margin: 0 auto 20px; font-size: 15px; line-height: 1.6; }

.vitrine-socials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.vitrine-social-link {
  padding: 8px 16px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.vitrine-social-link:hover { border-color: var(--brand); background: rgba(241,90,36,0.08); }

.vitrine-page-header { text-align: center; margin-bottom: 36px; }
.vitrine-page-header h1 { font-size: 28px; margin: 0 0 8px; }
.vitrine-page-header p { color: var(--text-muted); }

.vitrine-section { margin-bottom: 44px; }
.vitrine-section h2 { font-size: 18px; margin-bottom: 18px; }

.vitrine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.vitrine-card {
  background: var(--surface);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.15s, border-color 0.15s;
}
.vitrine-card:hover { transform: translateY(-2px); border-color: var(--border-bright); }
.vitrine-card-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.vitrine-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.vitrine-card-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; margin: 0 0 10px; }

.vitrine-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.vitrine-empty h1 { color: var(--text); margin-bottom: 12px; }

.vitrine-footer {
  text-align: center;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12.5px;
}

.vitrine-nav-reseau {
  background: rgba(79, 209, 197, 0.1);
  border: 1px solid var(--teal-dim);
  color: var(--teal);
  margin-right: 6px;
}

.gangster-structure-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(79, 209, 197, 0.1);
  border: 1px solid var(--teal-dim);
  padding: 3px 8px;
  margin-bottom: 10px;
}

/* ========================================================
   VITRINE — style "gangster" : typographie massive, contrastes
   durs, angles nets, badges agressifs. S'applique uniquement
   au site public (pas au dashboard d'administration).
   ======================================================== */

body.vitrine-gangster {
  background: #0d0c0c;
}
body.vitrine-gangster::before,
body.vitrine-gangster::after {
  content: "";
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(110px) saturate(1.3);
}
body.vitrine-gangster::before {
  top: -10%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(241, 90, 36, 0.3), transparent 70%);
}
body.vitrine-gangster::after {
  bottom: -15%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.18), transparent 70%);
}

.vitrine-gangster .vitrine-header {
  background: rgba(13, 12, 12, 0.92);
  border-bottom: 2px solid var(--brand);
}

.vitrine-gangster .vitrine-guild-name {
  font-family: "Anton", var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vitrine-gangster .vitrine-nav-link {
  border-radius: 2px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.vitrine-gangster .vitrine-nav-link.active {
  background: var(--brand);
  color: #0d0c0c;
  font-weight: 700;
}

.gangster-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0d0c0c;
  background: var(--brand);
  padding: 5px 12px;
  margin-bottom: 18px;
  transform: skewX(-8deg);
}

.gangster-title {
  font-family: "Anton", var(--font-display);
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(241, 90, 36, 0.35);
}

.vitrine-gangster .vitrine-page-header h1.gangster-title { font-size: 44px; }

.vitrine-gangster .vitrine-hero {
  border-bottom: 3px solid var(--brand);
  position: relative;
}
.vitrine-gangster .vitrine-hero-logo { border-radius: 4px; border: 2px solid var(--brand); }

.vitrine-gangster .vitrine-social-link {
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  border-width: 2px;
}
.vitrine-gangster .vitrine-social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #0d0c0c;
}

.gangster-card {
  border-radius: 2px !important;
  border-width: 1px;
  border-left-width: 5px !important;
  position: relative;
  overflow: hidden;
}
.gangster-card:hover {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 1px var(--brand), 8px 8px 0 rgba(241, 90, 36, 0.15);
  transform: translate(-2px, -2px);
}

.vitrine-gangster .vitrine-card-title {
  font-family: "Anton", var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 17px;
}

.vitrine-gangster .team-tag {
  border-radius: 2px;
  font-size: 12px;
  padding: 4px 10px;
  transform: skewX(-6deg);
}

.gangster-arrow {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-light);
}

.vitrine-gangster .btn {
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 12.5px;
}
.vitrine-gangster .btn-ghost {
  border-width: 2px;
}

.vitrine-gangster .contact-form textarea {
  border-radius: 2px;
}

/* ---------- Planning de scrims (créneaux, façon plateforme pro) ---------- */

.scrim-filters {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.scrim-filters > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scrim-filters select {
  background: var(--surface-raised);
  border: 1px solid var(--border-bright);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 2px;
  font-size: 13px;
  width: auto;
  min-width: 140px;
}

.scrim-schedule {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scrim-row {
  display: grid;
  grid-template-columns: 90px 56px 1fr 90px 70px 130px;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  padding: 14px 16px;
  transition: border-color 0.15s, transform 0.1s;
}
.scrim-row:hover { border-color: var(--brand); transform: translateX(2px); }

.scrim-time { text-align: center; }
.scrim-date { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.scrim-hour { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: #fff; }

.scrim-badge {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: #0d0c0c;
  text-transform: uppercase;
}

.scrim-info { min-width: 0; }
.scrim-team-name {
  font-weight: 700;
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scrim-region-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  font-weight: 400;
  text-transform: none;
}
.scrim-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.scrim-elo {
  text-align: center;
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}

.scrim-format {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-light);
  background: rgba(241, 90, 36, 0.1);
  border: 1px solid var(--amber-dim);
  padding: 4px 8px;
  border-radius: 2px;
}

.scrim-action { text-align: right; }
.scrim-action .btn { width: 100%; }

@media (max-width: 820px) {
  .scrim-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "time badge" "info info" "elo format" "action action";
  }
  .scrim-time { grid-area: time; text-align: left; }
  .scrim-badge { grid-area: badge; justify-self: end; }
  .scrim-info { grid-area: info; }
  .scrim-elo { grid-area: elo; text-align: left; }
  .scrim-format { grid-area: format; justify-self: end; }
  .scrim-action { grid-area: action; }
}

.vitrine-nav-mailbox {
  border: 1px solid var(--border-bright);
  margin-left: 4px;
}

.contact-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.contact-form textarea { margin-bottom: 8px; }

/* ---------- Boîte de réception ---------- */

.mailbox-thread { margin-bottom: 16px; }

.mailbox-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  max-height: 280px;
  overflow-y: auto;
}

.mailbox-message {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  max-width: 80%;
  align-self: flex-start;
}
.mailbox-message.mine {
  align-self: flex-end;
  background: rgba(241, 90, 36, 0.1);
  border-color: var(--amber-dim);
}
.mailbox-message-author {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.mailbox-message-body { font-size: 13.5px; line-height: 1.4; }

.mailbox-reply {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.mailbox-reply .btn { align-self: flex-start; }

.error-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
