/* Dashboard — La Caverne Chaude */

:root {
  --accent: #6366f1;
  --accent-light: #818cf8;
  /* Hauteur réservée pour la barre de navigation sticky (sidebar + layout Table du cul) */
  --header-height: 5rem;
}

html {
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  background: #050505;
  color: #e5e7eb;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* Texture grain : couvrir toute la largeur visible y compris la zone de la scrollbar (évite la bande noire à droite) */
body::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100vw;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-sizing: border-box;
}

/* —— Loader plein écran (CAVERNE / CHAUDE, remplissage au chargement) —— */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.page-loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.page-loader-text-wrap {
  position: relative;
  display: inline-block;
}
.page-loader-text {
  font-family: "Unbounded", "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.75rem, 11vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.page-loader-text-base {
  color: rgba(255, 255, 255, 0.25);
}
.page-loader-text-fill {
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  clip-path: inset(0 0 calc(100% - 100% * var(--loader-progress, 0)) 0);
  transition: clip-path 0.15s ease-out;
}
.page-loader-side {
  font-family: "Unbounded", "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(0.7rem, 2.2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #f59e0b;
  opacity: 0.95;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.glass-card {
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.war-gradient {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, rgba(5, 5, 7, 1) 100%);
}

/* Carte "Lien chaud" — rendu soigné */
.hot-link-card {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hot-link-card:hover {
  border-color: rgba(251, 113, 133, 0.35);
  box-shadow: 0 8px 28px rgba(251, 113, 133, 0.08);
}
.hot-link-badge {
  transition: transform 0.2s;
}
.hot-link-card:hover .hot-link-badge {
  transform: scale(1.05);
}
.hot-link-btn:focus-visible {
  outline: 2px solid rgba(251, 113, 133, 0.6);
  outline-offset: 2px;
}

/* —— Dashboard spotlight (guerre / événement / concours / passe saison) —— */
.dashboard-spotlight.hidden {
  display: none !important;
}
.dashboard-spotlight-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.dashboard-spotlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}
.dashboard-spotlight--amber .dashboard-spotlight-card {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 50%, rgba(0, 0, 0, 0.2) 100%);
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.12);
}
.dashboard-spotlight--amber .dashboard-spotlight-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.18);
}
.dashboard-spotlight--violet .dashboard-spotlight-card {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.04) 50%, rgba(0, 0, 0, 0.2) 100%);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.12);
}
.dashboard-spotlight--violet .dashboard-spotlight-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.18);
}
.dashboard-spotlight--rose .dashboard-spotlight-card {
  border-color: rgba(236, 72, 153, 0.3);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(236, 72, 153, 0.04) 50%, rgba(0, 0, 0, 0.2) 100%);
  box-shadow: 0 4px 24px rgba(236, 72, 153, 0.12);
}
.dashboard-spotlight--rose .dashboard-spotlight-card:hover {
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.18);
}
.dashboard-spotlight-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
}
.dashboard-spotlight-card:hover .dashboard-spotlight-icon {
  transform: scale(1.08);
}
.dashboard-spotlight--amber .dashboard-spotlight-icon {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.35);
}
.dashboard-spotlight--violet .dashboard-spotlight-icon {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.35);
}
.dashboard-spotlight--rose .dashboard-spotlight-icon {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.35);
}
.dashboard-spotlight-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.dashboard-spotlight-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  display: block;
  line-height: 1.3;
}
.dashboard-spotlight-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dashboard-spotlight-cta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.dashboard-spotlight-card:hover .dashboard-spotlight-cta {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}
.dashboard-spotlight--amber .dashboard-spotlight-cta {
  color: rgba(245, 158, 11, 0.95);
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}
.dashboard-spotlight--amber .dashboard-spotlight-card:hover .dashboard-spotlight-cta {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
}
.dashboard-spotlight--violet .dashboard-spotlight-cta {
  color: rgba(167, 139, 250, 0.95);
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}
.dashboard-spotlight--violet .dashboard-spotlight-card:hover .dashboard-spotlight-cta {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
}
.dashboard-spotlight--rose .dashboard-spotlight-cta {
  color: rgba(251, 113, 133, 0.95);
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.4);
}
.dashboard-spotlight--rose .dashboard-spotlight-card:hover .dashboard-spotlight-cta {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.5);
}
@media (max-width: 640px) {
  .dashboard-spotlight-card {
    flex-wrap: wrap;
    padding: 1rem;
  }
  .dashboard-spotlight-cta {
    width: 100%;
    text-align: center;
  }
}

/* —— Salle des reliques —— */
.relics-filter {
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.relics-filter:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.5);
  outline-offset: 2px;
}
.relic-card {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.relic-card:hover {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.relic-card.relic-moderation {
  border-left: 3px solid rgba(239, 68, 68, 0.5);
}
.relic-card .relic-url-masked {
  color: var(--neutral-500, #71717a);
  font-style: italic;
}

.nav-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

.nav-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}

.nav-btn-ico {
  width: 44px;
  height: 44px;
  padding: 0;
}

.nav-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

/* Onglets profil */
.profile-tab {
  padding: 0.6rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.profile-tab.rounded-b-none {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.profile-tab.btn-primary {
  border-bottom-color: rgba(99, 102, 241, 0.6);
}

/* Admin dashboard sidebar */
.admin-nav-btn {
  color: rgba(161, 161, 170, 0.9);
  border: 1px solid transparent;
  border-radius: 12px;
}
.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.06);
}
.admin-nav-btn.admin-nav-active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15);
}
.page-admin .admin-nav-btn.admin-nav-active {
  color: #c7d2fe;
}
.admin-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  display: inline-block;
}
.admin-role-badge--admin {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}
.admin-role-badge--modo {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}
.admin-role-badge--animateur {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}
.admin-role-badge--gooner_complet,
.admin-role-badge--agent_gooner {
  background: rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
}
.admin-nav-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  min-width: 1.25rem;
  text-align: center;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

/* --- Admin dashboard : boutons d’action (tables, formulaires) --- */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.admin-btn:hover {
  transform: translateY(-1px);
}
.admin-btn:active {
  transform: translateY(0);
}
.admin-btn + .admin-btn {
  margin-left: 0.5rem;
}
.admin-btn--success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
.admin-btn--success:hover {
  background: rgba(16, 185, 129, 0.35);
  border-color: rgba(16, 185, 129, 0.55);
  color: #fff;
}
.admin-btn--danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.admin-btn--danger:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fff;
}
.admin-btn--warning {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}
.admin-btn--warning:hover {
  background: rgba(245, 158, 11, 0.35);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fff;
}
.admin-btn--neutral {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
}
.admin-btn--neutral:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #e5e7eb;
}
.admin-btn--primary {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.45);
  color: #a5b4fc;
}
.admin-btn--primary:hover {
  background: rgba(99, 102, 241, 0.4);
  border-color: rgba(99, 102, 241, 0.6);
  color: #fff;
}
.admin-btn--ghost {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fda4af;
}
.admin-btn--ghost:hover {
  background: rgba(244, 63, 94, 0.28);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fff;
}
.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* ——— Page Admin : priorité sur boutons et champs (Avertir, Bloquer, Bannir, Parrainage…) ——— */
.page-admin button.admin-btn,
.page-admin .admin-actions-cell button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}
.page-admin button.admin-btn:hover,
.page-admin .admin-actions-cell button:hover {
  transform: translateY(-1px);
}
.page-admin button.admin-btn:active,
.page-admin .admin-actions-cell button:active {
  transform: translateY(0);
}
.page-admin button.admin-btn--warning,
.page-admin .admin-actions-cell button.admin-btn--warning {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fcd34d;
}
.page-admin button.admin-btn--warning:hover {
  background: rgba(245, 158, 11, 0.4);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fef3c7;
}
.page-admin button.admin-btn--danger {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}
.page-admin button.admin-btn--danger:hover {
  background: rgba(239, 68, 68, 0.4);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fff;
}
.page-admin button.admin-btn--success {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}
.page-admin button.admin-btn--success:hover {
  background: rgba(16, 185, 129, 0.4);
  border-color: rgba(16, 185, 129, 0.6);
  color: #fff;
}
.page-admin button.admin-btn--ghost {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}
.page-admin button.admin-btn--ghost:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fff;
}
/* Champs dans les tableaux admin (rôle, faction, parrainage) */
.page-admin .form-input-futuristic,
.page-admin select.form-input-futuristic,
.page-admin table select.form-input-futuristic,
.page-admin input.form-input-futuristic {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  color: #fff;
  font-size: 0.8rem;
  min-height: 32px;
  transition: border-color 0.2s;
}
.page-admin .form-input-futuristic:focus,
.page-admin select.form-input-futuristic:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
/* Boutons Enregistrer / Parrainage (section Réglages) */
.page-admin .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.2s;
}
.page-admin .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  filter: brightness(1.1);
}
.page-admin .btn-secondary {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.page-admin .btn-secondary:hover {
  background: rgba(99, 102, 241, 0.28);
  color: #fff;
}

/* Page admin — thème Centrale : cartes et titres */
.page-admin .glass-card {
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.page-admin .admin-tab-content .glass-card {
  border-radius: 2rem;
  border-color: rgba(255, 255, 255, 0.05);
}
.page-admin .admin-tab-content h2 {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-style: italic;
  color: #fff;
}
.page-admin #adminBreadcrumb {
  color: #71717a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.page-admin .admin-tab-content .rounded-xl.border {
  border-color: rgba(255, 255, 255, 0.08);
}
.page-admin main .text-neutral-400,
.page-admin main .text-neutral-500 {
  color: #94a3b8;
}

/* Admin barre du haut (liens rapides) */
.admin-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}
.admin-top-link--back {
  color: #71717a;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.admin-top-link--back:hover {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}
.admin-top-link--primary {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
}
.admin-top-link--primary:hover {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}
.admin-top-link--muted {
  color: #71717a;
  background: transparent;
}
.admin-top-link--muted:hover {
  color: #a5b4fc;
  background: rgba(255, 255, 255, 0.04);
}

.form-input-futuristic {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  width: 100%;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-input-futuristic:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.tag-pill {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  margin: 0.15rem;
  font-weight: 500;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(15, 15, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
}

/* Modal fin de session gooning — entrée fluide */
.gooning-share-modal {
  animation: gooningShareModalFadeIn 0.25s ease-out;
}
.gooning-share-modal__box {
  animation: gooningShareModalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes gooningShareModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gooningShareModalScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.gooning-share-modal__gen-btn:active {
  transform: scale(0.98);
}

.slide-panel {
  position: fixed;
  right: 0;
  width: 100%;
  max-width: 520px;
  height: calc(100vh - 6rem);
  z-index: 10000;
  background: rgba(10, 10, 12, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

@media (max-width: 1023px) {
  .slide-panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    z-index: 10000;
    border-left: none;
  }
  .slide-panel-backdrop {
    z-index: 9999;
  }
}

.slide-panel.open {
  transform: translateX(0);
}

.slide-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.slide-panel-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.sidebar-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateX(-0.25rem);
}

.sidebar-btn.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
}

.links-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
}

.links-table thead th {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.links-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
}

.links-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.06);
}

.links-table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
}

.links-table tbody td .tag-pill {
  margin: 0.1rem 0.2rem 0.1rem 0;
}

.links-table .link-title {
  font-weight: 600;
  color: #fff;
}

.links-table .url-cell {
  max-width: 280px;
}

.links-table .url-link {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 0.75rem;
}

.links-table .url-link:hover {
  text-decoration: underline;
}

