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

:root {
  --bg-black: #000000;
  --bg-sidebar: #09090b;
  --bg-card: #0d0e12;
  --bg-card-hover: #14161d;
  --border-color: #1f2128;
  --border-subtle: #18191f;
  
  --text-main: #f4f4f6;
  --text-muted: #8b8f9a;
  --text-dim: #5c606d;
  
  --color-discord: #5865f2;
  --color-discord-hover: #4752c4;
  
  --color-green: #22c55e;
  --color-green-bg: rgba(34, 197, 94, 0.12);
  --color-green-border: rgba(34, 197, 94, 0.25);
  
  --color-coral: #ef4444;
  --color-coral-bg: rgba(239, 68, 68, 0.12);
  
  --color-amber: #f59e0b;
  --color-blue: #3b82f6;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   AUTH / LOGIN SCREEN (Matches ScarBots Screenshots)
   ============================================================ */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  background-color: #000000;
  position: relative;
  overflow-x: hidden;
}

.auth-moon-side {
  width: 46%;
  min-height: 100vh;
  position: relative;
  background: url('../assets/moon.jpg') no-repeat right center;
  background-size: cover;
  transform: scaleX(-1);
  flex-shrink: 0;
}

.auth-moon-side::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to left, transparent, #000000);
}

.auth-content-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  background-color: #000000;
  z-index: 10;
  min-width: 360px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.auth-step {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.auth-step.active {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}

.brand-logo-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #000000;
  border: 1.5px solid #2a2c34;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.brand-logo-circle svg {
  width: 26px;
  height: 26px;
  color: #ffffff;
}

.brand-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff;
  margin-bottom: 2px;
}

.brand-subtitle {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 26px;
}

/* Bouton Discord */
.btn-discord {
  width: 100%;
  height: 44px;
  background-color: var(--color-discord);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-discord:hover {
  background-color: var(--color-discord-hover);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-discord svg {
  width: 20px;
  height: 20px;
}

/* Carte Compte Discord */
.discord-account-pill {
  width: 100%;
  background: #0d0d10;
  border: 1px solid #1c1d24;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.discord-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.discord-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.discord-user-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.discord-user-details .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  font-weight: 600;
}

.discord-user-details .username {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.badge-authorized {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: var(--color-green-bg);
  color: var(--color-green);
  border: 1px solid var(--color-green-border);
}

/* Écran Vérifie ton email */
.email-circle-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #111216;
  border: 1px solid #23252d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 18px;
}

.auth-screen-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.auth-screen-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.auth-screen-desc strong {
  color: #ffffff;
  font-weight: 600;
}

.auth-screen-desc .countdown {
  color: #ffffff;
  font-weight: 700;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-input-group {
  width: 100%;
  text-align: left;
}

.auth-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  height: 42px;
  background: #0c0d10;
  border: 1px solid #20222a;
  border-radius: 6px;
  padding: 0 14px;
  color: #ffffff;
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
  transition: all 0.2s;
}

.auth-input:focus {
  border-color: #3b82f6;
  background: #101116;
}

.auth-input-code {
  height: 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  border-bottom: 2px solid #3b82f6;
}

.btn-white {
  width: 100%;
  height: 44px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 6px;
}

.btn-white:hover {
  opacity: 0.92;
}

.auth-warning {
  font-size: 12px;
  color: #eab308;
  margin-top: 14px;
}

.auth-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.auth-link {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-link:hover {
  color: #ffffff;
}

/* ============================================================
   MAIN DASHBOARD LAYOUT (Matches Screenshots 3, 4, 5)
   ============================================================ */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-black);
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 12px;
  flex-shrink: 0;
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 72px;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .brand-name,
.sidebar.collapsed .user-info {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 18px 10px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #18191f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  border: 1px solid #262830;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.btn-sidebar-toggle {
  background: transparent;
  border: 1px solid #23252d;
  color: #717684;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sidebar-toggle:hover {
  color: #ffffff;
  border-color: #3f424e;
}

/* Navigation Links */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  background-color: #1a1b22;
  color: #ffffff;
  font-weight: 600;
  border-color: #272935;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-item.active svg {
  opacity: 1;
}

/* Sidebar Footer (Staff User Card) */
.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.staff-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.staff-user-card:hover {
  background-color: #14151b;
}

.staff-user-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #23252e;
}

.staff-name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e4ea;
}

.staff-more-btn {
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-black);
  overflow-y: auto;
}

/* Top Header */
.top-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--border-color);
  background-color: #030304;
  position: sticky;
  top: 0;
  z-index: 20;
}

