/* ═══════════════════════════════════════════
   SyperCraft Panel v2.1 — Refined Dark UI
   Inspired by Pterodactyl / Modern Admin Panels
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg:        #0c0e14;
  --bg2:       #111520;
  --bg3:       #181d2a;
  --bg4:       #1f2637;
  --border:    #1e2538;
  --border2:   #2a3348;
  --accent:    #3b82f6;
  --accent2:   #2563eb;
  --accent-dim:#1e3a5f;
  --accent-glow: rgba(59,130,246,.15);
  --red:       #ef4444;
  --orange:    #f59e0b;
  --green:     #22c55e;
  --purple:    #a78bfa;
  --cyan:      #06b6d4;
  --text:      #e2e8f0;
  --text2:     #94a3b8;
  --text3:     #475569;
  --font:      'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --radius:    8px;
  --radius2:   12px;
  --shadow:    0 4px 32px rgba(0,0,0,.5);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body { font-family: var(--font); font-size: 14px; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
#app { display: flex; height: 100vh; overflow: hidden; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border2); }

/* ── Sidebar ───────────────────────────────── */
.sidebar { width: 250px; min-width: 250px; background: var(--bg2); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.sidebar-logo { display: flex; align-items: center; gap: 12px; padding: 20px 18px; border-bottom: 1px solid var(--border); }
.logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.logo-text { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.logo-sub { font-size: 10px; color: var(--text3); font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }

.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: none; background: transparent; color: var(--text2); font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer; border-radius: var(--radius); transition: all var(--transition); text-align: left; width: 100%; position: relative; white-space: nowrap; }
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--accent-glow); color: var(--accent); }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: var(--accent); border-radius: 0 2px 2px 0; }
.nav-icon { font-size: 15px; min-width: 20px; flex-shrink: 0; opacity: .7; }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { opacity: 1; }
.nav-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 10px; font-weight: 600; flex-shrink: 0; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); margin-left: auto; flex-shrink: 0; transition: all var(--transition); }
.status-dot.on { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,.5); }
.status-dot.off { background: var(--red); box-shadow: 0 0 8px rgba(239,68,68,.3); }

/* Sidebar Dropdowns */
.nav-dropdown { display: flex; flex-direction: column; }
.nav-dropdown-toggle { position: relative; }
.nav-chevron { margin-left: auto; font-size: 11px; transition: transform var(--transition); color: var(--text3); }
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu { display: none; flex-direction: column; gap: 1px; padding-left: 10px; margin-left: 18px; border-left: 1px solid var(--border); }
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-sub { padding: 8px 12px; font-size: 13px; }

.sidebar-footer { padding: 14px 18px; border-top: 1px solid var(--border); }
.service-statuses { display: flex; flex-direction: column; gap: 8px; }
.svc-row { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text3); font-weight: 500; }
.svc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); flex-shrink: 0; }
.svc-dot.on { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,.4); }
.svc-dot.off { background: var(--red); }