.links-table .gooneur-link {
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.links-table .gooneur-link:hover {
  text-decoration: underline;
}
/* Couleur du pseudo selon le titre (Livre du cul) */
.links-table .gooneur-link.gooner-name-tier-common { color: #9ca3af; }
.links-table .gooneur-link.gooner-name-tier-uncommon { color: #86efac; text-shadow: 0 0 8px rgba(34, 197, 94, 0.25); }
.links-table .gooneur-link.gooner-name-tier-rare { color: #93c5fd; text-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
.links-table .gooneur-link.gooner-name-tier-epic { color: #c4b5fd; text-shadow: 0 0 12px rgba(139, 92, 246, 0.35); }
.links-table .gooneur-link.gooner-name-tier-legendary { color: #fde047; text-shadow: 0 0 14px rgba(250, 204, 21, 0.4); }
.links-table .gooneur-link.gooner-name-tier-mythic { color: #fb923c; text-shadow: 0 0 12px rgba(249, 115, 22, 0.45); }
.links-table .gooneur-link.gooner-name-tier-divine { color: #22d3ee; text-shadow: 0 0 16px rgba(34, 211, 238, 0.5); }
.links-table .gooneur-link.gooner-name-tier-common:hover,
.links-table .gooneur-link.gooner-name-tier-uncommon:hover,
.links-table .gooneur-link.gooner-name-tier-rare:hover,
.links-table .gooneur-link.gooner-name-tier-epic:hover,
.links-table .gooneur-link.gooner-name-tier-legendary:hover,
.links-table .gooneur-link.gooner-name-tier-mythic:hover,
.links-table .gooneur-link.gooner-name-tier-divine:hover { opacity: 0.9; }


.dashboard-table-wrap {
  max-height: min(68vh, 840px);
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.dashboard-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(6px);
}
.dashboard-section-focus {
  animation: dashboardSectionFocusPulse 1.2s ease;
}
@keyframes dashboardSectionFocusPulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.35); }
  70% { box-shadow: 0 0 0 14px rgba(217, 70, 239, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0); }
}

.series-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: default;
}

a.series-badge-link {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

a.series-badge-link:hover {
  opacity: 0.9;
}

.btn-open-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-open-link:hover {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

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

.btn-open-link.link-opened {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.5);
  color: #86efac;
}

/* Titre du lien : vert si déjà ouvert, bleu si < 48 h */
.link-title.link-title-opened {
  color: #4ade80;
}
.link-title.link-title-new {
  color: #60a5fa;
}
.link-title.link-title-opened.link-title-new {
  color: #4ade80;
}

.board-choice {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.board-choice label {
  flex: 1;
  min-width: 140px;
  cursor: pointer;
}

.board-option {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
  text-align: center;
}

.board-option:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
}

input:checked + .board-option {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}

.links-table tbody tr {
  animation: rowFade 0.35s ease-out backwards;
}

.links-table tbody tr:nth-child(1) { animation-delay: 0.02s; }
.links-table tbody tr:nth-child(2) { animation-delay: 0.04s; }
.links-table tbody tr:nth-child(3) { animation-delay: 0.06s; }
.links-table tbody tr:nth-child(4) { animation-delay: 0.08s; }
.links-table tbody tr:nth-child(5) { animation-delay: 0.1s; }
.links-table tbody tr:nth-child(6) { animation-delay: 0.12s; }
.links-table tbody tr:nth-child(7) { animation-delay: 0.14s; }
.links-table tbody tr:nth-child(8) { animation-delay: 0.16s; }
.links-table tbody tr:nth-child(9) { animation-delay: 0.18s; }
.links-table tbody tr:nth-child(10) { animation-delay: 0.2s; }

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

/* Barre d'expérience : remplissage animé + léger shimmer */
.xp-bar-track {
  overflow: hidden;
}
.xp-bar-fill {
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: width;
  position: relative;
}
.xp-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: xp-bar-shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes xp-bar-shimmer {
  0%, 100% { background-position: 200% 0; opacity: 0.6; }
  50% { background-position: -100% 0; opacity: 1; }
}

/* Bloc identité utilisateur : pseudo, titre, niveau, rôle — réutilisable navbar + profil + cartes */
.user-identity-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
}
/* Navbar : hauteur minimale pour que les sidebars sticky (ex. Table du cul) ne passent pas en dessous */
.nav-bar {
  min-height: var(--header-height);
  box-sizing: border-box;
}
/* Navbar : espacement pour éviter chevauchement des lignes */
.nav-bar .user-identity-block {
  gap: 0.5rem;
  min-height: 0;
}
.nav-bar .user-display-name {
  line-height: 1.35;
}
.nav-bar .user-title-phrase {
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-bar .user-status-phrase {
  white-space: normal;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.nav-bar .user-role-label,
.nav-bar .user-connected-label {
  line-height: 1.3;
}
.user-display-name {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  transition: color 0.2s;
}
.user-title-phrase {
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(165, 180, 252, 0.95);
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ——— Badge niveau : base + tiers style LoL ——— */
.user-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c7d2fe;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(99, 102, 241, 0.18));
  border: 1px solid rgba(129, 140, 248, 0.5);
  border-radius: 9999px;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.2);
  margin-left: 0.35rem;
  vertical-align: middle;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
/* Iron 1-9 */
.user-level-badge.level-tier-iron {
  color: #9ca3af;
  background: linear-gradient(145deg, rgba(75, 85, 99, 0.5), rgba(55, 65, 81, 0.35));
  border-color: rgba(107, 114, 128, 0.5);
  box-shadow: 0 0 10px rgba(75, 85, 99, 0.2);
}
/* Bronze 10-24 */
.user-level-badge.level-tier-bronze {
  color: #d4a574;
  background: linear-gradient(145deg, rgba(180, 83, 9, 0.45), rgba(120, 53, 15, 0.35));
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 0 12px rgba(180, 83, 9, 0.25);
}
/* Silver 25-49 */
.user-level-badge.level-tier-silver {
  color: #e5e7eb;
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.5), rgba(100, 116, 139, 0.35));
  border-color: rgba(203, 213, 225, 0.55);
  box-shadow: 0 0 14px rgba(148, 163, 184, 0.3);
}
/* Gold 50-74 */
.user-level-badge.level-tier-gold {
  color: #fef3c7;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.55), rgba(180, 83, 9, 0.4));
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
/* Platinum 75-99 */
.user-level-badge.level-tier-platinum {
  color: #e0f2fe;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.5), rgba(2, 132, 199, 0.4));
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35), 0 0 40px rgba(14, 165, 233, 0.15);
}
/* Legendary 100+ */
.user-level-badge.level-tier-legendary {
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), rgba(236, 72, 153, 0.5), rgba(251, 191, 36, 0.5));
  background-size: 200% 200%;
  animation: level-legendary-shine 4s ease-in-out infinite;
  border: 1px solid rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.5), 0 0 48px rgba(251, 191, 36, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
@keyframes level-legendary-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* Hero / profil : badge plus grand */
.user-identity-block--hero .user-level-badge {
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
}
.user-identity-block--hero .user-level-badge.level-tier-gold {
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.user-identity-block--hero .user-level-badge.level-tier-platinum {
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.45), 0 0 50px rgba(14, 165, 233, 0.2);
}
.user-identity-block--hero .user-level-badge.level-tier-legendary {
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.55), 0 0 60px rgba(251, 191, 36, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
/* Carte stat "Niveau" sur profil public */
.profile-level-stat.level-tier-iron .profile-level-num { color: #9ca3af; }
.profile-level-stat.level-tier-bronze .profile-level-num { color: #d4a574; text-shadow: 0 0 12px rgba(180, 83, 9, 0.3); }
.profile-level-stat.level-tier-silver .profile-level-num { color: #e5e7eb; text-shadow: 0 0 14px rgba(148, 163, 184, 0.35); }
.profile-level-stat.level-tier-gold .profile-level-num {
  background: linear-gradient(135deg, #fef3c7, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
}
.profile-level-stat.level-tier-platinum .profile-level-num {
  background: linear-gradient(135deg, #e0f2fe, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}
.profile-level-stat.level-tier-legendary .profile-level-num {
  background: linear-gradient(135deg, #fbbf24, #a855f7, #ec4899);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: level-legendary-shine 4s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.5));
}
.user-role-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(161, 161, 170, 0.9);
}
.user-status-phrase {
  font-size: 0.65rem;
  font-style: italic;
  color: rgba(161, 161, 170, 0.85);
  line-height: 1.35;
  max-width: 100%;
}
.user-connected-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}
.user-connected-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
}
/* Profil / page : variante plus grande */
.user-identity-block--hero .user-display-name {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
.user-identity-block--hero .user-title-phrase {
  font-size: 1rem;
  white-space: normal;
  max-width: 24rem;
}

/* Titre « Juré de la Table du Cul » : effet violet (gradient + lueur + léger shimmer) */
.jure-table-cul-title {
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(105deg, #c4b5fd 0%, #a78bfa 25%, #8b5cf6 50%, #7c3aed 75%, #6d28d9 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 24px rgba(124, 58, 237, 0.4));
  animation: jure-table-cul-shimmer 3s ease-in-out infinite;
}
@keyframes jure-table-cul-shimmer {
  0%, 100% { background-position: 0% 50%; filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 24px rgba(124, 58, 237, 0.4)); }
  50% { background-position: 100% 50%; filter: drop-shadow(0 0 18px rgba(167, 139, 250, 0.8)) drop-shadow(0 0 32px rgba(139, 92, 246, 0.5)); }
}

/* Titre « Parangon de la Flamme » : effet flamme (gradient ambre/orange + lueur + léger flicker) */
.parangon-flamme-title {
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(105deg, #fef3c7 0%, #fcd34d 20%, #f59e0b 45%, #ea580c 70%, #c2410c 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.7)) drop-shadow(0 0 28px rgba(234, 88, 12, 0.4));
  animation: parangon-flamme-flicker 2.5s ease-in-out infinite;
}
@keyframes parangon-flamme-flicker {
  0%, 100% { background-position: 0% 50%; filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.7)) drop-shadow(0 0 28px rgba(234, 88, 12, 0.4)); }
  50% { background-position: 100% 50%; filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.9)) drop-shadow(0 0 36px rgba(245, 158, 11, 0.6)); }
}

#navTitlePrefix:empty {
  display: none;
}

select,
.sort-select,
select.form-input-futuristic {
  background: #1a1a1e !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  color: #fff !important;
  font-size: 0.9rem;
  cursor: pointer;
}

select:focus,
.sort-select:focus {
  outline: none;
  border-color: var(--accent);
}

select option {
  background: #1a1a1e;
  color: #fff;
}

.links-counter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
}

.counter-item {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.counter-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.counter-item-accent {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}

.counter-icon {
  font-size: 1.25rem;
  opacity: 0.9;
}

.counter-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.counter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
}

.pagination button.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
}

.pagination button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.section-title {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #525252;
  margin-bottom: 1rem;
  margin-left: 0.25rem;
}

.sidebar-group {
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.sidebar-group .section-title {
  margin-bottom: 0.6rem;
  color: #737373;
}

.btn-leak {
  animation: leak-pulse 2s ease-in-out infinite;
}

.btn-leak:hover {
  animation: leak-glow 1s ease-in-out infinite;
}

@keyframes leak-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

@keyframes leak-glow {
  0%, 100% {
    box-shadow: 0 0 12px 2px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
  }
  50% {
    box-shadow: 0 0 20px 6px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.7);
  }
}


/* —— Modal ajout leak : plein écran, slide depuis la droite —— */
.addlink-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #050507;
  overflow: hidden;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.4s;
}

.addlink-modal.addlink-modal--open {
  visibility: visible;
  transform: translateX(0);
}

.addlink-modal-content {
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.22), rgba(10, 10, 12, 0.99) 42%);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -26px 0 75px rgba(0, 0, 0, 0.5), inset 1px 0 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .addlink-modal-content {
    border-radius: 0;
  }
}

/* Écran de choix du mode (tuiles) */
.addlink-mode-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem 1.5rem 3rem;
}

.addlink-mode-choice-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.addlink-mode-choice-desc {
  font-size: 0.875rem;
  color: rgba(212, 212, 216, 0.92);
  max-width: 28rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 2rem;
}

.addlink-mode-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
}

.addlink-mode-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  border: 2px solid rgba(99, 102, 241, 0.3);
  background: rgba(79, 70, 229, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: left;
}

.addlink-mode-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.18);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15);
}

.addlink-mode-tile:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.8);
  outline-offset: 2px;
}

.addlink-mode-tile.addlink-mode-tile--violet {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(147, 51, 234, 0.1);
}

.addlink-mode-tile.addlink-mode-tile--violet:hover {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(147, 51, 234, 0.2);
  box-shadow: 0 12px 28px rgba(147, 51, 234, 0.15);
}

.addlink-mode-tile.addlink-mode-tile--amber {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.addlink-mode-tile.addlink-mode-tile--amber:hover {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.12);
}

.addlink-mode-tile-kicker {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(191, 219, 254, 0.95);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.addlink-mode-tile--violet .addlink-mode-tile-kicker { color: rgba(216, 180, 254, 0.95); }
.addlink-mode-tile--amber .addlink-mode-tile-kicker { color: rgba(253, 230, 138, 0.95); }

.addlink-mode-tile-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.addlink-mode-tile-desc {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.45;
  flex: 1;
}

@media (max-width: 840px) {
  .addlink-mode-tiles {
    grid-template-columns: 1fr;
  }
}

/* —— Panneau Mettre un leak : rendu visuel —— */
.addlink-panel-inner {
  max-width: 100%;
}
.addlink-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.addlink-header--sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.95rem;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.98) 0%, rgba(10, 10, 12, 0.95) 80%, transparent);
  backdrop-filter: blur(8px);
}

.addlink-form-wrap {
  max-width: 100%;
  padding-top: 10rem;
}

.addlink-form-wrap .addlink-steps-indicator {
  margin-top: 0;
}

.addlink-form-wrap .addlink-form .form-step:first-of-type {
  margin-top: 0.5rem;
}

.addlink-header-content {
  min-width: 0;
}
.addlink-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  text-shadow: 0 8px 30px rgba(79, 70, 229, 0.35);
}
.addlink-desc {
  font-size: 0.875rem;
  color: rgba(212, 212, 216, 0.92);
  max-width: 36rem;
  line-height: 1.5;
}
.addlink-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding-inline: 0.95rem;
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.6);
  color: rgba(226, 232, 240, 0.95);
}
.addlink-close-btn:hover {
  border-color: rgba(129, 140, 248, 0.75);
  background: rgba(99, 102, 241, 0.22);
  color: #fff;
}

