*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-body: #08080f;
  --bg-surface: rgba(12, 12, 20, 0.6);
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-input: rgba(255, 255, 255, 0.03);
  --bg-input-focus: rgba(0, 229, 255, 0.02);
  --bg-hover: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.04);
  --border-light: rgba(255, 255, 255, 0.08);
  --text: #e0e0f0;
  --text-secondary: #8a8aaa;
  --text-muted: #4a4a6a;
  --accent: #00e5ff;
  --accent-hover: #00ccee;
  --accent-glow: rgba(0, 229, 255, 0.12);
  --accent-glow-strong: rgba(0, 229, 255, 0.2);
  --accent-2: #a855f7;
  --accent-2-glow: rgba(168, 85, 247, 0.12);
  --danger: #ff5c6c;
  --danger-hover: #e8495a;
  --danger-glow: rgba(255, 92, 108, 0.12);
  --success: #34d399;
  --success-glow: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --warning-glow: rgba(251, 191, 36, 0.12);
  --info: #60a5fa;
  --info-glow: rgba(96, 165, 250, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4), 0 20px 60px rgba(0, 0, 0, 0.2);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --bg-glow-1: rgba(0, 229, 255, 0.04);
  --bg-glow-2: rgba(168, 85, 247, 0.03);
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  scrollbar-color: var(--border-light) transparent;
  scrollbar-width: thin;
}

/* Global scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 20% 0%, var(--bg-glow-1), transparent),
    radial-gradient(ellipse 600px 600px at 80% 100%, var(--bg-glow-2), transparent);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

code {
  background: var(--bg-input);
  padding: 0.15em 0.45em;
  border-radius: 6px;
  font-size: 0.85em;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* ========== Navbar ========== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand a {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow-strong), 0 0 4px var(--accent);
  -webkit-text-fill-color: initial;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-user {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Backdoor scanner */