/* ── Topbar ────────────────────────────────── */
.main-wrapper { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--border); background: var(--bg2); height: 56px; flex-shrink: 0; }
.topbar-user { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; padding: 6px 12px; border-radius: var(--radius); transition: background var(--transition); }
.topbar-user:hover { background: var(--bg3); }
.staff-head { width: 30px; height: 30px; border-radius: 6px; }
.staff-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-menu { position: absolute; top: 100%; right: 0; margin-top: 6px; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); min-width: 200px; box-shadow: var(--shadow); z-index: 100; overflow: hidden; }
.user-menu-info { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.user-menu-sep { height: 1px; background: var(--border); }
.user-menu-item { display: block; width: 100%; padding: 11px 16px; border: none; background: none; color: var(--text2); font-family: var(--font); font-size: 13px; text-align: left; cursor: pointer; transition: all var(--transition); }
.user-menu-item:hover { background: var(--bg4); color: var(--text); }

/* ── Main Content ──────────────────────────── */
.main-wrapper .main-content { flex: 1; overflow-y: auto; padding: 28px 32px; background: var(--bg); }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 12px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.page-subtitle { color: var(--text3); font-size: 13px; margin-top: 2px; font-weight: 400; }

/* ── Cards ─────────────────────────────────── */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 22px; transition: border-color var(--transition), box-shadow var(--transition); }
.card:hover { border-color: var(--border2); }
.card-sm { padding: 14px 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.card-title { font-size: 12px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 1.2px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ── Stat Boxes ────────────────────────────── */
.stat-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 20px 22px; position: relative; overflow: hidden; transition: all var(--transition); }
.stat-box:hover { border-color: var(--border2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.stat-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--cyan)); opacity: .6; }
.stat-label { font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.stat-value { font-family: var(--font); font-size: 32px; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.stat-sub { font-size: 12px; color: var(--text2); margin-top: 4px; }

/* ── Progress bars ─────────────────────────── */
.progress-wrap { margin-top: 10px; }
.progress-bar { height: 4px; background: var(--bg4); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: 2px; transition: width .5s ease; }
.progress-fill.warn { background: var(--orange); }
.progress-fill.danger { background: var(--red); }

/* ── Buttons ───────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border: none; border-radius: var(--radius); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition); white-space: nowrap; letter-spacing: -.1px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,.3); }
.btn-danger { background: rgba(239,68,68,.1); color: var(--red); border: 1px solid rgba(239,68,68,.2); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { background: var(--bg3); color: var(--text); border-color: var(--text3); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-green { background: rgba(34,197,94,.1); color: var(--green); border: 1px solid rgba(34,197,94,.2); }
.btn-green:hover { background: var(--green); color: #000; }
.btn-orange { background: rgba(245,158,11,.1); color: var(--orange); border: 1px solid rgba(245,158,11,.2); }
.btn-orange:hover { background: var(--orange); color: #000; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }
.w-full { width: 100%; }

/* ── Tags ──────────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: -.1px; }
.tag-green { background: rgba(34,197,94,.12); color: var(--green); }
.tag-red { background: rgba(239,68,68,.12); color: var(--red); }
.tag-orange { background: rgba(245,158,11,.12); color: var(--orange); }
.tag-blue { background: rgba(59,130,246,.12); color: var(--accent); }
.tag-gray { background: var(--bg4); color: var(--text2); }
.tag-purple { background: rgba(167,139,250,.12); color: var(--purple); }

/* ── Inputs ────────────────────────────────── */
.input { background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius); color: var(--text); font-family: var(--font); font-size: 13px; padding: 10px 14px; outline: none; transition: border-color var(--transition), box-shadow var(--transition); width: 100%; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.input::placeholder { color: var(--text3); }
.input-row { display: flex; gap: 8px; align-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 12px; color: var(--text2); font-weight: 600; letter-spacing: .2px; }
select.input { cursor: pointer; }
textarea.input { resize: vertical; min-height: 80px; font-family: var(--font); }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

/* ── Data Tables ───────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { position: sticky; top: 0; background: var(--bg3); padding: 10px 14px; text-align: left; color: var(--text3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--border2); white-space: nowrap; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table tr { transition: background var(--transition); }
.data-table tr:hover td { background: rgba(59,130,246,.03); }
.data-table-wrap { overflow: auto; max-height: calc(100vh - 260px); }
.null-val { color: var(--text3); font-style: italic; }
.num-val { color: var(--cyan); font-family: var(--mono); font-weight: 500; }

/* ── Server Cards ──────────────────────────── */
.server-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 20px 22px; transition: all var(--transition); margin-bottom: 12px; }
.server-card:hover { border-color: var(--border2); box-shadow: var(--shadow-sm); }
.server-card.running { border-color: rgba(34,197,94,.3); }
.server-card-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.server-icon-img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.server-icon-placeholder { width: 44px; height: 44px; background: var(--bg4); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; color: var(--text3); }
.server-name { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.server-meta { font-size: 12px; color: var(--text3); margin-top: 3px; }
.server-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.server-stats { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.server-stat { display: flex; flex-direction: column; gap: 2px; }
.server-stat-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .6px; }
.server-stat-val { color: var(--text); font-weight: 600; font-size: 13px; }

/* Resource bars */
.res-bars { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.res-bar-row { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.res-bar-label { color: var(--text3); width: 40px; flex-shrink: 0; font-weight: 500; }
.res-bar-wrap { flex: 1; height: 4px; background: var(--bg4); border-radius: 2px; overflow: hidden; }
.res-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: 2px; transition: width .5s; }
.res-bar-val { color: var(--text2); width: 55px; text-align: right; flex-shrink: 0; font-family: var(--mono); font-size: 10px; }

/* ── Console ───────────────────────────────── */
.console-wrap { background: #08090d; border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; display: flex; flex-direction: column; }
.console-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--bg2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.console-title { font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.console-output { flex: 1; overflow-y: auto; padding: 12px; font-family: var(--mono); font-size: 12px; line-height: 1.8; min-height: 220px; max-height: 440px; }
.console-line { white-space: pre-wrap; word-break: break-all; margin-bottom: 1px; }
.console-line.out { color: #cbd5e1; }
.console-line.err { color: var(--red); }
.console-line.sys { color: var(--orange); font-style: italic; }
.console-line.input { color: var(--accent); }
.console-timestamp { color: var(--text3); font-size: 10px; margin-right: 6px; }
.console-input-row { display: flex; border-top: 1px solid var(--border); }
.console-input-field { flex: 1; background: transparent; border: none; color: var(--accent); font-family: var(--mono); font-size: 13px; padding: 12px 14px; outline: none; }
.console-input-field::placeholder { color: var(--text3); }
.console-send { padding: 8px 14px; background: transparent; border: none; border-left: 1px solid var(--border); color: var(--text2); cursor: pointer; font-size: 14px; transition: color var(--transition); }
.console-send:hover { color: var(--accent); }

/* ── Redis ─────────────────────────────────── */
.redis-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; height: calc(100vh - 180px); }
.redis-keys-panel { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); display: flex; flex-direction: column; overflow: hidden; }
.redis-keys-list { flex: 1; overflow-y: auto; padding: 6px; }
.redis-key-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius); cursor: pointer; font-family: var(--mono); font-size: 11px; color: var(--text2); transition: all .1s; word-break: break-all; }
.redis-key-item:hover { background: var(--bg3); color: var(--text); }
.redis-key-item.active { background: var(--accent-dim); color: var(--accent); }
.redis-type-badge { font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 600; flex-shrink: 0; text-transform: uppercase; font-family: var(--mono); }
.t-string { background: rgba(245,158,11,.15); color: var(--orange); }
.t-hash { background: rgba(59,130,246,.15); color: var(--accent); }
.t-list { background: rgba(6,182,212,.15); color: var(--cyan); }
.t-set { background: rgba(167,139,250,.15); color: var(--purple); }
.t-zset { background: rgba(245,158,11,.15); color: var(--orange); }
.t-none { background: var(--bg4); color: var(--text3); }
.redis-value-panel { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); display: flex; flex-direction: column; overflow: hidden; }
.redis-value-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.redis-key-name { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text); word-break: break-all; flex: 1; }
.redis-value-body { flex: 1; overflow-y: auto; padding: 14px; }
.redis-value-pre { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; font-family: var(--mono); font-size: 11px; white-space: pre-wrap; word-break: break-all; color: var(--cyan); max-height: 60vh; overflow-y: auto; }
.hash-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hash-table th, .hash-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.hash-table th { color: var(--text3); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.hash-table tr:hover td { background: var(--bg3); }
.hash-field { color: var(--accent); font-family: var(--mono); font-weight: 500; }

/* ── MySQL ─────────────────────────────────── */
.mysql-layout { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.mysql-sidebar { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; }
.mysql-db-section { padding: 6px; }
.mysql-db-label { font-size: 10px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 8px 10px; }
.mysql-table-item { padding: 7px 10px; font-family: var(--mono); font-size: 11px; color: var(--text2); cursor: pointer; border-radius: var(--radius); transition: all .1s; }
.mysql-table-item:hover { background: var(--bg3); color: var(--text); }
.mysql-table-item.active { background: var(--accent-dim); color: var(--accent); }

.sql-editor { background: #08090d; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--mono); font-size: 12px; color: var(--cyan); padding: 12px; width: 100%; resize: vertical; min-height: 80px; outline: none; }
.sql-editor:focus { border-color: var(--accent); }

/* ── Modal ─────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(6px); animation: fadeIn .15s ease; }
.modal { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius2); padding: 28px; width: 640px; max-width: 96vw; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); animation: slideUp .2s ease; }
.modal-xl { width: 820px; }
.modal-xxl { width: 1060px; }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--text); letter-spacing: -.2px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── KV Table ──────────────────────────────── */
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table th { padding: 7px 12px; text-align: left; font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--border); }
.kv-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.kv-key { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 500; }
.kv-input { background: var(--bg); border: 1px solid var(--border2); border-radius: 5px; color: var(--text); font-family: var(--font); font-size: 12px; padding: 6px 10px; outline: none; width: 100%; transition: border-color var(--transition); }
.kv-input:focus { border-color: var(--accent); }

/* ── Toast ─────────────────────────────────── */
#toast-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; }
.toast { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); padding: 12px 18px; font-size: 13px; color: var(--text); box-shadow: var(--shadow); animation: toastIn .2s ease; min-width: 220px; max-width: 400px; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ── Tabs ──────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab-btn { padding: 10px 18px; background: transparent; border: none; color: var(--text3); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--transition); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-btn:hover { color: var(--text2); }

/* ── Section title ─────────────────────────── */
.section-title { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border2), transparent); }