.addlink-modules-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.addlink-module-card {
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 0.9rem;
  background: rgba(79, 70, 229, 0.1);
  padding: 0.85rem;
}
.addlink-module-card--violet { border-color: rgba(168, 85, 247, 0.4); background: rgba(147, 51, 234, 0.1); }
.addlink-module-card--amber { border-color: rgba(251, 191, 36, 0.4); background: rgba(245, 158, 11, 0.08); }
.addlink-module-kicker { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(191, 219, 254, 0.9); font-weight: 800; margin-bottom: 0.3rem; }
.addlink-module-title { font-size: 0.95rem; font-weight: 800; color: #fff; margin-bottom: 0.35rem; }
.addlink-module-desc { font-size: 0.75rem; color: rgba(226, 232, 240, 0.82); line-height: 1.45; }

.addlink-steps-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.addlink-step {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(163, 163, 163, 0.8);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.addlink-step-active {
  color: #e0e7ff;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.35), rgba(129, 140, 248, 0.15));
}
.addlink-label {
  margin-bottom: 0.5rem;
}
.addlink-url-zones .addlink-url-zone {
  margin-bottom: 0;
}
.addlink-add-url-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(129, 140, 248, 1);
  background: rgba(99, 102, 241, 0.1);
  border: 1px dashed rgba(99, 102, 241, 0.4);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.addlink-add-url-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.6);
  color: #fff;
}
.addlink-add-url-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.addlink-title-check {
  font-size: 0.8125rem;
}
.addlink-title-check .is-duplicate {
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0.9rem;
  padding: 0.75rem;
}
.addlink-title-suggestion-btn {
  cursor: pointer;
  transition: opacity 0.2s, transform 0.05s;
}
.addlink-title-suggestion-btn:hover {
  opacity: 0.95;
}
.addlink-form-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tag-pill-popular {
  font-size: 0.75rem;
}
.addlink-tags-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.85rem;
}
.addlink-tags-selected-panel,
.addlink-tags-library-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(3, 7, 18, 0.45);
  padding: 0.75rem;
}
.addlink-tags-heading {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(129, 140, 248, 0.95);
  margin-bottom: 0.4rem;
}
.addlink-tags-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.5rem;
  border-radius: 0.8rem;
  border: 1px dashed rgba(129, 140, 248, 0.4);
  background: rgba(15, 23, 42, 0.7);
}
.addlink-tags-groups {
  display: grid;
  gap: 0.6rem;
}
.addlink-tags-group {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.8rem;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
}
.addlink-tags-group-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.8);
  margin-bottom: 0.45rem;
}
.addlink-tags-related-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.addlink-tag-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.12);
  color: #dbeafe;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
}
.addlink-success-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.addlink-success-icon {
  width: 56px; height: 56px; border-radius: 999px; margin: 0 auto 0.9rem;
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 800;
  color: #34d399; border: 1px solid rgba(52, 211, 153, 0.4); background: rgba(16, 185, 129, 0.12);
}
.addlink-success-kicker { font-size: 0.65rem; letter-spacing: 0.13em; text-transform: uppercase; color: #a5b4fc; font-weight: 800; }
.addlink-success-title { font-size: 1.5rem; font-weight: 900; color: #fff; margin: 0.35rem 0 0.5rem; }
.addlink-success-desc { color: rgba(226, 232, 240, 0.82); font-size: 0.9rem; }
.addlink-success-actions { margin-top: 1.2rem; display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.tag-pill-related {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
}

@media (max-width: 840px) {
  .addlink-tags-layout { grid-template-columns: 1fr; }
  .addlink-modules-showcase { grid-template-columns: 1fr; }
}

.addlink-tags-search .form-input-futuristic {
  max-width: 220px;
}

@keyframes gooning-alert-in {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

#gooning-start-alert {
  animation: gooning-alert-in 0.35s ease-out;
}

/* Custom scrollbar — Ladder */
.custom-scrollbar::-webkit-scrollbar {
  width: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* URL masquée, stat-box, scrollbar global */
.url-masquee {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  color: #6366f1;
  font-size: 11px;
  opacity: 0.7;
}

.url-masquee:hover {
  opacity: 1;
  text-decoration: underline;
}

.stat-box {
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.stat-box:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

/* Ladder Intensité — style podium (course) */
.ladder-podium-1 {
  border-left: 3px solid #fbbf24;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08) 0%, transparent 100%);
}
.ladder-podium-2 {
  border-left: 3px solid #d1d5db;
  background: linear-gradient(90deg, rgba(209, 213, 219, 0.06) 0%, transparent 100%);
}
.ladder-podium-3 {
  border-left: 3px solid #b45309;
  background: linear-gradient(90deg, rgba(180, 83, 9, 0.08) 0%, transparent 100%);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background: #312e81;
  border-radius: 10px;
}

/* ——————— Mobile : base ——————— */
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* Touch: cibles minimum 44px, pas de zoom sur focus */
@media (pointer: coarse) {
  .sidebar-btn,
  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .btn-open-link,
  .nav-bar button,
  .nav-bar a[href] {
    min-height: 44px;
    min-width: 44px;
  }
  .form-input-futuristic,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
    min-height: 44px;
    font-size: 16px; /* évite le zoom auto sur iOS */
  }
  input[type="number"] {
    font-size: 16px;
  }
}

/* ——————— Mobile : sidebar et backdrop plein écran (page à part) ——————— */
@media (max-width: 1023px) {
  .sidebar-backdrop {
    top: 0 !important;
    height: 100vh;
  }
  #sidebarBackdrop.sidebar-backdrop-open,
  .sidebar-backdrop.sidebar-backdrop-open {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar-drawer.sidebar-drawer-open {
    transform: translateX(0);
  }
  .sidebar-drawer {
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    width: 100%;
    max-width: none;
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-top: env(safe-area-inset-top, 0);
  }
  .sidebar-btn {
    padding: 0.875rem 1rem;
    min-height: 52px;
  }
  .slide-panel {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-top: env(safe-area-inset-top, 0);
  }
  .slide-panel .p-6 {
    padding: 1rem env(safe-area-inset-right, 1.5rem) 2rem env(safe-area-inset-left, 1.5rem);
  }
  .slide-panel .p-6 > div:first-child {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(12px);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 1rem env(safe-area-inset-right, 1.5rem) 1rem env(safe-area-inset-left, 1.5rem);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .modal-content {
    margin: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

/* ——————— Mobile : nav plus compacte ——————— */
@media (max-width: 640px) {
  .nav-bar .max-w-\[1920px\] {
    padding-left: env(safe-area-inset-left, 1rem);
    padding-right: env(safe-area-inset-right, 1rem);
  }
}

/* ——————— Mobile : contenu principal ——————— */
@media (max-width: 1023px) {
  main.flex-1 {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-bottom: env(safe-area-inset-bottom, 1rem);
    padding-top: 0.5rem;
  }
  #sidebarToggle {
    left: env(safe-area-inset-left, 1rem);
    top: 5rem;
    min-width: 52px;
    min-height: 52px;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
    font-size: 0;
  }
  #sidebarToggle:hover {
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
  }
}

/* Quick wins & cartes dashboard : mobile */
@media (max-width: 768px) {
  #dashboardQuickWins {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  #dashboardQuickWins .glass-card {
    padding: 1.25rem 1.5rem;
    border-radius: 1.5rem;
  }
  #dashboardQuickWins .text-2xl {
    font-size: 1.25rem;
  }
}
@media (max-width: 640px) {
  #dashboardQuickWins {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }
  #dashboardQuickWins .glass-card.p-8 {
    padding: 1.25rem 1.25rem;
  }
  #dashboardQuickWins .rounded-\[2\.5rem\] {
    border-radius: 1.5rem;
  }
}

@media (max-width: 768px) {
  .glass-card.rounded-\[2\.5rem\] {
    border-radius: 1.5rem;
    padding: 1rem 1.25rem;
  }
  .links-counter,
  #linksCounter {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  .links-counter .flex-col,
  #linksCounter .flex-col {
    padding: 0.5rem 0.75rem;
  }
  .links-counter .text-2xl,
  #linksCounter .text-2xl {
    font-size: 1.25rem;
  }
  /* Barre d’outils (Intensité, Performance, etc.) : scroll horizontal */
  .dashboard-toolbar {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding: 0.5rem;
    scrollbar-width: none;
  }
  .dashboard-toolbar::-webkit-scrollbar {
    display: none;
  }
  .dashboard-toolbar button,
  .dashboard-toolbar a {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
  }
  .dashboard-toolbar .text-\[10px\] {
    font-size: 9px;
  }
}

/* ——————— Mobile : recherche + tri ——————— */
@media (max-width: 640px) {
  .flex.flex-wrap.gap-4.mb-8 {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .flex.flex-wrap.gap-4.mb-8 .relative.flex-1 {
    min-width: 0;
  }
  .flex.flex-wrap.gap-4.mb-8 .relative.flex.items-center {
    width: 100%;
    min-height: 48px;
  }
  .flex.flex-wrap.gap-4.mb-8 input {
    min-height: 48px;
    padding: 0.75rem 1rem 0.75rem 3rem;
  }
}

/* ——————— Mobile : tableau des liens ——————— */
@media (max-width: 640px) {
  .links-table thead th,
  .links-table tbody td {
    padding: 0.625rem 0.5rem;
    font-size: 0.7rem;
  }
  .links-table thead th {
    white-space: nowrap;
  }
  .links-table .url-cell {
    max-width: 100px;
  }
  .links-table .link-title {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .btn-open-link,
  .btn-danger {
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
    white-space: nowrap;
  }
  .overflow-x-auto.rounded-\[1\.5rem\] {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}

/* Titres de section plus courts sur mobile */
@media (max-width: 640px) {
  .text-3xl.font-black {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  .flex.flex-wrap.items-end.justify-between.gap-6.mb-10 {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* Pagination : boutons plus grands au tactile */
@media (max-width: 640px) {
  .pagination {
    gap: 0.5rem;
    padding: 1rem 0;
  }
  .pagination button {
    min-width: 44px;
    height: 44px;
    font-size: 0.875rem;
  }
}

/* Stats panel (2x2) */
@media (max-width: 640px) {
  #statsPanel {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .stat-box {
    padding: 1rem;
  }
}

/* Admin / slide panels : boutons et champs */
@media (max-width: 640px) {
  .admin-tab-content table {
    font-size: 0.75rem;
  }
  .admin-tab-content th,
  .admin-tab-content td {
    padding: 0.5rem 0.25rem;
  }
}
.admin-tab-content tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.admin-tab-content tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Réduction du hover transform sur tactile (éviter les saccades) */
@media (hover: none) {
  .glass-card:hover {
    transform: none;
  }
  .sidebar-btn:hover {
    transform: none;
  }
  .btn-primary:hover {
    transform: none;
  }
  .counter-item:hover {
    transform: none;
  }
}

/* Safe area bottom pour le contenu principal (éviter que le dernier bloc soit sous la barre iOS) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  main.flex-1 {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

/* --- Style WoW : bannière achievement / quête à réclamer (scintillement) --- */
a.wow-achievement-banner,
.wow-achievement-banner {
  position: relative;
  display: flex !important; /* priorité sur Tailwind .block */
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(120, 80, 40, 0.35) 0%, rgba(180, 130, 60, 0.25) 50%, rgba(120, 80, 40, 0.35) 100%);
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.wow-achievement-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.06) 55%, transparent 100%);
  background-size: 200% 100%;
  animation: wow-shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wow-shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}
.wow-achievement-banner .wow-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.4), rgba(140, 100, 40, 0.5));
  border: 2px solid rgba(212, 175, 55, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
  animation: wow-glow-pulse 2s ease-in-out infinite;
}
@keyframes wow-glow-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
}
.wow-achievement-banner .wow-text {
  flex: 1;
  min-width: 0;
}
.wow-achievement-banner .wow-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(200, 170, 120, 0.95);
  margin-bottom: 0.15rem;
}
.wow-achievement-banner .wow-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.wow-achievement-banner .wow-where {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(253, 224, 150, 0.95);
}
.wow-achievement-banner .wow-names {
  font-size: 0.65rem;
  color: rgba(255, 235, 200, 0.85);
}
.wow-achievement-banner .wow-reward {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(80, 60, 30, 0.8), rgba(50, 40, 20, 0.9));
  border: 2px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255, 220, 150, 0.95);
}

/* Bannière « Haut fait de la honte » (profil) */
.profile-honte-banner {
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.profile-honte-banner .profile-honte-banner-icon {
  filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.4));
}

/* Titres / sous-titres par tier (niveau visuel) */
.title-tier-common { color: #9ca3af; }
.title-tier-uncommon { color: #22c55e; text-shadow: 0 0 8px rgba(34, 197, 94, 0.3); }
.title-tier-rare { color: #3b82f6; text-shadow: 0 0 10px rgba(59, 130, 246, 0.4); }
.title-tier-epic { color: #a855f7; text-shadow: 0 0 12px rgba(168, 85, 247, 0.5); }
.title-tier-legendary { color: #eab308; text-shadow: 0 0 14px rgba(234, 179, 8, 0.6); animation: title-legendary-glow 2s ease-in-out infinite; }
@keyframes title-legendary-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}
.title-tier-common .title-icon,
.title-tier-uncommon .title-icon,
.title-tier-rare .title-icon,
.title-tier-epic .title-icon,
.title-tier-legendary .title-icon { margin-right: 0.25rem; }

/* Overlay + animation récompense réclamée (profil) */
.profile-reward-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: auto;
}
.profile-reward-overlay.hidden {
  display: none;
  pointer-events: none;
}
.profile-reward-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  animation: profile-reward-fade-in 0.3s ease-out;
}
.profile-reward-modal {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 2.5rem;
  border-radius: 1.5rem;
  border: 2px solid rgba(245, 158, 11, 0.5);
  background: linear-gradient(145deg, rgba(20, 20, 25, 0.98), rgba(15, 15, 20, 0.98));
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.2), 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: profile-reward-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.profile-reward-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.5));
  animation: profile-reward-bounce 0.6s ease-out 0.2s both;
}
.profile-reward-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fbbf24;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: profile-reward-bounce 0.5s ease-out 0.25s both;
}
.profile-reward-xp {
  font-size: 1.5rem;
  font-weight: 800;
  color: #a3e635;
  margin: 0;
  animation: profile-reward-bounce 0.5s ease-out 0.35s both;
}
.profile-reward-confetti {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  overflow: visible;
}
.profile-reward-confetti-piece {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  opacity: 0;
  animation: profile-reward-confetti-fly 1.8s ease-out var(--delay, 0s) forwards;
  transform: translate(-50%, -50%) translateX(var(--x, 0)) rotate(var(--rot, 0deg));
}
@keyframes profile-reward-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes profile-reward-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes profile-reward-bounce {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes profile-reward-confetti-fly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0) translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(var(--x, 0)) translateY(-80vh) rotate(720deg);
  }
}

