:root {
  --bg: #05070a;
  --bg-elevated: #0d1117;
  --bg-elevated-2: #111720;
  --bg-inset: #080b10;
  --border: #202834;
  --border-soft: #171e27;
  --text: #f5f7fa;
  --text-dim: #99a4b3;
  --text-faint: #5e6978;
  --accent: #23ff78;
  --accent-soft: rgba(35, 255, 120, 0.11);
  --accent-border: rgba(35, 255, 120, 0.28);
  --teal: #31d889;
  --teal-dim: rgba(49, 216, 137, 0.12);
  --danger: #ff6477;
  --danger-dim: rgba(255, 100, 119, 0.12);
  --warning: #f4bd50;
  --warning-dim: rgba(244, 189, 80, 0.12);
  --sidebar-width: 270px;
  --radius-pill: 999px;
  --radius-box: 16px;
  --font-display: 'Space Grotesk', ui-sans-serif, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 10%, rgba(35, 255, 120, 0.075), transparent 28rem),
    radial-gradient(circle at 5% 90%, rgba(20, 160, 75, 0.055), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

button,
input,
textarea,
select { font: inherit; }

a { color: inherit; }

h1,
h2,
h3,
.mono {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 { margin: 0 0 4px; font-size: clamp(1.45rem, 2vw, 1.8rem); }
h2 { margin: 0 0 14px; font-size: 1.05rem; }
h3 { margin: 0 0 8px; font-size: 0.95rem; }
p { color: var(--text-dim); }
code { color: #c8ffd9; }

#particle-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.95;
}

/* Le contenu reste au-dessus des paillettes. */

.app,
.login-screen { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────
   LAYOUT DASHBOARD
───────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  background: rgba(7, 10, 14, 0.88);
  border-right: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
}

.sidebar__logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo .accent { color: var(--accent); }

.inline-form { margin: 0; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-elevated);
  color: var(--text-dim);
  cursor: pointer;
  transition: 0.18s ease;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.profile-card {
  background: linear-gradient(180deg, rgba(17, 23, 32, 0.94), rgba(11, 15, 21, 0.94));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-box);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-card__head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.profile-card__head img,
.avatar-fallback {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.profile-card__head img { object-fit: cover; }
.avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}
.profile-card__identity { min-width: 0; }
.profile-card__head .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
}
.profile-card__sub { margin-top: 2px; color: var(--text-faint); font-size: 0.74rem; }

.pill-list { display: flex; flex-direction: column; gap: 7px; }
.pill {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-inset);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
}
.pill:hover:not(.static) { border-color: var(--accent-border); background: var(--accent-soft); }
.pill.static { color: var(--text-dim); }
.pill--truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill .arrow { color: var(--text-faint); }

.nav { display: flex; flex-direction: column; gap: 5px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: 0.16s ease;
}
.nav a:hover { color: var(--text); background: var(--bg-elevated); border-color: var(--border-soft); }
.nav a.active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-border); }
.nav a span:first-child { width: 20px; text-align: center; }

.sidebar__footer {
  margin-top: auto;
  padding: 12px 4px 0;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
}

.main {
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  padding: 32px clamp(22px, 4vw, 48px) 64px;
}

.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.topbar p { margin: 3px 0 0; }

/* ─────────────────────────────────────────────
   BUTTONS / STATUS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f6f8fb;
  color: #06070a;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.16s ease;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text-dim); font-weight: 600; }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.btn--danger { background: transparent; border-color: rgba(255, 100, 119, 0.25); color: var(--danger); }
.btn--danger:hover { background: var(--danger-dim); color: var(--danger); }
.btn--success { background: var(--teal); color: #04110a; }
.btn--success:hover { background: #4ae59a; }

.logout-btn {
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}
.logout-btn:hover { color: var(--text); border-color: var(--text-faint); }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 0.84rem; }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; }

.status-line { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 0.88rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 9px var(--danger); }
.status-dot.ok { background: var(--teal); box-shadow: 0 0 9px var(--teal); }

/* ─────────────────────────────────────────────
   CARDS / FORMS
───────────────────────────────────────────── */
.card {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-box);
  background: linear-gradient(180deg, rgba(15, 20, 28, 0.97), rgba(11, 15, 21, 0.97));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.section-heading h2 { margin: 0; }