/* ── Login Screen ──────────────────────────── */
.login-screen { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.login-card { background: var(--bg2); border: 1px solid var(--border2); border-radius: 16px; padding: 40px 36px; width: 380px; max-width: 95vw; box-shadow: 0 8px 48px rgba(0,0,0,.6); text-align: center; }
.login-logo { width: 64px; height: 64px; margin: 0 auto 16px; display: block; border-radius: 12px; }
.login-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; letter-spacing: -.3px; }
.login-subtitle { color: var(--text3); font-size: 13px; margin-bottom: 28px; }
.login-error { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); color: var(--red); padding: 10px 14px; border-radius: var(--radius); font-size: 12px; margin-bottom: 16px; text-align: left; }
.login-card .form-group { text-align: left; }

/* ── Utils ─────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.text-xs { font-size: 11px; } .text-sm { font-size: 13px; }
.text-accent { color: var(--accent); } .text-muted { color: var(--text2); } .text-dim { color: var(--text3); }
.text-red { color: var(--red); } .text-orange { color: var(--orange); } .text-blue { color: var(--accent); } .text-green { color: var(--green); }
.separator { height: 1px; background: var(--border); margin: 16px 0; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; color: var(--text3); text-align: center; gap: 8px; }
.empty-state-icon { font-size: 32px; opacity: .3; }
.empty-state-text { font-size: 13px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spin .6s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-bar { height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 200% 100%; animation: shimmer 1.2s ease infinite; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.code-block { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-family: var(--mono); font-size: 12px; color: var(--cyan); white-space: pre-wrap; word-break: break-all; line-height: 1.7; }

/* ── Docker ────────────────────────────────── */
.docker-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 20px; margin-bottom: 14px; }
.docker-section-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }

/* ── Plugin/File items ─────────────────────── */
.plugin-file-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: var(--radius); cursor: pointer; transition: background var(--transition); }
.plugin-file-item:hover { background: var(--bg3); }
.plugin-file-name { font-size: 13px; color: var(--text); font-weight: 500; }
.plugin-file-path { font-size: 10px; color: var(--text3); margin-top: 1px; }

.restart-all-btn { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); color: var(--accent); padding: 10px 20px; border-radius: var(--radius); font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.restart-all-btn:hover { background: var(--accent); color: #fff; box-shadow: 0 4px 16px rgba(59,130,246,.3); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .sidebar { width: 220px; min-width: 220px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .main-wrapper .main-content { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ── Staff Chat Popup ──────────────────────── */
.chat-toggle-btn { position: fixed; bottom: 20px; right: 20px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(59,130,246,.4); transition: all var(--transition); }
.chat-toggle-btn:hover { transform: scale(1.08); }
.chat-popup { position: fixed; bottom: 80px; right: 20px; z-index: 901; width: 360px; max-height: 500px; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius2); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; animation: slideUp .2s ease; }
.chat-header { padding: 12px 16px; background: var(--bg3); border-bottom: 1px solid var(--border); cursor: pointer; font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: space-between; }
.chat-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 10px; min-height: 200px; max-height: 340px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { display: flex; gap: 8px; align-items: flex-start; }
.chat-msg-head { width: 24px; height: 24px; border-radius: 4px; flex-shrink: 0; }
.chat-msg-body { flex: 1; min-width: 0; }
.chat-msg-pseudo { font-size: 12px; font-weight: 600; color: var(--accent); }
.chat-msg-time { font-size: 10px; color: var(--text3); margin-left: 6px; font-weight: 400; }
.chat-msg-text { font-size: 13px; color: var(--text); word-break: break-word; margin-top: 1px; }
.chat-input-row { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--border); }
.chat-input-row .input { font-size: 13px; padding: 8px 10px; }
.chat-badge { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; }

/* ── Permission Grid (legacy) ─────────────── */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; margin-bottom: 8px; }
.perm-item { display: flex; align-items: center; gap: 6px; padding: 4px 0; cursor: pointer; }
.perm-item input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; }