.page-header-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.global-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #0c0d12;
  border: 1px solid #1e2028;
  border-radius: 8px;
  padding: 6px 14px;
  width: 340px;
  color: var(--text-muted);
}

.global-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  width: 100%;
}

.kbd-shortcut {
  font-size: 10px;
  font-weight: 600;
  background: #181920;
  border: 1px solid #282a36;
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-dim);
}

/* Content Container */
.content-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Cards & Containers */
.panel-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.card-header-styled {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-header-styled .icon {
  color: var(--text-dim);
}

.card-header-styled .title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Console Logs Box */
.terminal-box {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: #c9ccd6;
  padding: 16px 20px;
  max-height: 380px;
  overflow-y: auto;
  background-color: #08080a;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.terminal-box::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  word-break: break-word;
}

.term-time {
  color: #525666;
}

.term-bot {
  color: #8b8f9a;
  font-weight: 500;
}

/* Activité Box */
.activity-box {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  padding: 16px 20px;
  background-color: #08080a;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.activity-box::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.activity-line {
  color: #8b8f9a;
}

.activity-line strong {
  color: #ffffff;
}

.activity-line .badge-cmd {
  color: #eab308;
}

.activity-line .badge-ticket {
  color: #38bdf8;
}

/* ============================================================
   PAGE STATISTIQUE (Matches Screenshot 4)
   ============================================================ */
.stats-grid-top {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84px;
}

.stat-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-card-value {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-top: 4px;
}

/* Bottom Stats Split */
.stats-split-bottom {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
  margin-top: 4px;
}

/* Flux Serveurs */
.flux-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px 20px;
}

.flux-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.flux-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.flux-filters {
  display: flex;
  background: #14151b;
  border-radius: 6px;
  padding: 2px;
}

.flux-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.flux-filter-btn.active {
  background: #ffffff;
  color: #000000;
}

.flux-gauges {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0;
}

.gauge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gauge-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 3px solid #1a1b22;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.gauge-circle.gauge-arr {
  border-color: rgba(34, 197, 94, 0.4);
}

.gauge-circle.gauge-dep {
  border-color: rgba(239, 68, 68, 0.4);
}

.gauge-circle.gauge-net {
  border-color: rgba(59, 130, 246, 0.4);
}

.gauge-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gauge-count {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

/* Comparatif Card & Chart */
.comparatif-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.comparatif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.comparatif-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.comparatif-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-box-arr {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 2px;
}

.legend-box-dep {
  width: 8px;
  height: 8px;
  background: #f87171;
  border-radius: 2px;
}

/* Bar Chart */
.comparatif-bars-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 160px;
  padding-top: 10px;
  border-bottom: 1px solid #1c1e26;
}

.bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bar-numbers {
  display: flex;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

.bar-pair {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
}

.bar-arr {
  width: 14px;
  background: linear-gradient(to top, #16a34a, #22c55e);
  border-radius: 3px 3px 0 0;
  transition: height 0.5s ease;
}

.bar-dep {
  width: 14px;
  background: linear-gradient(to top, #dc2626, #f87171);
  border-radius: 3px 3px 0 0;
  transition: height 0.5s ease;
}

/* Floating Action / Support Button */
.floating-support-btn {
  position: fixed;
  bottom: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #1a1b22;
  border: 1px solid #2b2d38;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transition: all 0.2s;
  z-index: 100;
}

.floating-support-btn:hover {
  background-color: #242630;
  border-color: #3b3e4d;
  transform: scale(1.05);
}

/* Generic Table */
.panel-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.panel-table th {
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.panel-table td {
  padding: 14px 18px;
  color: var(--text-main);
  border-bottom: 1px solid #121318;
}

.panel-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* ============================================================
   BOT LIVE STATUS PILL & TOAST ALERTS
   ============================================================ */
.bot-live-status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 20, 26, 0.85);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.bot-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  position: relative;
}

.bot-status-dot.online {
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.bot-status-dot.online::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 197, 94, 0.5);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

.bot-status-dot.offline {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.bot-header-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #2a2d39;
}

.bot-header-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bot-header-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.bot-header-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.bot-ping-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Toast Notifications Container */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  background: rgba(13, 14, 18, 0.95);
  border: 1px solid #2b2e3b;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  animation: toast-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon-wrap.join {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.toast-icon-wrap.leave {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.toast-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Serveur Tab Styles */
.servers-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.servers-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111319;
  border: 1px solid #232530;
  border-radius: 8px;
  padding: 8px 14px;
  width: 320px;
}

.servers-search-box input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.servers-stats-pills {
  display: flex;
  gap: 12px;
}

.servers-pill {
  font-size: 12px;
  background: #14161f;
  border: 1px solid #242735;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-muted);
}

.servers-pill strong {
  color: #fff;
  font-weight: 700;
}

.guild-avatar-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guild-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: #1f2129;
  border: 1px solid #2d303d;
}