.section-heading p { margin: 4px 0 0; font-size: 0.82rem; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; margin-bottom: 7px; color: var(--text-dim); font-size: 0.81rem; font-weight: 600; }
.field .hint,
.hint { margin-top: 6px; color: var(--text-faint); font-size: 0.75rem; }

input[type='text'],
input[type='email'],
input[type='color'],
textarea,
select {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  background: var(--bg-inset);
  color: var(--text);
  padding: 10px 13px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input::placeholder,
textarea::placeholder { color: #4e5867; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #090d12;
}

input:disabled,
select:disabled,
textarea:disabled { opacity: 0.55; cursor: not-allowed; }

textarea { min-height: 96px; resize: vertical; }
.textarea-large { min-height: 260px; line-height: 1.6; }
select[multiple] { min-height: 140px; }
select option { background: #0b0f14; color: var(--text); }

.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.actions--sticky {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  width: fit-content;
  margin: 18px 0 20px auto;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(8, 11, 16, 0.9);
  backdrop-filter: blur(14px);
}

.color-field { display: flex; align-items: center; gap: 12px; }
.color-field input[type='color'] { width: 66px; flex: 0 0 66px; padding: 4px; cursor: pointer; }
.color-value { color: var(--text-dim); font-family: var(--font-display); font-size: 0.82rem; }
.panel-send-card { margin-top: 6px; }

/* ─────────────────────────────────────────────
   LISTS / TICKETS
───────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.stat-card {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-box);
  background: var(--bg-elevated);
}
.stat-card .value { color: var(--text); font-family: var(--font-display); font-size: 1.9rem; }
.stat-card .label { margin-top: 4px; color: var(--text-faint); font-size: 0.72rem; letter-spacing: 0.03em; }

.record {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--border);
  border-radius: 13px;
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  transition: 0.15s ease;
}
.record:hover { border-color: var(--accent-border); transform: translateY(-1px); }
.record__id { width: 90px; flex-shrink: 0; color: var(--text-faint); font-family: var(--font-display); font-size: 0.8rem; }
.record__main { flex: 1; min-width: 0; }
.record__title { overflow-wrap: anywhere; font-size: 0.9rem; }
.record__sub { margin-top: 2px; color: var(--text-faint); font-size: 0.76rem; }

.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.68rem; font-weight: 700; }
.tag--open { background: var(--accent-soft); color: var(--accent); }
.tag--closed { background: var(--teal-dim); color: var(--teal); }

.search-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: var(--bg-elevated);
}
.search-bar svg { flex-shrink: 0; color: var(--text-faint); }
.search-bar input { min-height: 0; padding: 2px; border: 0; background: transparent; box-shadow: none; }
.search-bar input:focus { box-shadow: none; background: transparent; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters a { padding: 7px 13px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-faint); font-size: 0.8rem; text-decoration: none; }
.filters a:hover,
.filters a.active { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); }
.pager { display: flex; gap: 10px; margin-top: 18px; }

.empty {
  padding: 34px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-box);
  color: var(--text-faint);
  text-align: center;
}

.banner {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(49, 216, 137, 0.22);
  border-radius: 11px;
  background: var(--teal-dim);
  color: var(--teal);
  font-size: 0.82rem;
}
.banner--warn { width: 100%; border-color: rgba(244, 189, 80, 0.24); background: var(--warning-dim); color: var(--warning); }
.banner--info { width: 100%; border-color: var(--accent-border); background: var(--accent-soft); color: #bdf6ff; }

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

table.messages { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
table.messages td { padding: 10px 7px; border-bottom: 1px solid var(--border-soft); vertical-align: top; overflow-wrap: anywhere; }
table.messages td.author { width: 170px; color: var(--text-faint); font-family: var(--font-display); font-size: 0.74rem; }

/* ─────────────────────────────────────────────
   LOGIN / SERVERS / ERROR
───────────────────────────────────────────── */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px 20px;
}

.login-card {
  width: min(100%, 380px);
  padding: 42px 34px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(13, 17, 23, 0.94);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}
.login-card .kicker { margin-bottom: 10px; color: var(--accent); font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.07em; }
.login-card p { margin: 0 auto 24px; font-size: 0.86rem; }
.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #5865f2;
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.discord-btn:hover { background: #6874f7; }

.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.server-tile {
  min-height: 100px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-box);
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  transition: 0.16s ease;
}
.server-tile:hover { border-color: var(--accent-border); background: var(--bg-elevated-2); transform: translateY(-1px); }
.server-tile .name { margin-bottom: 6px; font-family: var(--font-display); font-size: 0.96rem; }
.server-tile .access { color: var(--accent); font-family: var(--font-display); font-size: 0.69rem; letter-spacing: 0.03em; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 980px) {
  :root { --sidebar-width: 230px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app { display: block; }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .profile-card { padding: 13px; }
  .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { justify-content: flex-start; }
  .sidebar__footer { display: none; }
  .main { padding: 22px 16px 44px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .row-2,
  .row-3,
  .stat-grid { grid-template-columns: 1fr; }
  .record { align-items: flex-start; flex-wrap: wrap; }
  .record__id { width: auto; }
  .record__main { flex-basis: calc(100% - 80px); }
  .actions--sticky { position: static; width: 100%; padding: 0; border: 0; background: transparent; }
  .actions--sticky .btn { width: 100%; }
  table.messages,
  table.messages tbody,
  table.messages tr,
  table.messages td { display: block; width: 100%; }
  table.messages tr { padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
  table.messages td { border-bottom: 0; padding: 4px 0; }
  table.messages td.author { width: 100%; }
}

@media (max-width: 480px) {
  .nav { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .server-grid { grid-template-columns: 1fr; }
  .user-chip { flex-wrap: wrap; }
}

/* ─────────────────────────────────────────────
   ANNONCES / COMPONENTS V2
───────────────────────────────────────────── */
.banner--danger {
  width: 100%;
  border-color: rgba(255, 82, 82, 0.3);
  background: rgba(255, 82, 82, 0.09);
  color: #ff8c8c;
}

.announcement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.announcement-form { min-width: 0; }
.announcement-preview-wrap { position: sticky; top: 22px; }
.announcement-preview-card { margin-bottom: 0; }

.v2-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 0.72rem;
}

.discord-preview {
  padding: 14px;
  border: 1px solid #20252d;
  border-radius: 13px;
  background: #111214;
}

.discord-container-preview {
  --preview-accent: #23A55A;
  overflow: hidden;
  padding: 14px 15px;
  border: 1px solid #2b2d31;
  border-left: 4px solid var(--preview-accent);
  border-radius: 8px;
  background: #1e1f22;
  color: #dbdee1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.discord-preview-title {
  color: #f2f3f5;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.discord-preview-mention {
  display: inline-block;
  margin-top: 7px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(88, 101, 242, 0.28);
  color: #c9cdfb;
  font-size: 0.84rem;
  font-weight: 600;
}

.discord-preview-separator {
  height: 1px;
  margin: 12px 0;
  background: #313338;
}

.discord-preview-message {
  color: #dbdee1;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.discord-preview-image {
  display: block;
  width: 100%;
  max-height: 260px;
  margin-top: 13px;
  border-radius: 7px;
  object-fit: cover;
}
.discord-preview-image[hidden] { display: none; }

.discord-preview-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #313338;
  color: #949ba4;
  font-size: 0.74rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mention-warning {
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid rgba(244, 189, 80, 0.2);
  border-radius: 10px;
  background: rgba(244, 189, 80, 0.07);
  color: #c8ad73;
  font-size: 0.73rem;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .announcement-layout { grid-template-columns: 1fr; }
  .announcement-preview-wrap { position: static; }
}


/* ─────────────────────────────────────────────
   TOPBAR — LOGO DE PAGE
───────────────────────────────────────────── */
.topbar__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__logo {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(0, 255, 102, 0.78);
  border-radius: 50%;
  background: rgba(0, 255, 102, 0.08);
  box-shadow:
    0 0 0 4px rgba(0, 255, 102, 0.055),
    0 0 22px rgba(0, 255, 102, 0.26);
}

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

.topbar__logo--fallback::before {
  content: '📢';
  font-size: 22px;
  filter: drop-shadow(0 0 7px rgba(0, 255, 102, 0.55));
}

@media (max-width: 700px) {
  .topbar__identity { align-items: flex-start; }
  .topbar__logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

/* ===== LES TÉNÈBRES - pages unifiées ===== */
.server-select{position:relative;z-index:1;max-width:1200px;margin:0 auto;padding:48px 24px}
.server-select__header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:28px}
.eyebrow{color:var(--accent);font:700 .72rem var(--font-display);letter-spacing:.12em}
.server-card{display:flex;flex-direction:column;gap:14px;padding:20px;border:1px solid var(--border-soft);border-radius:var(--radius-box);background:var(--bg-elevated)}
.server-card--offline{opacity:.62}
.server-card__icon{width:56px;height:56px;border-radius:16px;background:var(--bg-inset);display:grid;place-items:center;overflow:hidden;font:700 1.2rem var(--font-display);color:var(--accent)}
.server-card__icon img{width:100%;height:100%;object-fit:cover}.server-card__body h2{margin:0 0 4px}.server-card__body p{margin:0}.status-row{display:flex;align-items:center;gap:8px;font-size:.76rem;color:var(--text-dim)}
.status-dot.online{background:var(--teal);box-shadow:0 0 9px var(--teal)}.status-dot.offline{background:var(--danger);box-shadow:0 0 9px var(--danger)}
.panel{margin-bottom:18px;padding:24px;border:1px solid var(--border-soft);border-radius:var(--radius-box);background:linear-gradient(180deg,rgba(15,20,28,.97),rgba(11,15,21,.97))}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.form-grid label,.panel label{display:block;margin-bottom:7px;color:var(--text-dim);font-size:.81rem;font-weight:600}.form-grid input[type=number]{width:100%;min-height:43px;border:1px solid var(--border);border-radius:11px;background:var(--bg-inset);color:var(--text);padding:10px 13px}.panel form .btn{margin-top:12px;margin-right:8px}.table-wrap{overflow:auto;margin-top:18px}.table-wrap table{width:100%;border-collapse:collapse}.table-wrap th,.table-wrap td{text-align:left;padding:11px;border-bottom:1px solid var(--border-soft);font-size:.82rem}.table-wrap th{color:var(--text-faint)}
.notice{padding:12px 14px;margin-bottom:18px;border-radius:11px}.notice.success{background:var(--teal-dim);color:var(--teal);border:1px solid rgba(49,216,137,.22)}
.btn-primary{background:var(--accent);color:#041009}.btn-danger{background:transparent;border-color:rgba(255,100,119,.25);color:var(--danger)}.btn-ghost{background:transparent;border-color:var(--border);color:var(--text-dim)}.disabled{pointer-events:none;opacity:.5}
@media(max-width:850px){.grid-2,.form-grid{grid-template-columns:1fr}.server-select__header{flex-direction:column}}

/* ─────────────────────────────────────────────
   PAGE BIENVENUE
───────────────────────────────────────────── */
.welcome-preview-card { align-self: start; }
.welcome-preview {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: #101419;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.welcome-preview__title { font-weight: 800; font-size: 1.06rem; white-space: pre-wrap; }
.welcome-preview__sep { height: 1px; background: #2a323d; margin: 13px 0; }
.welcome-preview__text { color: #e6e9ed; white-space: pre-wrap; overflow-wrap: anywhere; }
.welcome-preview__footer { color: var(--text-faint); font-size: .82rem; }
.switch-line { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch-line input { width: 18px; height: 18px; accent-color: var(--accent); }
.status-list { display: grid; gap: 8px; margin: 16px 0; }
.status-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--bg-inset); }
.status-list span { color: var(--text-dim); }
.status-list strong { text-align: right; overflow-wrap: anywhere; }

/* Ticket Kick · Community systems */
.stack{display:flex;flex-direction:column;gap:18px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025)}.switch-row span{display:flex;flex-direction:column;gap:4px}.switch-row small,.muted{opacity:.66}.checkbox-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.check-card{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.025)}.banner.danger{border-color:rgba(237,66,69,.45);background:rgba(237,66,69,.12)}.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse}.table-wrap th,.table-wrap td{padding:10px;border-bottom:1px solid rgba(255,255,255,.07);text-align:left}@media(max-width:900px){.grid-2,.form-grid,.checkbox-grid{grid-template-columns:1fr}}


/* ===== Ticket Kick · Sélecteurs de rôles globaux ===== */
.tk-role-select{position:relative;width:100%}
.tk-role-select__control{min-height:48px;border:1px solid var(--border,rgba(255,255,255,.12));border-radius:10px;background:var(--input,#24282d);display:flex;align-items:center;gap:7px;padding:7px 42px 7px 10px;flex-wrap:wrap;cursor:text}
.tk-role-select__search{border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;padding:5px!important;min-width:150px;flex:1;color:inherit}
.tk-role-select__arrow{position:absolute;right:10px;top:13px;border:0;background:transparent;color:inherit;opacity:.9;font-size:20px;cursor:pointer}
.tk-role-select__dropdown{display:none;position:absolute;z-index:100;left:0;right:0;top:calc(100% + 6px);max-height:310px;overflow:auto;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:#202328;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.tk-role-select.open .tk-role-select__dropdown{display:block}
.tk-role-select__option{width:100%;border:0;background:transparent;color:#dfe3e7;padding:12px 14px;text-align:left;display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px}
.tk-role-select__option:hover,.tk-role-select__option.selected{background:rgba(255,255,255,.07)}
.tk-role-select__option.hidden{display:none}
.tk-role-dot{width:10px;height:10px;border-radius:50%;background:var(--role-color,#99aab5);box-shadow:0 0 0 1px rgba(255,255,255,.25);flex:0 0 auto}
.tk-role-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#30353b;border:1px solid rgba(255,255,255,.1);padding:5px 7px 5px 9px;font-size:13px;max-width:250px}
.tk-role-chip__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-role-chip__remove{border:0;background:transparent;color:#bbb;cursor:pointer;padding:0 2px;font-size:15px}
.tk-role-select.is-disabled{opacity:.6;pointer-events:none}

/* ===== Ticket Kick · Sélecteurs de salons globaux ===== */
.tk-channel-select{position:relative;width:100%}
.tk-channel-select__control{min-height:48px;border:1px solid var(--border,rgba(255,255,255,.12));border-radius:10px;background:var(--input,#24282d);display:flex;align-items:center;gap:7px;padding:7px 42px 7px 10px;flex-wrap:wrap;cursor:text}
.tk-channel-select__search{border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;padding:5px!important;min-width:150px;flex:1;color:inherit}
.tk-channel-select__arrow{position:absolute;right:10px;top:13px;border:0;background:transparent;color:inherit;opacity:.9;font-size:20px;cursor:pointer}
.tk-channel-select__dropdown{display:none;position:absolute;z-index:100;left:0;right:0;top:calc(100% + 6px);max-height:310px;overflow:auto;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:#202328;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.tk-channel-select.open .tk-channel-select__dropdown{display:block}
.tk-channel-select__option{width:100%;border:0;background:transparent;color:#dfe3e7;padding:12px 14px;text-align:left;display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px}
.tk-channel-select__option:hover,.tk-channel-select__option.selected{background:rgba(255,255,255,.07)}
.tk-channel-select__option.hidden{display:none}
.tk-channel-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#30353b;border:1px solid rgba(255,255,255,.1);padding:5px 7px 5px 9px;font-size:13px}
.tk-channel-chip__remove{border:0;background:transparent;color:#bbb;cursor:pointer;padding:0 2px;font-size:15px}
.tk-channel-select.is-disabled{opacity:.6;pointer-events:none}


/* ============================================================
   TICKET KICK · PANEL 2026 — REFONTE GLOBALE
============================================================ */
:root{--sidebar-width:292px;--radius-box:18px;--panel-shadow:0 18px 55px rgba(0,0,0,.24)}
body{background:radial-gradient(circle at 85% 0,rgba(35,255,120,.07),transparent 32rem),#05070a}
.main{max-width:1480px;padding:34px clamp(22px,3.2vw,50px) 70px}
.sidebar{padding:20px 16px;gap:17px;background:rgba(5,8,12,.95);box-shadow:14px 0 50px rgba(0,0,0,.18)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-family:var(--font-display);font-size:1.08rem}.brand em{font-style:normal;color:var(--accent)}
.brand__mark{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--accent-border);border-radius:10px;background:linear-gradient(135deg,var(--accent-soft),rgba(35,255,120,.02));color:var(--accent);font-size:.72rem;box-shadow:0 0 24px rgba(35,255,120,.12)}
.server-chip{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 11px;border:1px solid var(--border);border-radius:11px;background:#080b10;color:var(--text-dim);font-size:.76rem}.server-chip span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-chip__dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent)}
.switch-server{display:flex;align-items:center;justify-content:space-between;color:var(--accent);font-size:.76rem;font-weight:700;text-decoration:none}.switch-server:hover{color:#fff}
.nav{gap:16px}.nav__group{display:flex;flex-direction:column;gap:4px}.nav__label{padding:0 12px 5px;color:#46515f;font:700 .62rem var(--font-display);letter-spacing:.13em}.nav a{min-height:40px;padding:9px 12px;border-radius:10px}.nav a.active{box-shadow:inset 3px 0 0 var(--accent)}
.sidebar__footer{display:flex;align-items:center;gap:8px;font-size:.62rem}.sidebar__footer .status-dot{width:7px;height:7px}
.topbar{padding-bottom:20px;border-bottom:1px solid var(--border-soft);margin-bottom:24px}.topbar h1{font-size:clamp(1.55rem,2.2vw,2rem)}.topbar p{font-size:.84rem}.kicker{margin-bottom:5px;color:var(--accent);font:700 .64rem var(--font-display);letter-spacing:.11em}
.hero-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;padding:26px 28px;border:1px solid var(--accent-border);border-radius:20px;background:linear-gradient(120deg,rgba(35,255,120,.1),rgba(10,14,20,.96) 52%);box-shadow:var(--panel-shadow)}.hero-card h2{font-size:1.35rem;margin:2px 0 6px}.hero-card p{margin:0;max-width:700px}.hero-status{display:flex;align-items:center;gap:12px;min-width:170px;padding:13px 15px;border:1px solid var(--border);border-radius:14px;background:rgba(5,8,12,.7)}.hero-status div{display:flex;flex-direction:column}.hero-status small{color:var(--text-faint)}
.stat-grid--5{grid-template-columns:repeat(5,minmax(0,1fr))}.stat-card{position:relative;overflow:hidden;padding:20px;border-radius:16px;box-shadow:0 14px 30px rgba(0,0,0,.12)}.stat-card::after{content:'';position:absolute;right:-24px;bottom:-38px;width:90px;height:90px;border-radius:50%;background:var(--accent-soft)}.stat-icon{display:block;margin-bottom:12px;font-size:1rem}.stat-card .value{font-size:1.7rem}
.page-grid{display:grid;gap:18px}.page-grid--aside{grid-template-columns:minmax(0,1.65fr) minmax(290px,.75fr);align-items:start}.preview-card{position:sticky;top:22px}.counter-preview{display:flex;align-items:center;gap:10px;margin:16px 0;padding:16px;border:1px solid #30343a;border-radius:10px;background:#24262b;color:#b7bcc5;font-size:1.03rem}
.status-badge{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;font:700 .65rem var(--font-display);letter-spacing:.06em}.status-badge--ok{border:1px solid var(--accent-border);background:var(--accent-soft);color:var(--accent)}
.module-status-list{display:grid;gap:8px}.module-status-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid var(--border-soft);border-radius:10px;background:var(--bg-inset);font-size:.8rem}.module-status-list strong{font-size:.62rem;letter-spacing:.05em}.module-status-list .is-on{color:var(--accent)}.module-status-list .is-off{color:#657080}
.card,.panel{box-shadow:var(--panel-shadow)}.record{transition:.16s ease}.record:hover{transform:translateX(3px);border-color:var(--accent-border)}
@media(max-width:1180px){.stat-grid--5{grid-template-columns:repeat(3,minmax(0,1fr))}.page-grid--aside{grid-template-columns:1fr}.preview-card{position:static}}
@media(max-width:900px){.app{display:block}.sidebar{position:relative;width:100%;height:auto;border-right:0;border-bottom:1px solid var(--border-soft)}.nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sidebar__footer{margin-top:0}.main{padding:24px 16px 50px}.hero-card{align-items:flex-start;flex-direction:column}.hero-status{width:100%}.stat-grid--5{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.nav{grid-template-columns:1fr}.stat-grid--5{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.hero-card{padding:20px}.card,.panel{padding:18px}}


/* ─────────────────────────────────────────────
   MASQUER LES SCROLLBARS
   Le défilement reste actif à la molette,
   au trackpad et au clavier.
───────────────────────────────────────────── */
html,
body,
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}


/* ============================================================
   PAGE D'ACCUEIL PUBLIQUE
============================================================ */
.public-home-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(88, 101, 242, .16), transparent 30rem),
    radial-gradient(circle at 85% 15%, rgba(35, 165, 90, .10), transparent 28rem),
    #090b11;
  color: #f4f6fb;
}

.public-home {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.public-nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.public-brand__logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #5865f2, #7b84ff);
  box-shadow: 0 10px 28px rgba(88, 101, 242, .28);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  color: #fff;
}

.public-brand strong,
.public-brand small {
  display: block;
}

.public-brand strong {
  font-size: 16px;
}

.public-brand small {
  color: #8991a5;
  margin-top: 2px;
  font-size: 12px;
}

.public-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.public-link {
  color: #b7bed0;
  text-decoration: none;
  font-weight: 600;
}

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

.public-hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: 64px;
  padding: 68px 0 92px;
}

.public-eyebrow {
  color: #8995ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.public-hero h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(46px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.05em;
}

.public-hero h1 span {
  display: block;
  color: #7e88ff;
}

.public-hero__lead {
  max-width: 680px;
  color: #aeb5c6;
  font-size: 18px;
  line-height: 1.75;
}

.public-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 22px;
  font-size: 15px;
}

.btn-ghost {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
  color: #f4f6fb;
}

.btn-ghost:hover {
  background: rgba(255,255,255,.08);
}

.public-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  color: #7f8799;
  font-size: 13px;
  font-weight: 600;
}

.public-dashboard-mock {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(22,25,35,.96), rgba(14,16,23,.96));
  box-shadow:
    0 34px 90px rgba(0,0,0,.42),
    0 0 70px rgba(88,101,242,.10);
  transform: perspective(1100px) rotateY(-5deg) rotateX(2deg);
}

.public-dashboard-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255,255,255,.06), transparent 26%);
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.mock-top strong {
  margin-left: auto;
  color: #8f98ff;
  font-size: 13px;
}

.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #363a47;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
}

.mock-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.mock-card--wide {
  grid-column: 1 / -1;
  min-height: 110px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.mock-icon {
  font-size: 26px;
}

.mock-card small {
  color: #7f8799;
}

.mock-card strong {
  font-size: 14px;
}

.mock-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(35,165,90,.13);
  color: #72e6a3;
  font-size: 10px;
  font-weight: 800;
}

.public-section {
  padding: 90px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

.public-section__heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.public-section__heading h2,
.public-cta h2 {
  margin: 12px 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -.035em;
}

.public-section__heading p,
.public-cta p {
  color: #929aad;
  font-size: 16px;
  line-height: 1.7;
}

.public-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.public-feature-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 22px;
  background: rgba(255,255,255,.027);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.public-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(126,136,255,.30);
  background: rgba(255,255,255,.045);
}

.public-feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(88,101,242,.12);
  font-size: 23px;
}

.public-feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.public-feature-card p {
  margin: 0;
  color: #8e96a8;
  line-height: 1.65;
  font-size: 14px;
}

.public-cta {
  margin: 36px 0 90px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid rgba(126,136,255,.20);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(88,101,242,.12), rgba(255,255,255,.025));
}

.public-cta > div {
  max-width: 760px;
}

.public-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #737b8e;
  font-size: 13px;
}

@media (max-width: 980px) {
  .public-hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .public-hero__visual {
    max-width: 700px;
  }

  .public-dashboard-mock {
    transform: none;
  }

  .public-feature-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 680px) {
  .public-home {
    width: min(100% - 24px, 1240px);
  }

  .public-nav {
    min-height: 74px;
  }

  .public-nav__actions .public-link {
    display: none;
  }

  .public-brand small {
    display: none;
  }

  .public-hero {
    min-height: auto;
    gap: 42px;
    padding: 54px 0 68px;
  }

  .public-hero h1 {
    font-size: 46px;
  }

  .public-hero__lead {
    font-size: 16px;
  }

  .public-feature-grid {
    grid-template-columns: 1fr;
  }

  .public-cta {
    padding: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .public-footer {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 26px 0;
  }
}


/* Accueil public · étapes */
.public-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.public-step {
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 22px;
  background: rgba(255,255,255,.027);
}

.public-step > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: rgba(88,101,242,.13);
  color: #8995ff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
}

.public-step h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.public-step p {
  margin: 0;
  color: #8e96a8;
  line-height: 1.7;
}

.public-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .public-steps {
    grid-template-columns: 1fr;
  }

  .public-nav__actions .btn-ghost {
    display: none;
  }

  .public-cta__actions {
    width: 100%;
  }

  .public-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}


.server-select__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.server-select__actions form {
  margin: 0;
}

.global-updates-page {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 56px;
}

@media (max-width: 720px) {
  .server-select__header {
    align-items: flex-start;
    gap: 18px;
  }

  .server-select__actions {
    width: 100%;
  }

  .server-select__actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================================
   MISES À JOUR GLOBALES · ÉDITEUR PREMIUM
============================================================ */
.global-update-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.global-update-editor,
.global-update-preview-column {
  display: grid;
  gap: 18px;
}

.global-update-preview-column {
  position: sticky;
  top: 18px;
}

.update-card {
  overflow: hidden;
}

.update-step {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: rgba(88,101,242,.13);
  color: #9ca4ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.update-field {
  margin-top: 22px;
}

.update-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.update-field__head label {
  margin: 0;
  color: #f2f4f8;
  font-size: 14px;
  font-weight: 700;
}

.field-counter,
.optional-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #7f889b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
}

.optional-badge {
  color: #84dfaa;
  border-color: rgba(35,165,90,.18);
  background: rgba(35,165,90,.07);
}

.update-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.update-input-shell input {
  width: 100%;
  padding-left: 48px !important;
}

.update-input-icon {
  position: absolute;
  left: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: .9;
}

.update-help {
  display: block;
  margin-top: 7px;
  color: #6f788b;
  line-height: 1.5;
}

.update-appearance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.update-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.update-quick-tags button {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255,255,255,.035);
  color: #aab2c4;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}

.update-quick-tags button:hover {
  border-color: rgba(88,101,242,.32);
  background: rgba(88,101,242,.10);
  color: #fff;
}

.update-send-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(237,66,69,.17);
  background: linear-gradient(135deg, rgba(237,66,69,.06), rgba(255,255,255,.018));
}

.update-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.update-warning__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(237,66,69,.10);
  font-size: 18px;
}

.update-warning strong {
  display: block;
  color: #ff9b9f;
}

.update-warning p {
  margin: 5px 0 0;
  color: #8b93a5;
  font-size: 13px;
}

.update-send-btn {
  flex: 0 0 auto;
  min-height: 50px;
  padding-inline: 20px;
}

.update-preview-card {
  overflow: hidden;
}

.discord-update-preview {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  background: #1e1f22;
}

.discord-update-preview__bot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.discord-update-preview__avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #7c85ff);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.discord-update-preview__bot strong {
  color: #f2f3f5;
  font-size: 14px;
}

.discord-update-preview__bot span {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #5865f2;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.discord-update-preview__bot small {
  display: inline-block;
  margin-left: 6px;
  color: #949ba4;
  font-size: 11px;
}

.discord-update-embed {
  overflow: hidden;
  padding: 14px 14px 12px 16px;
  border-left: 4px solid #5865f2;
  border-radius: 4px;
  background: #2b2d31;
}

.discord-update-embed__title {
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.discord-update-embed__message {
  margin-top: 10px;
  color: #dbdee1;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.discord-update-embed__image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  margin-top: 12px;
  border-radius: 7px;
  background: #18191c;
}

.discord-update-embed__footer {
  margin-top: 12px;
  color: #949ba4;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.update-destination-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 8px;
}

.update-destination-total strong {
  color: #77e5a7;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
}

.update-destination-total span {
  color: #7c8599;
  font-size: 13px;
  font-weight: 700;
}

.update-server-list {
  max-height: 360px;
  overflow: auto;
}

@media (max-width: 1050px) {
  .global-update-layout {
    grid-template-columns: 1fr;
  }

  .global-update-preview-column {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .update-appearance-grid,
  .global-update-preview-column {
    grid-template-columns: 1fr;
  }

  .update-send-card {
    align-items: stretch;
    flex-direction: column;
  }

  .update-send-btn {
    width: 100%;
    justify-content: center;
  }
}


/* GlobalUpdates · aperçu Components V2 */
.discord-update-container-v2 {
  border-left: 4px solid #5865f2;
  border-radius: 8px;
}

.discord-update-container-v2::before {
  content: 'COMPONENTS V2';
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(88,101,242,.14);
  color: #9ca5ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
