/* ============================================================
   ByCobra Panel - Thème "Violet nocturne & Jaune doré"
   Toutes les couleurs sont ici : change-les pour personnaliser.
   ============================================================ */
:root {
  --bg: #08050f;
  --bg-2: #0e0919;
  --panel: rgba(23, 15, 40, 0.78);
  --panel-solid: #170f28;
  --panel-2: #20163a;
  --panel-3: #2a1d4b;
  --line: rgba(170, 140, 255, 0.13);
  --line-strong: rgba(170, 140, 255, 0.28);

  --violet: #7c3aed;
  --violet-2: #9d6bff;
  --violet-3: #c4a8ff;
  --violet-glow: rgba(124, 58, 237, 0.45);

  --gold: #f5c542;
  --gold-2: #e0a92a;
  --gold-3: #ffe39a;
  --gold-glow: rgba(245, 197, 66, 0.35);

  --text: #efe9fb;
  --text-2: #cfc4e8;
  --muted: #8f84aa;

  --ok: #3ee6a0;
  --warn: #ffb547;
  --err: #ff6b81;
  --info: #6cb6ff;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --sidebar: 268px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(245, 197, 66, 0.08), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, rgba(91, 33, 182, 0.25), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
/* Petites étoiles dans le fond (nocturne !) */
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 20%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 80%, #ffe39a88 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 65%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 75%, #c4a8ff88 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 45%, #fff4 50%, transparent 51%);
  background-size: 420px 420px, 530px 530px, 610px 610px, 370px 370px, 480px 480px, 700px 700px;
}
#app { position: relative; z-index: 1; min-height: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-3); }
::selection { background: var(--violet); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--violet); }
::-webkit-scrollbar-track { background: transparent; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.gold { color: var(--gold); }
.violet { color: var(--violet-3); }
.hidden { display: none !important; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.right { margin-left: auto; }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }

/* ================= Layout ================= */
.layout { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px;
  background: linear-gradient(180deg, rgba(20, 12, 36, 0.92), rgba(12, 7, 22, 0.95));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; }
.brand img {
  width: 48px; height: 48px; border-radius: 14px; object-fit: contain;
  background: radial-gradient(circle at 50% 40%, rgba(245, 197, 66, 0.25), rgba(124, 58, 237, 0.25));
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 24px var(--violet-glow);
  padding: 4px;
}
.brand .t1 { font-weight: 800; font-size: 19px; line-height: 1; }
.brand .t1 span { color: var(--gold); }
.brand .t2 { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--violet-3); margin-top: 5px; }
.nav-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 500;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.nav a:hover { background: rgba(124, 58, 237, 0.12); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(124, 58, 237, 0.32), rgba(124, 58, 237, 0.05)); color: #fff; }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); }
.nav .ico { width: 20px; text-align: center; font-size: 16px; }
.nav .srv-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-weight: 800; color: #1a1030;
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2));
}
.signature { text-align: center; font-size: 11px; color: var(--muted); padding-top: 10px; letter-spacing: 0.05em; }
.signature b { color: var(--gold); font-weight: 700; }

.main { padding: 26px 34px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.topbar h1 { font-size: 26px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--violet-3); }
.burger { display: none; }

/* ================= Cartes ================= */
.card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  backdrop-filter: blur(10px);
}
.card h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-head h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

.stat { position: relative; overflow: hidden; }
.stat .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .val { font-size: 26px; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, var(--violet-glow), transparent 70%); opacity: 0.5;
}
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 12px; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--violet-2)); transition: width 0.6s ease; }
.bar.gold > i { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.bar.hot > i { background: linear-gradient(90deg, var(--warn), var(--err)); }

/* ================= Serveurs (cartes) ================= */
.srv-card { display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.srv-card:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--violet), 0 0 30px -8px var(--violet-glow); }
.srv-card .top { display: flex; align-items: center; gap: 12px; }
.srv-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none;
  background: linear-gradient(135deg, var(--panel-3), var(--panel-2)); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.srv-card .name { font-weight: 700; font-size: 16.5px; }