.guild-info {
  display: flex;
  flex-direction: column;
}

.guild-name {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.guild-id-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s;
}

.guild-id-copy:hover {
  color: #60a5fa;
}

.badge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

/* ============================================================
   ScarBots 2x2 GRID (ACCUEIL)
   ============================================================ */
.ScarBots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(380px, 1fr) 1fr;
  gap: 20px;
}

.flex-card {
  display: flex;
  flex-direction: column;
}

.serveurs-big-digits {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.digit-box {
  width: 50px;
  height: 64px;
  background-color: #0c0d12;
  border: 1px solid #1e2028;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.02);
}

.serveurs-footer-stats {
  border-top: 1px solid var(--border-subtle);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-val {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-mono);
}

.vip-empty-state {
  flex: 1;
}
/* ============================================================
   TOP LISTS (SERVEURS & COMMANDES)
   ============================================================ */
.top-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.top-list-header .top-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.top-list-header .top-subtitle {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
}

.top-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: 400px;
}

.top-server-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-rank {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  width: 20px;
  text-align: center;
}

.top-server-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #2d303d;
}

.top-server-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.top-server-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.top-server-sub {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.top-server-score {
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
  font-family: var(--font-mono);
}

/* TOP COMMANDES */
.top-command-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.top-command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-cmd-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-mono);
}

.top-cmd-count {
  font-size: 12px;
  font-weight: 700;
  color: #e2e4ea;
  font-family: var(--font-mono);
}

.top-cmd-bar-bg {
  width: 100%;
  height: 4px;
  background-color: #14161d;
  border-radius: 2px;
  overflow: hidden;
}

.top-cmd-bar-fill {
  height: 100%;
  background-color: #5c606d;
  border-radius: 2px;
}

/* ============================================================
   HISTORICAL CHARTS (LATENCE, RAM, SERVEURS, MEMBRES)
   ============================================================ */