/* Profil : glorifier quêtes et hauts faits */
.profile-quest-card {
  transition: box-shadow 0.2s, border-color 0.2s;
}
.profile-quest-card:hover {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}
.profile-haut-fait-unlocked {
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.12);
}
.profile-haut-fait-unlocked:hover {
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.18);
}
.profile-haut-fait-locked {
  transition: opacity 0.2s;
}
.profile-haut-fait-locked:hover {
  opacity: 0.85;
}

/* Profil public : cartes de stats */
.profile-public-stat {
  transition: box-shadow 0.2s, border-color 0.2s;
}
.profile-public-stat:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Toasts / notifications — design Flux_Systeme */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 20rem;
  max-width: calc(100vw - 2rem);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  background: #070708;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, opacity 0.3s;
  animation: toast-in 0.35s cubic-bezier(0.21, 0.47, 0.32, 1);
}

.toast.toast--out {
  animation: toast-out 0.25s ease forwards;
}

.toast__inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
}

.toast__icon-box {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast__icon-box svg {
  width: 1rem;
  height: 1rem;
  color: #fff;
}

.toast__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toast__title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
}

.toast__msg {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.toast__close {
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  transition: color 0.2s;
}

.toast__close:hover {
  color: #fff;
}

.toast__close svg {
  width: 12px;
  height: 12px;
}

/* Fallback si ancien markup (sans caverne-toast.js) */
.toast .toast-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}
.toast .toast-msg {
  font-size: 0.875rem;
  font-weight: 500;
  color: inherit;
}

.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.toast__progress-bar {
  height: 100%;
  animation: toast-progress 4s linear forwards;
}

/* Success */
.toast--success .toast__icon-box {
  background: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.toast--success .toast__progress-bar {
  background: #6366f1;
}

/* Error — bande rose + barre gauche */
.toast--error {
  border-color: rgba(127, 29, 29, 0.6);
  box-shadow: 25px 25px 80px rgba(0, 0, 0, 0.9);
}

.toast--error::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background: repeating-linear-gradient(45deg, #f43f5e, #f43f5e 10px, #0a0a0c 10px, #0a0a0c 20px);
}

.toast--error::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #e11d48;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.7);
  animation: toast-pulse 1.5s ease-in-out infinite;
}

.toast--error .toast__inner {
  padding-left: 1.5rem;
  position: relative;
  z-index: 1;
}

.toast--error .toast__icon-box {
  background: #e11d48;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

.toast--error .toast__title {
  color: #fda4af;
  font-size: 8px;
  letter-spacing: 0.4em;
}

.toast--error .toast__msg {
  color: #94a3b8;
  font-size: 9px;
  font-style: italic;
  opacity: 0.9;
}

.toast--error .toast__progress-bar {
  background: #e11d48;
}

/* Info (style proche success, ton indigo plus doux) */
.toast--info .toast__icon-box {
  background: #475569;
  box-shadow: 0 0 8px rgba(71, 85, 105, 0.5);
}

.toast--info .toast__progress-bar {
  background: rgba(99, 102, 241, 0.5);
}

@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

@keyframes toast-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* --- Boutique : lien retour --- */
.shop-back-btn {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.shop-back-btn:active {
  transform: translateY(1px);
}

/* --- Boutique : hero --- */
.shop-hero {
  position: relative;
}
.shop-hero-glow {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* --- Boutique : soldes (hero) --- */
.shop-balance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.shop-balance {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 18, 0.7);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.shop-balance:hover {
  transform: translateY(-1px);
}
.shop-balance-cc {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
}
.shop-balance-cc:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12);
}
.shop-balance-xp {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.02) 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
}
.shop-balance-xp:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.12);
}
.shop-balance-bp {
  border-color: rgba(244, 63, 94, 0.3);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(244, 63, 94, 0.02) 100%);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.08);
}
.shop-balance-bp:hover {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.12);
}
.shop-balance-ecul {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.04);
}
.shop-balance-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.shop-balance-cc .shop-balance-icon { background: rgba(245, 158, 11, 0.2); }
.shop-balance-xp .shop-balance-icon { background: rgba(99, 102, 241, 0.2); }
.shop-balance-bp .shop-balance-icon { background: rgba(244, 63, 94, 0.2); }
.shop-balance-ecul .shop-balance-icon { background: rgba(251, 191, 36, 0.15); }
.shop-balance-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.15rem;
}
.shop-balance-cc .shop-balance-label { color: rgba(245, 158, 11, 0.95); }
.shop-balance-xp .shop-balance-label { color: rgba(129, 140, 248, 0.95); }
.shop-balance-bp .shop-balance-label { color: rgba(251, 113, 133, 0.95); }
.shop-balance-ecul .shop-balance-label { color: rgba(251, 191, 36, 0.8); }
.shop-balance-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* --- Boutique : fausses pubs (encarts) --- */
.shop-fake-ads {
  display: grid;
}
.shop-fake-ad {
  position: relative;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(25, 25, 30, 0.9) 0%, rgba(15, 15, 18, 0.95) 100%);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.shop-fake-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.shop-fake-ad--1 {
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.1) inset;
}
.shop-fake-ad--1:hover { border-color: rgba(251, 191, 36, 0.4); }
.shop-fake-ad--2 {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}
.shop-fake-ad--2:hover { border-color: rgba(99, 102, 241, 0.4); }
.shop-fake-ad--3 {
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.1) inset;
}
.shop-fake-ad--3:hover { border-color: rgba(168, 85, 247, 0.4); }
.shop-fake-ad-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}
.shop-fake-ad-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
  padding-right: 4.5rem;
}
.shop-fake-ad-desc {
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.7);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.shop-fake-ad-cta {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245, 158, 11, 0.9);
}

/* --- Boutique : Pass Saison mis en avant (de ouf) --- */
.shop-pass-featured {
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.shop-pass-featured::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.6), rgba(168, 85, 247, 0.4), rgba(251, 191, 36, 0.5));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: shop-pass-border-glow 3s ease-in-out infinite;
  z-index: 0;
}
.shop-pass-featured > * {
  position: relative;
  z-index: 1;
}
.shop-pass-featured-glow {
  background: radial-gradient(ellipse 100% 80% at 70% 50%, rgba(245, 158, 11, 0.2) 0%, rgba(168, 85, 247, 0.08) 40%, transparent 70%);
  border-radius: inherit;
  z-index: 0;
}
.shop-pass-featured-icon {
  animation: shop-pass-icon-float 2.5s ease-in-out infinite;
}
.shop-pass-featured-cta {
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}
.shop-pass-featured:hover .shop-pass-featured-cta {
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.4);
}
@keyframes shop-pass-border-glow {
  0%, 100% { background-position: 0% 50%; opacity: 0.9; }
  50% { background-position: 100% 50%; opacity: 1; }
}
@keyframes shop-pass-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --- Boutique : section Pass Saison mise en avant --- */
.shop-section--season-pass {
  position: relative;
  padding-top: 0.5rem;
}
.shop-section--season-pass::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.5), rgba(168, 85, 247, 0.3));
  opacity: 0.8;
}
.shop-section--season-pass .shop-section-header {
  border-bottom-color: rgba(245, 158, 11, 0.15);
}
.shop-section--season-pass .shop-section-icon {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

/* --- Boutique : en-têtes de section --- */
.shop-section-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.shop-section-icon {
  transition: transform 0.2s, box-shadow 0.2s;
}
.shop-section-header:hover .shop-section-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* --- Boutique : onglets par catégorie --- */
.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.shop-tab {
  flex-shrink: 0;
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.95);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.shop-tab:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: rgba(253, 230, 138, 0.98);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}
.shop-tab.shop-tab--active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.12) 100%);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fcd34d;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.shop-tab:active {
  transform: translateY(0);
}
.shop-tab.shop-tab--season-pass {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.06);
  color: rgba(253, 230, 138, 0.95);
}
.shop-tab.shop-tab--season-pass:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}
.shop-tab.shop-tab--season-pass.shop-tab--active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(245, 158, 11, 0.15) 100%);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.shop-section--hidden {
  display: none !important;
}

/* --- Boutique : cartes produit (entrée, hover, legendary) --- */
.shop-card {
  animation: shop-card-fade-in 0.35s ease-out backwards;
}
.shop-card:nth-child(1) { animation-delay: 0.02s; }
.shop-card:nth-child(2) { animation-delay: 0.05s; }
.shop-card:nth-child(3) { animation-delay: 0.08s; }
.shop-card:nth-child(4) { animation-delay: 0.11s; }
.shop-card:nth-child(5) { animation-delay: 0.14s; }
.shop-card:nth-child(6) { animation-delay: 0.17s; }
.shop-card:nth-child(7) { animation-delay: 0.2s; }
.shop-card:nth-child(8) { animation-delay: 0.23s; }
.shop-card:nth-child(9) { animation-delay: 0.26s; }
.shop-card:nth-child(10) { animation-delay: 0.29s; }
.shop-card:nth-child(n+11) { animation-delay: 0.32s; }

@keyframes shop-card-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.shop-card.shop-card--legendary {
  position: relative;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.15);
}
.shop-card.shop-card--legendary::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(168, 85, 247, 0.3), rgba(251, 191, 36, 0.35));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: shop-legendary-glow 4s ease-in-out infinite;
}
@keyframes shop-legendary-glow {
  0%, 100% { background-position: 0% 50%; opacity: 0.85; }
  50% { background-position: 100% 50%; opacity: 1; }
}

.shop-card.shop-card--legendary:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), 0 0 32px rgba(245, 158, 11, 0.25);
}

/* Bouton d'achat : état achetable */
.shop-buy-btn.shop-buy-btn--affordable {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%) !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.shop-buy-btn.shop-buy-btn--affordable:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0.2) 100%) !important;
}
.shop-buy-btn.shop-buy-btn--affordable:active {
  transform: scale(0.98);
}

/* Bouton d'achat : état indisponible (il te manque X Cc/XP) */
.shop-buy-btn:not(.shop-buy-btn--affordable) {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.shop-buy-btn:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

@media (hover: none) {
  .shop-card:hover {
    transform: none;
    box-shadow: none;
  }
  .shop-card.shop-card--legendary:hover {
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.15);
  }
  .shop-buy-btn.shop-buy-btn--affordable:hover {
    transform: none;
  }
}

/* Thèmes de profil (data-theme sur body) */
[data-theme="amber"] {
  --accent: #d97706;
  --accent-light: #f59e0b;
}
[data-theme="amber"] .glass-card:hover,
[data-theme="amber"] .nav-btn:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
}
[data-theme="violet"] {
  --accent: #7c3aed;
  --accent-light: #8b5cf6;
}
[data-theme="violet"] .glass-card:hover,
[data-theme="violet"] .nav-btn:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
}
[data-theme="caverne"] {
  --accent: #ea580c;
  --accent-light: #f97316;
}
[data-theme="caverne"] .glass-card:hover,
[data-theme="caverne"] .nav-btn:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.08);
}
[data-theme="dark"] {
  --accent: #4b5563;
  --accent-light: #6b7280;
}

/* —— Hero profil : personnalisation boutique (thème = --accent) —— */
.profile-hero-card {
  border-color: rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.profile-hero-card .profile-hero-xp-fill {
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent);
}
.profile-avatar-frame-wrap {
  position: relative;
}
.profile-avatar-frame {
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent), 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.profile-hero-card:hover .profile-avatar-frame {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 50%, transparent), 0 12px 32px rgba(0, 0, 0, 0.4);
}
.profile-stats-link {
  color: var(--accent-light);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.profile-stats-link:hover {
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 25%, transparent);
}
/* Thèmes achetés : hero avec teinte thème */
[data-theme="amber"] .profile-hero-card {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12) 0%, rgba(10, 10, 11, 0.98) 45%, rgba(245, 158, 11, 0.08) 100%);
  border-color: rgba(245, 158, 11, 0.25);
}
[data-theme="violet"] .profile-hero-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, rgba(10, 10, 11, 0.98) 45%, rgba(139, 92, 246, 0.1) 100%);
  border-color: rgba(139, 92, 246, 0.3);
}
[data-theme="caverne"] .profile-hero-card {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12) 0%, rgba(10, 10, 11, 0.98) 45%, rgba(249, 115, 22, 0.1) 100%);
  border-color: rgba(249, 115, 22, 0.28);
}