.srv-card .meta { font-size: 12.5px; color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-stats div { background: rgba(255, 255, 255, 0.03); border-radius: 9px; padding: 8px 10px; }
.mini-stats b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.mini-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Statut */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--muted); }
.dot.running { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.starting, .dot.stopping { background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: pulse 1s infinite; }
.dot.offline { background: #5b5170; }
@keyframes pulse { 50% { opacity: 0.35; } }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.badge.running { color: var(--ok); background: rgba(62, 230, 160, 0.08); }
.badge.starting, .badge.stopping { color: var(--warn); background: rgba(255, 181, 71, 0.08); }
.badge.offline { color: var(--muted); }
.badge.gold { color: var(--gold); background: rgba(245, 197, 66, 0.08); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.3); }
.badge.violet { color: var(--violet-3); background: rgba(124, 58, 237, 0.12); }
.badge.err { color: var(--err); background: rgba(255, 107, 129, 0.08); }

/* ================= Boutons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; color: var(--text);
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary {
  color: #1d1300; background: linear-gradient(180deg, var(--gold-3), var(--gold) 45%, var(--gold-2));
  box-shadow: 0 6px 20px -6px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.violet { background: linear-gradient(180deg, var(--violet-2), var(--violet)); color: #fff; box-shadow: 0 6px 20px -6px var(--violet-glow); }
.btn.ok { color: var(--ok); }
.btn.danger { color: var(--err); }
.btn.danger.solid { background: var(--err); color: #fff; box-shadow: none; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: rgba(124, 58, 237, 0.15); color: var(--text); }
.btn.sm { height: 31px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.icon { width: 34px; padding: 0; }
.btn.sm.icon { width: 31px; }

/* ================= Formulaires ================= */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
label.f .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.input, select.input, textarea.input {
  width: 100%; height: 40px; padding: 0 13px; border-radius: 10px; border: 0;
  font: inherit; font-size: 14px; color: var(--text);
  background: rgba(8, 5, 16, 0.6); box-shadow: inset 0 0 0 1px var(--line-strong);
  outline: none; transition: box-shadow 0.15s;
}
textarea.input { height: auto; min-height: 90px; padding: 10px 13px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.input:focus { box-shadow: inset 0 0 0 1px var(--violet-2), 0 0 0 3px rgba(124, 58, 237, 0.25); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
select.input option { background: var(--panel-solid); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; padding: 6px 0; }
.check input { appearance: none; width: 18px; height: 18px; flex: none; margin: 1px 0 0; border-radius: 5px; background: rgba(8, 5, 16, 0.6); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--gold); box-shadow: none; }
.check input:checked::after { content: '✓'; color: #1d1300; font-size: 13px; font-weight: 900; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--panel-3); cursor: pointer; transition: 0.2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: var(--text-2); transition: 0.2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::before { transform: translateX(18px); background: #1d1300; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

/* ================= Tableaux ================= */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background 0.1s; }
table.t tbody tr:hover { background: rgba(124, 58, 237, 0.07); }
table.t tr.sel { background: rgba(245, 197, 66, 0.07); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }

/* ================= Onglets ================= */
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 12px; background: rgba(8, 5, 16, 0.55); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 8px 14px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: 14px; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.tabs a:hover { color: var(--text); background: rgba(124, 58, 237, 0.12); }
.tabs a.active { color: #1d1300; background: linear-gradient(180deg, var(--gold-3), var(--gold)); font-weight: 700; }

/* ================= En-tête serveur ================= */
.srv-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.srv-head .srv-icon { width: 58px; height: 58px; font-size: 28px; border-radius: 16px; }
.srv-head h1 { font-size: 26px; }
.power { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

/* ================= Console ================= */
.console {
  height: 520px; overflow-y: auto; padding: 14px 16px; border-radius: var(--radius);
  background: #05030a; box-shadow: inset 0 0 0 1px var(--line), 0 0 40px -20px var(--violet-glow);
  font-family: var(--mono); font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}
.console .l-err { color: #ff9aa9; }
.console .l-sys { color: var(--gold); }
.console .l-cmd { color: var(--violet-3); }
.console-input { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.console-input .prompt { font-family: var(--mono); color: var(--gold); font-weight: 700; padding-left: 4px; }
.console-input .input { font-family: var(--mono); }

/* ================= Fichiers ================= */
.fm-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.crumb-path { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-family: var(--mono); font-size: 13.5px; padding: 8px 12px; border-radius: 10px; background: rgba(8, 5, 16, 0.55); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 12px; }
.crumb-path a { color: var(--violet-3); padding: 2px 5px; border-radius: 5px; }
.crumb-path a:hover { background: rgba(124, 58, 237, 0.2); color: #fff; }
.crumb-path .sep { color: var(--muted); }
.fname { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; }
.fname .fi { width: 22px; text-align: center; font-size: 17px; flex: none; }
.fname .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fname:hover .nm { color: var(--gold); }
.perm { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dropzone {
  position: fixed; inset: 0; z-index: 50; display: none; place-items: center;
  background: rgba(8, 5, 16, 0.75); backdrop-filter: blur(4px);
}
.dropzone.on { display: grid; }
.dropzone div { padding: 50px 70px; border-radius: 24px; border: 2px dashed var(--gold); color: var(--gold); font-size: 22px; font-weight: 700; text-align: center; background: rgba(245, 197, 66, 0.05); }
.uploads { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 340px; display: flex; flex-direction: column; gap: 8px; }
.upload-item { background: var(--panel-solid); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; }
.upload-item .bar { margin-top: 7px; }

/* Éditeur */
.editor { display: flex; height: 62vh; border-radius: 12px; overflow: hidden; background: #05030a; box-shadow: inset 0 0 0 1px var(--line); }
.editor .gutter { padding: 12px 10px 12px 14px; text-align: right; color: #5c5275; font-family: var(--mono); font-size: 13px; line-height: 1.6; user-select: none; overflow: hidden; white-space: pre; background: rgba(124, 58, 237, 0.05); border-right: 1px solid var(--line); }
.editor textarea { flex: 1; resize: none; border: 0; outline: none; padding: 12px 14px; background: transparent; color: var(--text); font-family: var(--mono); font-size: 13px; line-height: 1.6; tab-size: 2; white-space: pre; overflow: auto; }

/* Chmod */
.chmod-grid { display: grid; grid-template-columns: 110px repeat(3, 1fr); gap: 6px 10px; align-items: center; }
.chmod-grid .h { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; text-align: center; }

/* Menu contextuel */
.menu { position: fixed; z-index: 120; min-width: 210px; padding: 6px; border-radius: 12px; background: var(--panel-solid); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-strong); }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.menu button:hover { background: rgba(124, 58, 237, 0.2); color: #fff; }
.menu button.danger { color: var(--err); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }

/* ================= Modales ================= */
.modal-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(4, 2, 9, 0.72); backdrop-filter: blur(5px); animation: fade 0.15s; }
.modal { width: min(560px, 100%); max-height: 92vh; overflow-y: auto; background: linear-gradient(180deg, #1c1332, #140d24); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line-strong); animation: pop 0.18s ease-out; }
.modal.wide { width: min(980px, 100%); }
.modal.mid { width: min(720px, 100%); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 17px; }
.modal-b { padding: 20px 22px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* Toasts */
#toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 260px; max-width: 420px; padding: 12px 16px; border-radius: 12px; background: var(--panel-solid); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-strong); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; animation: pop 0.2s; }
.toast.ok { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 3px 0 0 var(--ok), 0 0 0 1px var(--line-strong); }
.toast.err { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 3px 0 0 var(--err), 0 0 0 1px var(--line-strong); }

/* ================= Connexion ================= */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); padding: 34px 32px; border-radius: 22px; background: linear-gradient(180deg, rgba(30, 20, 52, 0.92), rgba(16, 10, 30, 0.95)); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-strong), 0 0 80px -30px var(--violet-glow); }
.auth-logo { width: 104px; height: 104px; margin: -86px auto 14px; display: block; border-radius: 28px; padding: 8px; object-fit: contain; background: radial-gradient(circle at 50% 35%, #3a2466, #170f28); box-shadow: 0 0 0 1px var(--gold), 0 0 40px var(--gold-glow), 0 0 80px var(--violet-glow); }
.auth-title { text-align: center; font-size: 26px; font-weight: 800; }
.auth-title span { color: var(--gold); }
.auth-sub { text-align: center; color: var(--muted); margin: 6px 0 24px; font-size: 14px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card .btn { height: 44px; font-size: 15px; }
.err-box { padding: 10px 14px; border-radius: 10px; color: var(--err); background: rgba(255, 107, 129, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 107, 129, 0.25); font-size: 13.5px; }
.info-box { padding: 12px 16px; border-radius: 12px; background: rgba(124, 58, 237, 0.1); box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.3); font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.info-box.gold { background: rgba(245, 197, 66, 0.06); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.25); }
.kv { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 14px; align-items: center; font-size: 14px; }
.kv .k { color: var(--muted); }
.kv .v { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }

/* Modèles (choix du type de serveur) */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tpl { padding: 14px; border-radius: 12px; cursor: pointer; background: rgba(8, 5, 16, 0.5); box-shadow: inset 0 0 0 1px var(--line-strong); transition: 0.15s; }
.tpl:hover { box-shadow: inset 0 0 0 1px var(--violet-2); }
.tpl.on { box-shadow: inset 0 0 0 2px var(--gold), 0 0 24px -8px var(--gold-glow); background: rgba(245, 197, 66, 0.05); }
.tpl .e { font-size: 24px; }
.tpl b { display: block; margin-top: 6px; font-size: 14px; }

/* Droits */
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.full-toggle { padding: 12px 14px; border-radius: 12px; background: rgba(245, 197, 66, 0.06); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.3); margin-bottom: 12px; }

/* ================= Responsive (téléphone) ================= */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 90; width: 280px; transform: translateX(-100%); transition: transform 0.2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, 0.8); }
  .burger { display: inline-flex; }
  .main { padding: 18px 16px 50px; }
  .grid-2, .grid-3, .form-grid, .perm-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .power { margin-left: 0; width: 100%; }
  .console { height: 420px; font-size: 12px; }
  .hide-sm { display: none; }
  .topbar h1, .srv-head h1 { font-size: 21px; }
}
/* Titre d'un champ + petite précision "(facultatif)" sur la même ligne, pour que les champs côte à côte restent alignés */
label.f .lt { display: block; }
label.f .lt .hint { font-size: 12px; line-height: 1; }