.historical-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hist-chart-card {
  background: #090a0f;
  border: 1px solid #1a1c23;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.hist-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hist-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hist-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-gray { background: #9ca3af; }
.dot-red { background: #f87171; }
.dot-blue { background: #60a5fa; }
.dot-green { background: #4ade80; }

.hist-title {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.5px;
}

.hist-value {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.hist-chart-body {
  display: flex;
  height: 120px;
  margin-top: 24px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hist-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  font-size: 9px;
  color: #4b5563;
  padding-bottom: 4px;
}

.hist-bars-area {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-left: 10px;
}

.hist-bar {
  width: 4px;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}

.hist-bar-gray {
  background: linear-gradient(to top, rgba(156,163,175,0.2), rgba(156,163,175,1));
}

.hist-bar-red {
  background: linear-gradient(to top, rgba(248,113,113,0.2), rgba(248,113,113,1));
}

.hist-bar-blue {
  background: linear-gradient(to top, rgba(96,165,250,0.2), rgba(96,165,250,1));
}

.hist-bar-green {
  background: linear-gradient(to top, rgba(74,222,128,0.2), rgba(74,222,128,1));
}

.hist-x-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-left: 50px;
  font-size: 9px;
  color: #4b5563;
}

/* ============================================================
   VUE UTILISATEUR (100% Conforme à la capture d'écran)
   ============================================================ */
.user-view-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 60px;
}

.user-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.user-view-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

/* 1. Barre de Recherche Principale */
.user-search-container {
  width: 100%;
  position: relative;
}

.user-search-input {
  width: 100%;
  background: #090a0f;
  border: 1px solid #1a1d26;
  border-radius: 10px;
  padding: 13px 20px;
  color: #f1f5f9;
  font-size: 13px;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.user-search-input::placeholder {
  color: #4b5263;
  font-weight: 400;
}

.user-search-input:focus {
  border-color: #3b4255;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* 2. Filtres Segmentés (Tous | VIP | Non VIP) */
.user-filter-bar {
  display: flex;
  background: #090a0f;
  border: 1px solid #1a1d26;
  border-radius: 10px;
  padding: 4px;
  width: 100%;
  align-items: center;
}

.user-filter-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #717686;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-main);
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.user-filter-btn:hover {
  color: #e2e8f0;
}

.user-filter-btn.active {
  background: #141722;
  border: 1px solid #232738;
  color: #ffffff;
  font-weight: 600;
}

/* 3. Filtres Langues (Toutes | Français | Anglais | Espagnol) */
.user-lang-bar {
  display: flex;
  background: #090a0f;
  border: 1px solid #1a1d26;
  border-radius: 10px;
  padding: 4px;
  width: 100%;
  align-items: center;
}

.user-lang-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #717686;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-main);
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.user-lang-btn:hover {
  color: #e2e8f0;
}

.user-lang-btn.active {
  background: #141722;
  border: 1px solid #232738;
  color: #ffffff;
  font-weight: 600;
}

/* 4. Barre de Tri / Colonnes */
.user-sort-bar {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 1fr 1fr 30px;
  align-items: center;
  padding: 6px 16px;
  color: #838896;
  font-size: 12px;
  font-weight: 500;
}

.user-sort-btn {
  background: transparent;
  border: none;
  color: #717686;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.user-sort-btn:hover {
  color: #cbd5e1;
}

.user-sort-btn.active {
  background: #141722;
  border: 1px solid #232738;
  color: #ffffff;
  font-weight: 600;
}

/* 5. Liste des Cartes Utilisateurs */
.user-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.user-row-card {
  display: grid;
  grid-template-columns: 240px 200px 140px 120px 1fr 40px;
  align-items: center;
  background: #08090d;
  border: 1px solid #14161f;
  border-radius: 8px;
  padding: 10px 16px;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.user-row-card * {
  pointer-events: none;
}

.user-row-card:hover {
  background: #0d0f17;
  border-color: #212533;
}

.user-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-row-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e293b;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-row-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-row-handle {
  font-size: 13px;
  color: #717686;
  font-weight: 400;
}

.badge-servers-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #181329;
  border: 1px solid #3b285f;
  color: #c084fc;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  width: fit-content;
}

.badge-bots-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0c1d1a;
  border: 1px solid #1b4b3e;
  color: #34d399;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  width: fit-content;
}

.user-row-id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #4b5263;
  letter-spacing: 0.2px;
}

.user-row-chevron {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #474c59;
  transition: transform 0.2s, color 0.2s;
}

.user-row-card:hover .user-row-chevron {
  color: #94a3b8;
}

.user-row-card.expanded .user-row-chevron {
  transform: rotate(180deg);
  color: #818cf8;
}

/* Accordéon Détails Serveurs de l'utilisateur */
.user-row-details {
  display: none;
  background: #0a0c13;
  border: 1px solid #1a1d28;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 16px;
  margin-top: -9px;
  margin-bottom: 4px;
}

.user-row-details.open {
  display: block;
}

.user-details-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  margin-bottom: 10px;
}

.user-guilds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.user-guild-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #10121a;
  border: 1px solid #1e2230;
  border-radius: 6px;
  padding: 8px 12px;
}

.user-guild-mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.user-guild-mini-name {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}

.user-guild-mini-vip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.user-guild-mini-vip.vip {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.user-guild-mini-vip.non-vip {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

/* ============================================================
   STYLES ONGLET SERVEUR (100% Fidèle à la capture d'écran)
   ============================================================ */
.server-sort-bar {
  display: grid;
  grid-template-columns: 280px 200px 120px 100px 1fr 40px;
  align-items: center;
  padding: 6px 16px;
  color: #838896;
  font-size: 12px;
  font-weight: 500;
}

.server-sort-btn,
.vip-sort-btn {
  background: transparent;
  border: none;
  color: #717686;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: fit-content;
}

.server-sort-btn:hover,
.vip-sort-btn:hover {
  color: #cbd5e1;
}

.server-sort-btn.active,
.vip-sort-btn.active {
  background: #141722;
  border: 1px solid #232738;
  color: #ffffff;
  font-weight: 600;
}

.server-lang-btn,
.vip-lang-btn {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: #717686;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-main);
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.server-lang-btn:hover,
.vip-lang-btn:hover {
  color: #e2e8f0;
}

.server-lang-btn.active,
.vip-lang-btn.active {
  background: #141722;
  border: 1px solid #232738;
  color: #ffffff;
  font-weight: 600;
}

.server-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.server-row-card {
  display: grid;
  grid-template-columns: 280px 200px 120px 100px 1fr 40px;
  align-items: center;
  background: #08090d;
  border: 1px solid #14161f;
  border-radius: 8px;
  padding: 10px 16px;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.server-row-card:hover {
  background: #0d0f17;
  border-color: #212533;
}

.server-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.server-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #151824;
}

.server-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.server-row-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-row-members {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

.server-row-buyer {
  font-size: 13px;
  color: #8b92a2;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-present-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  width: fit-content;
}

.text-non-vip {
  color: #64748b;
  font-size: 12.5px;
  font-weight: 400;
}

.server-badge-vip,
.badge-vip-purple-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2.5px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  width: fit-content;
}

.server-row-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #4b5263;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-row-chevron {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #474c59;
  transition: transform 0.2s, color 0.2s;
}

.server-row-card:hover .server-row-chevron {
  color: #94a3b8;
}

.server-row-card.expanded .server-row-chevron {
  transform: rotate(180deg);
  color: #818cf8;
}

.server-row-details {
  display: none;
  background: #0a0c13;
  border: 1px solid #1a1d28;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 16px;
  margin-top: -9px;
  margin-bottom: 4px;
}

.server-row-details.open {
  display: block;
}

/* Badge Discord circulaire avec logo blanc (Photo 3) */
.user-discord-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.user-row-card:hover .user-discord-badge {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.user-discord-badge svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  display: block;
}

/* ============================================================
   PAGINATION CIRCULAIRE (Photo 1 et Photo 2 100% Fidèle)
   ============================================================ */
.user-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 24px;
}

.user-page-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  padding: 0;
}

/* Flèches < et > */
.user-page-circle.arrow {
  background: #393c46;
  color: #9da2b0;
}

.user-page-circle.arrow:hover:not(:disabled):not(.disabled) {
  background: #4b505c;
  color: #ffffff;
}

.user-page-circle.arrow:disabled,
.user-page-circle.arrow.disabled {
  background: #363942;
  color: #636774;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Chiffres inactifs (Gris clair avec texte bleu comme Photo 1) */
.user-page-circle.num {
  background: #cbd0d8;
  color: #1e3a8a;
}

.user-page-circle.num:hover:not(.single-page) {
  background: #e2e8f0;
  color: #172554;
}

/* Chiffre actif (Blanc avec anneau gris foncé comme Photo 1) */
.user-page-circle.num.active {
  background: #ffffff;
  color: #1e3a8a;
  border: 2px solid #525662;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

/* Page unique (Photo 2) : 1 grisé sombre */
.user-page-circle.num.single-page {
  background: #424550;
  color: #111111;
  cursor: default;
}

.user-page-ellipsis {
  color: #8b92a2;
  font-size: 16px;
  font-weight: 800;
  padding: 0 2px;
  letter-spacing: 1px;
}

/* 7. Bouton Flottant Support Chat (En bas à droite comme sur la capture) */
.floating-chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #141722;
  border: 1px solid #282d3e;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 999;
  transition: all 0.2s ease;
}

.floating-chat-bubble:hover {
  transform: scale(1.08);
  background: #1e2233;
  color: #ffffff;
  border-color: #3f4762;
}

/* ============================================================
   MODAL DÉTAILS UTILISATEUR (100% Conforme au screenshot modal)
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(14px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.user-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999999 !important;
  padding: 20px;
  animation: fadeIn 0.15s ease-out;
}

.user-modal-overlay.active {
  display: flex !important;
}

.user-modal-card {
  background: #090a0f;
  border: 1px solid #1c1f2b;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  animation: slideUp 0.15s ease-out;
  pointer-events: auto !important;
  position: relative;
  z-index: 10000000 !important;
}

.user-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 18px 24px;
}

.user-modal-username {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.user-modal-subtitle {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

.user-modal-close-btn {
  background: #11131a;
  border: 1px solid #232738;
  color: #94a3b8;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-modal-close-btn:hover {
  background: #1c202d;
  color: #ffffff;
  border-color: #383f55;
}

.user-modal-servers-list {
  padding: 0 24px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Carte individuelle de serveur dans le modal */
.modal-server-card {
  background: #0d0f15;
  border: 1px solid #1b1e2a;
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}

.modal-server-card:hover {
  border-color: #272c3d;
}

.modal-server-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-server-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-server-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #1a1d28;
  border: 1px solid #242938;
}

.modal-server-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-server-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.modal-server-vip-pill {
  background: #1c202e;
  border: 1px solid #2e3549;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.modal-server-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #555a69;
  margin-top: 3px;
}

.modal-server-bot-status {
  color: #22c55e;
  font-size: 12px;
  font-weight: 600;
}

.modal-server-divider {
  border-top: 1px solid #161922;
  margin: 14px 0 14px 0;
}

.modal-server-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 14px;
  column-gap: 20px;
}