/* Registre gooning : tiers de titre (noms gooneurs dans tableaux et sidebar ladder) */
.gooner-name-tier-common { color: #9ca3af; }
.gooner-name-tier-uncommon { color: #86efac; text-shadow: 0 0 8px rgba(34, 197, 94, 0.25); }
.gooner-name-tier-rare { color: #93c5fd; text-shadow: 0 0 10px rgba(59, 130, 246, 0.3); }
.gooner-name-tier-epic { color: #c4b5fd; text-shadow: 0 0 12px rgba(139, 92, 246, 0.35); }
.gooner-name-tier-legendary { color: #fde047; text-shadow: 0 0 14px rgba(250, 204, 21, 0.4); }
.gooner-name-tier-mythic { color: #fb923c; text-shadow: 0 0 12px rgba(249, 115, 22, 0.45); }
.gooner-name-tier-divine { color: #22d3ee; text-shadow: 0 0 16px rgba(34, 211, 238, 0.5); }
.ladder-row-link.gooner-name-tier-common { color: #9ca3af; }
.ladder-row-link.gooner-name-tier-uncommon { color: #86efac; }
.ladder-row-link.gooner-name-tier-rare { color: #93c5fd; }
.ladder-row-link.gooner-name-tier-epic { color: #c4b5fd; }
.ladder-row-link.gooner-name-tier-legendary { color: #fde047; }
.ladder-row-link.gooner-name-tier-mythic { color: #fb923c; }
.ladder-row-link.gooner-name-tier-divine { color: #22d3ee; }

/* Tableau Registre gooning */
.registre-gooning-table { border-collapse: collapse; }
.registre-gooning-table th { white-space: nowrap; }
.registre-gooning-table td { vertical-align: middle; }

/* Mini-profil au survol (Registre / Performers) */
.gooning-log-mini-profile {
  transition: opacity 0.15s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  pointer-events: auto; /* pour que mouseleave se déclenche au départ du popup */
}
.gooning-log-mini-profile a[href]:not(.pointer-events-auto) {
  pointer-events: auto;
}

/* ——— Page Communauté : Guerre de gland ——— */
.communaute-hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(236, 72, 153, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.communaute-section-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0c;
}

/* Factions : cartes */
.communaute-factions-section .faction-cards-grid {
  align-items: stretch;
}
.faction-card {
  position: relative;
  min-height: 11rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.03);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, #0c0c0f 40%, #0a0a0d 100%);
}
.faction-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--faction-color, #6366f1) 0%, transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.faction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 40px -10px var(--faction-color, rgba(99, 102, 241, 0.2));
  border-color: rgba(255, 255, 255, 0.2);
}
.faction-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--faction-color, #6366f1);
  opacity: 0.9;
  z-index: 1;
}
.faction-card .faction-card-name {
  word-break: break-word;
  line-height: 1.25;
}
.faction-card .faction-badge-mine {
  flex-shrink: 0;
}
.faction-slide-icon {
  flex-shrink: 0;
}

.war-bar-container {
  height: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}
.war-bar-left,
.war-bar-right {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.war-bar-left {
  border-radius: 1rem 0 0 1rem;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.08);
}
.war-bar-right {
  border-radius: 0 1rem 1rem 0;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.06);
}
.war-bar-glow {
  animation: war-bar-pulse 2.5s ease-in-out infinite;
}
@keyframes war-bar-pulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.92; filter: brightness(1.08); }
}
.war-convert-input {
  width: 6rem;
  text-align: center;
}

/* ——— Guerre de gland style Clash of Clans ——— */
.communaute-war-coc {
  position: relative;
}
.communaute-war-coc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.35) 0%, transparent 40%, transparent 60%, rgba(245, 158, 11, 0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.war-coc-banner {
  padding: 0.5rem 0;
}
.war-coc-banner-title {
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

.war-coc-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .war-coc-arena {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.5rem;
  }
  .war-coc-shield-left { order: 1; }
  .war-coc-bar-wrap { order: 2; }
  .war-coc-shield-right { order: 3; }
}

.war-coc-shield {
  --war-shield-color: #6366f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  border-radius: 1rem;
  border: 2px solid color-mix(in srgb, var(--war-shield-color) 50%, transparent);
  background: color-mix(in srgb, var(--war-shield-color) 12%, rgba(0, 0, 0, 0.4));
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--war-shield-color) 20%, transparent), 0 4px 16px rgba(0, 0, 0, 0.3);
  min-height: 5rem;
}
.war-coc-shield-left { text-align: center; }
.war-coc-shield-right { text-align: center; }
.war-coc-shield-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--war-shield-color);
  margin-bottom: 0.25rem;
  text-shadow: 0 0 12px color-mix(in srgb, var(--war-shield-color) 50%, transparent);
}
.war-coc-shield-score {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.4);
}
.war-coc-shield-pts {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.war-coc-bar-wrap {
  animation: war-bar-pulse 2.5s ease-in-out infinite;
  min-width: 0;
}
.war-coc-bar-container {
  position: relative;
  height: 2.25rem;
  border-radius: 1.125rem;
  overflow: visible;
  display: flex;
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.08), 0 0 24px rgba(245, 158, 11, 0.15);
  background: rgba(0, 0, 0, 0.5);
}
.war-coc-bar-fill {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}
.war-coc-bar-left {
  border-radius: 1.125rem 0 0 1.125rem;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.1);
}
.war-coc-bar-right {
  border-radius: 0 1.125rem 1.125rem 0;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.06);
}
.war-coc-bar-vs {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.9);
  z-index: 2;
  pointer-events: none;
}

.war-coc-scores {
  margin-top: 1rem;
}

.war-coc-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.war-coc-cta-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
}
.war-coc-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.war-coc-cta-row .war-convert-input {
  width: 5.5rem;
}
.war-coc-cta-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.war-coc-cta-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}
.war-coc-desc {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ——— Page Communauté : slides complètes ——— */
.communaute-slides-root {
  min-height: calc(100vh - 80px);
  overflow: hidden;
}
.communaute-slides {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  height: calc(100vh - 80px);
  scrollbar-width: none;
}
.communaute-slides::-webkit-scrollbar {
  display: none;
}
.communaute-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow-y: auto;
  overflow-x: hidden;
}
.communaute-slide-inner {
  min-height: min-content;
  padding-bottom: 5rem;
}
.communaute-slides-nav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 2rem;
  background: rgba(13, 13, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  z-index: 30;
}
.communaute-slides-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.communaute-slides-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.4);
  transform: scale(1.05);
}
.communaute-slides-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.communaute-slides-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.communaute-slides-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.communaute-slides-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}
.communaute-slides-dot.active {
  background: rgba(99, 102, 241, 0.9);
  transform: scale(1.25);
}
@media (max-width: 640px) {
  .communaute-slides-nav {
    bottom: 1rem;
    padding: 0.4rem 0.6rem;
    gap: 0.5rem;
  }
  .communaute-slides-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* Hub Communauté — tuiles navigation (thème tableau de bord) */
.communaute-hub-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0c;
  box-shadow: 30px 30px 100px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.communaute-hub-panel:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
}
.communaute-hub-panel.active {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.06);
}
.communaute-hub-mini {
  border-radius: 0;
}
.communaute-hub-mini:hover {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.communaute-page .communaute-section-card,
.communaute-page .communaute-factions-section,
.communaute-page .communaute-war-coc {
  border-radius: 0;
}
#factions,
#communaute-overview {
  scroll-margin-top: 5rem;
}

/* Profil : onglets mobiles (défilement horizontal, repère visuel) */
[role="tablist"].overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
[role="tablist"] .profile-tab {
  flex-shrink: 0;
  white-space: nowrap;
}
/* Carte profil public : empêcher débordement sur mobile */
#profilePublicCard {
  min-width: 0;
  overflow-x: hidden;
  word-wrap: break-word;
}
/* Skeleton hero profil */
.profile-hero-skeleton .animate-pulse {
  animation: profile-skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes profile-skeleton-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================================
   URL Shortener — Toggle & Result (add-link panel)
   ============================================================ */

/* Toggle ad button */
.shortener-toggle-wrap {
  margin-top: 4px;
}

.shortener-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 10px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.2s;
}
.shortener-toggle:hover {
  color: rgba(255,255,255,0.7);
}

.shortener-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  transition: background 0.25s;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.shortener-toggle.active .shortener-toggle-track {
  background: #6366f1;
  border-color: rgba(99,102,241,0.5);
}

.shortener-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.shortener-toggle.active .shortener-toggle-knob {
  transform: translateX(20px);
}

.shortener-toggle-text {
  display: flex;
  align-items: center;
  gap: 6px;
}
.shortener-toggle-text i {
  font-size: 14px;
  opacity: 0.6;
}

/* Short URL result box */
.shortener-result {
  animation: shortener-fadeIn 0.3s ease-out;
}
@keyframes shortener-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.shortener-result-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  padding: 14px 18px;
}

.shortener-result-url {
  color: #818cf8;
  font-weight: 700;
  font-size: 14px;
  word-break: break-all;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.shortener-result-url:hover {
  text-decoration: underline;
  color: #a5b4fc;
}

/* --- Boutique v2 : navigation + sections plus marquées --- */
.shop-navigation-panel {
  position: sticky;
  top: 0.5rem;
  z-index: 22;
  background: linear-gradient(165deg, rgba(18, 18, 22, 0.95) 0%, rgba(10, 10, 12, 0.98) 100%);
  backdrop-filter: blur(12px);
}
.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.shop-tab {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}
.shop-tab__label {
  display: inline-flex;
  align-items: center;
}
.shop-tab__count {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
  padding: 0 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}
.shop-tab.shop-tab--active .shop-tab__count,
.shop-tab:hover .shop-tab__count {
  background: rgba(251, 191, 36, 0.22);
  color: rgba(253, 230, 138, 0.98);
}
.shop-section-shell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  padding: 1.1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
}
.shop-section-count {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.04);
}
.shop-card--ecul-only {
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.18) inset, 0 10px 25px rgba(245, 158, 11, 0.08);
}
.shop-ecul-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(253, 230, 138, 0.95);
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  padding: 0.24rem 0.5rem;
}
.shop-utility-section {
  position: relative;
  overflow: hidden;
}
.shop-utility-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.09), transparent 45%);
}
@media (max-width: 768px) {
  .shop-section-shell {
    padding: 0.85rem;
  }
  .shop-section-count {
    display: none;
  }
}

/* Pseudo Dieu ancestral — effet couleur animée sur tout le site (nav, dashboard, etc.) */
@keyframes pseudo-dieu-rainbow {
  0% { filter: hue-rotate(0deg) drop-shadow(0 0 8px rgba(251, 191, 36, 0.5)); }
  25% { filter: hue-rotate(25deg) drop-shadow(0 0 10px rgba(236, 72, 153, 0.4)); }
  50% { filter: hue-rotate(50deg) drop-shadow(0 0 10px rgba(139, 92, 246, 0.4)); }
  75% { filter: hue-rotate(25deg) drop-shadow(0 0 10px rgba(251, 191, 36, 0.5)); }
  100% { filter: hue-rotate(0deg) drop-shadow(0 0 8px rgba(251, 191, 36, 0.5)); }
}
.pseudo-dieu-ancestral {
  background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 20%, #f59e0b 40%, #ec4899 60%, #a855f7 80%, #fbbf24 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  animation: pseudo-dieu-rainbow 5s ease-in-out infinite;
}

@keyframes pseudo-prestige-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(129, 140, 248, 0.35); }
  50% { text-shadow: 0 0 14px rgba(192, 132, 252, 0.55); }
}
@keyframes pseudo-prestige-sovereign {
  0%, 100% { filter: saturate(1) drop-shadow(0 0 10px rgba(250, 204, 21, 0.4)); }
  50% { filter: saturate(1.25) drop-shadow(0 0 16px rgba(251, 191, 36, 0.7)); }
}
@keyframes pseudo-shop-fx-glint {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.pseudo-prestige-initie {
  color: #c4b5fd;
  text-shadow: 0 0 10px rgba(129, 140, 248, 0.35);
}
.pseudo-prestige-eminent {
  color: #ddd6fe;
  animation: pseudo-prestige-pulse 3s ease-in-out infinite;
}
.pseudo-prestige-souverain {
  color: #fde68a;
  animation: pseudo-prestige-sovereign 3.2s ease-in-out infinite;
}
.pseudo-shop-effet-actif {
  text-shadow: 0 0 10px rgba(45, 212, 191, 0.35), 0 0 16px rgba(56, 189, 248, 0.2);
}
.pseudo-shop-titre {
  background: linear-gradient(120deg, #fde68a, #f9a8d4, #93c5fd, #fde68a);
  background-size: 240% 240%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pseudo-shop-fx-glint 4s ease-in-out infinite;
}

/* Section Expurgés (Table du cul) — selects lisibles (fond sombre, liste déroulante) */
#tableCulExpurgesSection select {
  background-color: #1a1a1f !important;
  color: #e2e8f0;
  color-scheme: dark;
}
#tableCulExpurgesSection select option {
  background-color: #1a1a1f;
  color: #e2e8f0;
}
#tableCulExpurgesSection .grid label.text-slate-500 {
  color: #94a3b8;
}

