/* ============================================================
   Rencontre Chill&Love — Dashboard
   Thème : nuit / rose néon (couleurs du logo)
   ============================================================ */

:root {
  --bg: #0a0409;
  --bg-2: #12050f;
  --bg-3: #1c0716;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 45, 149, 0.28);
  --border-soft: rgba(255, 138, 201, 0.18);
  --pink: #ff2d95;
  --pink-2: #ff6ec7;
  --pink-3: #ff8ac9;
  --pink-deep: #d81b78;
  --text: #ffd9ec;
  --text-strong: #ffffff;
  --muted: #b98ea8;
  --ok: #57f287;
  --err: #ff5c72;
  --warn: #fee75c;
  --radius: 18px;
  --glow: 0 0 24px rgba(255, 45, 149, 0.35);
  --glow-strong: 0 0 34px rgba(255, 45, 149, 0.55);
  --sidebar-w: 264px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(216, 27, 120, 0.35), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(255, 45, 149, 0.18), transparent 55%),
    linear-gradient(160deg, var(--bg-3) 0%, var(--bg) 45%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--text-strong); }

a { color: var(--pink-3); }

code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.muted { color: var(--muted); }
.small { font-size: 0.82rem; }

.skeleton {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============================ Boutons ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-strong);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  box-shadow: var(--glow);
}
.btn-primary:hover:not(:disabled) { box-shadow: var(--glow-strong); transform: translateY(-1px); }

.btn-outline {
  background: rgba(255, 45, 149, 0.08);
  border-color: var(--border);
  color: var(--pink-3);
}
.btn-outline:hover:not(:disabled) {
  background: rgba(255, 45, 149, 0.16);
  box-shadow: var(--glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text-strong); border-color: var(--border); }

.btn-danger {
  background: rgba(255, 92, 114, 0.12);
  border-color: rgba(255, 92, 114, 0.4);
  color: #ff9aa8;
}
.btn-danger:hover { background: rgba(255, 92, 114, 0.22); }

.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.icon-btn { padding: 8px 12px; border-radius: 12px; }

/* ========================= Écran de connexion ========================= */

.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  padding: 42px 34px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 26px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 60px rgba(255, 45, 149, 0.3), inset 0 0 40px rgba(255, 45, 149, 0.05);
}

.logo-title {
  margin: 16px 0 6px;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #ffffff 0%, var(--pink-3) 55%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 45, 149, 0.55));
}
.logo-title em {
  display: block;
  font-style: italic;
  font-weight: 800;
}

.login-sub { color: var(--muted); line-height: 1.6; margin: 10px 0 26px; }
.login-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.login-hint { min-height: 20px; margin-top: 16px; font-size: 0.85rem; color: var(--pink-3); }

/* Cœurs flottants */
.hearts span {
  position: absolute;
  color: rgba(255, 45, 149, 0.35);
  text-shadow: 0 0 18px rgba(255, 45, 149, 0.8);
  animation: floatHeart 7s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}
.hearts span:nth-child(1) { left: 8%;  top: 20%; font-size: 34px; animation-delay: 0s; }
.hearts span:nth-child(2) { left: 82%; top: 14%; font-size: 26px; animation-delay: 1.2s; }
.hearts span:nth-child(3) { left: 14%; top: 72%; font-size: 22px; animation-delay: 2.4s; }
.hearts span:nth-child(4) { left: 88%; top: 66%; font-size: 38px; animation-delay: 0.6s; }
.hearts span:nth-child(5) { left: 46%; top: 8%;  font-size: 18px; animation-delay: 3.1s; }
.hearts span:nth-child(6) { left: 70%; top: 84%; font-size: 20px; animation-delay: 1.9s; }

@keyframes floatHeart {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.55; }
  50%      { transform: translateY(-26px) scale(1.12); opacity: 1; }
}

/* Logo (image du projet si présente, sinon cœur SVG néon) */
.logo-box {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--pink);
  box-shadow: var(--glow-strong), inset 0 0 22px rgba(255, 45, 149, 0.35);
  background: radial-gradient(circle at 50% 35%, rgba(255, 110, 199, 0.25), rgba(10, 4, 9, 0.9));
  overflow: hidden;
}
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-box svg { width: 56%; height: 56%; filter: drop-shadow(0 0 10px rgba(255, 45, 149, 0.9)); }
.logo-sm { width: 44px; height: 44px; border-width: 2px; margin: 0; }

/* ============================ Application ============================ */

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  background: rgba(12, 4, 10, 0.82);
  border-right: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 1.02rem;
  color: var(--text-strong);
  text-shadow: 0 0 12px rgba(255, 45, 149, 0.6);
}
.brand-text span { font-size: 0.9rem; font-weight: 700; color: var(--pink-3); font-style: italic; }

.nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.nav-btn:hover { background: rgba(255, 45, 149, 0.1); color: var(--text); }
.nav-btn.active {
  background: linear-gradient(135deg, rgba(255, 45, 149, 0.28), rgba(216, 27, 120, 0.18));
  border-color: var(--border);
  color: var(--text-strong);
  box-shadow: var(--glow);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
}
.user-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.user-meta strong { font-size: 0.9rem; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { font-size: 0.75rem; color: var(--muted); }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pink);
  box-shadow: 0 0 12px rgba(255, 45, 149, 0.5);
}
.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  font-weight: 800;
}

/* ------------------------------- Main ------------------------------- */

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(12, 4, 10, 0.55);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar h2 { margin: 0; font-size: 1.12rem; }

.hamburger {
  display: none;
  background: rgba(255, 45, 149, 0.12);
  border: 1px solid var(--border);
  color: var(--text-strong);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

.bot-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--panel);
  color: var(--muted);
}
.bot-status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.bot-status.online .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.bot-status.online { color: var(--ok); border-color: rgba(87, 242, 135, 0.4); }
.bot-status.offline .dot { background: var(--err); box-shadow: 0 0 10px var(--err); }
.bot-status.offline { color: var(--err); border-color: rgba(255, 92, 114, 0.4); }

.content { padding: 26px; display: flex; flex-direction: column; gap: 22px; }

/* ------------------------------ Cartes ------------------------------ */

.card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}
.card h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: start;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.stat {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "♥";
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 2.4rem;
  color: rgba(255, 45, 149, 0.12);
}
.stat .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-strong);
  text-shadow: 0 0 16px rgba(255, 45, 149, 0.55);
}
.stat .label { font-size: 0.83rem; color: var(--muted); margin-top: 4px; }
.stat.accent { border-color: var(--border); box-shadow: var(--glow); }

/* Listes */
.list { display: flex; flex-direction: column; gap: 10px; }

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-size: 0.92rem; color: var(--text-strong); font-weight: 600; }
.list-item .sub { font-size: 0.78rem; color: var(--muted); }

.pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pill.open, .pill.pending { background: rgba(87, 242, 135, 0.15); color: var(--ok); border: 1px solid rgba(87, 242, 135, 0.4); }
.pill.claimed { background: rgba(255, 45, 149, 0.15); color: var(--pink-3); border: 1px solid var(--border); }
.pill.closed, .pill.deleted { background: rgba(255, 255, 255, 0.07); color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.12); }

.status-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.status-list li { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; }
.status-list .state {
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.state.ok { background: rgba(87, 242, 135, 0.14); color: var(--ok); border: 1px solid rgba(87, 242, 135, 0.4); }
.state.ko { background: rgba(255, 92, 114, 0.12); color: var(--err); border: 1px solid rgba(255, 92, 114, 0.4); }

.badge {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 11px;
  box-shadow: var(--glow);
}

/* ------------------------------ Formulaires ------------------------------ */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; min-width: 0; }
.field > span { font-size: 0.82rem; font-weight: 600; color: var(--pink-3); }
.field.grow { flex: 1; }

input[type="text"], input[type="url"], input[type="number"], input[type="search"],
textarea, select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 4, 9, 0.7);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
textarea { resize: vertical; min-height: 110px; }
select { cursor: pointer; }
option { background: #170612; color: var(--text); }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.22);
}

input[type="color"] {
  width: 100%;
  height: 44px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 4, 9, 0.7);
  cursor: pointer;
}

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Switch */
.switch-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  cursor: pointer;
  flex: 1;
  min-width: 240px;
}
.switch-field input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.switch-field input:checked + .switch {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  border-color: var(--pink);
  box-shadow: var(--glow);
}
.switch-field input:checked + .switch::after { transform: translateX(20px); }
.switch-field input:focus-visible + .switch { box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.35); }
.switch-label { font-size: 0.9rem; color: var(--text); }

/* ------------------------------ Aperçu embed ------------------------------ */

.preview-card { position: sticky; top: 90px; }

.embed-preview {
  display: flex;
  background: rgba(10, 4, 9, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.embed-bar { width: 6px; background: var(--pink); box-shadow: 0 0 14px rgba(255, 45, 149, 0.8); }
.embed-body { padding: 16px 18px; flex: 1; min-width: 0; }
.embed-title { font-weight: 700; color: #fff; font-size: 1.02rem; margin-bottom: 8px; }
.embed-desc { font-size: 0.9rem; color: #cbb3c4; white-space: pre-wrap; word-break: break-word; }
.embed-image { max-width: 100%; border-radius: 8px; margin-top: 10px; max-height: 180px; object-fit: cover; }
.embed-footer { margin-top: 12px; font-size: 0.75rem; color: var(--muted); }

.demo-btn {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 11px;
  border-radius: 10px;
  border: none;
  background: #5865f2;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: default;
}

/* ------------------------------ Toast ------------------------------ */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 24px;
  border-radius: 999px;
  background: rgba(20, 6, 16, 0.96);
  border: 1px solid var(--border);
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--glow-strong);
  z-index: 100;
  max-width: min(92vw, 560px);
  text-align: center;
  animation: toastIn 0.25s ease;
}
.toast.error { border-color: rgba(255, 92, 114, 0.6); box-shadow: 0 0 24px rgba(255, 92, 114, 0.4); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 1, 4, 0.65);
  backdrop-filter: blur(3px);
  z-index: 35;
}

.info-card p { line-height: 1.6; }

/* --------------------------------- Logs ---------------------------------- */

.logs-card { padding: 18px; }

.logs-toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 12px;
}