.modal-server-field {
  display: flex;
  flex-direction: column;
}

.modal-field-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #555a69;
  margin-bottom: 3px;
}

.modal-field-val {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

/* ============================================================
   MODAL DÉTAILS SERVEUR (100% Conforme au screenshot envoyé)
   ============================================================ */
.server-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.server-modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

.server-modal-card {
  background: #08090e;
  border: 1px solid #1a1d28;
  border-radius: 12px;
  width: 95%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  color: #e2e8f0;
  overflow-y: auto;
  position: relative;
}

.server-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid #141722;
  margin-bottom: 20px;
}

.server-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.server-modal-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #525866;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.server-modal-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .server-modal-body {
    grid-template-columns: 1fr;
  }
}

.server-modal-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.srv-metric-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.srv-metric-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #525866;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.srv-metric-val {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
  word-break: break-word;
}

.srv-metric-val.green {
  color: #22c55e;
  font-weight: 600;
}

.srv-metric-val.bold {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.srv-owners-section {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #141722;
}

.srv-owners-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.srv-owner-item {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.srv-owner-item span {
  color: #cbd5e1;
  font-family: var(--font-main);
}

.server-modal-right-col {
  background: #040507;
  border: 1px solid #141722;
  border-radius: 8px;
  padding: 16px;
  height: 380px;
  overflow-y: auto;
}

.srv-json-block {
  margin: 0;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 11.5px;
  line-height: 1.55;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}

.srv-json-key {
  color: #38bdf8;
}

.srv-json-string {
  color: #a3e635;
}

.srv-json-number {
  color: #f59e0b;
}

.srv-json-bool {
  color: #c084fc;
}

.srv-json-null {
  color: #64748b;
}

.server-modal-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #141722;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.srv-action-btn {
  background: #ffffff;
  color: #090a0f;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.srv-action-btn:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.srv-action-btn:active {
  transform: translateY(0);
}

.srv-action-btn.loading {
  opacity: 0.7;
  cursor: wait;
}

/* ============================================================
   ÉDITEUR JSON PROFESSIONNEL & SYNCHRONISATION EN DIRECT (BOT <-> SITE)
   ============================================================ */
.server-modal-right-col {
  background: #080a10;
  border: 1px solid #1c2235;
  border-radius: 12px;
  padding: 16px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.srv-editor-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.srv-editor-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.srv-editor-file-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #121624;
  border: 1px solid #232a42;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.srv-sync-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.srv-editor-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.srv-view-mode-tabs {
  display: flex;
  background: #0e121d;
  border: 1px solid #1f263b;
  border-radius: 6px;
  padding: 2px;
}

.srv-mode-tab {
  background: transparent;
  border: none;
  color: #818ba3;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-main);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.srv-mode-tab code {
  font-family: var(--font-mono);
  font-size: 11px;
}

.srv-mode-tab.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.srv-tool-btn {
  background: #121624;
  border: 1px solid #232a42;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.srv-tool-btn:hover {
  background: #1c2236;
  color: #ffffff;
  border-color: #3b466b;
  transform: translateY(-1px);
}

.srv-discord-sync-notice {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  animation: fadeIn 0.3s ease;
}

/* Zone Code Editor avec Gutter Numéroté */
.srv-code-editor-wrapper {
  display: flex;
  background: #040508;
  border: 1px solid #181d2c;
  border-radius: 8px;
  overflow: hidden;
  height: 330px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.srv-code-editor-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.srv-line-numbers {
  background: #07090e;
  border-right: 1px solid #161a27;
  color: #4b5568;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.6;
  padding: 12px 10px 12px 8px;
  text-align: right;
  user-select: none;
  min-width: 32px;
  white-space: pre-wrap;
  overflow: hidden;
}

.srv-json-textarea {
  flex: 1;
  height: 100%;
  background: transparent;
  color: #a3e635;
  border: none;
  padding: 12px 14px;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 11.8px;
  line-height: 1.6;
  outline: none;
  resize: none;
  white-space: pre;
  tab-size: 2;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: auto;
}

.srv-json-textarea.error {
  color: #fca5a5;
}

/* Vue Formulaire Paramètres Rapides */
.srv-visual-form-wrapper {
  background: #05060a;
  border: 1px solid #181d2c;
  border-radius: 8px;
  height: 330px;
  overflow-y: auto;
  padding: 14px;
  box-sizing: border-box;
}

.srv-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.srv-col-span-2 {
  grid-column: span 2;
}

.srv-form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.srv-form-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.srv-text-input,
.srv-select-input {
  background: #0a0d15;
  border: 1px solid #1e2538;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 6px;
  outline: none;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.srv-text-input:focus,
.srv-select-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  background: #0e121d;
}

.srv-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.srv-input-prefix-icon {
  font-size: 14px;
}

.srv-color-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.srv-color-input {
  -webkit-appearance: none;
  border: 1px solid #232a42;
  border-radius: 6px;
  width: 34px;
  height: 32px;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.srv-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.srv-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 5px;
}

/* VIP Switch Custom */
.srv-vip-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
}

.srv-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.srv-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.srv-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e2436;
  transition: 0.2s;
  border-radius: 22px;
  border: 1px solid #2d364f;
}