/* ── Permission Cards (new) ───────────────── */
.perm-section { margin-bottom: 20px; }
.perm-section-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.perm-section-icon { font-size: 16px; }
.perm-section-label { font-weight: 700; font-size: 13px; flex: 1; }
.perm-section-count { font-size: 11px; color: var(--text3); background: var(--bg4); padding: 2px 8px; border-radius: 10px; }
.perm-section-toggle { font-size: 11px; color: var(--accent); margin-left: 6px; white-space: nowrap; cursor: pointer; padding: 2px 8px; border: 1px solid var(--accent-dim); border-radius: 4px; }
.perm-section-toggle:hover { background: var(--accent-dim); }
.perm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 7px; }
.perm-card { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.perm-card:hover { border-color: var(--border2); background: var(--bg4); }
.perm-card.checked { border-color: var(--accent-dim); background: rgba(59,130,246,.07); }
.perm-card.checked .perm-card-name { color: var(--accent); }
.perm-card.danger { border-color: rgba(239,68,68,.2); }
.perm-card.danger .perm-card-name { color: var(--red); }
.perm-card.danger.checked { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.4); }
.perm-card-check { width: 15px; height: 15px; accent-color: var(--accent); margin-top: 1px; flex-shrink: 0; cursor: pointer; }
.perm-card-body { flex: 1; min-width: 0; }
.perm-card-name { font-size: 11px; font-weight: 600; color: var(--text); font-family: var(--mono); margin-bottom: 3px; }
.perm-card-desc { font-size: 11px; color: var(--text2); line-height: 1.45; }
.perm-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; background: var(--bg3); padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border); }
.perm-search { background: var(--bg4); border: 1px solid var(--border2); border-radius: var(--radius); color: var(--text); padding: 5px 10px; font-size: 12px; font-family: var(--font); width: 190px; outline: none; }
.perm-search:focus { border-color: var(--accent); }
.perm-counter { font-size: 12px; color: var(--text2); margin-left: auto; }
.perm-counter strong { color: var(--accent); }

/* ── Staff Cards ──────────────────────────── */
.staff-card { transition: all var(--transition); }
.staff-card:hover { border-color: var(--border2); transform: translateY(-1px); }

