/* ═══════════════════════════════════════════════════════════════
   Limule Bot Dashboard — Style Premium v2
   Direction artistique : Discord dark + glassmorphism + Inter
═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:           #1e2124;
  --bg-alt:       #282b30;
  --bg-card:      #2f3136;
  --bg-hover:     #36393f;
  --sidebar:      #202225;
  --sidebar-bg:   rgba(24,25,28,.82);
  --nav-bg:       rgba(20,21,24,.82);
  --sidebar-w:    260px;
  --accent:       #5865F2;
  --accent-dark:  #4752c4;
  --accent-glow:  rgba(88,101,242,.25);
  --accent-2:     #8b5cf6; /* violet */
  --accent-3:     #22d3ee; /* cyan */
  --grad-brand:   linear-gradient(135deg, #5865F2 0%, #8b5cf6 55%, #22d3ee 130%);
  --grad-brand-soft: linear-gradient(135deg, rgba(88,101,242,.18), rgba(139,92,246,.12));
  --success:      #57F287;
  --danger:       #ED4245;
  --warning:      #FEE75C;
  --info:         #00b0f4;
  --text:         #dcddde;
  --text-muted:   #96989d;
  --text-dim:     #72767d;
  --border:       rgba(255,255,255,.06);
  --border-solid: #40444b;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-sm:    6px;
  --shadow:       0 4px 24px rgba(0,0,0,.35);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.25);
  --font:         'Inter', 'Segoe UI', system-ui, sans-serif;
  --transition:   all .18s cubic-bezier(.4,0,.2,1);
}

/* ── Thème clair ────────────────────────────────────────────── */
html[data-theme="light"] {
  --bg:           #f2f3f5;
  --bg-alt:       #e9eaed;
  --bg-card:      #ffffff;
  --bg-hover:     #e3e5e8;
  --sidebar:      #ffffff;
  --sidebar-bg:   rgba(255,255,255,.9);
  --nav-bg:       rgba(255,255,255,.9);
  --text:         #2e3338;
  --text-muted:   #4e5058;
  --text-dim:     #80848e;
  --border:       rgba(0,0,0,.08);
  --border-solid: #d4d7dc;
  --accent-glow:  rgba(88,101,242,.15);
  --shadow:       0 4px 24px rgba(0,0,0,.12);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
}
html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] code { color: #4338ca; }

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Ambiance : halos colorés fixes en arrière-plan (DA premium) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px circle at 12% -8%, rgba(88,101,242,.16), transparent 55%),
    radial-gradient(720px circle at 100% 0%, rgba(139,92,246,.13), transparent 50%),
    radial-gradient(680px circle at 50% 120%, rgba(34,211,238,.07), transparent 55%);
  animation: ambientShift 16s ease-in-out infinite alternate;
}
@keyframes ambientShift {
  from { opacity: .75; transform: translateY(0); }
  to   { opacity: 1;   transform: translateY(-14px); }
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-solid); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Links ──────────────────────────────────────────────────── */
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: #7289da; text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════════ */
.layout { display: flex; min-height: 100vh; }

/* ── Content (centré dans l'espace à droite de la sidebar) ───── */
.content {
  margin-left: var(--sidebar-w);
  padding: 48px 32px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp .3s ease both;
}
/* Tous les blocs de contenu sont centrés et limités en largeur */
.content > * {
  width: 100%;
  max-width: 1040px;
}

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

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
}
.logo-icon { font-size: 20px; }
.logo-text { background: var(--grad-brand); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 800; }
.sidebar-close { display: none; background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px; border-radius: 4px; }
.sidebar-close:hover { background: var(--bg-hover); color: var(--text); }

/* ── Guild info in sidebar ────────────────────────────────── */
.sidebar-guild {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 8px 8px 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.sidebar-guild-icon { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sidebar-guild-initial {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7289da);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.sidebar-guild-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

/* ── Nav labels ─────────────────────────────────────────────── */
.nav-section-label {
  padding: 12px 16px 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: .07em;
}

/* ── Nav links ──────────────────────────────────────────────── */
.nav-links { list-style: none; padding: 4px 8px; }
.nav-links li { margin: 1px 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px;
  width: 3px; height: 60%;
  background: var(--grad-brand);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  width: 16px; height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: .8;
}
.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }

.nav-sep { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }

/* ── Sidebar footer ─────────────────────────────────────────── */
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 12px 10px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 8px;
  border-radius: var(--radius);
  background: var(--grad-brand-soft);
  border: 1px solid var(--border);
}