.srv-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 2px;
  background-color: #ffffff;
  transition: 0.2s;
  border-radius: 50%;
}

.srv-switch input:checked + .srv-slider {
  background-color: #9333ea;
  border-color: #a855f7;
}

.srv-switch input:checked + .srv-slider:before {
  transform: translateX(20px);
}

.srv-vip-status-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  font-family: var(--font-mono);
}

/* Antiraid chips */
.srv-antiraid-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.srv-antiraid-chip {
  background: #090c14;
  border: 1px solid #1c2235;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chip-label {
  font-size: 10px;
  font-weight: 600;
  color: #818ba3;
}

.srv-chip-select {
  background: #111522;
  border: 1px solid #242c44;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

/* Barre Inférieure & Bouton Sauvegarde */
.srv-editor-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.srv-validation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 5px 10px;
  border-radius: 6px;
}

.srv-validation-badge.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.srv-save-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-main);
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  letter-spacing: 0.3px;
}

.srv-save-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.6);
}

.srv-save-btn:active:not(:disabled) {
  transform: translateY(0);
}

.srv-save-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.srv-save-btn.success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.5) !important;
}

/* ==========================================================================
   PAGE PROFIL (100% Conforme au Screenshot)
   ========================================================================== */

.profil-page-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Carte En-tête avec Bannière */
.profil-header-card {
  background: #090a0f;
  border: 1px solid #141722;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.profil-banner-area {
  height: 140px;
  background: linear-gradient(180deg, #11141f 0%, #090a0f 100%);
  width: 100%;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.profil-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 28px 24px 28px;
  position: relative;
  margin-top: -46px;
  flex-wrap: wrap;
  gap: 20px;
}

.profil-identity-block {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.profil-avatar-wrapper {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 4px solid #090a0f;
  background: #06070a;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  position: relative;
}

.profil-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profil-user-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}

.profil-display-name {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  margin: 0;
  line-height: 1.2;
}

.profil-handle-role {
  font-size: 13px;
  color: #727a8c;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.profil-metrics-block {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-bottom: 8px;
}

.profil-metric-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.profil-metric-label {
  font-size: 11px;
  font-weight: 700;
  color: #616877;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.profil-metric-val {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* Grille 2 Colonnes (Compte & Paramètres) */
.profil-details-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 20px;
}

@media (max-width: 960px) {
  .profil-details-grid {
    grid-template-columns: 1fr;
  }
}

.profil-card {
  background: #090a0f;
  border: 1px solid #141722;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.profil-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #616877;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 24px 0;
}

.profil-rows-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.profil-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 38px;
}