.addlink-tag-suggestion-active { border-color: rgba(52, 211, 153, 0.7) !important; background: rgba(16, 185, 129, 0.22) !important; color: #d1fae5 !important; }

/* Overrides globaux — thème sombre éditorial */
:root {
  --dashboard-surface: rgba(12, 8, 14, 0.82);
  --dashboard-surface-soft: rgba(255, 255, 255, 0.035);
  --dashboard-border: rgba(255, 255, 255, 0.09);
  --dashboard-border-strong: rgba(255, 255, 255, 0.16);
  --dashboard-text: #f8fafc;
  --dashboard-muted: #9ca3af;
  --dashboard-shadow: 0 18px 60px -28px rgba(0, 0, 0, 0.64);
  --dashboard-shadow-strong: 0 28px 90px -30px rgba(0, 0, 0, 0.78);
}

body {
  background:
    radial-gradient(circle at top, rgba(20,184,166,.08), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(245,158,11,.06), transparent 24%),
    #050308;
  color: var(--dashboard-text);
}

.glass-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    var(--dashboard-surface);
  border-color: var(--dashboard-border);
  box-shadow: var(--dashboard-shadow);
  backdrop-filter: blur(20px);
}

.glass-card:hover {
  border-color: var(--dashboard-border-strong);
  box-shadow: var(--dashboard-shadow-strong);
}

.dashboard-block,
.dashboard-section-card,
.dashboard-widget {
  border-radius: 4px;
  border: 1px solid var(--dashboard-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)),
    var(--dashboard-surface);
  box-shadow: var(--dashboard-shadow);
  backdrop-filter: blur(18px);
}

.dashboard-widget {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 0;
  overflow: hidden;
  border-left: 3px solid transparent;
}

.dashboard-widget[data-dw-accent="violet"] {
  border-left-color: rgba(110, 91, 255, 0.55);
}

.dashboard-widget[data-dw-accent="gold"] {
  border-left-color: rgba(255, 184, 77, 0.55);
}

.dashboard-widget[data-dw-accent="mint"] {
  border-left-color: rgba(62, 230, 161, 0.5);
}

.dashboard-widget--wide {
  min-height: 220px;
}

/* —— Vue d'ensemble : hero + sections —— */
.dashboard-overview-shell {
  font-family: var(--ui-font-body, 'Plus Jakarta Sans', sans-serif);
}

.dashboard-overview-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--ui-space-8, 2rem);
  border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.1));
  border-left: 0;
  border-right: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(110, 91, 255, 0.14), transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(255, 184, 77, 0.1), transparent 34%),
    var(--ui-color-bg-elevated, #090911);
  box-shadow: var(--ui-shadow-card, 0 28px 80px rgba(0, 0, 0, 0.42));
}

.dashboard-overview-hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.dashboard-overview-hero__glow--violet {
  top: -4rem;
  left: -3rem;
  width: 280px;
  height: 280px;
  background: rgba(110, 91, 255, 0.18);
}

.dashboard-overview-hero__glow--gold {
  bottom: -5rem;
  right: -2rem;
  width: 240px;
  height: 240px;
  background: rgba(255, 184, 77, 0.12);
}

.dashboard-overview-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--ui-space-6, 1.5rem);
  padding: var(--ui-space-6, 1.5rem) var(--ui-space-5, 1.25rem);
}

@media (min-width: 900px) {
  .dashboard-overview-hero__layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: var(--ui-space-8, 2rem);
    padding: var(--ui-space-7, 1.75rem) var(--ui-space-6, 1.5rem);
  }
}

.dashboard-overview-hero__kicker {
  color: var(--ui-color-info, #9d7cff);
}

.dashboard-overview-hero__title {
  margin: var(--ui-space-4, 1rem) 0 0;
  font-family: var(--ui-font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: var(--ui-tracking-tight, -0.02em);
  line-height: var(--ui-leading-tight, 1.05);
  text-transform: uppercase;
  color: var(--ui-color-text, #fff);
}

.dashboard-overview-hero__name {
  color: var(--ui-brand-gold-soft, #ffd79a);
}

.dashboard-overview-hero__lead {
  margin: var(--ui-space-4, 1rem) 0 0;
  max-width: 36rem;
  font-size: var(--ui-text-base, 0.875rem);
  line-height: var(--ui-leading-relaxed, 1.7);
  color: var(--ui-color-muted, rgba(255, 255, 255, 0.56));
}

.dashboard-overview-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ui-space-3, 0.75rem);
}

@media (min-width: 640px) {
  .dashboard-overview-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dashboard-overview-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--ui-space-4, 1rem);
  border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.1));
  background: var(--ui-color-surface, rgba(255, 255, 255, 0.035));
  transition: border-color var(--ui-transition-fast, 160ms ease), background var(--ui-transition-fast, 160ms ease);
}

.dashboard-overview-stat:hover {
  border-color: var(--ui-color-border-strong, rgba(255, 255, 255, 0.16));
  background: var(--ui-color-surface-strong, rgba(255, 255, 255, 0.06));
}