.avatar-md {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid transparent;
  background: linear-gradient(var(--sidebar), var(--sidebar)) padding-box,
             var(--grad-brand) border-box;
}
.avatar-sm {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-details { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-badges { display: flex; gap: 3px; margin-top: 2px; flex-wrap: wrap; }
.badge-pill {
  font-size: 12px;
  cursor: default;
  display: inline-block;
  line-height: 1;
}

.logout-btn {
  padding: 6px;
  border-radius: 6px;
  color: var(--danger);
  background: rgba(237,66,69,.1);
  display: flex;
  align-items: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.logout-btn svg { fill: currentColor; }
.logout-btn:hover { background: rgba(237,66,69,.22); color: #ff6b6b; }

/* ── Hamburger + Overlay ────────────────────────────────────── */
.hamburger {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 300;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 150;
  backdrop-filter: blur(2px);
}
.overlay.visible { display: block; }

/* ══════════════════════════════════════════════════════════════
   PAGE ELEMENTS
══════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--text-dim); }

/* ── Page header ────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: 28px; font-weight: 800; letter-spacing: -.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}
.page-header p  { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.page-header-info { flex: 1; }

.guild-icon { width: 56px; height: 56px; border-radius: 50%; }

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
}

/* ── Section label ──────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

/* ── Info banner ────────────────────────────────────────────── */
.info-banner {
  background: rgba(88,101,242,.1);
  border: 1px solid rgba(88,101,242,.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: #a5b4fc;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════════ */
.config-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.config-card:hover {
  border-color: rgba(88,101,242,.35);
  box-shadow: 0 8px 30px rgba(0,0,0,.28);
  transform: translateY(-1px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 22px;
  background: linear-gradient(180deg, rgba(88,101,242,.06), rgba(0,0,0,.2));
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.card-title {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  position: relative;
  padding-left: 12px;
}
.card-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px;
  background: var(--grad-brand);
  border-radius: 99px;
}
.cat-icon { font-size: 18px; }

.card-body { padding: 16px 18px; }
.cards-list { display: flex; flex-direction: column; gap: 8px; }

/* ── Stat cards ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7289da);
}
.stat-card.stat-accent-red::before  { background: linear-gradient(90deg, var(--danger), #ff6b6b); }
.stat-card.stat-accent-orange::before { background: linear-gradient(90deg, #f97316, var(--warning)); }
.stat-card.stat-accent-green::before { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-icon  { font-size: 22px; margin-bottom: 10px; display: block; }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }

/* ── Quick links grid ───────────────────────────────────────── */
.quick-links h2 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }

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

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.quick-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
  opacity: 0; transition: var(--transition);
}
.quick-card:hover {
  border-color: rgba(88,101,242,.45);
  background: rgba(88,101,242,.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(88,101,242,.15);
}
.quick-card:hover::before { opacity: 1; }
.quick-card span { font-size: 32px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.quick-card strong { font-size: 14px; font-weight: 700; }
.quick-card p { font-size: 12px; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.95); }

.btn-primary  { background: var(--accent); color: #fff; box-shadow: 0 2px 12px rgba(88,101,242,.3); }
.btn-secondary { background: var(--bg-hover); color: var(--text); border: 1px solid var(--border); }
.btn-danger   { background: var(--danger); color: #fff; box-shadow: 0 2px 12px rgba(237,66,69,.25); }
.btn-discord  { background: var(--accent); color: #fff; font-size: 15px; padding: 12px 28px; }
.btn-sm       { padding: 6px 12px; font-size: 12px; }
.btn-xs       { padding: 4px 8px; font-size: 11px; }

/* ══════════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.form-hint { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; line-height: 1.5; }
.form-row  { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 160px; }

select, input[type="text"], input[type="number"], textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
}
select:focus, input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
select option { background: var(--bg-card); }
textarea { resize: vertical; min-height: 90px; }

.select-row { display: flex; gap: 8px; align-items: center; }
.select-row select { flex: 1; }

code {
  background: var(--bg);
  border: 1px solid var(--border-solid);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: 12px;
  color: #a5b4fc;
}

/* ── Badges / tags ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border-solid);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Consolas', monospace;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}
.tag-green  { background: rgba(87,242,135,.12); color: var(--success); border: 1px solid rgba(87,242,135,.3); }
.tag-red    { background: rgba(237,66,69,.12); color: var(--danger); border: 1px solid rgba(237,66,69,.3); }
.tag-orange { background: rgba(254,231,92,.1); color: var(--warning); border: 1px solid rgba(254,231,92,.25); }
.tag-gray   { background: rgba(255,255,255,.05); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Status dots ────────────────────────────────────────────── */
.status-dot, .dot-green, .dot-red {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green, .status-dot.dot-green { background: var(--success); box-shadow: 0 0 6px rgba(87,242,135,.5); }
.dot-red,   .status-dot.dot-red   { background: var(--danger);  box-shadow: 0 0 6px rgba(237,66,69,.5); }

/* ── Toggle switch ──────────────────────────────────────────── */
.toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-solid);
  border-radius: 26px;
  transition: .22s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .22s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Color picker ───────────────────────────────────────────── */
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type="color"] {
  width: 44px; height: 38px;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.color-row input[type="text"] { flex: 1; }

/* ── Role row ───────────────────────────────────────────────── */
.role-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.role-row select { flex: 1; }

/* ── Disabled category ──────────────────────────────────────── */
.category-disabled { opacity: .65; }
.category-disabled .card-header { background: rgba(237,66,69,.08); }
.disabled-notice {
  background: rgba(237,66,69,.08);
  border: 1px solid rgba(237,66,69,.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: #fca5a5;
  margin-top: 10px;
}

/* ── Message preview ────────────────────────────────────────── */
.msg-preview {
  background: var(--bg);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Giveaway stats ─────────────────────────────────────────── */
.gw-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 10px; }
.gw-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); display: block; margin-bottom: 3px; }
.gw-stat-value { font-size: 18px; font-weight: 700; }

/* ── Security features ──────────────────────────────────────── */
.security-feature { display: flex; align-items: center; gap: 10px; font-size: 13px; }

/* ══════════════════════════════════════════════════════════════
   TOASTS
══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--success);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: var(--radius);
  z-index: 999;
  box-shadow: var(--shadow);
  transition: opacity .25s, transform .25s;
  transform: translateY(0);
}
.toast.toast-error { background: var(--danger); color: #fff; }
.toast.hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* ══════════════════════════════════════════════════════════════
   EMBED PREVIEW
══════════════════════════════════════════════════════════════ */
.embed-preview {
  display: flex;
  gap: 0;
  background: #2f3136;
  border-radius: 6px;
  overflow: hidden;
  max-width: 520px;
  box-shadow: var(--shadow-sm);
}
.embed-accent { width: 4px; flex-shrink: 0; }
.embed-content { padding: 12px 16px; flex: 1; }
.embed-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.embed-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════
   SERVERS PAGE
══════════════════════════════════════════════════════════════ */
.servers-grid { display: flex; flex-direction: column; gap: 8px; }

.server-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: var(--transition);
}
.server-card:hover { border-color: rgba(88,101,242,.4); box-shadow: var(--shadow-sm); }
.server-card.bot-present { border-left: 3px solid var(--success); }
.server-card.bot-absent  { border-left: 3px solid var(--border-solid); }

.server-icon-wrap {
  position: relative;
  width: 52px; height: 52px;
  flex-shrink: 0;
}
.server-icon-img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.server-icon-placeholder {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7289da);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
}
.bot-badge {
  position: absolute;
  bottom: -2px; right: -2px;
  font-size: 13px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}

.server-info { flex: 1; min-width: 0; }
.server-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-meta { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
}
.empty-icon { font-size: 52px; opacity: .6; }
.empty-state p { font-size: 15px; }
.text-muted { color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════════════════════════ */
.landing {
  min-height: 100vh;
  overflow: hidden;
}

/* ── Hero ────────────────────────────────────────────────────── */
.landing-hero {
  position: relative;
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(88,101,242,.18) 0%, transparent 70%);
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 400px at 20% 50%, rgba(88,101,242,.08) 0%, transparent 70%),
    radial-gradient(circle 300px at 80% 20%, rgba(114,137,218,.06) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: .6; }
  to   { opacity: 1; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(88,101,242,.15);
  border: 1px solid rgba(88,101,242,.3);
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
  position: relative;
  animation: badgePop .6s cubic-bezier(.4,0,.2,1) both;
}
@keyframes badgePop {
  from { opacity:0; transform: scale(.8) translateY(8px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

.landing-hero h1 {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 40%, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── Features grid ──────────────────────────────────────────── */
.features-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}
.features-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 48px;
  color: var(--text);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88,101,242,.5), transparent);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover { border-color: rgba(88,101,242,.4); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── Landing footer ─────────────────────────────────────────── */
.landing-footer {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.landing-footer a { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════════════ */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(88,101,242,.12) 0%, transparent 70%),
    var(--bg);
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  animation: fadeInUp .4s ease both;
}
.login-card h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; letter-spacing: -.02em; }
.login-card > p { color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }
.login-note    { font-size: 12px; color: var(--text-dim); margin-top: 20px; }

/* ══════════════════════════════════════════════════════════════
   GUILD HOME
══════════════════════════════════════════════════════════════ */
.guild-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(600px circle at 0% 0%, rgba(139,92,246,.18), transparent 60%),
    linear-gradient(135deg, rgba(88,101,242,.18), rgba(34,211,238,.06));
  border: 1px solid rgba(88,101,242,.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.guild-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
}
.guild-banner-icon {
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
             var(--grad-brand) border-box;
  box-shadow: 0 8px 22px rgba(88,101,242,.3);
}
.guild-banner-name {
  font-size: 26px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 50%, #c7d2fe);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  width: fit-content;
}
.guild-banner-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .hamburger { display: flex; }
  .content { margin-left: 0; padding: 20px 16px; padding-top: 60px; }
  .landing-hero h1 { font-size: 36px; }
  .hero-subtitle { font-size: 15px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .login-card { padding: 32px 24px; }
}

/* ══════════════════════════════════════════════════════════════
   PROFILE CARD (carte profil Discord riche — type pop-out)
══════════════════════════════════════════════════════════════ */
.profile-card {
  position: relative;
  background:
    radial-gradient(700px circle at 0% 0%, rgba(88,101,242,.1), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.profile-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
}
.profile-body { padding: 22px 24px; }
.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.profile-avatar-wrap {
  position: relative;
  width: 84px; height: 84px;
  flex-shrink: 0;
}
.profile-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
             var(--grad-brand) border-box;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.profile-status-dot {
  position: absolute;
  right: 3px; bottom: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--success);
  border: 4px solid var(--bg-card);
}
.profile-identity { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.profile-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.profile-username { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.profile-badges {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 8px;
}
.profile-badges .badge-pill { font-size: 15px; }
.nitro-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #ff73fa, #8b5cf6);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 99px;
}
.profile-divider { height: 1px; background: var(--border); margin: 16px 0; }
.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.profile-meta-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.profile-meta-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); font-weight: 700; margin-bottom: 4px; }
.profile-meta-value { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }

/* ══════════════════════════════════════════════════════════════
   SERVERS TOOLBAR + GRID (page Mes serveurs développée)
══════════════════════════════════════════════════════════════ */
.toolbar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: var(--text-dim); pointer-events: none; }
.search-box input { padding-left: 36px; }
.toolbar .seg {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.toolbar .seg button {
  background: none; border: none; color: var(--text-muted);
  padding: 9px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: var(--transition);
}
.toolbar .seg button.active { background: var(--accent-glow); color: var(--accent); }

.servers-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.srv-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.srv-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand); opacity: 0; transition: var(--transition);
}
.srv-card:hover { transform: translateY(-4px); border-color: rgba(88,101,242,.45); box-shadow: 0 16px 34px rgba(0,0,0,.32); }
.srv-card:hover::before { opacity: 1; }
.srv-card.is-absent { opacity: .72; }
.srv-card-top {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px 12px;
}
.srv-card-icon, .srv-card-initial {
  width: 50px; height: 50px; border-radius: 16px; flex-shrink: 0; object-fit: cover;
}
.srv-card-initial {
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
}
.srv-card-id { font-size: 11px; color: var(--text-dim); font-family: 'Consolas', monospace; cursor: pointer; }
.srv-card-id:hover { color: var(--text-muted); }
.srv-card-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-card-stats {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 16px 12px;
}
.srv-card-actions { margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.srv-card-actions .btn { flex: 1; }
.mini-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); padding: 3px 9px; border-radius: 99px; }

/* ══════════════════════════════════════════════════════════════
   OWNER : actions interactives
══════════════════════════════════════════════════════════════ */
.owner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 18px; }
.action-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px;
}
.action-row-info { min-width: 0; }
.action-row-title { font-weight: 600; font-size: 13.5px; }
.action-row-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.info-list { display: flex; flex-direction: column; gap: 2px; }
.info-list-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.info-list-row:last-child { border-bottom: none; }
.info-list-row .k { color: var(--text-muted); }
.info-list-row .v { font-weight: 700; }

.owner-guild-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px;
}
.owner-guild-row img, .owner-guild-row .ph {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; object-fit: cover;
}
.owner-guild-row .ph { background: var(--grad-brand); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.owner-guild-row .gi { flex: 1; min-width: 0; }
.owner-guild-row .gn { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-guild-row .gm { font-size: 11.5px; color: var(--text-dim); }

.is-hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   STATUTS (présence Discord)
══════════════════════════════════════════════════════════════ */
.status-online  { background: #23a55a !important; }
.status-idle    { background: #f0b232 !important; }
.status-dnd     { background: #f23f43 !important; }
.status-offline { background: #80848e !important; }
.status-dot-sm { display:inline-block; width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.profile-id-main { min-width: 0; }
.profile-status-line { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-muted); margin-top:3px; }
.profile-custom { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.srv-card[data-href] { cursor: pointer; }

/* ══════════════════════════════════════════════════════════════
   SITE PUBLIC — NAVBAR
══════════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 32px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); letter-spacing: -.01em; }
.site-logo-icon { font-size: 22px; }
.site-nav-links { display: flex; gap: 6px; margin-left: 14px; flex: 1; }
.site-nav-links a {
  color: var(--text-muted); font-weight: 600; font-size: 13.5px;
  padding: 8px 14px; border-radius: var(--radius-sm); transition: var(--transition);
  text-transform: uppercase; letter-spacing: .03em;
}
.site-nav-links a:hover { color: var(--text); background: var(--bg-hover); }
.site-nav-links a.active { color: var(--accent); background: var(--accent-glow); }
.site-nav-actions { display: flex; align-items: center; gap: 10px; }
.site-nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; margin-left: auto; }

.theme-toggle {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 99px;
  width: 34px; height: 34px; cursor: pointer; font-size: 16px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: var(--transition);
}
.theme-toggle:hover { background: var(--bg-hover); transform: scale(1.06); }

.lang-switch { display: inline-flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; }
.lang-switch a { padding: 5px 11px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.lang-switch a.active { background: var(--grad-brand); color: #fff; }
.lang-switch a:hover:not(.active) { color: var(--text); background: var(--bg-hover); }

/* ══════════════════════════════════════════════════════════════
   SITE PUBLIC — MAIN / LANDING
══════════════════════════════════════════════════════════════ */
.site-main { min-height: calc(100vh - 60px); }

.landing-hero { position: relative; text-align: center; padding: 90px 24px 120px; overflow: hidden; }
.hero-logo { font-size: 72px; filter: drop-shadow(0 8px 24px rgba(88,101,242,.4)); margin-bottom: 18px; animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-10px) } }
.hero-for { font-size: 22px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; margin-bottom: 4px; }
.hero-rotate { height: 64px; margin-bottom: 18px; }
.rotator {
  display: inline-block; font-size: 52px; font-weight: 900; letter-spacing: -.03em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: rotIn .5s ease;
}
@keyframes rotIn { from { opacity:0; transform: translateY(10px) } to { opacity:1; transform: translateY(0) } }
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: var(--grad-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,90 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,90 L0,90 Z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,90 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,90 L0,90 Z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
  opacity: .9;
}

.features-rows { max-width: 1040px; margin: 0 auto; padding: 70px 24px 40px; }
.feat-row {
  display: flex; align-items: center; gap: 40px;
  padding: 36px 0;
}
.feat-row.reverse { flex-direction: row-reverse; }
.feat-art {
  flex: 0 0 220px; height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.feat-art::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 50% 30%, rgba(88,101,242,.2), transparent 60%); }
.feat-art span { font-size: 72px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); position: relative; }
.feat-text { flex: 1; }
.feat-text h3 {
  font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 55%, #c7d2fe); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; width: fit-content;
}
.feat-text p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════
   SITE PUBLIC — FOOTER RICHE
══════════════════════════════════════════════════════════════ */
.site-footer-rich { border-top: 1px solid var(--border); background: rgba(0,0,0,.2); padding: 48px 32px 28px; margin-top: 40px; }
.site-footer-cols { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 12px; line-height: 1.6; max-width: 280px; }
.site-footer-col h4 { font-size: 13px; font-weight: 800; margin-bottom: 12px; color: var(--text); text-transform: uppercase; letter-spacing: .05em; }
.site-footer-col a { display: block; color: var(--text-muted); font-size: 13.5px; padding: 4px 0; }
.site-footer-col a:hover { color: var(--accent); }
.lang-switch-footer { margin-top: 4px; }
.site-footer-bottom { max-width: 1100px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; font-size: 12.5px; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════
   DOCUMENTATION
══════════════════════════════════════════════════════════════ */
.docs-layout { display: grid; grid-template-columns: 260px 1fr 220px; gap: 0; min-height: calc(100vh - 60px); }
.docs-sidebar { border-right: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 60px; align-self: start; max-height: calc(100vh - 60px); overflow-y: auto; }
.docs-search { margin-bottom: 12px; }
.docs-nav-label { padding: 14px 10px 5px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); }
.docs-nav-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13.5px; font-weight: 500; transition: var(--transition); }
.docs-nav-item:hover { background: var(--bg-hover); color: var(--text); }
.docs-nav-item.active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }
.docs-nav-ic { width: 18px; text-align: center; flex-shrink: 0; }
.docs-nav-empty { padding: 14px 10px; color: var(--text-dim); font-size: 13px; }

.docs-content { padding: 36px 48px; max-width: 860px; min-width: 0; }
.docs-h1 { font-size: 34px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 14px; background: linear-gradient(135deg,#fff 55%,#c7d2fe); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; width: fit-content; }
.docs-h2 { font-size: 19px; font-weight: 800; margin: 28px 0 12px; }
.docs-lead { font-size: 16px; color: var(--text); margin-bottom: 14px; }
.docs-content p { color: var(--text-muted); line-height: 1.75; margin-bottom: 12px; }
.docs-content a { color: var(--accent); font-weight: 600; }
.docs-ol { color: var(--text-muted); line-height: 1.8; padding-left: 22px; margin-bottom: 12px; }
.docs-callout { background: rgba(88,101,242,.1); border: 1px solid rgba(88,101,242,.25); border-radius: var(--radius); padding: 12px 16px; color: #a5b4fc; font-size: 13.5px; margin: 16px 0; }
.docs-cmd-table { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.docs-cmd-row { display: flex; gap: 14px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.docs-cmd-row:last-child { border-bottom: none; }
.docs-cmd-row:nth-child(odd) { background: rgba(0,0,0,.12); }
.docs-cmd-row code { flex: 0 0 auto; color: #a5b4fc; }
.docs-cmd-row span { color: var(--text-muted); font-size: 13.5px; }

.docs-aside { border-left: 1px solid var(--border); padding: 36px 18px; position: sticky; top: 60px; align-self: start; }
.docs-aside-title { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.docs-aside-link { display: block; color: var(--text-muted); font-size: 13px; padding: 6px 0; }
.docs-aside-link:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   SUPPORT
══════════════════════════════════════════════════════════════ */
.support-hero { text-align: center; max-width: 720px; margin: 0 auto; padding: 80px 24px 30px; }
.support-icon { font-size: 64px; margin-bottom: 18px; filter: drop-shadow(0 8px 20px rgba(88,101,242,.35)); }
.support-hero h1 { font-size: 38px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 12px; }
.support-sub { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.support-join { font-size: 16px; padding: 14px 30px; }
.support-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.support-quick-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-weight: 600; font-size: 13.5px; transition: var(--transition); }
.support-quick-card span { font-size: 28px; }
.support-quick-card:hover { transform: translateY(-3px); border-color: rgba(88,101,242,.45); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.support-faq { max-width: 720px; margin: 0 auto; padding: 30px 24px 60px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 20px; font-weight: 700; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 18px 16px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════
   CHANGELOG (doc « Mises à jour »)
══════════════════════════════════════════════════════════════ */
.changelog-list { display: flex; flex-direction: column; gap: 14px; }
.changelog-entry { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; }
.changelog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.changelog-title { font-size: 17px; font-weight: 800; }
.changelog-date { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.changelog-body { color: var(--text-muted); line-height: 1.7; white-space: pre-wrap; }

/* ══════════════════════════════════════════════════════════════
   CLASSEMENT PUBLIC
══════════════════════════════════════════════════════════════ */
.lb-hero { text-align: center; padding: 60px 24px 16px; }
.lb-guild-icon { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 12px; border: 3px solid transparent; background: linear-gradient(var(--bg-card),var(--bg-card)) padding-box, var(--grad-brand) border-box; }
.lb-hero h1 { font-size: 34px; font-weight: 900; letter-spacing: -.03em; }
.lb-sub { color: var(--text-muted); font-size: 16px; margin-top: 4px; }
.lb-podium { display: flex; justify-content: center; align-items: flex-end; gap: 16px; max-width: 680px; margin: 24px auto; padding: 0 16px; flex-wrap: wrap; }
.lb-pod { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; text-align: center; width: 180px; }
.lb-pod-1 { transform: translateY(-14px); border-color: rgba(254,231,92,.5); box-shadow: 0 12px 30px rgba(254,231,92,.12); }
.lb-pod-medal { font-size: 30px; }
.lb-pod-av { width: 64px; height: 64px; border-radius: 50%; margin: 6px 0; }
.lb-pod-name { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pod-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.lb-table { max-width: 680px; margin: 0 auto 60px; padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.lb-rank { width: 42px; font-weight: 800; color: var(--text-dim); }
.lb-av { width: 34px; height: 34px; border-radius: 50%; }
.lb-name { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-lvl { font-size: 12px; color: var(--accent); font-weight: 700; }
.lb-xp { font-size: 13px; color: var(--text-muted); min-width: 90px; text-align: right; }

/* ══════════════════════════════════════════════════════════════
   TOM SELECT (selects cherchables) — adapté au thème
══════════════════════════════════════════════════════════════ */
.ts-wrapper { width: 100%; }
/* Dans une ligne salon + bouton (logs, etc.), le select prend l'espace dispo */
.select-row .ts-wrapper { flex: 1 1 auto; min-width: 0; }
.ts-control {
  background: var(--bg) !important;
  border: 1px solid var(--border-solid) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
  min-height: 38px;
  padding: 6px 10px !important;
  box-shadow: none !important;
  font-family: var(--font);
}
.ts-wrapper.focus .ts-control { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-glow) !important; }
.ts-control input, .ts-control input::placeholder { color: var(--text) !important; }
.ts-control .item { color: var(--text) !important; }
.ts-dropdown {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-solid) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow) !important;
  margin-top: 4px;
  z-index: 4000;          /* dropdownParent:'body' → doit passer au-dessus des cartes/nav */
}
.ts-dropdown .option { color: var(--text) !important; padding: 8px 12px; }
.ts-dropdown .option.active, .ts-dropdown .option:hover { background: var(--accent-glow) !important; color: var(--accent) !important; }
.ts-dropdown .no-results { color: var(--text-dim) !important; }
.ts-dropdown-content { scrollbar-width: thin; }
/* ══════════════════════════════════════════════════════════════
   PAGE DE MAINTENANCE
══════════════════════════════════════════════════════════════ */
.maintenance-card { text-align: center; max-width: 480px; }
.maintenance-icon { font-size: 56px; line-height: 1; margin-bottom: 8px; }
.maintenance-sub { color: var(--text-dim); }
.maintenance-reason { margin: 16px 0 6px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border-solid); color: var(--text); }
.maintenance-eta { margin-top: 8px; color: var(--text); }
.maintenance-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.maintenance-auto { margin-top: 14px; font-size: 12px; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════
   LANDING — bande de stats + vitrine de modules (façon DraftBot)
══════════════════════════════════════════════════════════════ */
.landing-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px; padding: 26px 20px 8px; }
.lstat { text-align: center; }
.lstat-num { font-size: 36px; font-weight: 900; line-height: 1.1; background: var(--grad-brand, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lstat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .6px; margin-top: 4px; }
.modules-showcase { max-width: 1080px; margin: 0 auto; padding: 26px 20px 56px; }
.modules-showcase .mod-grid { margin-top: 22px; }

/* ══════════════════════════════════════════════════════════════
   GRILLE DE MODULES (accueil serveur façon DraftBot)
══════════════════════════════════════════════════════════════ */
.mod-group { margin-top: 22px; }
.mod-group-title { font-size: 14px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text-dim); margin: 0 0 12px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.mod-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); text-decoration: none; color: var(--text); position: relative; overflow: hidden; transition: transform .14s, border-color .14s, box-shadow .14s; }
.mod-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-brand, var(--accent)); opacity: 0; transition: opacity .14s; }
.mod-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.mod-card:hover::before { opacity: 1; }
.mod-card-icon { font-size: 24px; line-height: 1; flex: 0 0 auto; }
.mod-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mod-card-body strong { font-size: 14px; font-weight: 700; }
.mod-card-desc { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sélecteur de salon façon DraftBot : nom à gauche, catégorie à droite */
.ts-chan { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.ts-chan-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-cat { flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--text-dim) !important; white-space: nowrap; }
.ts-control .ts-chan-item { display: inline; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — site public
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--border); }
  .docs-aside { display: none; }
  .docs-content { padding: 28px 20px; }
  .site-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav-toggle { display: block; }
  .site-nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 8px; margin: 0; }
  .site-nav-links.open { display: flex; }
  .rotator { font-size: 34px; }
  .hero-rotate { height: 44px; }
  .feat-row, .feat-row.reverse { flex-direction: column; text-align: center; gap: 20px; }
  .feat-art { flex-basis: auto; width: 100%; }
  .feat-text h3 { margin-left: auto; margin-right: auto; }
  .support-quick { grid-template-columns: 1fr; }
  .site-footer-cols { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   REFONTE FINALE v3 — en-têtes, états, squelettes, graphiques, toasts
   (additif : aucune classe existante renommée)
══════════════════════════════════════════════════════════════ */

/* ── Page header enrichi (icône + actions) ──────────────────── */
.page-header-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.page-header-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: 14px;
  background: var(--grad-brand-soft);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), var(--shadow-sm);
}
.page-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Bouton : état de chargement ────────────────────────────── */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; opacity: .85; }
.btn.is-loading::after {
  content: '';
  position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lqsSpin .6s linear infinite;
}
.btn-secondary.is-loading::after { border-color: rgba(0,0,0,.25); border-top-color: var(--text); }
@keyframes lqsSpin { to { transform: rotate(360deg); } }

/* ── État vide cohérent ─────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  padding: 32px 18px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 34px; opacity: .65; }
.empty-state p { font-size: 13px; max-width: 420px; }

/* ── Squelette de chargement (shimmer) ──────────────────────── */
.skeleton {
  position: relative; overflow: hidden;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
}
.skeleton::after {
  content: '';
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  animation: lqsShimmer 1.3s infinite;
}
@keyframes lqsShimmer { 100% { transform: translateX(100%); } }
.skeleton-line { height: 12px; margin: 8px 0; border-radius: 6px; }
.skeleton-chart { height: 180px; }

/* ── Cartes-graphiques ──────────────────────────────────────── */
.chart-card .card-body { padding-top: 14px; }
.chart-wrap { position: relative; width: 100%; min-height: 120px; }
.chart-wrap canvas { width: 100% !important; }
/* Grille de cartes-graphiques côte à côte */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.chart-grid > * { margin: 0; }

/* ── Mini-info sous une stat ────────────────────────────────── */
.stat-hint { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.stat-card.stat-accent-cyan::before { background: linear-gradient(90deg, var(--accent-3), #67e8f9); }
.stat-card.stat-accent-purple::before { background: linear-gradient(90deg, var(--accent-2), #c4b5fd); }

/* ── Pile de toasts (le helper showToast empile dans #lqs-toasts) ── */
#lqs-toasts {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 1000; pointer-events: none;
}
#lqs-toasts .toast {
  position: relative; bottom: auto; right: auto;
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  animation: lqsToastIn .25s cubic-bezier(.4,0,.2,1) both;
}
.toast.toast-info { background: var(--info); color: #fff; }
@keyframes lqsToastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ── Progress (anneaux/barres légers) ───────────────────────── */
.progress-bar { height: 8px; border-radius: 99px; background: var(--bg-hover); overflow: hidden; }
.progress-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); transition: width .4s ease; }

/* ── Léger stagger d'apparition des cartes ──────────────────── */
.content .config-card, .content .stat-card, .content .mod-card { animation: fadeInUp .32s ease both; }

/* ── Auto-save : bouton de sauvegarde masqué (déclenché automatiquement) ── */
.btn[data-autosave-btn] { display: none !important; }
.autosave-hint { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.autosave-hint::before { content: '💾'; }