.scan-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.scan-info {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.scan-info strong { display: block; font-size: 0.85rem; margin-bottom: 0.2rem; }
/* Scan loading overlay */
.scan-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.scan-loading-overlay--visible { display: flex; }
.scan-loading-card {
  background: var(--bg-card, #1a1e2e);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2.5rem 3rem;
  text-align: center;
  max-width: 420px;
}

.scan-score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 1.5rem 2.5rem;
  border-radius: 50%;
  font-weight: 800;
  border: 4px solid;
}
.scan-score--good { color: #4ade80; border-color: #22c55e; background: rgba(34,197,94,0.08); }
.scan-score--warn { color: #fbbf24; border-color: #f59e0b; background: rgba(245,158,11,0.08); }
.scan-score--danger { color: #f87171; border-color: #ef4444; background: rgba(239,68,68,0.08); }
.scan-score-num { font-size: 2.5rem; }
.scan-score-label { font-size: 1rem; opacity: 0.7; }
.scan-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.scan-summary-item {
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
}
.scan-summary-item--critical { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25); color: #f87171; }
.scan-summary-item--high { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); color: #fbbf24; }
.scan-summary-item--medium { background: rgba(234,179,8,0.06); border-color: rgba(234,179,8,0.2); color: #facc15; }
.scan-summary-item--low { background: rgba(148,163,184,0.06); border-color: rgba(148,163,184,0.2); color: #cbd5e1; }
.scan-summary-num { display: block; font-size: 1.5rem; font-weight: 700; }
.scan-summary-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.scan-file-header {
  font-family: monospace;
  font-size: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.6rem;
}
.scan-findings { display: flex; flex-direction: column; gap: 0.6rem; }
.scan-finding {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border-left: 3px solid;
}
.scan-finding--critical { border-color: #ef4444; background: rgba(239,68,68,0.04); }
.scan-finding--high { border-color: #f59e0b; background: rgba(245,158,11,0.04); }
.scan-finding--medium { border-color: #eab308; }
.scan-finding--low { border-color: #94a3b8; }
.scan-finding-header { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.scan-severity {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  padding: 0.15rem 0.45rem; border-radius: 3px;
}
.scan-severity--critical { background: #ef4444; color: #fff; }
.scan-severity--high { background: #f59e0b; color: #fff; }
.scan-severity--medium { background: #eab308; color: #422006; }
.scan-severity--low { background: rgba(148,163,184,0.3); color: #cbd5e1; }
.scan-finding-label { font-weight: 600; font-size: 0.85rem; }
.scan-finding-explain { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.scan-finding-snippet {
  font-family: monospace;
  font-size: 0.72rem;
  background: rgba(0,0,0,0.3);
  padding: 0.4rem 0.6rem;
  border-radius: 3px;
  overflow-x: auto;
  margin: 0;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Support tickets */
.ticket-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ticket-item {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.ticket-item:hover { border-color: rgba(0,229,255,0.2); background: rgba(0,229,255,0.03); }
.ticket-item-header { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.ticket-item-subject { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
.ticket-item-meta { display: flex; gap: 1rem; }
.ticket-status {
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase;
  padding: 0.15rem 0.45rem; border-radius: 3px;
}
.ticket-status--open { background: rgba(34,197,94,0.15); color: #4ade80; }
.ticket-status--pending { background: rgba(245,158,11,0.15); color: #fbbf24; }
.ticket-status--closed { background: rgba(148,163,184,0.15); color: #94a3b8; }
.ticket-category {
  font-size: 0.65rem; padding: 0.15rem 0.45rem; border-radius: 3px;
  background: rgba(255,255,255,0.06); color: var(--text-muted);
}
.ticket-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.ticket-messages { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.ticket-message {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
}
.ticket-message--user { background: rgba(255,255,255,0.02); }
.ticket-message--staff { background: rgba(0,229,255,0.04); border-color: rgba(0,229,255,0.15); }
.ticket-message-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.4rem;
}
.ticket-message-author { font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 0.4rem; }
.ticket-staff-badge {
  font-size: 0.55rem; font-weight: 700; text-transform: uppercase;
  padding: 0.1rem 0.35rem; border-radius: 3px;
  background: var(--accent); color: var(--bg-card);
}
.ticket-message-date { font-size: 0.7rem; color: var(--text-muted); }
.ticket-message-body {
  font-size: 0.85rem;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.5;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  max-width: 380px;
  border-left: 4px solid;
}
.toast--success { background: #0b2e1a; border-color: #22c55e; color: #86efac; }
.toast--error { background: #2e0b0b; border-color: #ef4444; color: #fca5a5; }
.toast--info { background: #0b1e2e; border-color: #3b82f6; color: #93c5fd; }
.toast--out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(40px); } }

/* Notification bell */
.notif-bell { position: relative; }
.notif-bell-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.notif-bell-btn:hover {
  color: var(--accent);
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.05);
}
.notif-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-surface);
}
.notif-bell-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 480px;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 99999;
  overflow: hidden;
}
.notif-bell--open .notif-bell-menu { display: flex; flex-direction: column; }
.notif-bell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  font-weight: 600;
}
.notif-bell-mark-all {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.notif-bell-mark-all:hover { color: var(--accent); }
.notif-bell-list {
  overflow-y: auto;
  max-height: 420px;
}
.notif-bell-empty {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.notif-item {
  display: block;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
  position: relative;
}
.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-item--unread { background: rgba(0,229,255,0.04); }
.notif-item--unread::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}
.notif-item-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  padding-left: 0.6rem;
}
.notif-item-message {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-left: 0.6rem;
  line-height: 1.35;
}
.notif-item-date {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 0.2rem;
  padding-left: 0.6rem;
}

/* Global search */
.search-bar { position: relative; }
.search-input {
  width: 180px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
}
.search-input:focus { width: 260px; border-color: var(--accent); background: rgba(255,255,255,0.08); }
.search-input::placeholder { color: var(--text-muted); opacity: 0.5; }
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  max-height: 360px;
  overflow-y: auto;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 9999;
  backdrop-filter: none;
}
.search-results--open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.search-result-item:hover { background: rgba(255,255,255,0.05); }
.search-result-item:last-child { border-bottom: none; }
.search-result-type {
  font-size: 0.55rem; font-weight: 600; text-transform: uppercase;
  padding: 0.15rem 0.35rem; border-radius: 3px;
  background: rgba(0,229,255,0.1); color: var(--accent);
  flex-shrink: 0; min-width: 48px; text-align: center;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { display: block; font-size: 0.8rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-detail { display: block; font-size: 0.68rem; color: var(--text-muted); }
.search-empty { padding: 1rem; text-align: center; font-size: 0.8rem; color: var(--text-muted); }

.navbar-user-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.navbar-user-link:hover {
  color: var(--accent);
}

/* ========== Tabs ========== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  gap: 0.25rem;
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 999;
}

.tab {
  position: relative;
  padding: 0.8rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color var(--transition);
  white-space: nowrap;
}

.tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: transparent;
  border-radius: 2px 2px 0 0;
  transition: all var(--transition);
}

.tab:hover {
  color: var(--text-secondary);
  text-decoration: none;
}

.tab-active {
  color: var(--accent);
}

.tab-active::after {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow-strong);
}

.tab-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 0.15rem;
  align-self: center;
  flex-shrink: 0;
}

.tab--premium {
  color: #a78bfa;
}

.tab--premium:hover {
  color: #c4b5fd;
}

/* Premium dropdown tab */
.tab-dropdown {
  position: relative;
}
.tab-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.tab-dropdown-arrow {
  font-size: 0.6rem;
  opacity: 0.6;
}
.tab-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 99999;
  padding: 0.3rem 0;
}
.tab-dropdown--open .tab-dropdown-menu {
  display: block;
}
.tab-dropdown-item {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}
.tab-dropdown-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.tab-dropdown-item--active {
  color: #a78bfa;
  background: rgba(167,139,250,0.08);
}

.tab--premium.tab-active {
  color: #a78bfa;
}

.tab--premium.tab-active::after {
  background: #a78bfa;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.3);
}

/* ========== Container ========== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
  width: 100%;
}

/* ========== Auth ========== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 180px);
}

.auth-card {
  background: rgba(12, 12, 20, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.03), var(--shadow-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

.auth-card h1 {
  margin-bottom: 0.25rem;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
}

.auth-card .form-group:first-of-type {
  margin-top: 1.5rem;
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ========== Forms ========== */
.form-group {
  margin-bottom: 1.15rem;
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #0d1117;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: inherit;
}

select:focus {
  outline: none;
  border-color: var(--accent);
}

select option {
  background: #0d1117;
  color: #e2e8f0;
  padding: 8px 12px;
}

select option:hover,
select option:focus,
select option:checked {
  background: linear-gradient(0deg, #0e2a3d 0%, #0e2a3d 100%);
  color: #00e5ff;
}

.form-group select {
  background-color: #0d1117;
}

.form-group input:hover,
.form-group select:hover {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.04);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.35);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 0 30px rgba(0, 229, 255, 0.04);
}

.form-row {
  display: flex;
  gap: 1rem;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-danger {
  background: rgba(255, 92, 108, 0.08);
  color: var(--danger);
  border: 1px solid rgba(255, 92, 108, 0.12);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  box-shadow: 0 4px 20px var(--danger-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.12);
  color: rgba(0, 229, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.25);
  color: var(--accent);
  text-decoration: none;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 0.5rem;
}

/* ========== Cards ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
}

.card:hover {
  border-color: var(--border-light);
}

.card h2 {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ========== Alerts ========== */
.alert {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  backdrop-filter: blur(8px);
}

.alert-error {
  background: var(--danger-glow);
  border: 1px solid rgba(255, 92, 108, 0.15);
  color: #ffa0aa;
}

.alert-info {
  background: var(--info-glow);
  border: 1px solid rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}

.alert-success {
  background: var(--success-glow);
  border: 1px solid rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}

.error-details {
  margin-top: 0.75rem;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
  color: #ffa0aa;
  line-height: 1.6;
}

/* ========== Dashboard ========== */
.dashboard h1 {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.text-muted {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Server header */
.server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

/* Wizard */
.wizard { max-width: 700px; margin: 0 auto; }
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
}
.wizard-step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 2px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
  flex-shrink: 0;
}
.wizard-step-indicator--active {
  background: var(--accent);
  color: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,229,255,0.3);
}
.wizard-step-indicator--done {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border-color: rgba(34,197,94,0.3);
}
.wizard-step-line {
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.08);
}
.wizard-page { display: none; }
.wizard-page--active { display: block; animation: wizFadeIn 0.3s ease; }
@keyframes wizFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wizard-nav {
  display: flex;
  align-items: center;
  margin-top: 1.25rem;
  gap: 0.75rem;
}
.wizard-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.wizard-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.2s;
}
.wizard-choice:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }
.wizard-choice--selected {
  border-color: var(--accent);
  background: rgba(0,229,255,0.05);
  box-shadow: 0 0 16px rgba(0,229,255,0.1);
}
.wizard-choice-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.wizard-choice--selected .wizard-choice-icon {
  background: var(--accent);
  color: var(--bg-card);
}
.wizard-choice-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.wizard-choice-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }
.wizard-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}
.wizard-map-option {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.wizard-map-option:hover { border-color: rgba(255,255,255,0.15); }
.wizard-map-option--selected {
  border-color: var(--accent);
  background: rgba(0,229,255,0.06);
}
.wizard-map-name { font-size: 0.78rem; font-weight: 500; }
.wizard-summary {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.wizard-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.wizard-summary-row:last-child { border-bottom: none; }

/* Onboarding banner */
.onboarding-banner {
  background: var(--bg-card);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.onboarding-banner h3 { margin: 0 0 0.25rem 0; color: var(--accent); }
.onboarding-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.onboarding-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.onboarding-step:hover { border-color: var(--accent); background: rgba(0,229,255,0.06); }
.onboarding-step--primary { background: var(--accent); color: var(--bg-card); border-color: var(--accent); font-weight: 600; }
.onboarding-step--primary:hover { opacity: 0.9; }
.onboarding-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.onboarding-step--primary .onboarding-step-num { background: rgba(0,0,0,0.2); }

/* Server overview */
.overview-header {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.overview-server-name { font-size: 1.5rem; margin: 0 0 0.5rem 0; }
.overview-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem; }
.overview-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(0,229,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,229,255,0.15);
}
.overview-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.overview-stat {
  text-align: center;
  padding: 0.8rem 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.overview-stat-num { display: block; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.overview-stat-label { display: block; font-size: 0.7rem; color: var(--text-muted); margin-top: 0.1rem; }
.overview-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.overview-table th {
  text-align: left;
  padding: 0.5rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.overview-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.overview-table tr:last-child td { border-bottom: none; }
.overview-footer { text-align: center; margin-top: 1.5rem; }

@media print {
  .no-print, .navbar, .tabs, .footer, .theme-selector, .search-bar { display: none !important; }
  body, .app { background: #fff !important; color: #000 !important; }
  .card, .overview-header, .overview-stat { background: #fff !important; border-color: #ddd !important; color: #000 !important; }
  .overview-stat-num, .overview-badge { color: #333 !important; }
  .overview-table th, .overview-table td { border-color: #ddd !important; color: #000 !important; }
  .text-muted { color: #666 !important; }
  .u-tag-chip { background: #eee !important; color: #333 !important; border-color: #ccc !important; }
  .u-job-dot { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Collaborators */
.collab-list { display: flex; flex-direction: column; gap: 0.5rem; }
.collab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.collab-info { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.collab-name { font-weight: 600; font-size: 0.85rem; }
.collab-role-badge {
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase;
  padding: 0.12rem 0.4rem; border-radius: 3px;
}
.collab-role-badge--editor { background: rgba(59,130,246,0.15); color: #60a5fa; }
.collab-role-badge--editor_jobs { background: rgba(168,85,247,0.15); color: #c084fc; }
.collab-role-badge--viewer { background: rgba(148,163,184,0.15); color: #94a3b8; }
.collab-status { font-size: 0.7rem; }
.collab-status--pending { color: #f59e0b; }
.collab-status--accepted { color: #22c55e; }
.collab-roles-info { display: flex; flex-direction: column; gap: 0.5rem; }
.collab-role-info { padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.collab-role-info:last-child { border-bottom: none; }
.collab-role-info strong { display: block; font-size: 0.85rem; }

/* Permissions */
.perm-group-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.perm-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}
.perm-category {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}
.perm-category-title {
  display: block;
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted);
  margin-bottom: 0.35rem; padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.perm-list { display: flex; flex-direction: column; gap: 0.15rem; }
.perm-item {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.3rem; border-radius: 3px; cursor: pointer;
  font-size: 0.78rem; transition: background 0.15s;
}
.perm-item:hover { background: rgba(255,255,255,0.04); }
.perm-item input[type="checkbox"] { margin: 0; }

/* Validator */
.validator-panel {
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.validator-item {
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.validator-item--error {
  background: rgba(239,68,68,0.1);
  color: #f87171;
  border-left: 3px solid #ef4444;
}
.validator-item--warn {
  background: rgba(245,158,11,0.08);
  color: #fbbf24;
  border-left: 3px solid #f59e0b;
}
.validator-item + .validator-item { border-top: 1px solid rgba(255,255,255,0.04); }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.6rem;
}
.stat-item {
  text-align: center;
  padding: 0.6rem 0.4rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.stats-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* Size bar */
.size-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.size-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.5s ease;
  min-width: 2px;
}
.size-bar-fill--warn { background: #f59e0b; }
.size-bar-fill--danger { background: #ef4444; }

/* Server info grid */
.server-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.info-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: all 0.3s ease;
  min-width: 0;
  overflow: hidden;
}

.info-item:hover {
  border-color: rgba(0, 229, 255, 0.1);
  background: rgba(0, 229, 255, 0.02);
}

.info-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.info-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== Badges ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-installing {
  background: var(--warning-glow);
  color: var(--warning);
}

.badge-installing::before {
  background: var(--warning);
  animation: pulse 1.5s infinite;
}

.badge-configuring {
  background: var(--warning-glow);
  color: var(--warning);
}

.badge-configuring::before {
  background: var(--warning);
  animation: pulse 1.5s infinite;
}

.badge-ready {
  background: var(--success-glow);
  color: var(--success);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.08);
}

.badge-ready::before {
  background: var(--success);
}

.badge-updating {
  background: var(--info-glow);
  color: var(--info);
}

.badge-updating::before {
  background: var(--info);
  animation: pulse 1.5s infinite;
}

.badge-stopped {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.badge-stopped::before {
  background: var(--text-muted);
}

.badge-running {
  background: var(--success-glow);
  color: var(--success);
}

.badge-running::before {
  background: var(--success);
  animation: pulse 1.5s infinite;
}

.badge-error {
  background: var(--danger-glow);
  color: var(--danger);
}

.badge-error::before {
  background: var(--danger);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ========== Config section ========== */
.config-section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.config-section h3 {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.78rem;
  margin-bottom: 1.15rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* ========== Server.cfg config page ========== */
.cfg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

/* ========== Addons ========== */
.addons-category {
  margin-bottom: 2rem;
}

.addons-category-title {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Addons collapsible sections */
/* Workshop collection */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.workshop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.workshop-card-img {
  height: 140px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.workshop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.workshop-card-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
}
.workshop-card-body {
  padding: 0.75rem;
  flex: 1;
}
.workshop-card-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 0.35rem;
}
.workshop-card-title:hover { color: var(--accent); }
.workshop-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.workshop-tag {
  font-size: 0.6rem;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}
.workshop-card-remove {
  padding: 0 0.75rem 0.75rem;
}

/* File upload drop zone */
.file-drop {
  position: relative;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: rgba(255,255,255,0.01);
}
.file-drop:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
}
.file-drop--drag {
  border-color: var(--accent);
  background: rgba(0,229,255,0.04);
  box-shadow: 0 0 20px rgba(0,229,255,0.08);
}
.file-drop--has-file {
  border-style: solid;
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.04);
}
.file-drop-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.file-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.file-drop-icon {
  color: var(--text-muted);
  opacity: 0.5;
}
.file-drop--drag .file-drop-icon { color: var(--accent); opacity: 1; }
.file-drop-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.file-drop-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.file-drop-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
}
.file-drop-selected {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
  text-align: left;
}
.file-drop-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(34,197,94,0.12);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.file-drop-file-info {
  flex: 1;
  min-width: 0;
}
.file-drop-file-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-drop-file-size {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.file-drop-remove {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.file-drop-remove:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: #f87171;
}

/* Import features list */
.import-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.import-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.import-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(0,229,255,0.1);
  color: var(--accent);
  flex-shrink: 0;
}
.import-feature strong { display: block; font-size: 0.82rem; }
.import-feature .text-muted { display: block; font-size: 0.7rem; line-height: 1.3; }

.addons-section { margin-bottom: 0.75rem; }
.addons-section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  color: var(--text);
}
.addons-section-header:hover { border-color: var(--border-light); background: var(--bg-hover); }
.addons-section-icon {
  font-size: 0.7rem;
  width: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-family: monospace;
  flex-shrink: 0;
}
.addons-section-title {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}
.addons-section-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
}
.addons-section-header--premium .addons-section-title { color: #c084fc; }
.addons-section-header--premium .addons-section-count { background: rgba(168, 85, 247, 0.1); color: #c084fc; }
.addons-section-body {
  padding: 1rem 0 0.5rem;
}
.addons-section-body--collapsed { display: none; }

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.addon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.addon-card:hover {
  border-color: rgba(0, 229, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 229, 255, 0.03);
}

.addon-card--installed {
  border-color: rgba(52, 211, 153, 0.1);
}

.addon-card--installed:hover {
  border-color: rgba(52, 211, 153, 0.2);
}

.addon-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.addon-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.addon-card--installed .addon-icon {
  background: var(--success-glow);
  color: var(--success);
}

.addon-icon--premium {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.addon-badge-premium {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.addon-icon--custom {
  background: var(--border);
  color: var(--text-secondary);
}

.addon-card--installed .addon-icon--custom {
  background: var(--accent-glow);
  color: var(--accent);
}

/* Addon config page */
.addon-cfg-line {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 0.35rem;
  font-family: var(--font-mono, monospace);
}

.addon-cfg-key {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
  margin-top: 0.2rem;
  opacity: 0.7;
}

.addon-cfg-color {
  display: flex;
  gap: 0.35rem;
}

.addon-cfg-color input {
  width: 100%;
  min-width: 0;
}

.addon-cfg-readonly-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.addon-cfg-readonly {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  overflow: hidden;
}

.addon-cfg-readonly-line {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
  color: var(--text-muted);
  min-width: 2.5rem;
}

.addon-cfg-readonly-key {
  flex-shrink: 0;
  font-family: var(--font-mono, monospace);
  color: var(--accent);
  font-weight: 600;
}

.addon-cfg-readonly-value {
  color: var(--text-secondary);
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* HUD editor - screenshot + narrow panel */
.hud-editor-fullpage { padding: 0; width: 100vw; margin-left: calc(-50vw + 50%); background: #0a0e17; overflow: hidden; }
.he-main { display: grid; grid-template-columns: 1fr 220px; height: calc(100vh - 100px); overflow: hidden; }
@media (max-width: 768px) { .he-main { grid-template-columns: 1fr; height: auto; } }

/* Screenshot area */
.he-screen { position: relative; background: #0a0e17; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: default; }
.he-screen-inner { position: relative; transform-origin: center center; width: 100%; display: flex; }
.he-screen-bg { display: block; width: 100%; aspect-ratio: 16/9; object-fit: fill; pointer-events: none; user-select: none; }
.he-screen-overlay { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 16/9; pointer-events: none; }
.he-screen-overlay .he-el { pointer-events: auto; }
.he-screen-grid { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s; background-image: linear-gradient(rgba(0,229,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,0.07) 1px, transparent 1px); }
.he-screen-grid--visible { opacity: 1; }

/* Alignment guides */
.he-guide { position: absolute; display: none; z-index: 50; pointer-events: none; }
.he-guide-h { left: 0; right: 0; height: 1px; background: rgba(255, 100, 255, 0.6); box-shadow: 0 0 4px rgba(255, 100, 255, 0.4); }
.he-guide-v { top: 0; bottom: 0; width: 1px; background: rgba(255, 100, 255, 0.6); box-shadow: 0 0 4px rgba(255, 100, 255, 0.4); }

/* Floating toolbar on screenshot */
.he-float-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.7rem; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); z-index: 10; }
.he-float-back { color: #fff; text-decoration: none; font-size: 1.1rem; opacity: 0.7; padding: 0 0.3rem; }
.he-float-back:hover { opacity: 1; }
.he-float-title { color: #fff; font-size: 0.8rem; font-weight: 600; flex: 1; }
.he-float-select { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #fff; padding: 0.25rem 1.4rem 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23999'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 5px center; cursor: pointer; }
.he-float-select:hover { background-color: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.he-float-select:focus { outline: none; border-color: var(--accent); }
.he-float-select option { background: #141a28; color: #e2e8f0; padding: 0.3rem; }
.he-float-btn { background: var(--accent); color: #0a0e17; border: none; padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.he-float-btn:hover { opacity: 0.85; }
.he-save-group { display: flex; gap: 2px; }
.he-save-group .he-float-btn { border-radius: 0; }
.he-save-group .he-float-btn:first-child { border-radius: 4px 0 0 4px; }
.he-save-group .he-float-btn:last-child { border-radius: 0 4px 4px 0; }
.he-float-btn--install { background: #22c55e; }
.he-float-btn--export { background: #6366f1; }
.he-float-sep { width: 1px; height: 18px; background: rgba(255,255,255,0.12); }
.he-float-btn-icon { background: none; border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); padding: 0.2rem 0.45rem; border-radius: 4px; font-size: 0.9rem; cursor: pointer; }
.he-float-btn-icon:hover { background: rgba(255,255,255,0.1); color: #fff; }
.he-float-toggle { display: flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; color: rgba(255,255,255,0.5); cursor: pointer; }
.he-float-toggle input[type="checkbox"] { width: 13px; height: 13px; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
.he-float-toggle input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.he-float-toggle input[type="checkbox"]:checked::after { top: 0px; left: 3px; width: 3px; height: 7px; border-width: 0 1.5px 1.5px 0; }
.he-float-btn-ghost { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: #fff; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.7rem; cursor: pointer; }
.he-float-btn-ghost:hover { background: rgba(255,255,255,0.2); }
.he-float-zoom { color: rgba(255,255,255,0.6); font-size: 0.72rem; font-family: var(--font-mono, monospace); }

/* Test controls in toolbar */
.he-float-test-label { font-size: 0.65rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.he-float-test { display: flex; align-items: center; gap: 0.25rem; font-size: 0.68rem; color: rgba(255,255,255,0.5); white-space: nowrap; cursor: default; }
.he-float-test input[type="range"] { width: 60px; accent-color: var(--accent); }
.he-float-test input[type="checkbox"] { width: 13px; height: 13px; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
.he-float-test input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.he-float-test input[type="checkbox"]:checked::after { top: 0px; left: 3px; width: 3px; height: 7px; border-width: 0 1.5px 1.5px 0; }
.he-float-test em { font-style: normal; font-size: 0.62rem; color: rgba(255,255,255,0.35); min-width: 18px; font-family: monospace; }
.he-float-alert { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); background: rgba(0,229,255,0.9); color: #0a0e17; padding: 0.3rem 1rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; z-index: 11; }
.he-float-alert--green { background: rgba(34,197,94,0.9); color: #fff; }
.he-float-alert--auto { animation: he-alert-fade 5s forwards; }
@keyframes he-alert-fade { 0%,70% { opacity: 1; } 100% { opacity: 0; pointer-events: none; } }

/* Right panel */
.he-panel { background: var(--bg-card); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; }
.he-panel-title { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; padding: 0.75rem 0.75rem 0.4rem; }
.he-panel-list { display: flex; flex-direction: column; gap: 2px; padding: 0 0.5rem; }
.he-panel-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: 4px; cursor: grab; transition: background 0.12s; user-select: none; }
.he-panel-item:hover { background: rgba(255,255,255,0.06); }
.he-panel-item:active { cursor: grabbing; }
.he-panel-item--on { background: var(--accent-glow); }
.he-panel-item--on .he-panel-label { color: var(--text-primary); }
.he-panel-item--on .he-panel-label::after { content: ' ✓'; font-size: 0.6rem; color: var(--accent); }
.he-panel-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.he-panel-label { font-size: 0.78rem; color: var(--text-secondary); }
.he-panel-divider { height: 1px; background: var(--border); margin: 0.5rem 0; }

/* Categories */
.he-cat { border-bottom: 1px solid var(--border); }
.he-cat-header { display: flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.75rem; cursor: pointer; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); user-select: none; transition: color 0.12s; }
.he-cat-header:hover { color: var(--text-primary); }
.he-cat-arrow { font-size: 0.6rem; color: var(--text-muted); width: 10px; text-align: center; }
.he-cat-body { padding: 0 0.6rem 0.6rem; }
.he-cat-hint { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.4rem; }

/* Element cards with preview */
.he-add-card { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-main); cursor: grab; transition: all 0.12s; user-select: none; margin-bottom: 0.3rem; }
.he-add-card:hover { border-color: var(--accent); background: var(--accent-glow); }
.he-add-card:active { cursor: grabbing; }
.he-add-preview { width: 36px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.he-add-label { font-size: 0.75rem; color: var(--text-secondary); }
.he-add-card:hover .he-add-label { color: var(--text-primary); }

/* Shape previews */
.he-add-prev-box { width: 28px; height: 18px; background: rgba(100,100,100,0.5); border-radius: 3px; border: 1px solid rgba(255,255,255,0.15); }
.he-add-prev-circle { width: 22px; height: 22px; background: rgba(100,100,100,0.5); border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); }
.he-add-prev-line { width: 28px; height: 2px; background: rgba(200,200,200,0.6); border-radius: 1px; }
.he-add-prev-text { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); font-style: italic; }
.he-add-prev-bar { width: 28px; height: 10px; background: rgba(40,40,40,0.8); border-radius: 2px; overflow: hidden; position: relative; }
.he-add-prev-bar-fill { position: absolute; top: 0; left: 0; width: 65%; height: 100%; background: rgba(220,40,40,0.8); border-radius: 2px; }
.he-add-prev-arc { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(rgba(0,255,128,0.8) 250deg, rgba(60,60,60,0.5) 250deg); -webkit-mask: radial-gradient(circle,transparent 7px,#000 7px); mask: radial-gradient(circle,transparent 7px,#000 7px); }

/* Variable chips */
.he-var-grid { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.he-var-chip { background: var(--bg-main); border: 1px solid var(--border); padding: 0.2rem 0.4rem; border-radius: 3px; font-size: 0.65rem; color: var(--accent); cursor: grab; font-family: var(--font-mono, monospace); user-select: none; display: flex; align-items: center; gap: 0.2rem; }
.he-var-chip:hover { background: var(--accent-glow); border-color: var(--accent); }
.he-var-chip:active { cursor: grabbing; }
.he-var-chip small { color: var(--text-muted); font-family: var(--font-sans, sans-serif); font-size: 0.6rem; }

/* Layers */
.he-layers { padding: 0 0.5rem 0.5rem; display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow-y: auto; }
.he-layer-item { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.4rem; border-radius: 3px; cursor: pointer; font-size: 0.72rem; }
.he-layer-item:hover { background: rgba(255,255,255,0.04); }
.he-layer-item--sel { background: var(--accent-glow); }
.he-layer-icon { width: 16px; text-align: center; flex-shrink: 0; font-size: 0.75rem; }
.he-layer-lock { font-size: 0.5rem; margin-left: auto; }
.he-layer-cond { font-size: 0.55rem; color: #fbbf24; }
.he-layer-fill { font-size: 0.5rem; color: var(--accent); margin-left: 0.15rem; }
.he-layer-label { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-layer-z { font-size: 0.6rem; color: var(--text-muted); font-family: var(--font-mono, monospace); }

/* Floating props window */
.he-float-props { position: absolute; right: 240px; top: 60px; width: 270px; background: rgba(17, 24, 39, 0.97); backdrop-filter: blur(12px); border: 1px solid rgba(0, 229, 255, 0.12); border-radius: var(--radius-lg); box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 1px rgba(0,229,255,0.15); z-index: 60; }
.he-fp-header { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.65rem; background: rgba(10, 14, 23, 0.8); border-bottom: 1px solid var(--border); cursor: move; user-select: none; font-size: 0.78rem; font-weight: 600; color: var(--text-primary); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.he-fp-actions { display: flex; gap: 0.2rem; align-items: center; }
.he-fp-close { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; padding: 0.1rem 0.3rem; border-radius: 3px; }
.he-fp-close:hover { color: var(--error); background: rgba(239,68,68,0.1); }
.he-fp-body { padding: 0.5rem 0.65rem; max-height: 450px; overflow-y: auto; overflow-x: hidden; }
.he-fp-body::-webkit-scrollbar { width: 5px; }
.he-fp-body::-webkit-scrollbar-track { background: transparent; }
.he-fp-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.he-fp-body::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Global scrollbar for HUD editor panel */
.he-panel::-webkit-scrollbar { width: 5px; }
.he-panel::-webkit-scrollbar-track { background: transparent; }
.he-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.he-panel::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
.he-layers::-webkit-scrollbar { width: 4px; }
.he-layers::-webkit-scrollbar-track { background: transparent; }
.he-layers::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.he-psec { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); font-weight: 600; margin: 0.6rem 0 0.3rem; padding-top: 0.4rem; border-top: 1px solid var(--border); }
.he-psec:first-child { border-top: none; margin-top: 0.2rem; }
.he-fp-actions .he-act-btn { background: var(--bg-main); border: 1px solid var(--border); color: var(--text-muted); padding: 0.15rem 0.35rem; border-radius: 3px; cursor: pointer; font-size: 0.7rem; }
.he-fp-actions .he-act-btn:hover { border-color: var(--accent); color: var(--accent); }
.he-fp-actions .he-act-del { color: var(--error); }
.he-fp-actions .he-act-del:hover { border-color: var(--error); background: rgba(239,68,68,0.06); }
.he-pprop { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; }
.he-pprop span { font-size: 0.65rem; color: var(--text-muted); min-width: 50px; flex-shrink: 0; }
.he-pprop select, .he-pprop input[type="color"], .he-pprop input[type="text"], .he-pprop input[type="number"] { flex: 1; min-width: 0; background: var(--bg-input); border: 1px solid var(--border); color: var(--text-primary); padding: 0.2rem 0.3rem; border-radius: 3px; font-size: 0.72rem; }
.he-pprop select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23666'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 5px center; padding-right: 18px; cursor: pointer; }
.he-pprop select:focus { outline: none; border-color: var(--accent); }
.he-pprop select option { background: var(--bg-card); color: var(--text-primary); }
.he-pprop input[type="range"] { flex: 1; min-width: 0; }
.he-pprop input[type="color"] { height: 24px; padding: 1px; cursor: pointer; }
.he-pprop input[type="range"] { flex: 1; accent-color: var(--accent); }
.he-pprop em { font-style: normal; font-size: 0.65rem; color: var(--text-muted); min-width: 22px; text-align: right; font-family: monospace; }
.he-panel-remove { text-align: center; font-size: 0.7rem; color: var(--error); cursor: pointer; padding: 0.3rem; border-radius: 3px; margin-top: 0.3rem; }
.he-panel-remove:hover { background: rgba(239,68,68,0.1); }

/* HUD elements on screen */
/* Error check */
.ec-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto; animation: ecSpin 0.8s linear infinite; }
@keyframes ecSpin { to { transform: rotate(360deg); } }
.error-check-ok { padding: 2rem 0; }
.error-check-ok-icon { display: inline-block; width: 50px; height: 50px; border-radius: 50%; background: rgba(34,197,94,0.15); color: #22c55e; font-size: 1.5rem; line-height: 50px; text-align: center; margin-bottom: 1rem; }
.error-check-ok h2 { color: #22c55e; margin-bottom: 0.3rem; }
.error-check-count { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(239,68,68,0.15); color: #ef4444; font-size: 1.1rem; font-weight: 800; flex-shrink: 0; }
.error-check-list { display: flex; flex-direction: column; gap: 0.35rem; }
.error-check-item { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0.7rem; background: rgba(239,68,68,0.04); border-radius: var(--radius-sm); border-left: 3px solid rgba(239,68,68,0.3); }
.error-check-badge { font-size: 0.55rem; font-weight: 700; background: rgba(239,68,68,0.15); color: #f87171; padding: 0.1rem 0.35rem; border-radius: 3px; flex-shrink: 0; margin-top: 0.15rem; }
.error-check-badge--map { background: rgba(245,158,11,0.15); color: #fbbf24; }
.error-check-badge--info { background: rgba(148,163,184,0.15); color: #94a3b8; }
.error-check-diag { margin-top: 0.5rem; padding: 0.6rem 0.8rem; background: rgba(0,229,255,0.05); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.8rem; color: var(--accent); line-height: 1.5; }
.error-check-diag strong { color: #fff; }
.error-check-msg { font-size: 0.82rem; color: var(--text-secondary); word-break: break-word; overflow-wrap: break-word; white-space: pre-wrap; font-family: var(--font-mono, monospace); background: none; border: none; padding: 0; max-width: 100%; overflow: hidden; margin: 0; }
.error-check-item { overflow: hidden; }
.error-check-list pre, .error-check-list code { white-space: pre-wrap !important; word-break: break-word !important; overflow-wrap: break-word !important; max-width: 100% !important; }

@keyframes heAnimBlink { 0%,49%{opacity:1}50%,100%{opacity:0} }
@keyframes heAnimPulse { 0%,100%{opacity:1}50%{opacity:0.2} }

.he-el { position: absolute; cursor: move; user-select: none; overflow: hidden; z-index: 2; box-sizing: border-box; }
.he-el:hover { outline: 1px solid rgba(0,229,255,0.35); outline-offset: -1px; }
.he-el--sel { outline: 2px solid #00e5ff !important; outline-offset: 0; box-shadow: 0 0 10px rgba(0,229,255,0.3); }
.he-el--sel::after { content: ''; position: absolute; inset: -4px; border: 1px dashed rgba(0,229,255,0.5); border-radius: 4px; pointer-events: none; }
.he-el--locked { cursor: default !important; opacity: 0.7; }
.he-lock-badge { position: absolute; top: -2px; right: -2px; font-size: 0.5rem; background: rgba(0,0,0,0.6); border-radius: 2px; padding: 1px 2px; pointer-events: none; z-index: 3; }
.he-resize { position: absolute; background: var(--accent); border: 1px solid #fff; z-index: 5; }
.he-resize--br { width: 10px; height: 10px; bottom: -5px; right: -5px; cursor: nwse-resize; border-radius: 2px; }
.he-resize--r { width: 6px; height: 60%; top: 20%; right: -3px; cursor: ew-resize; border-radius: 2px; }
.he-resize--b { height: 6px; width: 60%; left: 20%; bottom: -3px; cursor: ns-resize; border-radius: 2px; }
.he-bar-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.5); border-radius: 3px; }
.he-bar-fill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 3px; }
.he-bar-txt { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.he-txt { font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.5); white-space: nowrap; }

/* Code editor */
/* Editor layout */
.editor-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; min-height: 600px; }
@media (max-width: 768px) { .editor-layout { grid-template-columns: 1fr; } }
.editor-fullscreen { position: fixed; inset: 0; z-index: 9000; background: var(--bg-body); padding: 1rem; grid-template-columns: 220px 1fr; }
.editor-fullscreen .editor-sidebar { max-height: calc(100vh - 2rem); }
.editor-fullscreen .editor-wrap { height: calc(100vh - 10rem); }

/* Sidebar */
.editor-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.75rem; overflow-y: auto; max-height: 70vh; }
.editor-sidebar-header { margin-bottom: 0.5rem; }
.editor-sidebar-title { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; font-weight: 700; }
.editor-search { width: 100%; padding: 0.4rem 0.6rem; font-size: 0.75rem; background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px; color: var(--text); outline: none; }
.editor-search:focus { border-color: var(--accent); }
.editor-search::placeholder { color: var(--text-muted); }

/* File tree */
.editor-tree { font-size: 0.78rem; margin-top: 0.25rem; }
.editor-tree-dir { margin-bottom: 0.1rem; }
.editor-tree-toggle { color: var(--accent); cursor: pointer; display: flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.3rem; font-weight: 600; border-radius: 4px; transition: background 0.15s; }
.editor-tree-toggle:hover { background: var(--bg-hover); }
.editor-dir-icon { font-size: 0.6rem; width: 0.8rem; text-align: center; transition: transform 0.15s; }
.editor-tree-children { padding-left: 0.9rem; border-left: 1px solid var(--border); margin-left: 0.5rem; }
.editor-tree-collapsed { display: none; }
.editor-tree-file { display: flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.4rem; color: var(--text-secondary); text-decoration: none; border-radius: 4px; transition: all 0.15s; }
.editor-tree-file:hover { background: var(--bg-hover); color: var(--text); }
.editor-tree-file--active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }
.editor-file-icon { font-size: 0.65rem; width: 1rem; text-align: center; opacity: 0.6; }

/* Editor main panel */
.editor-main { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; display: flex; flex-direction: column; overflow: hidden; }

/* Toolbar */
.editor-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.15); flex-shrink: 0; }
.editor-toolbar-left { display: flex; align-items: center; gap: 0.5rem; }
.editor-toolbar-right { display: flex; align-items: center; gap: 0.35rem; }
.editor-filename { font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; font-size: 0.8rem; color: var(--accent); }
.editor-lang-badge { font-size: 0.6rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 3px; background: var(--accent-glow); color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.editor-tool-btn { padding: 0.25rem 0.45rem; border-radius: 4px; font-size: 0.75rem; color: var(--text-muted); background: transparent; border: 1px solid transparent; cursor: pointer; transition: all 0.15s; }
.editor-tool-btn:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border); }
.editor-tool-btn--active { background: var(--accent-glow); color: var(--accent); border-color: rgba(0,229,255,0.15); }
.editor-status { font-size: 0.7rem; color: var(--text-muted); font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; }

/* Find bar */
.editor-find-bar { display: flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.75rem; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.editor-find-input { padding: 0.3rem 0.5rem; font-size: 0.75rem; background: var(--bg-input); border: 1px solid var(--border); border-radius: 4px; color: var(--text); width: 160px; outline: none; font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; }
.editor-find-input:focus { border-color: var(--accent); }
.editor-find-btn { padding: 0.25rem 0.5rem; font-size: 0.7rem; background: var(--bg-input); border: 1px solid var(--border); border-radius: 4px; color: var(--text-secondary); cursor: pointer; font-weight: 600; }
.editor-find-btn:hover { background: var(--bg-hover); color: var(--text); }
.editor-find-count { font-size: 0.7rem; color: var(--accent); min-width: 3rem; }
.editor-find-close { background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 0 0.3rem; margin-left: auto; }
.editor-find-close:hover { color: var(--text); }

/* Code area */
.editor-wrap { display: flex; flex: 1; overflow: hidden; position: relative; height: 500px; }
.editor-gutter { padding: 0.6rem 0.5rem; font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; font-size: 0.78rem; line-height: 1.6; color: var(--text-muted); text-align: right; user-select: none; overflow: hidden; min-width: 3.2rem; border-right: 1px solid var(--border); white-space: pre; background: rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.editor-gutter span { display: block; opacity: 0.5; }
.editor-code-area { flex: 1; position: relative; overflow: hidden; }
.editor-highlight, .editor-textarea {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.75rem;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.78rem; line-height: 1.6;
  white-space: pre; tab-size: 2;
  overflow: auto; margin: 0; border: none;
}
.editor-highlight { color: var(--text); pointer-events: none; z-index: 1; }
.editor-textarea { color: transparent; caret-color: var(--accent); background: transparent; z-index: 2; outline: none; resize: none; -webkit-text-fill-color: transparent; }
.editor-textarea::selection { background: rgba(0,229,255,0.15); -webkit-text-fill-color: transparent; }

/* Syntax highlighting colors */
.hl-keyword { color: #c792ea; font-weight: 600; }
.hl-builtin { color: #82aaff; }
.hl-string { color: #c3e88d; }
.hl-number { color: #f78c6c; }
.hl-comment { color: #546e7a; font-style: italic; }
.hl-key { color: #89ddff; }

/* Footer */
.editor-footer { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; border-top: 1px solid var(--border); background: rgba(0,0,0,0.1); flex-shrink: 0; }
.editor-footer-left { display: flex; align-items: center; gap: 0.75rem; font-size: 0.7rem; color: var(--text-muted); }
.editor-footer-right { display: flex; align-items: center; gap: 0.75rem; }
.editor-shortcut { font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; font-size: 0.65rem; padding: 0.1rem 0.35rem; background: var(--bg-input); border: 1px solid var(--border); border-radius: 3px; color: var(--text-secondary); }
.editor-modified { font-size: 0.7rem; color: var(--warning); font-weight: 600; }

/* Empty state */
.editor-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 2rem; color: var(--text-muted); }
.editor-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }

/* Server card (public page) */
/* Loading screen preview */
.ls-preview { aspect-ratio: 16/9; border-radius: var(--radius-lg); margin-bottom: 1.5rem; background: #0a0e17; position: relative; overflow: hidden; border: 1px solid var(--border); background-size: cover; background-position: center; }
.ls-preview-overlay { position: absolute; inset: 0; background: #000; display: none; z-index: 0; }
.ls-preview-content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; overflow: hidden; }
.ls-preview-logo { margin-bottom: 0.5rem; }
.ls-preview-logo img { max-width: 120px; max-height: 60px; object-fit: contain; }
.ls-preview-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 0.15rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.5); transition: font-size 0.15s; }
.ls-preview-subtitle { font-size: 0.65rem; opacity: 0.6; margin: 0 0 0.15rem; color: #fff; }
.ls-preview-msg { font-size: 0.7rem; opacity: 0.7; margin: 0 0 0.8rem; color: #fff; }
.ls-preview-bar-wrap { width: 180px; max-width: 50%; height: 3px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin-bottom: 0.4rem; transition: height 0.15s; }
.ls-preview-bar { height: 100%; width: 0%; border-radius: 3px; transition: width 0.3s; background: #00e5ff; }
.ls-preview-status { font-size: 0.55rem; opacity: 0.4; color: #fff; margin: 0; }
.ls-preview-files { font-size: 0.5rem; opacity: 0.25; color: #fff; margin: 0.15rem 0 0; }
.ls-preview-rules-wrap { margin-top: 0.5rem; max-width: 250px; height: 50px; overflow: hidden; position: relative; display: none; }
.ls-preview-rules-wrap::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: linear-gradient(to bottom, var(--bg-main), transparent); z-index: 1; pointer-events: none; }
.ls-preview-rules-wrap::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 12px; background: linear-gradient(to top, var(--bg-main), transparent); z-index: 1; pointer-events: none; }
.ls-preview-rules { animation: lsRulesScroll 10s linear infinite; will-change: transform; }
.ls-preview-rules div { padding: 0.1rem 0; font-size: 0.5rem; opacity: 0.5; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.04); }
/* Scroll seamless : la liste est dupliquee dans le DOM, on translate de 0 a -50% (= une copie complete). */
@keyframes lsRulesScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes lsPrevFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes lsPrevTyping { from { width: 0; } to { width: 100%; } }
@keyframes lsPrevBlink { 50% { border-color: transparent; } }

/* Card config preview */
.scard-preview-wrap { margin-bottom: 1.5rem; display: flex; justify-content: center; }
.scard-preview { width: 350px; background: #0a0e17; border: 1px solid rgba(0,229,255,0.1); border-radius: var(--radius-lg); padding: 1.5rem; position: relative; overflow: hidden; }
.scard-preview-accent { position: absolute; top: -1px; left: 15%; right: 15%; height: 2px; background: linear-gradient(90deg, transparent, #00e5ff, transparent); }
.scard-preview-name { font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0 0 0.2rem; }
.scard-preview-gm { font-size: 0.65rem; background: rgba(0,229,255,0.15); color: #00e5ff; padding: 0.1rem 0.4rem; border-radius: 3px; font-weight: 600; }
.scard-preview-desc { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin: 0.75rem 0; }
.scard-preview-info { display: flex; gap: 0.5rem; font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-bottom: 1rem; flex-wrap: wrap; word-break: break-all; }
.scard-preview-info span { background: rgba(255,255,255,0.03); padding: 0.2rem 0.5rem; border-radius: 4px; }
.scard-preview-rules { font-size: 0.55rem; color: rgba(255,255,255,0.4); margin-bottom: 0.5rem; }
.scard-preview-rules div { padding: 0.1rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.scard-preview-rules-title { font-size: 0.55rem; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
.scard-prev-rules-scroll { height: 45px; overflow: hidden; position: relative; }
.scard-prev-rules-scroll::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: linear-gradient(to bottom, var(--bg-card), transparent); z-index: 1; pointer-events: none; }
.scard-prev-rules-scroll::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 10px; background: linear-gradient(to top, var(--bg-card), transparent); z-index: 1; pointer-events: none; }
.scard-prev-rules-inner { animation: scardRulesScroll 10s linear infinite; }
.scard-prev-rules-inner div { padding: 0.1rem 0; font-size: 0.5rem; opacity: 0.5; border-bottom: 1px solid rgba(255,255,255,0.04); }
@keyframes scardRulesScroll { 0% { transform: translateY(45px); } 100% { transform: translateY(-100%); } }
.scard-preview-status { display: flex; align-items: center; gap: 0.35rem; font-size: 0.65rem; color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.03); padding: 0.35rem 0.5rem; border-radius: 6px; margin-bottom: 0.6rem; }
.scard-preview-dot { width: 6px; height: 6px; border-radius: 50%; background: #666; flex-shrink: 0; }
.scard-preview-buttons { display: flex; gap: 0.35rem; }
.scard-preview-btn { flex: 1; text-align: center; padding: 0.45rem; border-radius: var(--radius-sm); font-size: 0.72rem; font-weight: 600; background: #00e5ff; color: #0a0e17; }
.scard-preview-btn--discord { background: #5865F2 !important; color: #fff !important; }
.scard-preview-footer { text-align: center; margin-top: 0.75rem; font-size: 0.55rem; color: rgba(255,255,255,0.15); }

.scard-link-bar { margin-bottom: 1.25rem; padding: 0.6rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.scard-link-bar a { color: var(--accent); font-weight: 600; text-decoration: none; }
.scard-link-bar a:hover { text-decoration: underline; }

.card-addons-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.card-addon-item { display: flex; align-items: center; gap: 0.35rem; background: var(--bg-main); padding: 0.3rem 0.6rem; border-radius: var(--radius-sm); font-size: 0.8rem; cursor: pointer; border: 1px solid var(--border); transition: opacity 0.15s; }
.card-addon-item:has(input:not(:checked)) { opacity: 0.4; }
.card-addon-item input { width: 13px; height: 13px; }

.scard-container { max-width: 600px; margin: 2rem auto; padding: 0 1rem; }
.scard { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.scard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.scard-name { font-size: 1.5rem; margin: 0; }
.scard-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.25rem; }
.scard-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; margin-bottom: 1.25rem; }
.scard-info-item { background: var(--bg-main); padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); }
.scard-info-label { display: block; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; }
.scard-info-value { font-size: 0.9rem; }
.scard-section { margin-bottom: 1.25rem; }
.scard-section h2 { font-size: 1rem; margin-bottom: 0.5rem; }
.scard-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.scard-join { margin-top: 1.25rem; font-size: 1.1rem; padding: 0.9rem; }
.scard-footer { text-align: center; margin-top: 1.5rem; font-size: 0.75rem; color: var(--text-muted); }
.scard-footer a { color: var(--accent); }

/* Config tester */
.test-summary { display: flex; gap: 1rem; justify-content: center; }
.test-summary-item { text-align: center; padding: 1rem 2rem; border-radius: var(--radius-sm); }
.test-summary-item--ok { background: rgba(34, 197, 94, 0.08); }
.test-summary-item--warn { background: rgba(245, 158, 11, 0.08); }
.test-summary-item--error { background: rgba(248, 113, 113, 0.08); }
.test-summary-count { display: block; font-size: 2rem; font-weight: 800; }
.test-summary-item--ok .test-summary-count { color: #4ade80; }
.test-summary-item--warn .test-summary-count { color: #fbbf24; }
.test-summary-item--error .test-summary-count { color: #f87171; }
.test-summary-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.test-list { display: flex; flex-direction: column; gap: 0.4rem; }
.test-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.85rem; }
.test-item--ok { background: rgba(34, 197, 94, 0.04); }
.test-item--warn { background: rgba(245, 158, 11, 0.04); }
.test-item--error { background: rgba(248, 113, 113, 0.04); }
.test-item-badge { font-size: 0.6rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 3px; flex-shrink: 0; text-transform: uppercase; }
.test-badge--ok { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.test-badge--warn { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.test-badge--error { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.test-item-cat { font-weight: 600; color: var(--text-secondary); flex-shrink: 0; min-width: 80px; }
.test-item-msg { flex: 1; color: var(--text-muted); }
.u-color-error { color: #f87171; }
.u-color-warning { color: #fbbf24; }

/* Preview */
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.preview-stat { background: var(--bg-main); padding: 0.75rem 1rem; border-radius: var(--radius-sm); }
.preview-stat-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
.preview-stat-value { font-size: 0.95rem; color: var(--text-primary); }
.preview-stat-value--big { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.preview-jobs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.preview-job { display: flex; align-items: center; gap: 0.4rem; background: var(--bg-main); padding: 0.35rem 0.7rem; border-radius: var(--radius-sm); font-size: 0.85rem; }
.preview-job-name { color: var(--text-secondary); }
.preview-job-salary { color: var(--text-muted); font-size: 0.75rem; }

/* Config history */
.history-list { display: flex; flex-direction: column; gap: 0.5rem; }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.8rem; background: var(--bg-main); border-radius: var(--radius-sm); }
.history-item-info { display: flex; align-items: center; gap: 0.75rem; }
.history-item-date { font-size: 0.85rem; color: var(--text-secondary); }
.history-item-id { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono, monospace); }
.history-item-actions { display: flex; gap: 0.4rem; }
.u-inline { display: inline; }

/* Diff */
.diff-container { background: var(--bg-main); border-radius: var(--radius-sm); overflow-x: auto; font-family: var(--font-mono, monospace); font-size: 0.8rem; line-height: 1.6; }
.diff-line { display: flex; padding: 0 0.75rem; white-space: pre; }
.diff-line--same { color: var(--text-muted); }
.diff-line--add { background: rgba(34, 197, 94, 0.08); color: #4ade80; }
.diff-line--remove { background: rgba(248, 113, 113, 0.08); color: #f87171; }
.diff-prefix { width: 1.5rem; flex-shrink: 0; text-align: center; user-select: none; opacity: 0.6; }
.diff-content { flex: 1; }

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

.addon-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.addon-deps {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.addon-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.addon-status-dot--active {
  background: var(--success);
  box-shadow: 0 0 10px var(--success-glow);
}

.addon-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.addon-footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.addon-footer form {
  display: block;
}

/* ========== Config Accordion ========== */
.config-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.config-accordion-header:hover .config-accordion-icon {
  color: var(--accent);
}

.config-accordion-header h2 {
  margin: 0;
}

.config-accordion-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: color var(--transition);
  line-height: 1;
}

.config-accordion-body {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ========== Jobs DarkRP ========== */
.jobs-category {
  margin-top: 1.5rem;
}

.jobs-category-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.job-item:hover {
  border-color: rgba(0, 229, 255, 0.08);
  background: rgba(0, 229, 255, 0.02);
}

.job-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.job-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.job-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.job-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.job-actions {
  flex-shrink: 0;
}

/* Job category collapse */
.jobs-category-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.3rem 0;
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.jobs-category-header:hover { opacity: 0.8; }
.jobs-category-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 14px;
  text-align: center;
}
.jobs-list--collapsed { display: none; }

/* Model preview */
.model-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.model-preview-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
}
.model-preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.65rem;
  color: #fff;
  flex-shrink: 0;
}
.model-preview-item--hl2 .model-preview-icon { background: #3b82f6; }
.model-preview-item--combine .model-preview-icon { background: #ef4444; }
.model-preview-item--css .model-preview-icon { background: #f59e0b; }
.model-preview-item--prop .model-preview-icon { background: #8b5cf6; }
.model-preview-item--weapon .model-preview-icon { background: #f97316; }
.model-preview-item--unknown .model-preview-icon { background: #64748b; }
.model-preview-label { color: var(--text-muted); }

/* Model picker */
.model-picker {
  display: none;
  margin-top: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 0.75rem;
  max-height: 420px;
  overflow-y: auto;
}
.model-picker--open { display: block; }
.mp-category { margin-bottom: 0.75rem; }
.mp-category:last-child { margin-bottom: 0; }
.mp-category-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.35rem;
}
.mp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.3rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.mp-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.mp-item--selected {
  border-color: var(--accent);
  background: rgba(0,229,255,0.08);
  box-shadow: 0 0 8px rgba(0,229,255,0.12);
}
.mp-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  transition: all 0.15s;
}
.mp-item--selected .mp-item-icon {
  background: var(--accent);
  color: var(--bg-card);
}
.mp-item-img {
  width: 56px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center 15%;
  background: rgba(255,255,255,0.03);
}
.mp-item--selected .mp-item-img {
  box-shadow: 0 0 0 2px var(--accent);
  border-radius: 6px;
}
.mp-item-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Job tags */
.job-tag {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.25rem;
}
.job-tag--police { background: rgba(59,130,246,0.2); color: #60a5fa; }
.job-tag--criminel { background: rgba(239,68,68,0.2); color: #f87171; }
.job-tag--civil { background: rgba(148,163,184,0.2); color: #94a3b8; }
.job-tag--gouvernement { background: rgba(234,179,8,0.2); color: #facc15; }
.job-tag--illegal { background: rgba(239,68,68,0.15); color: #fb923c; }
.job-tag--legal { background: rgba(34,197,94,0.2); color: #4ade80; }
.job-tag--vip { background: rgba(168,85,247,0.2); color: #c084fc; }
.job-tag--staff { background: rgba(14,165,233,0.2); color: #38bdf8; }
.job-tag--neutre { background: rgba(148,163,184,0.15); color: #cbd5e1; }

/* Tag filter bar */
.tag-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tag-filter-btn {
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.tag-filter-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}
.tag-filter-btn--active {
  background: var(--accent);
  color: var(--bg-card);
  border-color: var(--accent);
}

textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}

textarea:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-input);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s;
}

input[type="checkbox"]:hover {
  border-color: var(--accent);
}

input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: solid #0a0e17;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="color"] {
  height: 38px;
  padding: 2px;
  cursor: pointer;
}

.weapons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.weapons-section {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.weapons-section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.weapon-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  text-transform: none;
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--text-secondary);
  font-weight: 400;
}

.weapon-checkbox:hover {
  color: var(--text);
}

.weapon-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-input);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s;
}

.weapon-checkbox input[type="checkbox"]:hover {
  border-color: var(--accent);
}

.weapon-checkbox input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.weapon-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: solid #0a0e17;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 640px) {
  .job-item {
    flex-wrap: wrap;
  }

  .job-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .weapons-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Maps ========== */
.map-install-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.map-install-form .form-group {
  flex: 1;
  margin-bottom: 0;
}

.maps-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.map-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  transition: all 0.3s ease;
}

.map-item:hover {
  border-color: rgba(0, 229, 255, 0.08);
  background: rgba(0, 229, 255, 0.02);
}

.map-item--active {
  border-color: rgba(52, 211, 153, 0.15);
  background: rgba(52, 211, 153, 0.02);
}

.map-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.map-preview {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-preview:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.map-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.map-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.map-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  width: fit-content;
}

.map-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .map-install-form {
    flex-direction: column;
    align-items: stretch;
  }

  .map-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .map-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ========== Map Progress ========== */
.map-progress-card {
  border-color: rgba(0, 229, 255, 0.12);
  background: linear-gradient(135deg, rgba(12, 12, 20, 0.8) 0%, rgba(0, 229, 255, 0.03) 100%);
  backdrop-filter: blur(10px);
}

.map-progress-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.map-progress-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.map-progress-text h3 {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.map-progress-text .text-muted {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.map-progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.map-progress-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
}

.map-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #80f0ff 100%);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px var(--accent-glow-strong);
}

.map-progress-percent {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 3rem;
  text-align: right;
}

.map-progress-bar--error {
  background: linear-gradient(90deg, var(--danger) 0%, #ff8a95 100%);
  box-shadow: 0 0 15px var(--danger-glow);
}

.map-progress-success {
  border-color: rgba(52, 211, 153, 0.15);
  background: linear-gradient(135deg, rgba(12, 12, 20, 0.8) 0%, rgba(52, 211, 153, 0.03) 100%);
}

.map-progress-success .map-progress-spinner {
  border: 3px solid var(--success);
  animation: none;
}

.map-progress-success .map-progress-bar {
  background: linear-gradient(90deg, var(--success) 0%, #6ee7b7 100%);
  box-shadow: 0 0 15px var(--success-glow);
}

.map-progress-error {
  border-color: rgba(255, 92, 108, 0.15);
  background: linear-gradient(135deg, rgba(12, 12, 20, 0.8) 0%, rgba(255, 92, 108, 0.03) 100%);
}

.map-progress-error .map-progress-spinner {
  animation: none;
  border: 3px solid var(--danger);
}

/* ========== Server actions ========== */
.server-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.server-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ========== Admin ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(0, 229, 255, 0.1);
}

.stat-number {
  display: block;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 0 30px var(--accent-glow);
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 0.3rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(0, 229, 255, 0.01);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.text-muted-cell {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.audit-action {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.audit-action--success {
  background: var(--success-glow);
  color: var(--success);
}

.audit-action--danger {
  background: var(--danger-glow);
  color: var(--danger);
}

.audit-action--default {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.pagination-link:hover {
  background: rgba(0, 229, 255, 0.04);
  border-color: rgba(0, 229, 255, 0.1);
  color: var(--text);
  text-decoration: none;
}

.pagination-current {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}

.pagination-current:hover {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #fff;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-actions form {
    width: 100%;
  }

  .admin-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== License ========== */
.license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .license-grid { grid-template-columns: 1fr; }
}

.license-card {
  max-width: none;
  margin: 0;
  background: rgba(12, 12, 20, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.03), var(--shadow-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.license-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  border-radius: 2px;
}

.license-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.license-header h2 {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.license-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.license-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.2rem 0;
}
.license-feature--yes::before {
  content: '\2713';
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,0.15); color: #4ade80;
  border-radius: 50%; font-size: 0.65rem; font-weight: 700; flex-shrink: 0;
}
.license-feature--no { opacity: 0.4; }
.license-feature--no::before {
  content: '\2717';
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: var(--text-muted);
  border-radius: 50%; font-size: 0.6rem; flex-shrink: 0;
}
.license-section-title {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
  margin-top: 0.6rem; margin-bottom: 0.15rem;
  padding-top: 0.4rem; border-top: 1px solid rgba(255,255,255,0.05);
}
.license-section-title:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.license-feature-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success-glow);
  color: var(--success);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.license-price {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.license-price-amount {
  display: block;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.license-price-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.license-btn {
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
}

.license-btn--disabled {
  opacity: 0.5;
  cursor: default;
  text-align: center;
  pointer-events: none;
}

.license-card--premium {
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.06), var(--shadow-lg);
  position: relative;
}

.license-card--premium::before {
  background: linear-gradient(90deg, transparent, #a855f7, #c084fc, transparent);
}

.license-badge-premium {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #a855f7, #c084fc);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.license-feature-icon--premium {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.btn-premium {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-premium:hover {
  opacity: 0.9;
}

.license-card--owned {
  opacity: 0.7;
}

.license-price-old {
  text-decoration: line-through;
  font-size: 1.2rem;
  opacity: 0.5;
  margin-right: 0.5rem;
  -webkit-text-fill-color: var(--text-muted);
}

.license-price-amount--upgrade {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.u-mx-auto { margin-left: auto; margin-right: auto; }
.u-block { display: block; }
.u-color-muted { color: var(--text-muted); }

.license-success-card {
  max-width: 480px;
  margin: 2rem auto;
  text-align: center;
  background: rgba(12, 12, 20, 0.8);
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.license-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--success-glow);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.1);
}

.license-success-card h1 {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  margin-bottom: 0.75rem;
}

/* ========== Admin Banner ========== */
.admin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
  background: rgba(168, 85, 247, 0.06);
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
  font-size: 0.78rem;
  color: var(--accent-2);
}

.admin-banner strong {
  color: #fff;
}

.admin-banner-back {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}

.admin-banner-back:hover {
  color: #fff;
}

/* ========== Profile ========== */
.profile-info {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.profile-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.badge-admin {
  background: var(--accent-2-glow);
  color: var(--accent-2);
}

.badge-admin::before {
  background: var(--accent-2);
}

.profile-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-section:first-child {
  padding-top: 1rem;
}

.profile-section h3 {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ========== Board (Roadmap) ========== */
.board-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.board-column {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.board-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.board-column-title {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.board-column-count {
  background: rgba(0, 229, 255, 0.06);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
}

.board-column-items {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 80px;
}

.board-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.board-item:hover {
  border-color: rgba(0, 229, 255, 0.08);
  background: rgba(0, 229, 255, 0.02);
}

.board-item-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  display: block;
}

.board-badge-premium {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.board-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.board-move-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.board-move-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.board-delete-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-left: auto;
  transition: all var(--transition);
}

.board-delete-btn:hover {
  background: var(--danger-glow);
  border-color: rgba(255, 92, 108, 0.2);
  color: var(--danger);
}

.board-item[draggable] {
  cursor: grab;
}

.board-item[draggable]:active {
  cursor: grabbing;
}

.board-item--dragging {
  opacity: 0.3;
}

.board-item--placeholder {
  background: var(--accent-glow);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-sm);
  min-height: 20px;
}

.board-column-items--over {
  background: rgba(0, 229, 255, 0.02);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.board-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.board-toggle-done {
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .board-columns {
    grid-template-columns: 1fr;
  }
}

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  border-top: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ========== Cookie Banner ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  background: rgba(12, 12, 20, 0.9);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  backdrop-filter: blur(20px);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
}

.cookie-banner p {
  margin: 0;
  flex: 1;
}

.cookie-banner a {
  color: var(--accent);
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
}

/* ========== Legal Pages ========== */
.legal-content {
  line-height: 1.8;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-content h2 {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.legal-content h3 {
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.legal-content p {
  margin-bottom: 0.75rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .tabs {
    padding: 0 1rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .server-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .server-actions {
    flex-direction: column;
  }
}

/* ========== Utility Classes ========== */

/* Display */
.u-inline { display: inline; }
.u-flex { display: flex; }
.u-inline-flex { display: inline-flex; }
.u-inline-block { display: inline-block; }
.u-none { display: none; }

/* Flex alignment */
.u-items-center { align-items: center; }
.u-items-end { align-items: flex-end; }
.u-justify-between { justify-content: space-between; }
.u-justify-center { justify-content: center; }
.u-flex-wrap { flex-wrap: wrap; }
.u-flex-col { flex-direction: column; }
.u-flex-1 { flex: 1; }

/* Gap */
.u-gap-050 { gap: 0.5rem; }
.u-gap-075 { gap: 0.75rem; }
.u-gap-1 { gap: 1rem; }

/* Margin */
.u-m-0 { margin: 0; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-050 { margin-bottom: 0.5rem; }
.u-mb-075 { margin-bottom: 0.75rem; }
.u-mb-1 { margin-bottom: 1rem; }
.u-mb-150 { margin-bottom: 1.5rem; }
.u-hidden { display: none !important; }
.u-mt-0 { margin-top: 0; }
.u-mt-025 { margin-top: 0.25rem; }
.u-mt-030 { margin-top: 0.3rem; }
.u-mt-050 { margin-top: 0.5rem; }
.u-mt-075 { margin-top: 0.75rem; }
.u-mt-1 { margin-top: 1rem; }
.u-mt-150 { margin-top: 1.5rem; }
.u-ml-050 { margin-left: 0.5rem; }

/* Padding */
.u-pt-075 { padding-top: 0.75rem; }
.u-p-250 { padding: 2.5rem; }
.u-pl-125 { padding-left: 1.25rem; }

/* Text */
.u-text-center { text-align: center; }
.u-text-nowrap { white-space: nowrap; }
.u-text-upper { text-transform: uppercase; }
.u-text-none { text-transform: none; }
.u-font-mono { font-family: monospace; }
.u-fw-400 { font-weight: 400; }
.u-fw-600 { font-weight: 600; }
.u-fw-700 { font-weight: 700; }
.u-fs-070 { font-size: 0.7rem; }
.u-fs-075 { font-size: 0.75rem; }
.u-fs-080 { font-size: 0.8rem; }
.u-fs-085 { font-size: 0.85rem; }
.u-fs-0875 { font-size: 0.875rem; }
.u-fs-1 { font-size: 1rem; }
.u-fs-150 { font-size: 1.5rem; }
.u-ls-1px { letter-spacing: 1px; }
.u-ls-002 { letter-spacing: -0.02em; }
.u-ls-004 { letter-spacing: 0.04em; }
.u-ls-005 { letter-spacing: 0.05em; }
.u-line-2 { line-height: 2; }
.u-line-14 { line-height: 1.4; }

/* Colors */
.u-color-danger { color: var(--danger); }
.u-color-success { color: var(--success); }
.u-color-warning { color: var(--warning); }
.u-color-muted { color: var(--text-muted); }
.u-color-secondary { color: var(--text-secondary); }
.u-color-admin { border-color: rgba(168,85,247,0.2); color: #a855f7; }

/* Sizing */
.u-maxw-480 { max-width: 480px; }
.u-maxw-520 { max-width: 520px; }
.u-maxw-250 { max-width: 250px; }
.u-maxw-1200 { max-width: 1200px; }
.u-maxw-200 { max-width: 200px; }
.u-maxw-120 { max-width: 120px; }
.u-w-160 { width: 160px; }

/* TOTP code input for admin actions */
.totp-input {
  width: 110px;
  padding: 0.5rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  letter-spacing: 2px;
  text-align: center;
  transition: all 0.3s ease;
}
.totp-input::placeholder {
  color: var(--text-muted);
  letter-spacing: 0;
  font-family: inherit;
}
.totp-input:hover {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.04);
}
.totp-input:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--accent-2-glow);
}
.totp-input--large {
  width: 180px;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  letter-spacing: 6px;
}

/* TOTP Modal */
.totp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.totp-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.totp-modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.totp-modal-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.totp-modal-content .text-muted {
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}
.totp-modal-content .totp-input {
  display: block;
  margin: 0 auto 1rem;
}
.totp-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.totp-modal-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}
.u-h-38 { height: 38px; }

/* Overflow */
.u-truncate { overflow: hidden; text-overflow: ellipsis; }

/* Specific component utilities */
.u-section-divider {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.u-section-heading {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.u-cfg-section-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.u-cfg-section-heading-first {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.u-tag-chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

.u-addon-chip {
  background: var(--success-glow);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--success);
}

.u-job-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.3rem;
}

.u-ban-input {
  padding: 0.4rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.8rem;
  width: 200px;
}

.u-2fa-code-input {
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 8px;
  font-weight: 700;
}

.u-cancel-link {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.u-delete-card-border { border-color: rgba(255, 92, 108, 0.2); }

.u-warning-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--danger-glow);
  color: var(--danger);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.u-centered-wrapper {
  max-width: 480px;
  margin: 2rem auto;
  text-align: center;
}

.u-badge-compact { padding: 0.15rem 0.5rem; }

.u-grid-2col { grid-template-columns: repeat(2, 1fr); }

/* Lightbox */
.u-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.u-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #aaa;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.u-lightbox-img {
  max-width: 85vw;
  max-height: 70vh;
  border-radius: 8px;
}

/* Config accordion body hidden by default */
.config-accordion-body--hidden { display: none; }

/* ========== Theme Switcher ========== */
.theme-selector {
  position: relative;
  display: inline-block;
}

.theme-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-selector-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.theme-selector-btn .theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  flex-shrink: 0;
}

.theme-selector-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
}

.theme-selector-menu.open {
  display: block;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.theme-option:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.theme-option.active {
  color: var(--accent);
}

.theme-option .theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.theme-option.active .theme-dot {
  border-color: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* ========== Vaporwave Fonts ========== */
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Pacifico.ttf') format('truetype');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Quicksand-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Quicksand-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Quicksand-Bold.ttf') format('truetype');
}

/* ========== Theme: Vaporwave ========== */
[data-theme="vapor"] {
  --bg-body: #1a0a2e;
  --bg-surface: rgba(30, 16, 53, 0.85);
  --bg-card: rgba(255, 113, 206, 0.03);
  --bg-input: rgba(255, 113, 206, 0.04);
  --bg-input-focus: rgba(255, 113, 206, 0.06);
  --bg-hover: rgba(255, 113, 206, 0.06);
  --border: rgba(255, 113, 206, 0.08);
  --border-light: rgba(255, 113, 206, 0.15);
  --text: #f0e6ff;
  --text-secondary: #b090d0;
  --text-muted: #6a4a8a;
  --accent: #ff71ce;
  --accent-hover: #ff99dd;
  --accent-glow: rgba(255, 113, 206, 0.12);
  --accent-glow-strong: rgba(255, 113, 206, 0.25);
  --accent-2: #01cdfe;
  --accent-2-glow: rgba(1, 205, 254, 0.12);
  --danger: #ff3860;
  --danger-hover: #e82050;
  --danger-glow: rgba(255, 56, 96, 0.12);
  --success: #05ffa1;
  --success-glow: rgba(5, 255, 161, 0.12);
  --warning: #ffe66d;
  --warning-glow: rgba(255, 230, 109, 0.12);
  --info: #b967ff;
  --info-glow: rgba(185, 103, 255, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 8px 30px rgba(255, 113, 206, 0.05);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4), 0 20px 60px rgba(255, 113, 206, 0.06);
  --bg-glow-1: rgba(255, 113, 206, 0.04);
  --bg-glow-2: rgba(1, 205, 254, 0.03);
}

/* ========== Vaporwave Full Overrides ========== */

/* --- Body & Background --- */
[data-theme="vapor"] body {
  font-family: 'Quicksand', system-ui, sans-serif;
  background-image: none;
}
[data-theme="vapor"] body::before {
  background:
    radial-gradient(ellipse 900px 500px at 15% 10%, rgba(255,113,206,0.08), transparent 60%),
    radial-gradient(ellipse 700px 700px at 85% 80%, rgba(1,205,254,0.06), transparent 60%),
    radial-gradient(ellipse 500px 400px at 50% 50%, rgba(185,103,255,0.04), transparent 60%),
    linear-gradient(180deg, #1a0a2e 0%, #0d0221 40%, #150833 70%, #261447 100%);
}

/* --- Navbar --- */
[data-theme="vapor"] .navbar {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ff71ce, #01cdfe, #b967ff) 1;
}
[data-theme="vapor"] .navbar-brand a {
  font-family: 'Pacifico', cursive;
  font-size: 1.3rem;
  font-weight: 400;
  background: linear-gradient(90deg, #ff71ce, #01cdfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255,113,206,0.4));
}
[data-theme="vapor"] .navbar-brand a::before {
  background: linear-gradient(135deg, #ff71ce, #01cdfe);
  box-shadow: 0 0 12px rgba(255,113,206,0.5), 0 0 4px #ff71ce;
}
[data-theme="vapor"] .navbar-user-link { color: #b090d0; }
[data-theme="vapor"] .navbar-user-link:hover { color: #ff71ce; }

/* --- Tabs --- */
[data-theme="vapor"] .tabs { border-bottom: 1px solid rgba(255,113,206,0.1); }
[data-theme="vapor"] .tab { border-radius: 20px; font-weight: 600; }
[data-theme="vapor"] .tab:hover { color: #01cdfe; }
[data-theme="vapor"] .tab-active { color: var(--text); }
[data-theme="vapor"] .tab-active::after {
  background: linear-gradient(90deg, #ff71ce, #01cdfe);
  box-shadow: 0 0 12px rgba(255,113,206,0.3);
}
[data-theme="vapor"] .tab-sep {
  background: linear-gradient(180deg, #ff71ce, #01cdfe);
  width: 2px; opacity: 0.3;
}
[data-theme="vapor"] .tab--premium { color: #01cdfe; }
[data-theme="vapor"] .tab--premium:hover { color: #5fffff; }
[data-theme="vapor"] .tab--premium.tab-active { color: #01cdfe; }
[data-theme="vapor"] .tab--premium.tab-active::after {
  background: linear-gradient(90deg, #01cdfe, #b967ff);
  box-shadow: 0 0 12px rgba(1,205,254,0.3);
}

/* --- Links --- */
[data-theme="vapor"] a { color: #ff71ce; }
[data-theme="vapor"] a:hover { color: #ff99dd; }

/* --- Headings (Pacifico gradient) --- */
[data-theme="vapor"] h1,
[data-theme="vapor"] h2,
[data-theme="vapor"] h3,
[data-theme="vapor"] .dashboard h1,
[data-theme="vapor"] .card h2,
[data-theme="vapor"] .auth-card h1,
[data-theme="vapor"] .license-header h2,
[data-theme="vapor"] .config-section h3 {
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  background: linear-gradient(90deg, #ff71ce, #01cdfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0;
}

/* --- Buttons --- */
[data-theme="vapor"] .btn {
  border-radius: 25px;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 700;
}
[data-theme="vapor"] .btn-primary {
  background: linear-gradient(135deg, #ff71ce, #b967ff);
  border: none; color: #fff;
  box-shadow: 0 4px 20px rgba(255,113,206,0.2);
}
[data-theme="vapor"] .btn-primary:hover {
  box-shadow: 0 6px 30px rgba(255,113,206,0.35);
  transform: translateY(-2px);
}
[data-theme="vapor"] .btn-primary::after { display: none; }
[data-theme="vapor"] .btn-outline {
  border: 1px solid rgba(255,113,206,0.25);
  color: rgba(255,113,206,0.7);
}
[data-theme="vapor"] .btn-outline:hover {
  background: rgba(255,113,206,0.08);
  border-color: #ff71ce;
  color: #ff71ce;
  box-shadow: 0 0 15px rgba(255,113,206,0.15);
}
[data-theme="vapor"] .btn-danger {
  background: rgba(255,56,96,0.08);
  border: 1px solid rgba(255,56,96,0.15);
  color: #ff3860;
}
[data-theme="vapor"] .btn-danger:hover {
  background: #ff3860; color: #fff;
  border-color: #ff3860;
  box-shadow: 0 4px 20px rgba(255,56,96,0.25);
}
[data-theme="vapor"] .btn-sm { border-radius: 20px; }

/* --- Cards --- */
[data-theme="vapor"] .card {
  background: linear-gradient(135deg, rgba(30,16,53,0.9), rgba(38,20,71,0.8));
  border: 1px solid rgba(255,113,206,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,113,206,0.05);
}
[data-theme="vapor"] .card:hover {
  border-color: rgba(255,113,206,0.25);
  box-shadow: 0 8px 32px rgba(255,113,206,0.08), 0 4px 24px rgba(0,0,0,0.3);
}

/* --- Auth card --- */
[data-theme="vapor"] .auth-card {
  background: linear-gradient(135deg, rgba(30,16,53,0.95), rgba(38,20,71,0.9));
  border-color: rgba(255,113,206,0.12);
  box-shadow: 0 0 60px rgba(255,113,206,0.05), var(--shadow-lg);
}
[data-theme="vapor"] .auth-card::before {
  background: linear-gradient(90deg, transparent, #ff71ce, #01cdfe, transparent);
}

/* --- Forms --- */
[data-theme="vapor"] .form-group label {
  color: #ff71ce;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 700;
}
[data-theme="vapor"] .form-group input,
[data-theme="vapor"] .form-group select,
[data-theme="vapor"] .form-group textarea {
  font-family: 'Quicksand', system-ui, sans-serif;
  border-radius: 12px;
  border-color: rgba(255,113,206,0.12);
  background: rgba(255,113,206,0.04);
}
[data-theme="vapor"] .form-group input:hover,
[data-theme="vapor"] .form-group select:hover {
  border-color: rgba(255,113,206,0.2);
  background: rgba(255,113,206,0.06);
}
[data-theme="vapor"] .form-group input:focus,
[data-theme="vapor"] .form-group select:focus,
[data-theme="vapor"] .form-group textarea:focus {
  border-color: #ff71ce;
  background: rgba(255,113,206,0.06);
  box-shadow: 0 0 0 4px rgba(255,113,206,0.1), 0 0 20px rgba(255,113,206,0.08);
}
[data-theme="vapor"] select {
  background-color: rgba(30,16,53,0.9);
  border-color: rgba(255,113,206,0.12);
  color: var(--text);
  border-radius: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ff71ce'/%3E%3C/svg%3E");
}
[data-theme="vapor"] select:focus { border-color: #ff71ce; }
[data-theme="vapor"] select option { background: #1e1035; color: #f0e6ff; }
[data-theme="vapor"] select option:hover,
[data-theme="vapor"] select option:focus,
[data-theme="vapor"] select option:checked {
  background: linear-gradient(0deg, rgba(255,113,206,0.15) 0%, rgba(255,113,206,0.15) 100%);
  color: #ff71ce;
}
[data-theme="vapor"] .form-group select { background-color: rgba(30,16,53,0.9); }

/* Checkboxes */
[data-theme="vapor"] input[type="checkbox"] {
  border-radius: 50%;
  border: 2px solid rgba(255,113,206,0.3);
}
[data-theme="vapor"] input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #ff71ce, #01cdfe);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(255,113,206,0.4);
}

/* Color inputs */
[data-theme="vapor"] input[type="color"] { border-radius: 50%; }

/* Sliders */
[data-theme="vapor"] input[type="range"] {
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,113,206,0.15), rgba(1,205,254,0.15));
}
[data-theme="vapor"] input[type="range"]::-webkit-slider-thumb {
  background: linear-gradient(135deg, #ff71ce, #01cdfe);
  box-shadow: 0 0 12px rgba(255,113,206,0.5);
  border-radius: 50%;
}

/* --- Alerts --- */
[data-theme="vapor"] .alert { border-radius: 12px; }
[data-theme="vapor"] .alert-success {
  background: rgba(5,255,161,0.06);
  border-color: rgba(5,255,161,0.15);
  color: #05ffa1;
}
[data-theme="vapor"] .alert-error {
  background: rgba(255,56,96,0.06);
  border-color: rgba(255,56,96,0.15);
  color: #ff6b8a;
}
[data-theme="vapor"] .alert-info {
  background: rgba(185,103,255,0.06);
  border-color: rgba(185,103,255,0.15);
  color: #d4a0ff;
}

/* --- Badges --- */
[data-theme="vapor"] .badge { font-weight: 700; }
[data-theme="vapor"] .badge-ready {
  background: rgba(5,255,161,0.12);
  color: #05ffa1;
  box-shadow: 0 0 15px rgba(5,255,161,0.08);
}
[data-theme="vapor"] .badge-ready::before { background: #05ffa1; }
[data-theme="vapor"] .badge-error {
  background: rgba(255,56,96,0.12);
  color: #ff3860;
}
[data-theme="vapor"] .badge-error::before { background: #ff3860; }
[data-theme="vapor"] .badge-installing,
[data-theme="vapor"] .badge-configuring {
  background: rgba(255,230,109,0.12);
  color: #ffe66d;
}
[data-theme="vapor"] .badge-installing::before,
[data-theme="vapor"] .badge-configuring::before { background: #ffe66d; }

/* --- Server info --- */
[data-theme="vapor"] .info-item {
  background: rgba(255,113,206,0.04);
  border-color: rgba(255,113,206,0.08);
  border-radius: 12px;
}
[data-theme="vapor"] .info-item:hover {
  border-color: rgba(1,205,254,0.15);
  background: rgba(1,205,254,0.04);
}
[data-theme="vapor"] .info-label { color: #ff71ce; }
[data-theme="vapor"] .info-value {
  color: #01cdfe;
  text-shadow: 0 0 8px rgba(1,205,254,0.3);
}

/* --- Addon cards --- */
[data-theme="vapor"] .addon-card {
  background: linear-gradient(135deg, rgba(30,16,53,0.8), rgba(38,20,71,0.7));
  border-color: rgba(255,113,206,0.08);
}
[data-theme="vapor"] .addon-card:hover {
  border-color: rgba(1,205,254,0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(1,205,254,0.05);
}
[data-theme="vapor"] .addon-card--installed { border-color: rgba(5,255,161,0.12); }
[data-theme="vapor"] .addon-card--installed:hover { border-color: rgba(5,255,161,0.25); }
[data-theme="vapor"] .addon-icon {
  background: rgba(255,113,206,0.12);
  color: #ff71ce;
}
[data-theme="vapor"] .addon-card--installed .addon-icon {
  background: rgba(5,255,161,0.12);
  color: #05ffa1;
}
[data-theme="vapor"] .addon-icon--premium {
  background: rgba(185,103,255,0.15);
  color: #d4a0ff;
}
[data-theme="vapor"] .addon-badge-premium {
  background: linear-gradient(135deg, #ff71ce, #b967ff);
}
[data-theme="vapor"] .addons-category-title {
  color: #ff71ce;
  border-bottom-color: rgba(255,113,206,0.1);
  font-family: 'Quicksand', system-ui, sans-serif;
}
[data-theme="vapor"] .addons-section-header { background: linear-gradient(135deg, rgba(30,16,53,0.9), rgba(38,20,71,0.8)); border-color: rgba(255,113,206,0.1); }
[data-theme="vapor"] .addons-section-header:hover { border-color: rgba(255,113,206,0.2); }
[data-theme="vapor"] .addons-section-header--premium .addons-section-title { color: #01cdfe; }
[data-theme="vapor"] .addons-section-header--premium .addons-section-count { background: rgba(1,205,254,0.1); color: #01cdfe; }

/* --- Tables --- */
[data-theme="vapor"] th {
  color: #ff71ce;
  border-bottom: 2px solid rgba(255,113,206,0.15);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.7rem;
}
[data-theme="vapor"] td { border-bottom-color: rgba(255,113,206,0.05); }
[data-theme="vapor"] tr:hover td { background: rgba(255,113,206,0.03); }

/* --- License cards --- */
[data-theme="vapor"] .license-card {
  background: linear-gradient(135deg, rgba(30,16,53,0.95), rgba(38,20,71,0.9));
  border-color: rgba(255,113,206,0.12);
  box-shadow: 0 0 60px rgba(255,113,206,0.05), var(--shadow-lg);
}
[data-theme="vapor"] .license-card::before {
  background: linear-gradient(90deg, transparent, #ff71ce, #01cdfe, transparent);
}
[data-theme="vapor"] .license-price-amount {
  background: linear-gradient(135deg, #ff71ce, #01cdfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="vapor"] .license-feature-icon {
  background: rgba(5,255,161,0.12);
  color: #05ffa1;
}

/* --- Config section --- */
[data-theme="vapor"] .config-section {
  border-top-color: rgba(255,113,206,0.08);
}
[data-theme="vapor"] .config-section h3 {
  color: #ff71ce;
  font-family: 'Quicksand', system-ui, sans-serif;
}

/* --- Maps --- */
[data-theme="vapor"] .map-card {
  background: linear-gradient(135deg, rgba(30,16,53,0.8), rgba(38,20,71,0.7));
  border-color: rgba(255,113,206,0.08);
}
[data-theme="vapor"] .map-card:hover {
  border-color: rgba(1,205,254,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(1,205,254,0.08);
}

/* --- Admin --- */
[data-theme="vapor"] .admin-banner {
  background: linear-gradient(135deg, rgba(255,113,206,0.08), rgba(185,103,255,0.06));
  border-bottom: 1px solid rgba(255,113,206,0.12);
}
[data-theme="vapor"] .u-color-admin { color: #b967ff; }

/* --- Profile --- */
[data-theme="vapor"] .profile-card {
  background: linear-gradient(135deg, rgba(30,16,53,0.9), rgba(38,20,71,0.8));
}

/* --- Board --- */
[data-theme="vapor"] .board-column {
  background: linear-gradient(135deg, rgba(30,16,53,0.7), rgba(38,20,71,0.6));
}
[data-theme="vapor"] .board-card {
  background: rgba(255,113,206,0.04);
  border-color: rgba(255,113,206,0.1);
}
[data-theme="vapor"] .board-card:hover {
  border-color: rgba(255,113,206,0.2);
}

/* --- Footer --- */
[data-theme="vapor"] .footer {
  border-top: 1px solid rgba(255,113,206,0.08);
}
[data-theme="vapor"] .footer a { color: #b090d0; }
[data-theme="vapor"] .footer a:hover { color: #ff71ce; }

/* --- Cookie banner --- */
[data-theme="vapor"] .cookie-banner {
  background: linear-gradient(135deg, rgba(30,16,53,0.98), rgba(38,20,71,0.95));
  border-top: 1px solid rgba(255,113,206,0.15);
}

/* --- Scrollbar --- */
[data-theme="vapor"]::-webkit-scrollbar { width: 8px; background: #1a0a2e; }
[data-theme="vapor"]::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff71ce, #01cdfe);
  border-radius: 10px;
}
[data-theme="vapor"]::-webkit-scrollbar-thumb:hover { background: #ff71ce; }

/* --- Spinner --- */
[data-theme="vapor"] .spinner,
[data-theme="vapor"] .ec-spinner {
  border-color: rgba(255,113,206,0.15);
  border-top-color: #ff71ce;
  border-right-color: #01cdfe;
}

/* --- Theme selector --- */
[data-theme="vapor"] .theme-selector-btn {
  border-color: rgba(255,113,206,0.3);
  border-radius: 20px;
}
[data-theme="vapor"] .theme-selector-btn:hover {
  border-color: #ff71ce;
  box-shadow: 0 0 15px rgba(255,113,206,0.2);
}
[data-theme="vapor"] .theme-selector-menu {
  background: rgba(30,16,53,0.95);
  border-color: rgba(255,113,206,0.15);
  border-radius: 12px;
}
[data-theme="vapor"] .theme-option:hover {
  background: rgba(255,113,206,0.08);
}

/* --- Error check --- */
[data-theme="vapor"] .error-check-badge {
  background: rgba(255,113,206,0.15);
  color: #ff71ce;
}
[data-theme="vapor"] .error-check-item {
  border-color: rgba(255,113,206,0.08);
}

/* --- HUD editor panel --- */
[data-theme="vapor"] .he-panel {
  background: linear-gradient(180deg, rgba(30,16,53,0.95), rgba(38,20,71,0.9));
}

/* --- Jobs --- */
[data-theme="vapor"] .job-card {
  background: linear-gradient(135deg, rgba(30,16,53,0.85), rgba(38,20,71,0.75));
  border-color: rgba(255,113,206,0.08);
}
[data-theme="vapor"] .job-card:hover {
  border-color: rgba(255,113,206,0.2);
}

/* --- Editor --- */
[data-theme="vapor"] .editor-sidebar { background: linear-gradient(135deg, rgba(30,16,53,0.9), rgba(38,20,71,0.8)); border-color: rgba(255,113,206,0.1); }
[data-theme="vapor"] .editor-main { background: linear-gradient(135deg, rgba(30,16,53,0.9), rgba(38,20,71,0.8)); border-color: rgba(255,113,206,0.1); }
[data-theme="vapor"] .editor-tree-toggle { color: #01cdfe; }
[data-theme="vapor"] .editor-tree-file--active { background: rgba(255,113,206,0.12); color: #ff71ce; }
[data-theme="vapor"] .editor-lang-badge { background: rgba(255,113,206,0.12); color: #ff71ce; }
[data-theme="vapor"] .editor-tool-btn--active { background: rgba(255,113,206,0.12); color: #ff71ce; border-color: rgba(255,113,206,0.2); }
[data-theme="vapor"] .editor-textarea::selection { background: rgba(255,113,206,0.15); }
[data-theme="vapor"] .editor-textarea { caret-color: #ff71ce; }
[data-theme="vapor"] .hl-keyword { color: #ff71ce; }
[data-theme="vapor"] .hl-builtin { color: #01cdfe; }
[data-theme="vapor"] .hl-string { color: #05ffa1; }
[data-theme="vapor"] .hl-number { color: #ffe66d; }
[data-theme="vapor"] .hl-comment { color: #6a4a8a; }
[data-theme="vapor"] .hl-key { color: #b967ff; }

/* --- Code / monospace --- */
[data-theme="vapor"] code {
  background: rgba(255,113,206,0.06);
  color: #01cdfe;
  border-color: rgba(255,113,206,0.1);
}

/* --- Utility overrides --- */
[data-theme="vapor"] .u-color-error { color: #ff3860; }
[data-theme="vapor"] .u-color-success { color: #05ffa1; }
[data-theme="vapor"] .u-color-warning { color: #ffe66d; }

/* --- New components vapor overrides --- */
[data-theme="vapor"] .toast--success { background: rgba(5,255,161,0.12); border-color: #05ffa1; color: #05ffa1; }
[data-theme="vapor"] .toast--error { background: rgba(255,56,96,0.12); border-color: #ff3860; color: #ff3860; }
[data-theme="vapor"] .toast--info { background: rgba(1,205,254,0.12); border-color: #01cdfe; color: #01cdfe; }
[data-theme="vapor"] .overview-badge { background: rgba(255,113,206,0.15); color: #ff71ce; border-color: rgba(255,113,206,0.2); }
[data-theme="vapor"] .overview-stat-num { color: #01cdfe; }
[data-theme="vapor"] .onboarding-banner { border-color: rgba(255,113,206,0.2); }
[data-theme="vapor"] .onboarding-banner h3 { color: #ff71ce; }
[data-theme="vapor"] .onboarding-step:hover { border-color: #ff71ce; background: rgba(255,113,206,0.08); }
[data-theme="vapor"] .onboarding-step--primary { background: linear-gradient(135deg, #ff71ce, #01cdfe); color: #1a0a2e; }
[data-theme="vapor"] .perm-group-icon { box-shadow: 0 0 8px rgba(255,113,206,0.3); }
[data-theme="vapor"] .perm-category { border-color: rgba(255,113,206,0.08); }
[data-theme="vapor"] .perm-category-title { color: #ff71ce; border-color: rgba(255,113,206,0.1); }
[data-theme="vapor"] .workshop-card { border-color: rgba(255,113,206,0.1); }
[data-theme="vapor"] .workshop-card-title:hover { color: #ff71ce; }
[data-theme="vapor"] .collab-role-badge--editor { background: rgba(1,205,254,0.15); color: #01cdfe; }
[data-theme="vapor"] .collab-role-badge--editor_jobs { background: rgba(255,113,206,0.15); color: #ff71ce; }
[data-theme="vapor"] .tab-dropdown-menu { background: #1a0a2e; border-color: rgba(255,113,206,0.15); }
[data-theme="vapor"] .tab-dropdown-item:hover { background: rgba(255,113,206,0.1); color: #ff71ce; }
[data-theme="vapor"] .tab-dropdown-item--active { color: #ff71ce; background: rgba(255,113,206,0.08); }
[data-theme="vapor"] .search-results { background: #1a0a2e; border-color: rgba(255,113,206,0.15); }
[data-theme="vapor"] .search-result-type { background: rgba(255,113,206,0.15); color: #ff71ce; }
[data-theme="vapor"] .search-result-item:hover { background: rgba(255,113,206,0.06); }
[data-theme="vapor"] .wizard-choice--selected { border-color: #ff71ce; background: rgba(255,113,206,0.08); box-shadow: 0 0 16px rgba(255,113,206,0.15); }
[data-theme="vapor"] .wizard-choice-icon { color: #ff71ce; }
[data-theme="vapor"] .wizard-choice--selected .wizard-choice-icon { background: #ff71ce; color: #1a0a2e; }
[data-theme="vapor"] .wizard-map-option--selected { border-color: #ff71ce; background: rgba(255,113,206,0.08); }
[data-theme="vapor"] .wizard-step-indicator--active { background: #ff71ce; border-color: #ff71ce; box-shadow: 0 0 12px rgba(255,113,206,0.4); }
[data-theme="vapor"] .wizard-step-indicator--done { background: rgba(5,255,161,0.15); color: #05ffa1; border-color: rgba(5,255,161,0.3); }
[data-theme="vapor"] .stat-value { color: #01cdfe; }
[data-theme="vapor"] .tag-filter-btn--active { background: #ff71ce; color: #1a0a2e; border-color: #ff71ce; }
[data-theme="vapor"] .validator-item--error { background: rgba(255,56,96,0.1); color: #ff3860; border-color: #ff3860; }
[data-theme="vapor"] .validator-item--warn { background: rgba(255,230,109,0.08); color: #ffe66d; border-color: #ffe66d; }
[data-theme="vapor"] .file-drop { border-color: rgba(255,113,206,0.15); }
[data-theme="vapor"] .file-drop--drag { border-color: #ff71ce; background: rgba(255,113,206,0.06); }
[data-theme="vapor"] .file-drop--has-file { border-color: rgba(5,255,161,0.3); background: rgba(5,255,161,0.04); }
[data-theme="vapor"] .file-drop-link { color: #ff71ce; }
[data-theme="vapor"] .mp-item--selected { border-color: #ff71ce; background: rgba(255,113,206,0.1); }
[data-theme="vapor"] .mp-item--selected .mp-item-img { box-shadow: 0 0 0 2px #ff71ce; }

/* F1 Menu editor */
.f1m-globals { display: flex; gap: 1rem; align-items: center; margin: 1rem 0; flex-wrap: wrap; }
.f1m-globals label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }
.f1m-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1rem; margin-top: 1rem; }
.f1m-sidebar { background: rgba(0,0,0,0.25); padding: .75rem; border-radius: 6px; max-height: 70vh; overflow-y: auto; }
.f1m-sidebar-head { font-weight: bold; margin-bottom: .5rem; }
.f1m-tab-list { list-style: none; padding: 0; margin: 0 0 .5rem 0; }
.f1m-tab-item { display: flex; align-items: center; gap: .25rem; padding: .4rem .5rem; margin-bottom: .25rem; border-radius: 4px; background: rgba(255,255,255,0.04); cursor: pointer; }
.f1m-tab-item--active { background: rgba(0,229,255,0.18); border-left: 3px solid #00e5ff; }
.f1m-tab-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f1m-editor { background: rgba(0,0,0,0.2); padding: 1rem; border-radius: 6px; min-height: 300px; }
.f1m-field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .75rem; }
.f1m-field > span { font-size: .85rem; opacity: .8; }
.f1m-content-edit { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.f1m-block { padding: .75rem; background: rgba(255,255,255,0.03); border-radius: 4px; margin-bottom: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.f1m-row { display: flex; gap: .5rem; margin-bottom: .5rem; align-items: center; }
.f1m-row input { flex: 1; }
.f1m-actions { margin-top: 1.5rem; display: flex; gap: .5rem; }
.btn-icon { padding: .2rem .5rem; background: rgba(255,255,255,0.1); border: none; color: inherit; cursor: pointer; border-radius: 3px; font-family: monospace; }
.btn-icon:hover { background: rgba(255,255,255,0.2); }
.f1m-del:hover { background: rgba(220,53,69,0.4); }
.f1m-hidden { display: none !important; }
.f1m-preview-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.f1m-preview-card { background: #1a1e2a; width: 700px; max-width: 92vw; max-height: 85vh; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; }
.f1m-preview-head { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; background: rgba(0,0,0,0.4); }
.f1m-preview-tabs { display: flex; gap: .25rem; padding: .5rem 1rem; background: rgba(0,0,0,0.25); overflow-x: auto; }
.f1m-preview-tab { padding: .4rem .75rem; background: rgba(255,255,255,0.05); border: none; color: inherit; cursor: pointer; border-radius: 4px; white-space: nowrap; }
.f1m-preview-tab--active { background: rgba(0,229,255,0.25); }
.f1m-preview-content { flex: 1; overflow-y: auto; padding: 1rem; }
.f1m-preview-content pre { white-space: pre-wrap; font-family: inherit; margin: 0 0 .75rem 0; }

/* Presets bar + side-by-side editor + draggable live preview window */
.f1m-presets-bar { padding: .75rem 1rem; margin-bottom: 1rem; }
.f1m-presets-bar select { padding: .4rem .5rem; }
.f1m-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 1.25rem; align-items: start; margin-top: 1rem; }
@media (max-width: 1100px) { .f1m-split { grid-template-columns: 1fr; } }
.f1m-edit-pane { min-width: 0; }
.f1m-preview-slot { min-height: 1px; }

.f1m-preview-pane {
  background: rgba(15, 18, 26, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,229,255,0.05);
  display: flex;
  flex-direction: column;
}
.f1m-preview-pane--floating {
  position: fixed;
  width: 460px;
  max-width: calc(100vw - 32px);
  z-index: 50;
  backdrop-filter: blur(6px);
}
.f1m-preview-pane-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px 8px 0 0;
  cursor: grab;
  user-select: none;
}
.f1m-preview-pane-head:active { cursor: grabbing; }
.f1m-preview-pane-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.f1m-preview-pane-title { font-weight: 600; font-size: .85rem; opacity: .85; }
.f1m-preview-pane-spacer { flex: 1; }
.f1m-preview-pane-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  width: 24px; height: 24px;
  border-radius: 4px;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.f1m-preview-pane-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.f1m-preview-pane-body { padding: .75rem; }
.f1m-preview-pane--collapsed .f1m-preview-pane-body { display: none; }
.f1m-preview-mock { background: #14181f; border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden; min-height: 360px; display: flex; flex-direction: column; }
.f1m-mock-titlebar { display: flex; align-items: center; gap: .35rem; padding: .5rem .75rem; background: rgba(0,0,0,0.35); border-bottom: 1px solid rgba(255,255,255,0.06); }
.f1m-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.f1m-mock-title { margin-left: .5rem; font-size: .85rem; font-weight: 600; opacity: .85; }
.f1m-mock-tabs { display: flex; flex-wrap: wrap; gap: 0; padding: 0 .5rem; background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(255,255,255,0.06); }
.f1m-mock-tab { padding: .55rem .85rem; background: transparent; border: none; border-bottom: 2px solid transparent; color: rgba(255,255,255,0.65); cursor: pointer; font-size: .8rem; }
.f1m-mock-tab--active { color: #fff; }
.f1m-mock-body { flex: 1; padding: 1rem; overflow-y: auto; max-height: 420px; }
.f1m-mock-text { white-space: pre-wrap; font-family: inherit; margin: 0 0 .75rem 0; font-size: .85rem; opacity: .85; }
.f1m-mock-heading { margin: .5rem 0 .25rem 0; font-size: .95rem; }
.f1m-mock-list { padding-left: 1.25rem; margin: 0; }
.f1m-mock-list li { margin-bottom: .35rem; font-size: .85rem; opacity: .85; }
.f1m-mock-link { display: block; padding: .55rem .85rem; margin-bottom: .4rem; border-radius: 4px; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; text-align: center; }
.f1m-mock-link:hover { filter: brightness(1.1); }

/* Download chooser (Windows / Linux) */
.dl-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.dl-choice-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.dl-choice-card h2 { margin: .5rem 0 .5rem 0; }
.dl-choice-icon {
  display: inline-block;
  padding: .35rem .75rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: .25rem;
}
.dl-choice-icon--win { background: rgba(0,120,212,0.18); color: #4aa3df; border: 1px solid rgba(0,120,212,0.35); }
.dl-choice-icon--linux { background: rgba(255,165,0,0.15); color: #ffb84d; border: 1px solid rgba(255,165,0,0.35); }
.dl-choice-list { padding-left: 1.25rem; margin: .5rem 0 1rem 0; opacity: .8; font-size: .85rem; }
.dl-choice-list li { margin-bottom: .25rem; }
.dl-choice-card .btn { margin-top: auto; }

/* Linux install command */
.dl-cmd-wrap { position: relative; margin: .5rem 0 1rem 0; }
.dl-cmd {
  background: #0a0d14;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .85rem;
  color: #a8e1ff;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
  margin: 0;
}
.dl-cmd-wrap .btn { position: absolute; top: .5rem; right: .5rem; }

.u-w100 { width: 100%; }
.u-mt-1 { margin-top: 1rem; }

/* END THEMES */

/* ========== Demo banner ========== */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, var(--accent)));
  color: #0a0e17;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.demo-banner-actions { display: flex; gap: 0.5rem; }
.demo-banner .btn { font-weight: 600; }
.demo-banner + .navbar { top: 42px; }

/* ========== AI addon config widgets ========== */
.ai-vector-input { display: flex; gap: 0.5rem; }
.ai-vector-input input { flex: 1; }
.ai-list-input, .ai-kv-input { display: flex; flex-direction: column; gap: 0.4rem; }
.ai-list-row, .ai-kv-row { display: flex; gap: 0.4rem; align-items: center; }
.ai-list-row input { flex: 1; }
.ai-kv-row .ai-kv-key { flex: 1; }
.ai-kv-row .ai-kv-val { flex: 2; }
.ai-list-add, .ai-kv-add { align-self: flex-start; margin-top: 0.3rem; }

/* ========== AI loading overlay ========== */
.ai-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.ai-loading-overlay--visible { display: flex !important; }
.ai-loading-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.ai-loading-box h3 { margin: 1rem 0 0.5rem; }
.ai-loading-box--ad { max-width: 560px; padding: 2rem 2.5rem 1.75rem; }
.ai-loading-header h3 { margin-top: 0; }
.ai-loading-header p { font-size: 0.9rem; }
.ai-loading-ad {
  margin: 1.5rem 0 1.25rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.ai-loading-ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-align: center;
}
.ai-loading-ad-slot {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-loading-ad-placeholder {
  width: 300px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}
.ai-loading-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
.ai-loading-spinner-small {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 229, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ai-spin 0.9s linear infinite;
}
.ai-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 229, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: ai-spin 0.9s linear infinite;
}
.u-no-scroll { overflow: hidden; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-loading-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 1.5rem 0 0.75rem;
  position: relative;
}
.ai-loading-bar-fill {
  position: absolute;
  inset: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: ai-bar 1.6s ease-in-out infinite;
}
@keyframes ai-bar {
  0% { left: -30%; }
  100% { left: 100%; }
}
.ai-loading-ad-iframe { width: 320px; height: 270px; border: 0; background: transparent; display: block; }

/* AI usage budget bar */
.ai-budget-card { background: rgba(0,0,0,0.2); }
.ai-budget-bar { width: 200px; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.ai-budget-bar-fill { height: 100%; background: var(--accent); transition: width 0.3s; width: 0; }
.ai-budget-bar-fill--warn { background: #f39c12; }
.ai-budget-bar-fill--danger { background: #e74c3c; }

.ai-color-input { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ai-color-input input[type="color"] { width: 48px; height: 36px; padding: 2px; cursor: pointer; }
.ai-color-alpha-label { display: flex; align-items: center; gap: .5rem; font-size: .85rem; opacity: .85; }
.ai-color-alpha { width: 100px; }

.ai-restore-list { display: flex; flex-direction: column; gap: .4rem; }
.ai-restore-item { display: flex; align-items: center; justify-content: space-between; padding: .5rem .75rem; background: rgba(255,255,255,0.03); border-radius: 4px; }
.ai-restore-panel h4 { margin: 0 0 .5rem 0; font-size: .9rem; }

/* Notification bar pour sauvegarder */
.ai-save-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .65rem 1.5rem;
  background: rgba(10, 14, 22, 0.97);
  border-top: 1px solid var(--accent, #00e5ff);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}
.ai-save-bar--hidden { transform: translateY(100%); pointer-events: none; }
.ai-save-bar-info { font-size: .85rem; color: rgba(255,255,255,0.8); }

/* Factures admin */
.invoice-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.invoice-stat { background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.invoice-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.invoice-stat-value { font-size: 24px; font-weight: 700; color: var(--accent); }
.invoice-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.invoice-filters .form-input, .invoice-filters .form-select { flex: 0 1 auto; min-width: 150px; }
.u-fs-12 { font-size: 12px; }
.u-fs-13 { font-size: 13px; }

/* === Blog === */
.blog-header { margin-bottom: 32px; }
.blog-header h1 { margin: 0 0 8px; font-size: 32px; }
.blog-subtitle { color: var(--text-muted); font-size: 16px; margin: 0; }
.blog-tag-filter { margin-top: 16px; display: flex; align-items: center; gap: 12px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.blog-card-cover { width: 100%; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}
.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}
.blog-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.blog-card-tag {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
}

/* Article */
.blog-post { padding: 0; }
.blog-post-container { max-width: 760px; margin: 0 auto; padding: 32px 24px 80px; }
.blog-back {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
}
.blog-back:hover { color: var(--accent); }
.blog-post-cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.blog-post-cover img { width: 100%; display: block; }
.blog-post-header { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.blog-post-title {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -1px;
}
.blog-post-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.blog-post-meta-dot { color: var(--text-muted); }
.blog-post-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.blog-post-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.blog-post-content h1, .blog-post-content h2, .blog-post-content h3, .blog-post-content h4 {
  margin: 32px 0 16px;
  font-weight: 700;
  line-height: 1.3;
}
.blog-post-content h2 { font-size: 28px; }
.blog-post-content h3 { font-size: 22px; }
.blog-post-content h4 { font-size: 18px; }
.blog-post-content p { margin: 0 0 20px; }
.blog-post-content a { color: var(--accent); text-decoration: underline; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 20px; padding-left: 28px; }
.blog-post-content li { margin-bottom: 8px; }
.blog-post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 20px;
  margin: 24px 0;
  color: var(--text-muted);
  background: rgba(0, 229, 255, 0.04);
  border-radius: 0 8px 8px 0;
}
.blog-post-content code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}
.blog-post-content pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 24px 0;
}
.blog-post-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}
.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}
.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.blog-post-content th, .blog-post-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.blog-post-content th { background: var(--card); }

.blog-post-footer { margin-top: 64px; }
.blog-post-cta {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(108, 126, 255, 0.08));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}
.blog-post-cta h3 { font-size: 22px; margin: 0 0 8px; }
.blog-post-cta p { color: var(--text-muted); margin: 0 0 20px; }

/* Admin blog form */
.blog-form .form-group { margin-bottom: 20px; }
.blog-content-textarea {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

/* === Blog mockups: aperçus visuels du panel embarques dans les articles === */
.mockup {
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  pointer-events: none; /* desactive toute interaction sur les mockups */
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-dot--red { background: #ff5f57; }
.mockup-dot--yellow { background: #febc2e; }
.mockup-dot--green { background: #28c840; }
.mockup-url {
  margin-left: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  flex: 1;
  text-align: center;
  opacity: 0.7;
}
.mockup-body {
  padding: 24px;
}
.mockup-caption {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: -16px 0 32px;
  font-style: italic;
}

/* Mockup-specific elements (overlays the panel components) */
.mockup-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mockup-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mockup-grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .mockup-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.mockup-job-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mockup-job-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.mockup-job-name { font-weight: 600; font-size: 14px; }
.mockup-job-desc { font-size: 11px; color: var(--text-muted); }

.mockup-addon-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-addon-title { font-weight: 600; font-size: 14px; }
.mockup-addon-desc { font-size: 12px; color: var(--text-muted); flex: 1; }
.mockup-addon-installed {
  font-size: 11px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 3px 8px;
  border-radius: 100px;
  align-self: flex-start;
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.mockup-row:last-child { border-bottom: none; }
.mockup-row-label { color: var(--text-muted); }
.mockup-row-value { font-weight: 500; font-family: 'SF Mono', Menlo, monospace; font-size: 12px; }

.mockup-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.mockup-tab {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.mockup-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mockup-status-pill {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}
.mockup-status-pill--ok { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.mockup-status-pill--warn { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

/* Reset des inputs du panel pour qu'ils restent visuels meme disabled */
.mockup input[disabled],
.mockup select[disabled],
.mockup textarea[disabled],
.mockup button[disabled] {
  cursor: default !important;
  opacity: 1 !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

/* Sommaire automatique en haut des articles de blog */
.blog-post-content .blog-toc {
  position: relative;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.04), rgba(168, 85, 247, 0.03));
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 28px 32px 24px;
  margin: 0 0 48px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.blog-post-content .blog-toc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.blog-post-content .blog-toc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 18px;
}
.blog-post-content .blog-toc-title::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow-strong);
}
.blog-post-content .blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
  column-count: 1;
  column-gap: 32px;
}
@media (min-width: 720px) {
  .blog-post-content .blog-toc-list { column-count: 2; }
}
.blog-post-content .blog-toc-list li {
  margin: 0 0 10px;
  padding: 0;
  break-inside: avoid;
  page-break-inside: avoid;
}
.blog-post-content .blog-toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 10px 6px 8px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.18s, color 0.18s, transform 0.18s, padding 0.18s;
  border-left: 2px solid transparent;
}
.blog-post-content .blog-toc a:hover {
  background: var(--bg-hover);
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 12px;
}
.blog-post-content .blog-toc-main {
  counter-increment: toc-counter;
  font-weight: 600;
}
.blog-post-content .blog-toc-main a::before {
  content: counter(toc-counter, decimal-leading-zero);
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.blog-post-content .blog-toc-sub {
  margin-left: 18px;
  font-size: 13px;
}
.blog-post-content .blog-toc-sub a {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 13px;
  padding-left: 14px;
}
.blog-post-content .blog-toc-sub a::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-light);
  margin-right: -4px;
  transition: background 0.18s, transform 0.18s;
}
.blog-post-content .blog-toc-sub a:hover::before {
  background: var(--accent);
  transform: scale(1.4);
}
/* Offset pour ancres (compense le header sticky eventuel) */
.blog-post-content h2[id],
.blog-post-content h3[id] { scroll-margin-top: 90px; }