.field.inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  min-width: 150px;
}
.field.inline > span { white-space: nowrap; }
.field.inline select { min-width: 170px; }
.field.inline.grow { flex: 1; }
.field.inline.grow input { width: 100%; min-width: 160px; }

.logs-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-left: auto;
}

.auto-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
}
.auto-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.auto-toggle .switch { width: 40px; height: 22px; }
.auto-toggle .switch::after { width: 16px; height: 16px; }
.auto-toggle input:checked + .switch::after { transform: translateX(18px); }
.auto-toggle input:focus-visible + .switch { box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.35); }

.logs-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--pink-3);
  margin-bottom: 10px;
}

.log-viewer {
  background: rgba(5, 1, 4, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  max-height: 62vh;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  line-height: 1.6;
}
.log-viewer:focus { outline: 2px solid rgba(255, 45, 149, 0.5); outline-offset: 2px; }

.log-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 2px 6px;
  border-radius: 6px;
  border-left: 2px solid transparent;
}
.log-time { color: #7a5f70; flex-shrink: 0; }
.log-level {
  flex-shrink: 0;
  width: 46px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.log-scope { color: var(--pink-3); flex-shrink: 0; }
.log-text { flex: 1; min-width: 0; color: #e8d5e2; word-break: break-word; white-space: pre-wrap; }

.log-line.level-error { background: rgba(255, 92, 114, 0.08); border-left-color: var(--err); }
.log-line.level-error .log-level { background: rgba(255, 92, 114, 0.25); color: #ff9aa8; }
.log-line.level-warn { background: rgba(254, 231, 92, 0.06); border-left-color: var(--warn); }
.log-line.level-warn .log-level { background: rgba(254, 231, 92, 0.18); color: var(--warn); }
.log-line.level-info .log-level { background: rgba(255, 45, 149, 0.18); color: var(--pink-3); }
.log-line.level-debug .log-level { opacity: 0.65; }

/* --------------------------- Serveurs Pterodactyl --------------------------- */

.servers-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.servers-head h3 { margin: 0 0 6px; }
.servers-head p { margin: 0; }

.servers-root { display: flex; flex-direction: column; gap: 20px; }

.server-cat { display: flex; flex-direction: column; gap: 12px; }
.cat-title {
  margin: 0;
  font-size: 0.95rem;
  color: var(--pink-3);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
}
.cat-title::before { content: "▎"; color: var(--pink); }

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
}

.server-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.server-head { display: flex; align-items: flex-start; gap: 12px; }
.server-head .grow { flex: 1; min-width: 0; }
.server-head .title {
  font-weight: 700;
  color: var(--text-strong);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.server-head .sub { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

.pill.srv-state.running {
  background: rgba(87, 242, 135, 0.15);
  color: var(--ok);
  border: 1px solid rgba(87, 242, 135, 0.4);
}
.pill.srv-state.starting {
  background: rgba(254, 231, 92, 0.14);
  color: var(--warn);
  border: 1px solid rgba(254, 231, 92, 0.4);
}
.pill.srv-state.offline {
  background: rgba(255, 92, 114, 0.12);
  color: var(--err);
  border: 1px solid rgba(255, 92, 114, 0.4);
}
.pill.srv-state.unknown {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.srv-metrics {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.srv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.srv-actions .btn { padding: 8px 12px; font-size: 0.82rem; }

.console {
  margin: 0;
  background: rgba(5, 1, 4, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  height: 240px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #d9f7e2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.console:focus { outline: 2px solid rgba(255, 45, 149, 0.5); outline-offset: 2px; }

/* ============================ Responsive ============================ */

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: block; }
  .content { padding: 18px 14px; }
  .topbar { padding: 13px 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .preview-card { position: static; }
  .row > * { min-width: 140px; }
  .server-grid { grid-template-columns: 1fr; }
  .console { height: 180px; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stat .value { font-size: 1.5rem; }
  .actions .btn { width: 100%; }
  .login-card { padding: 32px 20px; }
  .topbar h2 { font-size: 1rem; }
  .bot-status .label { display: none; }
}