.profil-row-label {
  width: 140px;
  font-size: 11.5px;
  font-weight: 700;
  color: #616877;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.profil-row-val {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.profil-discord-id {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.3px;
  font-family: var(--font-mono, monospace);
}

.profil-email-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profil-email-text {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
}

.profil-eye-btn {
  background: transparent;
  border: none;
  color: #616877;
  cursor: pointer;
  padding: 3px 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.profil-eye-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.profil-badge-verified {
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.profil-pwd-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profil-pwd-dots {
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1;
}

.profil-btn-modifier {
  background: #121520;
  border: 1px solid #202636;
  color: #ffffff;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.2s ease;
}

.profil-btn-modifier:hover {
  background: #181d2c;
  border-color: #2b3348;
}

/* Paramètres (Carte droite) */
.profil-param-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profil-param-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profil-param-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.profil-param-desc {
  font-size: 12px;
  color: #616877;
}

/* Switch toggle iOS vert pour Profil */
.profil-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.profil-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.profil-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #202638;
  transition: .25s;
  border-radius: 24px;
}

.profil-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: .25s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.profil-switch input:checked + .profil-slider {
  background-color: #22c55e;
}

.profil-switch input:checked + .profil-slider:before {
  transform: translateX(20px);
}

/* Bouton Chat Flottant (en bas à droite comme sur la photo) */
.floating-support-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #131622;
  border: 1px solid #222738;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-support-btn:hover {
  background: #1a1e2e;
  border-color: #2d344a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.floating-support-btn svg {
  width: 19px;
  height: 19px;
  stroke: #ffffff;
}