.dashboard-overview-stat__value {
  font-family: var(--ui-font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: var(--ui-color-text, #fff);
}

.dashboard-overview-stat[data-overview-stat="alerts"] .dashboard-overview-stat__value {
  color: var(--ui-brand-pink-soft, #e879f9);
}

.dashboard-overview-stat[data-overview-stat="quests"] .dashboard-overview-stat__value {
  color: var(--ui-semantic-positive, #3ee6a1);
}

.dashboard-overview-stat[data-overview-stat="forum"] .dashboard-overview-stat__value {
  color: var(--ui-color-info, #9d7cff);
}

.dashboard-overview-stat[data-overview-stat="spotlight"] .dashboard-overview-stat__value {
  color: var(--ui-brand-gold, #ffb84d);
}

.dashboard-overview-stat__label {
  font-family: var(--ui-font-mono, 'JetBrains Mono', monospace);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: var(--ui-tracking-wide, 0.12em);
  text-transform: uppercase;
  color: var(--ui-color-faint, rgba(255, 255, 255, 0.42));
}

.dashboard-widgets-zones {
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-8, 2rem);
}

.dashboard-widgets-zone-head {
  margin-bottom: var(--ui-space-5, 1.25rem);
  padding-bottom: var(--ui-space-4, 1rem);
  border-bottom: 1px solid var(--ui-line, rgba(255, 255, 255, 0.1));
}

.dashboard-widgets-zone-kicker {
  color: var(--ui-color-info, #9d7cff);
}

.dashboard-widgets-zone-kicker--rose {
  color: var(--ui-brand-pink-soft, #e879f9);
}

.dashboard-widgets-zone-kicker--mint {
  color: var(--ui-semantic-positive, #3ee6a1);
}

.dashboard-widgets-zone-title {
  margin: var(--ui-space-2, 0.5rem) 0 0;
  font-family: var(--ui-font-display, 'Space Grotesk', sans-serif);
  font-size: var(--ui-text-xl, 1.25rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: var(--ui-tracking-tight, -0.02em);
  text-transform: uppercase;
  color: var(--ui-color-text, #fff);
}

.dashboard-widgets-zone-desc {
  margin: var(--ui-space-2, 0.5rem) 0 0;
  max-width: 40rem;
  font-size: var(--ui-text-sm, 0.75rem);
  line-height: var(--ui-leading-normal, 1.55);
  color: var(--ui-color-muted, rgba(255, 255, 255, 0.56));
}

.dashboard-widgets-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--ui-space-6, 1.5rem);
}

.dashboard-widgets-heading {
  margin: 0;
  font-family: var(--ui-font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ui-color-faint, rgba(255, 255, 255, 0.42));
}

.dashboard-widgets-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-widgets-toolbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}

.dashboard-widgets-toolbtn:hover {
  color: #fff;
  border-color: rgba(157, 124, 255, 0.35);
  background: rgba(110, 91, 255, 0.08);
}

.dashboard-widgets-grid {
  display: grid;
  gap: var(--ui-space-4, 1rem);
}

.dashboard-widgets-grid--duo {
  grid-template-columns: 1fr;
}

.dashboard-widgets-grid--solo {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .dashboard-widgets-grid--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dw-widget-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
}

.dw-widget-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 16px;
}

.dashboard-widget[data-dw-accent="violet"] .dw-widget-icon {
  border-color: rgba(110, 91, 255, 0.32);
  background: rgba(110, 91, 255, 0.1);
}

.dashboard-widget[data-dw-accent="gold"] .dw-widget-icon {
  border-color: rgba(255, 184, 77, 0.32);
  background: rgba(255, 184, 77, 0.08);
}

.dashboard-widget[data-dw-accent="mint"] .dw-widget-icon {
  border-color: rgba(62, 230, 161, 0.28);
  background: rgba(62, 230, 161, 0.08);
}

.dw-widget-title {
  margin: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.dw-widget-desc {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.4;
}

.dw-widget-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  overflow-y: auto;
}

.dw-widget-foot {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dw-widget-link {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9d7cff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dw-widget-link:hover {
  color: #cfc5ff;
}

.dw-widget-link--gold {
  color: var(--ui-brand-gold, #ffb84d);
}

.dw-widget-link--gold:hover {
  color: var(--ui-brand-gold-soft, #ffd79a);
}

.dw-widget-link--mint {
  color: var(--ui-semantic-positive, #3ee6a1);
}

.dw-widget-link--mint:hover {
  color: #a8f5d6;
}

.dw-widget-empty {
  margin: 0;
  padding: 8px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.5;
}

.dw-widget-empty a {
  color: #9d7cff;
  text-decoration: none;
}

.dw-widget-empty a:hover {
  text-decoration: underline;
}

.dw-item {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.dw-item:hover {
  border-color: rgba(157, 124, 255, 0.32);
  background: rgba(110, 91, 255, 0.06);
}

.dw-item-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}

.dw-item-excerpt {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
}

.dw-item-meta {
  margin: 6px 0 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.dw-item-cat {
  display: inline-block;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9d7cff;
}

.dw-item-kicker {
  margin: 0 0 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.dw-item--danger {
  border-color: rgba(255, 94, 126, 0.28);
  background: rgba(255, 94, 126, 0.05);
}

.dw-item--warning {
  border-color: rgba(255, 184, 77, 0.28);
  background: rgba(255, 184, 77, 0.05);
}

.dw-item--info {
  border-color: rgba(110, 91, 255, 0.24);
  background: rgba(110, 91, 255, 0.05);
}

.dw-item--claim .dw-item-action {
  display: block;
  margin-top: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6ee7b7;
}

.dw-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dw-item-row .dw-item-cat {
  margin: 2px 0 0;
  flex-shrink: 0;
}

.dw-item-row .dw-item-main {
  min-width: 0;
  flex: 1;
}

.dw-spotlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dw-spotlight-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.dw-spotlight-arrow {
  margin-left: auto;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9d7cff;
}

.dw-widget-more {
  display: block;
  padding-top: 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9d7cff;
  text-decoration: none;
}

.dw-widget-more:hover {
  color: #cfc5ff;
}

/* —— Vue d'ensemble : ruler fixe (registre) + modals —— */
:root {
  --dashboard-ruler-w: 72px;
  --dashboard-band-pad-x: clamp(1.15rem, 4vw, 3rem);
  --dashboard-band-pad-y: clamp(1.35rem, 2.5vw, 2.25rem);
  --dashboard-content-max: 100%;
}

.dashboard-with-ruler .dashboard-main {
  margin-left: 0;
  padding-left: 0;
  width: 100%;
  box-sizing: border-box;
  max-width: none;
}

@media (min-width: 768px) {
  /* Ruler fixe en overlay : réserver la colonne à gauche sans marge fantôme. */
  .dashboard-with-ruler .dashboard-main {
    padding-left: var(--dashboard-ruler-w);
  }

  .dashboard-with-ruler .dashboard-recruit-banner,
  .dashboard-with-ruler .dashboard-battle-banner,
  .dashboard-with-ruler .dashboard-battle-invite-banner {
    padding-left: var(--dashboard-ruler-w);
    box-sizing: border-box;
  }

  .dashboard-with-ruler .dashboard-band__inner,
  .dashboard-with-ruler .dashboard-band__inner--wide,
  .dashboard-with-ruler .dashboard-band__inner--contained,
  .dashboard-with-ruler .dashboard-recruit-banner__inner,
  .dashboard-with-ruler .dashboard-battle-banner .dashboard-recruit-banner__inner,
  .dashboard-with-ruler .dashboard-battle-invite-banner .dashboard-recruit-banner__inner {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }
}

.dashboard-band {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-band__inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: var(--dashboard-band-pad-y, clamp(1.35rem, 2.5vw, 2.25rem)) var(--dashboard-band-pad-x, clamp(1.15rem, 4vw, 3rem));
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .dashboard-with-ruler .dashboard-band__inner,
  .dashboard-with-ruler .dashboard-band__inner--wide,
  .dashboard-with-ruler .dashboard-band__inner--contained {
    margin-inline: 0;
    max-width: none;
    width: 100%;
  }
}

.dashboard-band .project-card {
  width: 100%;
}

.dashboard-band .project-card > .absolute.bg-cover {
  filter: blur(2.5px);
  transform: scale(1.06);
  opacity: 0.42 !important;
}

.dashboard-band .project-card:hover > .absolute.bg-cover {
  filter: blur(1.25px);
  opacity: 0.5 !important;
}

.dashboard-chrono-global {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-band--hero .dashboard-band__inner {
  min-height: auto;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 1024px) {
  .dashboard-band--hero .dashboard-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2rem;
  }

  .dashboard-links-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 1.5rem;
    align-items: start;
  }
}

.dashboard-ruler--fixed {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100vh;
  z-index: 130;
  width: var(--dashboard-ruler-w);
  max-height: none;
  border-right: 1px solid rgba(157, 124, 255, 0.28);
  box-shadow: inset 3px 0 0 rgba(157, 124, 255, 0.55);
  background: rgba(5, 5, 7, 0.94);
  backdrop-filter: blur(20px);
  overflow: hidden;
  pointer-events: auto;
  transition: width 0.32s cubic-bezier(0.2, 1, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease;
}

/* Évite que .dashboard-ruler (sticky) n'écrase le mode fixe — cause du 72×0 en prod */
.dashboard-ruler.dashboard-ruler--fixed {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  max-height: none !important;
  align-self: auto;
}

.dashboard-ruler--fixed:hover {
  width: min(390px, 92vw);
  background: rgba(8, 8, 13, 0.97);
  box-shadow: 40px 0 140px rgba(0, 0, 0, 0.62);
}

.dashboard-ruler--fixed .dashboard-ruler-compact {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-ruler--fixed.dashboard-user-hidden,
.dashboard-ruler--fixed.hidden {
  display: none !important;
}

.dashboard-with-ruler .dashboard-ruler--fixed.dashboard-user-hidden ~ .dashboard-main,
.dashboard-with-ruler:has(.dashboard-ruler--fixed.hidden) .dashboard-main,
.dashboard-with-ruler:has(.dashboard-ruler--fixed.dashboard-user-hidden) .dashboard-main,
.dashboard-with-ruler:has(#dashboardModulesRuler.hidden) .dashboard-main,
.dashboard-with-ruler:has(#dashboardModulesRuler.dashboard-user-hidden) .dashboard-main {
  margin-left: 0;
  padding-left: 0;
  width: 100%;
}

.dashboard-widgets-layout {
  display: block;
}

.dashboard-ruler {
  position: sticky;
  top: 5rem;
  align-self: start;
  width: var(--dashboard-ruler-w, 72px);
  max-height: calc(100vh - 6rem);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 40;
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: width 0.32s cubic-bezier(0.2, 1, 0.2, 1), box-shadow 0.25s ease;
}

.dashboard-ruler:hover {
  width: min(360px, 88vw);
  box-shadow: 28px 0 100px rgba(0, 0, 0, 0.55);
}

.dashboard-ruler-compact {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--dashboard-ruler-w, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  z-index: 2;
}

.dashboard-ruler-compact span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.35em;
  font-size: 10px;
  color: rgba(196, 181, 253, 0.88);
  font-weight: 900;
  text-shadow: 0 0 18px rgba(157, 124, 255, 0.35);
  text-transform: uppercase;
}

.dashboard-ruler-panel {
  position: absolute;
  inset: 0 0 0 var(--dashboard-ruler-w, 72px);
  padding: 18px 16px 24px;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100vh;
}

.dashboard-ruler--fixed .dashboard-ruler-panel {
  max-height: 100vh;
}

.dashboard-ruler:hover .dashboard-ruler-panel {
  opacity: 1;
  transform: none;
}

.dashboard-ruler-section-label {
  margin: 14px 0 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.dashboard-ruler-nav-btn,
.dashboard-ruler-link {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: left;
  font: inherit;
}

.dashboard-ruler-nav-btn:hover,
.dashboard-ruler-link:hover {
  transform: translateX(3px);
  border-color: rgba(110, 91, 255, 0.4);
  background: rgba(110, 91, 255, 0.08);
}

.dashboard-ruler-nav-btn.is-active,
.dashboard-ruler-nav-btn--section.is-active {
  border-color: rgba(157, 124, 255, 0.45);
  background: rgba(110, 91, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(157, 124, 255, 0.18);
}

.dashboard-ruler-nav-btn b,
.dashboard-ruler-link b {
  color: #9d7cff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.dashboard-ruler-nav-btn > span,
.dashboard-ruler-link > span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.dashboard-ruler-nav-btn em,
.dashboard-ruler-sub {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.dashboard-ruler-badge {
  font-style: normal;
  min-width: 1.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(110, 91, 255, 0.25);
  color: #c7d2fe;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.dashboard-ruler-badge.hidden {
  display: none;
}

.dashboard-ruler-link--accent {
  border-color: rgba(62, 230, 161, 0.35);
  background: rgba(62, 230, 161, 0.06);
}

.dashboard-ruler-nav-btn--ghost {
  border-style: dashed;
  opacity: 0.92;
}

.dashboard-ruler-nav-btn.dashboard-user-hidden,
.dashboard-ruler-nav-btn.is-hidden {
  display: none;
}

.dashboard-widgets-main {
  padding-left: 0;
  min-width: 0;
}

.dashboard-widgets-hint {
  margin: 0 0 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.48);
}

.dashboard-overview-stat--btn {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dashboard-overview-stat--btn:hover {
  border-color: rgba(110, 91, 255, 0.4);
  background: rgba(110, 91, 255, 0.08);
  transform: translateY(-1px);
}

.dashboard-widgets-store {
  display: none !important;
}

.dw-module-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dw-module-modal.hidden {
  display: none !important;
}

.dw-module-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.dw-module-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 12% 0%, rgba(110, 91, 255, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(12, 12, 18, 0.98), rgba(5, 5, 7, 0.99));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.dw-module-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dw-module-modal-kicker {
  margin: 0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(157, 124, 255, 0.85);
}

.dw-module-modal-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.dw-module-modal-title {
  margin: 0;
  font: 900 clamp(1.1rem, 3vw, 1.45rem) / 1.1 var(--ui-font-display, 'Space Grotesk', sans-serif);
  letter-spacing: -0.02em;
  color: #fff;
}

.dw-module-modal-desc {
  margin: 0.25rem 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
}

.dw-module-modal-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.dw-module-modal-close:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.dw-module-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.35rem;
  max-height: min(52vh, 480px);
}

.dw-module-modal-body .dw-widget-empty {
  padding: 1.5rem 0;
}

.dw-module-modal-foot {
  padding: 0.85rem 1.35rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 767px) {
  .dashboard-with-ruler .dashboard-main {
    margin-left: 0;
    padding-left: 0;
    width: 100%;
  }

  .dashboard-with-ruler .dashboard-band__inner,
  .dashboard-with-ruler .dashboard-recruit-banner__inner,
  .dashboard-with-ruler .dashboard-battle-banner .dashboard-recruit-banner__inner {
    margin-left: 0;
    max-width: 100%;
  }

  .dashboard-ruler--fixed,
  #dashboardModulesRuler.dashboard-ruler--fixed {
    display: none;
  }

  #dashboardModulesRuler.dashboard-ruler--mobile-open {
    display: block !important;
    width: min(360px, 92vw);
    box-shadow: 40px 0 120px rgba(0, 0, 0, 0.65);
  }

  /* Ouverture mobile : le panneau doit être visible sans hover. */
  #dashboardModulesRuler.dashboard-ruler--mobile-open .dashboard-ruler-panel {
    opacity: 1;
    transform: none;
  }

  /* Laisser le label compact en arrière-plan, sans bloquer les clics du panneau. */
  #dashboardModulesRuler.dashboard-ruler--mobile-open .dashboard-ruler-compact {
    pointer-events: none;
    opacity: 0.12;
  }

  .dashboard-widgets-hint::before {
    content: "Modules : ";
    font-weight: 800;
    color: rgba(157, 124, 255, 0.85);
  }

  .dashboard-overview-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-block:hover,
.dashboard-section-card:hover,
.dashboard-widget:hover {
  border-color: var(--dashboard-border-strong);
  box-shadow: var(--dashboard-shadow-strong);
}

.dashboard-widget-body {
  max-height: 280px;
}

.dashboard-widget .line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-section-title {
  color: var(--dashboard-text);
  font-weight: 800;
  letter-spacing: -.03em;
}

.dashboard-section-kicker {
  color: var(--dashboard-muted);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.dashboard-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  gap: .55rem;
  padding: .72rem 1rem;
  border-radius: .95rem;
  border: 1px solid var(--dashboard-border);
  background: var(--dashboard-surface-soft);
  color: var(--dashboard-text);
  font-weight: 800;
  transition: all .2s ease;
}

.dashboard-action:hover {
  transform: translateY(-1px);
  border-color: var(--dashboard-border-strong);
}

.dashboard-action--primary {
  background: linear-gradient(180deg, rgba(20,184,166,.95), rgba(13,148,136,.92));
  border-color: rgba(20,184,166,.38);
  color: #041311;
}

/* —— Chrono global (tête du tableau de bord) —— */
#globalChronoBanner {
  padding-top: var(--ui-space-6, 1.5rem);
  margin-bottom: var(--ui-space-8, 2rem);
}

@media (max-width: 640px) {
  #globalChronoBanner {
    padding-top: var(--ui-space-5, 1.25rem);
    margin-bottom: var(--ui-space-6, 1.5rem);
  }
}

/* —— Hero recrutement (après chrono global) —— */
#dashboardRecruitHero:not(.hidden) {
  margin-bottom: var(--ui-space-8, 2rem);
}

@media (max-width: 640px) {
  #dashboardRecruitHero:not(.hidden) {
    margin-bottom: var(--ui-space-6, 1.5rem);
  }
}

.dashboard-recruit-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.12), transparent 52%),
    #070709;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.dashboard-recruit-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.dashboard-recruit-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 3.5rem 1.5rem 3.75rem;
  text-align: center;
}

.dashboard-recruit-hero__heading {
  margin: 0;
  font-family: "Unbounded", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
}

.dashboard-recruit-hero__line {
  display: block;
}

.dashboard-recruit-hero__line--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.dashboard-recruit-hero__avatars {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 0.15rem;
}

.dashboard-recruit-hero__avatar {
  width: clamp(2rem, 5vw, 2.65rem);
  height: clamp(2rem, 5vw, 2.65rem);
  border-radius: 999px;
  border: 2.5px solid #070709;
  margin-left: -0.65rem;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.dashboard-recruit-hero__avatar:first-child {
  margin-left: 0;
}

.dashboard-recruit-hero__avatar--placeholder {
  display: inline-block;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(129, 140, 248, 0.35));
}

.dashboard-recruit-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 18rem);
  padding: 0.95rem 1.75rem;
  border: none;
  border-radius: 2px;
  background: linear-gradient(90deg, #7c3aed 0%, #8b5cf6 45%, #a5b4fc 100%);
  box-shadow:
    0 0 28px rgba(124, 58, 237, 0.45),
    0 8px 24px rgba(91, 33, 182, 0.35);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.dashboard-recruit-hero__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 0 36px rgba(124, 58, 237, 0.55),
    0 10px 28px rgba(91, 33, 182, 0.42);
  color: #fff;
}

@media (max-width: 640px) {
  .dashboard-recruit-hero__inner {
    padding: 2.75rem 1.25rem 3rem;
  }
}

/* ── Staff recruitment — bas de page dashboard ── */
.dashboard-staff-recruit {
  margin-bottom: 2rem;
}

.dashboard-staff-recruit__shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.14), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(124, 58, 237, 0.18), transparent 46%),
    linear-gradient(145deg, #0a0a0e 0%, #070709 55%, #0b0a10 100%);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
}

.dashboard-staff-recruit__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 280px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(196, 94, 255, 0.16), transparent 68%);
}

.dashboard-staff-recruit__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  padding: 2.5rem 1.75rem;
}

@media (min-width: 1024px) {
  .dashboard-staff-recruit__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 2.5rem;
  }
}

.dashboard-staff-recruit__kicker {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(196, 94, 255, 0.88);
}

.dashboard-staff-recruit__title {
  margin: 0.85rem 0 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #fff;
}

.dashboard-staff-recruit__lead {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
}

.dashboard-staff-recruit__badge-open {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(62, 230, 161, 0.32);
  background: rgba(62, 230, 161, 0.08);
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8f5d6;
}

.dashboard-staff-recruit__badge-open span {
  color: #3ee6a1;
  font-size: 8px;
}

.dashboard-staff-recruit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.65rem;
}

.dashboard-staff-recruit__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dashboard-staff-recruit__cta:hover {
  transform: translateY(-2px);
  border-color: rgba(157, 124, 255, 0.42);
  color: #fff;
}

.dashboard-staff-recruit__cta--primary {
  border: 0;
  background: linear-gradient(135deg, #6e5bff, #c45eff);
  box-shadow: 0 16px 46px rgba(110, 91, 255, 0.28);
  color: #fff;
}

.dashboard-staff-recruit__cta--primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 20px 52px rgba(110, 91, 255, 0.38);
}

.dashboard-staff-recruit__roles {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .dashboard-staff-recruit__roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-staff-recruit__role {
  position: relative;
  padding: 1.15rem 1.1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-staff-recruit__role:hover {
  transform: translateY(-2px);
  border-color: rgba(157, 124, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.dashboard-staff-recruit__role:nth-child(1) {
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.28), transparent 55%),
    rgba(0, 0, 0, 0.28);
}

.dashboard-staff-recruit__role:nth-child(2) {
  background:
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.26), transparent 55%),
    rgba(0, 0, 0, 0.28);
}