/* ── Grid layouts ─────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 16px; }

/* ── Tag purple ───────────────────────────── */
.tag-purple { background: rgba(168,85,247,.12); color: #a855f7; }
.tag-red { background: rgba(239,68,68,.12); color: #ef4444; }

/* ══════════════════════════════════════════════════════════════
   DISCORD PAGE
   ══════════════════════════════════════════════════════════════ */

/* Banner */
.dc-banner{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-radius:10px;margin-bottom:16px;background:linear-gradient(135deg,#2c2f33 0%,#23272a 100%);border:1px solid var(--border);transition:all .4s ease}
.dc-banner.dc-online{border-color:#43b581;box-shadow:0 0 20px rgba(67,181,129,.1)}
.dc-banner.dc-offline{border-color:#f04747;box-shadow:0 0 20px rgba(240,71,71,.08)}
.dc-banner-left{display:flex;align-items:center;gap:14px}
.dc-banner-right{display:flex;gap:8px}
.dc-bot-icon{width:48px;height:48px;border-radius:50%;background:#5865f2;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0;box-shadow:0 4px 12px rgba(88,101,242,.3)}
.dc-bot-name{font-weight:700;font-size:16px;color:#fff;letter-spacing:.3px}
.dc-bot-status{font-size:13px;color:#b9bbbe;display:flex;align-items:center;gap:6px;margin-top:2px}
.dc-pid{font-size:11px;color:#72767d;font-family:monospace}
.dc-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}
.dc-dot-on{background:#43b581;box-shadow:0 0 6px #43b581}
.dc-dot-off{background:#f04747;box-shadow:0 0 6px #f04747}

/* Buttons */
.dc-btn{padding:7px 16px;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;border:none;transition:all .2s;font-family:inherit;white-space:nowrap}
.dc-btn:disabled{opacity:.4;cursor:not-allowed}
.dc-btn-start{background:#43b581;color:#fff}.dc-btn-start:hover:not(:disabled){background:#3ca374}
.dc-btn-stop{background:#f04747;color:#fff}.dc-btn-stop:hover:not(:disabled){background:#d63d3d}
.dc-btn-restart{background:transparent;color:#b9bbbe;border:1px solid #4f545c}.dc-btn-restart:hover:not(:disabled){color:#fff;border-color:#72767d}
.dc-btn-primary{background:var(--accent);color:#fff}.dc-btn-primary:hover{filter:brightness(1.1)}
.dc-btn-danger{background:#f04747;color:#fff}.dc-btn-danger:hover{background:#d63d3d}
.dc-btn-ghost{background:transparent;color:var(--text-dim);border:1px solid var(--border)}.dc-btn-ghost:hover{color:var(--text);border-color:var(--text-dim)}
.dc-btn-sm{padding:5px 12px;font-size:12px}
.dc-btn-icon{background:transparent;color:#72767d;border:none;font-size:16px;cursor:pointer;padding:4px 8px;border-radius:4px}.dc-btn-icon:hover{color:#f04747;background:rgba(240,71,71,.1)}

/* Tabs */
.dc-tabs{display:flex;gap:0;margin-bottom:16px;border-bottom:2px solid var(--border);padding-bottom:0;overflow-x:auto}
.dc-tab{padding:10px 18px;font-size:13px;font-weight:600;cursor:pointer;border:none;background:transparent;color:var(--text-dim);position:relative;transition:color .2s;font-family:inherit;white-space:nowrap}
.dc-tab:hover{color:var(--text)}
.dc-tab.active{color:#5865f2}
.dc-tab.active::after{content:'';position:absolute;bottom:-2px;left:0;right:0;height:2px;background:#5865f2;border-radius:2px 2px 0 0}

/* Cards */
.dc-card{background:var(--bg2);border:1px solid var(--border);border-radius:10px;padding:20px;transition:border-color .2s}
.dc-card:hover{border-color:rgba(88,101,242,.3)}
.dc-card-header{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.dc-card-icon{font-size:24px;line-height:1;flex-shrink:0;margin-top:2px}
.dc-card-title{font-weight:700;font-size:15px;color:var(--text)}
.dc-card-desc{font-size:12px;color:var(--text-dim);margin-top:2px}
.dc-grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:16px}
.dc-error{color:#f04747;border-color:#f04747}
.dc-empty{text-align:center;padding:24px;color:var(--text-dim);font-size:13px}
.dc-empty-ok{color:#43b581;font-size:14px;font-weight:600}
.dc-loading{display:flex;justify-content:center;padding:40px}

/* Role mapping */
.dc-role-list{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.dc-role-row{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:var(--bg1);border-radius:8px;border:1px solid transparent;transition:border-color .2s}
.dc-role-row:hover{border-color:var(--border)}
.dc-role-info{display:flex;align-items:center;gap:10px}
.dc-role-badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:12px;font-weight:700;color:#fff;letter-spacing:.3px}
.dc-role-sm{padding:2px 8px;font-size:11px}
.dc-role-h{font-size:11px;color:var(--text-dim);font-family:monospace}

/* Staff links */
.dc-staff-list{display:flex;flex-direction:column;gap:6px;max-height:400px;overflow-y:auto}
.dc-staff-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;background:var(--bg1)}
.dc-staff-head{width:28px;height:28px;border-radius:6px;flex-shrink:0}
.dc-staff-info{flex:1;display:flex;align-items:center;gap:8px}
.dc-staff-name{font-weight:600;font-size:13px}
.dc-staff-discord{font-size:12px}
.dc-linked{color:#43b581}.dc-unlinked{color:#f04747}

/* Config fields */
.dc-config-fields{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
.dc-field{display:flex;flex-direction:column;gap:4px}
.dc-field-label{font-size:12px;font-weight:600;color:var(--text-dim);font-family:monospace;letter-spacing:.5px}
.dc-field-hint{font-size:11px;color:var(--text-dim);opacity:.7}
.dc-input{padding:8px 12px;background:var(--bg1);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;font-family:inherit;transition:border-color .2s;outline:none;width:100%;box-sizing:border-box}
.dc-input:focus{border-color:#5865f2}
.dc-input-sm{max-width:140px}
.dc-textarea{resize:vertical;min-height:40px;font-family:'Cascadia Code','Fira Code','Consolas',monospace;font-size:12px}
.dc-select{max-width:200px;cursor:pointer}
.dc-save-hint{display:inline-block;margin-left:12px;font-size:12px;color:var(--text-dim);font-style:italic}

/* Toggle switch */
.dc-toggle{position:relative;display:inline-block;width:40px;height:22px;flex-shrink:0}
.dc-toggle input{opacity:0;width:0;height:0}
.dc-toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#4f545c;transition:.3s;border-radius:22px}
.dc-toggle-slider::before{content:'';position:absolute;height:16px;width:16px;left:3px;bottom:3px;background:#fff;transition:.3s;border-radius:50%}
.dc-toggle input:checked+.dc-toggle-slider{background:#43b581}
.dc-toggle input:checked+.dc-toggle-slider::before{transform:translateX(18px)}

/* Quarantine */
.dc-q-list{display:flex;flex-direction:column;gap:8px}
.dc-q-row{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:var(--bg1);border-radius:8px;border-left:3px solid #f04747}
.dc-q-info{flex:1}
.dc-q-name{font-weight:700;font-size:14px}
.dc-q-meta{font-size:11px;color:var(--text-dim);margin-top:2px}
.dc-q-reason{font-size:12px;color:#faa61a;margin-top:4px}
.dc-q-actions{display:flex;gap:6px;flex-shrink:0;margin-left:12px}

/* Patchnote */
.dc-pn-entry{background:var(--bg1);border:1px solid var(--border);border-radius:8px;padding:12px;margin-bottom:8px}
.dc-pn-entry-head{display:flex;gap:8px;margin-bottom:8px;align-items:center}

/* Embed preview */
.dc-pn-preview{margin-top:16px}
.dc-embed-preview{background:#2f3136;border-radius:4px;display:flex;overflow:hidden;max-width:500px}
.dc-embed-bar{width:4px;background:#5865f2;flex-shrink:0}
.dc-embed-content{padding:12px 16px;flex:1}
.dc-embed-title{font-weight:700;font-size:14px;color:#fff;margin-bottom:10px}
.dc-embed-field{margin-bottom:8px}
.dc-embed-field-name{font-weight:600;font-size:13px;color:#fff}
.dc-embed-field-val{font-size:12px;color:#b9bbbe;margin-top:2px}
.dc-embed-footer{font-size:11px;color:#72767d;margin-top:10px;padding-top:8px;border-top:1px solid #36393f}

/* Logs */
.dc-logs{background:#1a1a2e;border-radius:8px;padding:14px;font-family:'Cascadia Code','Fira Code','Consolas',monospace;font-size:12px;color:#a4b1cd;max-height:400px;overflow-y:auto;white-space:pre-wrap;word-break:break-all;line-height:1.6}

/* ── Bot Avatar ── */
.dc-bot-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid var(--border)}
.dc-bot-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:rgba(88,101,242,.2);border-radius:50%;color:#5865f2}

/* ── Config field labels (FR + var) ── */
.dc-field-label{display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--text2);font-weight:500}
.dc-field-fr{font-size:13px;font-weight:600;color:var(--text);font-family:inherit}
.dc-field-var{font-family:var(--mono,'Cascadia Code','Consolas',monospace);font-size:11px;color:var(--text-dim);background:var(--bg1);padding:1px 5px;border-radius:3px;border:1px solid var(--border);width:fit-content;letter-spacing:.3px}
.dc-field-hint-top{font-size:11px;color:var(--text-dim);margin-bottom:4px;font-style:italic;opacity:.8}

/* ── Card icon SVG ── */
.dc-card-icon-svg{width:36px;height:36px;background:rgba(88,101,242,.15);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#5865f2;flex-shrink:0}

/* ── Save row ── */
.dc-save-row{display:flex;align-items:center;gap:10px;margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}

/* ── Tickets layout ── */
.dc-tickets-layout{display:flex;flex-direction:column;gap:16px}
.dc-ticket-cat .dc-config-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}

/* ── Voice generators layout ── */
#vg-list .dc-config-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}

/* ── Diagnostic ── */
.dc-diag-list{display:flex;flex-direction:column;gap:0}
.dc-diag-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.dc-diag-row:last-child{border-bottom:none}
.dc-diag-icon{margin-top:2px;flex-shrink:0}
.dc-diag-info{flex:1;min-width:0}
.dc-diag-label{font-weight:600;font-size:13px;color:var(--text);margin-bottom:2px}
.dc-diag-value{font-size:11px;color:var(--text-dim);background:var(--bg1);padding:2px 6px;border-radius:4px;border:1px solid var(--border);display:inline-block;word-break:break-all;max-width:100%}
.dc-diag-hint{font-size:12px;color:var(--text-dim);margin-top:4px}
.dc-diag-hint-err{color:#f04747;font-weight:500}
.dc-diag-fix{margin-top:16px;background:rgba(240,71,71,.08);border:1px solid rgba(240,71,71,.3);border-radius:8px;padding:12px 16px;font-size:13px;color:var(--text)}
.dc-diag-fix code{background:var(--bg1);padding:2px 5px;border-radius:3px;font-family:var(--mono);font-size:12px}

/* ══ HAProxy Manager ═══════════════════════════════════════════════════════ */
.ha-stat-mini { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; }
.ha-stat-mini .stat-label { font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.ha-stat-num { font-size: 26px; font-weight: 800; font-family: var(--mono); }
.ha-stat-num.cyan   { color: var(--cyan); }
.ha-stat-num.blue   { color: var(--accent); }
.ha-stat-num.purple { color: var(--purple); }

.ha-backend-row:first-child .btn-danger { display: none; }

/* Animate stats update */
@keyframes statFlash { 0%,100%{opacity:1} 50%{opacity:.4} }
.stat-flash { animation: statFlash .3s ease; }

/* ══ HAProxy — Tabs ════════════════════════════════════════════════════════ */
.ha-tabs { display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); padding: 5px; }
.ha-tab { display: flex; align-items: center; gap: 7px; padding: 9px 18px; border: none; background: transparent; color: var(--text2); font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer; border-radius: var(--radius); transition: all var(--transition); flex: 1; justify-content: center; white-space: nowrap; }
.ha-tab:hover { background: var(--bg3); color: var(--text); }
.ha-tab.active { background: var(--accent-glow); color: var(--accent); font-weight: 600; border: 1px solid rgba(59,130,246,.2); }
.tag-lg { font-size: 13px; padding: 5px 14px; }

/* ══ HAProxy — Guide ═══════════════════════════════════════════════════════ */
.guide-section-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.2px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.guide-p { font-size: 13px; color: var(--text2); line-height: 1.75; margin-bottom: 12px; }
.guide-callout { border-radius: 8px; padding: 12px 16px; font-size: 13px; line-height: 1.65; }
.callout-blue { background: rgba(59,130,246,.07); border: 1px solid rgba(59,130,246,.2); color: var(--text2); }
.callout-green { background: rgba(34,197,94,.07); border: 1px solid rgba(34,197,94,.2); color: var(--text2); }
.callout-orange { background: rgba(245,158,11,.07); border: 1px solid rgba(245,158,11,.2); color: var(--text2); }
.guide-table-wrap { overflow: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.guide-table th { background: var(--bg3); padding: 9px 14px; text-align: left; color: var(--text3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--border2); white-space: nowrap; }
.guide-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: top; line-height: 1.6; }
.guide-table tr:last-child td { border-bottom: none; }
.guide-table tr:hover td { background: rgba(59,130,246,.03); }

/* ═══════════════════════════════════════════════════════════════
   SYPERPROXY — Styles
   ═══════════════════════════════════════════════════════════════ */

/* Status pill dans le header */
.sp-status-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.pill-green { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.pill-red   { background: rgba(239,68,68,.15);  color: #ef4444; border: 1px solid rgba(239,68,68,.3); }

/* Stats grid dashboard */
.sp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.sp-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sp-stat-icon { font-size: 24px; }
.sp-stat-val  { font-size: 22px; font-weight: 700; color: var(--text); }
.sp-stat-lbl  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Backend cards dashboard */
.sp-backends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.sp-backend-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  transition: border-color .2s;
}
.sp-backend-online  { border-left: 3px solid #22c55e; }
.sp-backend-offline { border-left: 3px solid #ef4444; }
.sp-backend-unknown { border-left: 3px solid #6b7280; }

.sp-backend-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.sp-backend-name  { font-weight: 600; font-size: 14px; display: block; }
.sp-backend-addr  { font-size: 12px; color: var(--text-muted); font-family: monospace; }
.sp-backend-status { font-size: 11px; font-weight: 600; }
.sp-backend-online  .sp-backend-status { color: #22c55e; }
.sp-backend-offline .sp-backend-status { color: #ef4444; }
.sp-backend-unknown .sp-backend-status { color: #6b7280; }

.sp-backend-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.sp-metric      { text-align: center; }
.sp-metric-val  { font-size: 16px; font-weight: 700; display: block; }
.sp-metric-lbl  { font-size: 10px; color: var(--text-muted); }

/* Connection bar */
.sp-conn-bar-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.sp-conn-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
  transition: width .5s ease;
}

/* Section title */
.sp-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Log box */
.sp-log-box {
  background: #0a0a0f;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  height: 480px;
  overflow-y: auto;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12px;
  line-height: 1.6;
}
.sp-log-line {
  display: flex;
  gap: 8px;
  padding: 1px 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.sp-log-ts   { color: #4b5563; flex-shrink: 0; }
.sp-log-icon { flex-shrink: 0; width: 12px; }
.log-info  .sp-log-icon { color: #3b82f6; }
.log-warn  .sp-log-icon { color: #f59e0b; }
.log-error .sp-log-icon { color: #ef4444; }
.log-warn  { color: #fbbf24; }
.log-error { color: #f87171; }
.log-info  { color: #d1d5db; }

/* Config form */
.sp-config-wrap { max-width: 760px; }
.sp-form-card   { }
.sp-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* Doc section */
.sp-doc { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.sp-doc p { margin: 0 0 10px; }
.sp-doc ol { padding-left: 20px; margin: 8px 0; }
.sp-doc li { margin: 4px 0; }
.sp-doc strong { color: var(--text); }
.sp-doc em { color: #a78bfa; font-style: normal; }

/* Table */
.td-actions { white-space: nowrap; }
.btn-xs { padding: 2px 6px; font-size: 11px; }

/* Empty state */
.sp-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.sp-empty-state p { margin: 8px 0; }

/* ── Network Container ─────────────────────────────────── */
.network-container {
  border: 2px solid #2a3870;
  border-radius: var(--radius2);
  background: linear-gradient(135deg, #0d1225 0%, #111a30 100%);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(59,130,246,.08), 0 4px 24px rgba(0,0,0,.3);
}
.network-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: linear-gradient(90deg, rgba(59,130,246,.1) 0%, rgba(59,130,246,.03) 100%);
  border-bottom: 1px solid #1e2d50;
  cursor: pointer;
  user-select: none;
}
.network-header:hover { background: linear-gradient(90deg, rgba(59,130,246,.15) 0%, rgba(59,130,246,.05) 100%); }
.network-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(59,130,246,.2);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,.3);
  flex-shrink: 0;
}
.network-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.network-meta {
  font-size: 12px;
  color: var(--text3);
}
.network-chevron {
  color: var(--text3);
  font-size: 14px;
  transition: transform .2s;
  flex-shrink: 0;
}
.network-container.collapsed .network-chevron { transform: rotate(-90deg); }
.network-body { padding: 0 20px 20px; }
.network-container.collapsed .network-body { display: none; }

/* Synced servers section */
/* ── Default Spigot Toggle (remplace l'ancienne section Sync BungeeCord) ── */
/* Bouton de sélection du serveur par défaut dans une carte Spigot réseau */
.default-spigot-toggle {
  flex-shrink: 0;
  margin-left: auto;
}
.default-spigot-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}
.default-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text3);
  background: rgba(255,255,255,.04);
  transition: all .15s;
  cursor: pointer;
}
.default-indicator:hover {
  border-color: rgba(34,197,94,.4);
  color: var(--green);
  background: rgba(34,197,94,.08);
}
.default-indicator.active {
  color: #000;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 8px rgba(34,197,94,.4);
}
.net-spigot-card.is-default-spigot {
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 0 0 1px rgba(34,197,94,.15);
}
.net-spigot-card.is-default-spigot .net-spigot-card-head {
  background: rgba(34,197,94,.06);
}

/* Indicateur GEN / RUN (remplace les emojis dans les cartes générateurs) */
.gen-type-indicator {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255,106,0,.15);
  color: var(--accent);
  border: 1px solid rgba(255,106,0,.25);
  margin-right: 4px;
}

/* Bungees inside network */
.net-bungees-wrap {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.net-bungee-card {
  border: 1px solid #1e2d50;
  border-radius: var(--radius);
  background: var(--bg3);
  overflow: hidden;
}
.net-bungee-card.running { border-color: rgba(34,197,94,.25); }
.net-bungee-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--bg2);
  border-bottom: 1px solid #1e2d50;
}
.net-bungee-card-head img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; }
.net-bungee-name { font-weight: 700; font-size: 14px; }
.net-bungee-meta { font-size: 11px; color: var(--text3); }
.net-bungee-body { padding: 12px 16px; }
.net-bungee-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.net-bungee-res { margin-top: 10px; }

/* Network add form */
.net-form-inline {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* ── Drag & Drop ───────────────────────────────────────── */
.draggable-card {
  cursor: grab;
  transition: opacity .15s, box-shadow .15s, transform .15s;
}
.draggable-card:active { cursor: grabbing; }
.draggable-card.is-dragging {
  opacity: .4;
  transform: scale(.98);
}
.drop-zone {
  transition: background .15s, border-color .15s, min-height .15s;
}
.drop-zone.drag-over {
  background: rgba(59,130,246,.07);
  outline: 2px dashed rgba(59,130,246,.45);
  outline-offset: -2px;
  border-radius: 8px;
}
.drop-ghost {
  height: 56px;
  background: rgba(59,130,246,.08);
  border: 2px dashed rgba(59,130,246,.4);
  border-radius: 8px;
  margin-bottom: 10px;
  pointer-events: none;
}

/* Drag handle visible on hover */
.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: var(--text3);
  cursor: grab;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s;
  font-size: 14px;
  margin-right: 4px;
  user-select: none;
}
.server-card:hover .drag-handle,
.net-bungee-card:hover .drag-handle,
.net-spigot-card:hover .drag-handle { opacity: 1; }

/* Standalone drop area at top of page */
.standalone-drop-zone {
  min-height: 8px;
  border-radius: 8px;
  transition: min-height .2s, background .15s, outline .15s;
  margin-bottom: 4px;
}
.standalone-drop-zone.drag-over {
  min-height: 56px;
  background: rgba(59,130,246,.06);
  outline: 2px dashed rgba(59,130,246,.4);
  outline-offset: -2px;
}

/* Network inner drop zones */
.net-inner-drop {
  min-height: 6px;
  border-radius: 6px;
  transition: min-height .2s, background .15s, outline .15s;
  margin: 4px 0;
}
.net-inner-drop.drag-over {
  min-height: 52px;
  background: rgba(59,130,246,.07);
  outline: 2px dashed rgba(59,130,246,.35);
  outline-offset: -2px;
}

/* Spigot card in network */
.net-spigot-card {
  border: 1px solid #1e2d50;
  border-radius: var(--radius);
  background: #0f1624;
  overflow: hidden;
}
.net-spigot-card.running { border-color: rgba(34,197,94,.2); }
.net-spigot-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255,106,0,.04);
  border-bottom: 1px solid #1a2540;
}
.net-spigot-card-head img { width: 28px; height: 28px; border-radius: 5px; object-fit: contain; }
.net-spigot-name { font-weight: 700; font-size: 13px; }
.net-spigot-meta { font-size: 11px; color: var(--text3); }
.net-spigot-body { padding: 10px 14px; }
.net-spigot-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Grid layout for mixed cards inside network */
.net-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.net-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   SyperCraft Panel v3 — Server Manager CSS
   ═══════════════════════════════════════════════════════════════ */

/* ── Tabs ── */
.mgr-tabbar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mgr-tabbar::-webkit-scrollbar { display: none; }

.mgr-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text3);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mgr-tab:hover  { color: var(--text); }
.mgr-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.mgr-tab-badge {
  background: var(--bg4);
  color: var(--text3);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.mgr-tab.active .mgr-tab-badge {
  background: var(--accent-dim);
  color: var(--accent);
}

.mgr-pane { animation: fadeIn .2s; }

/* ── Stats row ── */
.mgr-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.mgr-stat-val { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.2; }
.mgr-stat-lbl { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .8px; margin-top: 2px; }

/* ── Generator grid ── */
.mgr-gen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}

/* ── Generator card ── */
.mgr-gen-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.mgr-gen-card:hover { border-color: var(--border2); box-shadow: 0 4px 20px rgba(0,0,0,.3); }

.mgr-gen-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
}

.mgr-gen-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.mgr-gen-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text3);
}
.mgr-gen-meta span { white-space: nowrap; }

.mgr-gen-actions {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.01);
}

/* ── Instance list ── */
.mgr-inst-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mgr-inst-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s;
}
.mgr-inst-row:hover { border-color: var(--border2); }

/* ── Empty hero ── */
.mgr-empty-hero {
  padding: 60px 24px;
  text-align: center;
  color: var(--text3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .mgr-gen-grid { grid-template-columns: 1fr; }
  .mgr-stat { padding: 10px 12px; }
  .mgr-stat-val { font-size: 18px; }
}

/* ══════════════════════════════════════════════
   ServersPage v5 — Styles dédiés
══════════════════════════════════════════════ */

/* ── Grille serveurs ─────────────────────────── */
.sp-server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 14px;
}

/* ── Carte serveur ──────────────────────────── */
.sp-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 0;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.sp-card:hover { border-color: var(--border2); box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.sp-card--online { border-color: rgba(34,197,94,.25); }
.sp-card--online:hover { border-color: rgba(34,197,94,.4); }

.sp-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 14px;
}
.sp-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sp-card-info { flex: 1; min-width: 0; }
.sp-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
}

/* ── Status badge avec pulse ─────────────────── */
.sp-status-badge {
  font-size: 10px !important;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.sp-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: spPulse 2s infinite;
  flex-shrink: 0;
}
@keyframes spPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.2); }
}

/* ── Ressources ─────────────────────────────── */
.sp-res-section {
  padding: 10px 20px 12px;
  border-top: 1px solid var(--border);
}
.sp-res-bars { display: flex; flex-direction: column; gap: 7px; }
.sp-res-row { display: flex; align-items: center; gap: 10px; }
.sp-res-label { font-size: 10px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; width: 36px; flex-shrink: 0; }
.sp-res-track { flex: 1; height: 4px; background: var(--bg4); border-radius: 2px; overflow: hidden; }
.sp-res-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: 2px; transition: width .6s ease, background .4s; }
.sp-res-fill--mem { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.sp-res-fill--warn { background: var(--orange) !important; }
.sp-res-fill--danger { background: var(--red) !important; }
.sp-res-val { font-family: var(--mono); font-size: 10px; color: var(--text2); width: 90px; text-align: right; flex-shrink: 0; }

/* ── Footer / Actions ───────────────────────── */
.sp-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.12);
}

/* ── Console ─────────────────────────────────── */
.sp-console-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  color: var(--text3);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.sp-console-tab:hover { color: var(--text2); background: var(--bg3); }
.sp-console-tab.active { color: var(--accent); background: var(--bg3); border-color: var(--border2); }
.sp-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  font-size: 14px;
  color: var(--text3);
  transition: all .1s;
}
.sp-tab-close:hover { background: var(--bg4); color: var(--red); }

.sp-console-panel { display: none; }
.sp-console-panel .console-wrap { border-radius: 0 var(--radius2) var(--radius2) var(--radius2); border-top: none; }

/* ── Docker Alert Banner ─────────────────────── */
.sp-docker-alert {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.25);
  border-left: 3px solid var(--red);
  border-radius: var(--radius2);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sp-docker-alert-icon {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}
.sp-docker-alert-body { flex: 1; min-width: 200px; }
.sp-docker-alert-title {
  font-weight: 700;
  color: var(--red);
  font-size: 14px;
  margin-bottom: 4px;
}
.sp-docker-alert-msg {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
}
.sp-docker-alert-steps {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.sp-docker-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
}
.sp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239,68,68,.15);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Alertes génériques ServersPage ─────────── */
.sp-alert {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius2);
  margin-bottom: 16px;
  align-items: flex-start;
}
.sp-alert--red { background: rgba(239,68,68,.06); border: 1px solid rgba(239,68,68,.25); border-left: 3px solid var(--red); }
.sp-alert-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.sp-alert-body { flex: 1; }
.sp-alert-title { font-weight: 700; font-size: 14px; color: var(--red); margin-bottom: 4px; }
.sp-alert-msg { font-size: 12px; color: var(--text2); line-height: 1.6; white-space: pre-line; }
.sp-meta-sep { color: var(--text3); padding: 0 2px; }