/* Modale Changement de Mot de Passe */
.pwd-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pwd-modal-card {
  background: #090a0f;
  border: 1px solid #1a1e2b;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  padding: 26px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.pwd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pwd-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.pwd-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.pwd-input-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #616877;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pwd-input-field {
  background: #0e111a;
  border: 1px solid #1e2434;
  border-radius: 8px;
  color: #ffffff;
  padding: 9px 12px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

.pwd-input-field:focus {
  border-color: #3b82f6;
}

.pwd-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.pwd-btn-cancel {
  background: transparent;
  border: 1px solid #202535;
  color: #8c95a7;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
}

.pwd-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.pwd-btn-submit {
  background: #2563eb;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pwd-btn-submit:hover {
  background: #3b82f6;
}

/* ==========================================================================
   PAGE RÔLE (100% Conforme aux Screenshots)
   ========================================================================== */

.role-page-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

/* Barre supérieure de recherche & Bouton Ajouter */
.role-top-bar {
  background: #090a0f;
  border: 1px solid #141722;
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.role-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.role-search-input-wrapper svg {
  color: #616877;
  flex-shrink: 0;
}

.role-search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13.5px;
  font-family: var(--font-main);
  width: 100%;
  outline: none;
}

.role-search-input::placeholder {
  color: #555c6d;
}

.role-btn-add {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 9999px;
  padding: 8px 26px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.role-btn-add:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

/* Carte liste des membres & rôles */
.role-list-card {
  background: #090a0f;
  border: 1px solid #141722;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.role-rows-wrapper {
  display: flex;
  flex-direction: column;
}

.role-row-item {
  display: grid;
  grid-template-columns: 220px 180px 130px 150px 1fr 140px;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background-color 0.15s ease;
}

.role-row-item:last-child {
  border-bottom: none;
}

.role-row-item:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* Cellule Utilisateur (Avatar + Nom) */
.role-user-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.role-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #11141e;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.role-user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cellule Tag (@username) */
.role-tag-cell {
  font-size: 13px;
  color: #616877;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges de Statut */
.role-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  width: fit-content;
}

.role-status-badge.status-actif,
.role-status-badge.status-fondation {
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.role-status-badge.status-pending {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Badges de Rôles */
.role-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  width: fit-content;
}

.role-badge-pill.badge-fondation {
  background: #2a1118;
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.role-badge-pill.badge-administrations {
  background: #241114;
  color: #e11d48;
  border: 1px solid rgba(225, 29, 72, 0.35);
}

.role-badge-pill.badge-directions {
  background: #261b0c;
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.role-badge-pill.badge-gestion {
  background: #26190f;
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.role-badge-pill.badge-support {
  background: #0f1c2d;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Cellule ID Discord */
.role-id-cell {
  font-size: 12px;
  color: #4b5262;
  font-family: var(--font-mono, monospace);
  font-weight: 500;
}

/* Actions (Modifier / Retirer) */
.role-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.role-dash-icon {
  color: #3f4452;
  font-size: 16px;
  padding-right: 14px;
}

.btn-role-action {
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.15s ease;
}

.btn-role-action.btn-modifier {
  background: #231b32;
  color: #c4b5fd;
  border: 1px solid #3b2d55;
}

.btn-role-action.btn-modifier:hover {
  background: #2e2342;
  color: #ffffff;
}

.btn-role-action.btn-retirer {
  background: #281214;
  color: #fca5a5;
  border: 1px solid #451b1f;
}

.btn-role-action.btn-retirer:hover {
  background: #38171a;
  color: #ffffff;
}

@media (max-width: 1100px) {
  .role-row-item {
    grid-template-columns: 180px 140px 110px 130px 1fr 130px;
    padding: 10px 16px;
    gap: 10px;
  }
}

@media (max-width: 850px) {
  .role-row-item {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