.dashboard-staff-recruit__role:nth-child(3) {
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.24), transparent 55%),
    rgba(0, 0, 0, 0.28);
}

.dashboard-staff-recruit__role:nth-child(4) {
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 63, 94, 0.22), transparent 55%),
    rgba(0, 0, 0, 0.28);
}

.dashboard-staff-recruit__role-num {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.38);
}

.dashboard-staff-recruit__role h3 {
  margin: 0.55rem 0 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.dashboard-staff-recruit__role p {
  margin: 0.45rem 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.52);
}

/* ── Uploads page — hero & stat cards ── */
.uploads-hero {
  margin-bottom: var(--ui-space-8, 2rem);
  padding-bottom: var(--ui-space-8, 2rem);
  border-bottom: 1px solid var(--ui-line, rgba(255, 255, 255, 0.06));
}

.uploads-hero__layout {
  display: grid;
  gap: var(--ui-space-8, 2rem);
  align-items: end;
}

@media (min-width: 1024px) {
  .uploads-hero__layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--ui-space-10, 2.5rem);
  }
}

.uploads-hero__kicker {
  color: var(--ui-color-info, #9d7cff);
}

.uploads-hero__title {
  margin: var(--ui-space-3, 0.75rem) 0 0;
  font-family: var(--ui-font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: var(--ui-tracking-tight, -0.04em);
  line-height: var(--ui-leading-tight, 1.05);
  text-transform: uppercase;
  color: var(--ui-color-text, #fff);
}

.uploads-hero__lead {
  margin: var(--ui-space-4, 1rem) 0 0;
  max-width: 36rem;
  font-size: var(--ui-text-base, 0.875rem);
  line-height: var(--ui-leading-relaxed, 1.7);
  color: var(--ui-color-muted, rgba(255, 255, 255, 0.56));
}

.uploads-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ui-space-3, 0.75rem);
}

@media (min-width: 1280px) {
  .uploads-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ui-space-4, 1rem);
  }
}

.uploads-hero-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-2, 0.5rem);
  min-height: 5.25rem;
  padding: var(--ui-space-4, 1rem) var(--ui-space-4, 1rem) var(--ui-space-4, 1rem) calc(var(--ui-space-4, 1rem) + 6px);
  border: 1px solid var(--ui-line, rgba(255, 255, 255, 0.1));
  background: var(--ui-color-surface, rgba(255, 255, 255, 0.035));
  transition:
    border-color var(--ui-transition-fast, 160ms ease),
    background var(--ui-transition-fast, 160ms ease),
    transform var(--ui-transition-fast, 160ms ease);
}

.uploads-hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--ui-space-3, 0.75rem);
  bottom: var(--ui-space-3, 0.75rem);
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--uploads-stat-accent, rgba(255, 255, 255, 0.28));
}

.uploads-hero-stat:hover {
  border-color: var(--ui-color-border-strong, rgba(255, 255, 255, 0.16));
  background: var(--ui-color-surface-strong, rgba(255, 255, 255, 0.06));
}

.uploads-hero-stat--neutral {
  --uploads-stat-accent: rgba(255, 255, 255, 0.32);
}

.uploads-hero-stat--warning {
  --uploads-stat-accent: var(--ui-semantic-warning, #ffb84d);
}

.uploads-hero-stat--info {
  --uploads-stat-accent: var(--ui-color-info, #9d7cff);
}

.uploads-hero-stat--violet {
  --uploads-stat-accent: var(--ui-brand-primary-soft, #b4a0ff);
}

.uploads-hero-stat__label {
  font-family: var(--ui-font-mono, 'JetBrains Mono', monospace);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: var(--ui-tracking-wide, 0.14em);
  text-transform: uppercase;
  color: var(--ui-color-faint, rgba(255, 255, 255, 0.42));
}

.uploads-hero-stat__value {
  font-family: var(--ui-font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: var(--ui-color-text, #fff);
}

.uploads-hero-stat--warning .uploads-hero-stat__value {
  color: var(--ui-semantic-warning, #ffb84d);
}

.uploads-hero-stat--info .uploads-hero-stat__value {
  color: var(--ui-color-info, #9d7cff);
}

.uploads-hero-stat--violet .uploads-hero-stat__value {
  color: var(--ui-brand-primary-soft, #b4a0ff);
}

.uploads-hero-stat--link {
  text-decoration: none;
  color: inherit;
}

.uploads-hero-stat--link:hover {
  transform: translateY(-1px);
  border-color: rgba(157, 124, 255, 0.35);
  background: rgba(110, 91, 255, 0.08);
}

.uploads-hero-stat__value--console {
  display: inline-flex;
  align-items: center;
  gap: var(--ui-space-2, 0.5rem);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

.uploads-hero-stat__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity var(--ui-transition-fast, 160ms ease), transform var(--ui-transition-fast, 160ms ease);
}

.uploads-hero-stat--link:hover .uploads-hero-stat__icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* —— Contributeur du mois —— */
.dashboard-recruit-banner__inner,
.dashboard-battle-banner .dashboard-recruit-banner__inner {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--dashboard-band-pad-x, clamp(0.75rem, 1.15vw, 1.15rem));
  padding-right: var(--dashboard-band-pad-x, clamp(0.75rem, 1.15vw, 1.15rem));
}

.contributor-month__card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 10% 0%, rgba(110, 91, 255, 0.16), transparent 38%),
    radial-gradient(circle at 92% 18%, rgba(255, 184, 77, 0.1), transparent 34%),
    #090911;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.contributor-month__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.contributor-month__glow--violet {
  top: -4rem;
  left: -3rem;
  width: 280px;
  height: 280px;
  background: rgba(110, 91, 255, 0.18);
}

.contributor-month__glow--gold {
  bottom: -5rem;
  right: -2rem;
  width: 240px;
  height: 240px;
  background: rgba(255, 184, 77, 0.12);
}

.contributor-month__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  padding: 2rem 1.5rem;
}

@media (min-width: 900px) {
  .contributor-month__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 2rem;
    padding: 2rem 2rem;
  }
}

.contributor-month__kicker {
  color: #9d7cff;
}

.contributor-month__title {
  margin: 1rem 0 0;
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
}

.contributor-month__title-accent {
  color: rgba(255, 255, 255, 0.28);
}

.contributor-month__period {
  margin-top: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(157, 124, 255, 0.85);
}

.contributor-month__lead {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.contributor-month__leader {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid rgba(110, 91, 255, 0.28);
  background: rgba(110, 91, 255, 0.08);
}

.contributor-month__leader-badge {
  position: absolute;
  top: -0.65rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 184, 77, 0.16);
  border: 1px solid rgba(255, 184, 77, 0.35);
  font-size: 1rem;
}

.contributor-month__avatar-link {
  grid-row: span 2;
}

.contributor-month__avatar,
.contributor-month__podium-avatar {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(157, 124, 255, 0.45);
  box-shadow: 0 12px 40px rgba(110, 91, 255, 0.22);
}

.contributor-month__avatar--fallback,
.contributor-month__podium-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, rgba(110, 91, 255, 0.85), rgba(255, 184, 77, 0.55));
}

.contributor-month__leader-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 184, 77, 0.85);
}

.contributor-month__leader-name {
  display: block;
  margin-top: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  color: #fff;
  transition: color 160ms ease;
}

.contributor-month__leader-name:hover {
  color: #c4b5fd;
}

.contributor-month__leader-stat {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.62);
}

.contributor-month__leader-stat strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 900;
  font-style: italic;
  color: #a78bfa;
}

.contributor-month__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: #6e5bff;
  border: 1px solid rgba(157, 124, 255, 0.45);
  transition: background 160ms ease, transform 160ms ease, color 160ms ease;
}

.contributor-month__cta:hover {
  background: #8b7cff;
  transform: translateY(-1px);
}

.contributor-month__cta--ghost {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.contributor-month__cta--ghost:hover {
  color: #fff;
  background: rgba(110, 91, 255, 0.18);
  border-color: rgba(157, 124, 255, 0.35);
}

.contributor-month__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.contributor-month__empty-icon {
  font-size: 1.75rem;
  opacity: 0.65;
}

.contributor-month__empty-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 900;
  font-style: italic;
  color: #fff;
}

.contributor-month__empty-text {
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.contributor-month__podium {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contributor-month__podium-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.contributor-month__podium-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
}

.contributor-month__podium-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: #fff;
}

.contributor-month__podium-avatar {
  width: 2rem;
  height: 2rem;
  box-shadow: none;
}

.contributor-month__podium-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 700;
}

.contributor-month__podium-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 800;
  font-style: italic;
  color: #a78bfa;
}

/* —— Sections tableau de bord (rails + alternance) —— */
.dashboard-band--switch {
  position: relative;
  isolation: isolate;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.dashboard-band--switch + .dashboard-band--switch {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.dashboard-band--full {
  background: rgba(0, 0, 0, 0.18);
}

.dashboard-band--contained {
  background: transparent;
}

.dashboard-band--invert {
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-band--active.dashboard-band--full,
.dashboard-band--active.dashboard-band--dark {
  background:
    linear-gradient(180deg, rgba(110, 91, 255, 0.07), transparent 38%),
    rgba(0, 0, 0, 0.22);
}

.dashboard-band--active.dashboard-band--contained,
.dashboard-band--active.dashboard-band--tint {
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.09), transparent 42%);
}

.dashboard-band__inner--wide,
.dashboard-band__inner--contained {
  max-width: none;
}

.dashboard-section-head {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 55%),
    rgba(255, 255, 255, 0.015);
}

.dashboard-section-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem var(--dashboard-band-pad-x, clamp(1.15rem, 4vw, 3rem));
  box-sizing: border-box;
}

.dashboard-section-head--contained .dashboard-section-head__inner {
  max-width: none;
  margin-inline: 0;
}

.dashboard-section-head--full .dashboard-section-head__inner {
  max-width: none;
}

.dashboard-section-head__left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.dashboard-section-head__num {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.35);
}

.dashboard-section-head__kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.dashboard-section-head__title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
}

.dashboard-section-head__switch-track {
  position: relative;
  display: block;
  width: 2.6rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.dashboard-section-head__switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  border-radius: 999px;
  background: rgba(157, 124, 255, 0.75);
  transition: transform 0.28s cubic-bezier(0.2, 1, 0.2, 1), background 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-band--active .dashboard-section-head__switch-track {
  border-color: rgba(157, 124, 255, 0.45);
  background: rgba(110, 91, 255, 0.12);
}

.dashboard-section-head--orange .dashboard-section-head__num,
.dashboard-section-head--orange .dashboard-section-head__kicker { color: rgba(251, 146, 60, 0.85); }
.dashboard-section-head--indigo .dashboard-section-head__num,
.dashboard-section-head--indigo .dashboard-section-head__kicker { color: rgba(165, 180, 252, 0.9); }
.dashboard-section-head--gold .dashboard-section-head__num,
.dashboard-section-head--gold .dashboard-section-head__kicker { color: rgba(251, 191, 36, 0.88); }
.dashboard-section-head--cyan .dashboard-section-head__num,
.dashboard-section-head--cyan .dashboard-section-head__kicker { color: rgba(34, 211, 238, 0.85); }
.dashboard-section-head--amber .dashboard-section-head__num,
.dashboard-section-head--amber .dashboard-section-head__kicker { color: rgba(251, 191, 36, 0.88); }
.dashboard-section-head--rose .dashboard-section-head__num,
.dashboard-section-head--rose .dashboard-section-head__kicker { color: rgba(251, 113, 133, 0.88); }
.dashboard-section-head--emerald .dashboard-section-head__num,
.dashboard-section-head--emerald .dashboard-section-head__kicker { color: rgba(52, 211, 153, 0.88); }
.dashboard-section-head--violet .dashboard-section-head__num,
.dashboard-section-head--violet .dashboard-section-head__kicker { color: rgba(196, 181, 253, 0.9); }
.dashboard-section-head--slate .dashboard-section-head__num,
.dashboard-section-head--slate .dashboard-section-head__kicker { color: rgba(148, 163, 184, 0.88); }

.dashboard-band--active .dashboard-section-head {
  border-bottom-color: rgba(157, 124, 255, 0.22);
  background:
    linear-gradient(90deg, rgba(110, 91, 255, 0.1), transparent 62%),
    rgba(255, 255, 255, 0.02);
}

[data-dashboard-section].dashboard-section-focus {
  animation: dashboardSectionFocusPulse 1.2s ease;
}

.dashboard-modules-quickstats {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-modules-quickstats__lead {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.dashboard-modules-quickstats__lead strong {
  color: #fff;
  font-weight: 800;
}

.dashboard-modules-quickstats__grid {
  margin: 0;
}

#activity .dashboard-section-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

#activity .dashboard-band__inner {
  margin-top: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .dashboard-section-head__switch {
    display: none;
  }

  .dashboard-section-head__inner {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
}

.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .dashboard-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dashboard-quick-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.dashboard-quick-tile:hover {
  border-color: rgba(129, 140, 248, 0.35);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-1px);
}

.dashboard-quick-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
}

.dashboard-quick-tile__icon svg {
  width: 1rem;
  height: 1rem;
}

.dashboard-quick-tile__label {
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(163, 163, 163, 0.95);
}

.dashboard-quick-tile__value {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
