/* Mongkey Checker — hitam pekat, glow crimson dari logo koin */
:root {
  --bg: #000000;
  --surface: #0b0b0d;
  --surface2: #121215;
  --surface3: #1a1a1f;
  --border: #1c1c21;
  --border-strong: #2a2a31;
  --border-soft: #151519;
  --text: #f4f4f5;
  --text-2: #c4c4cc;
  --muted: #8b8b95;   /* 6:1 di atas --bg */
  --faint: #55555e;   /* dekoratif, bukan teks penting */
  --accent: #e5383b;
  --accent-hover: #ff4d50;
  --accent-soft: rgba(229, 56, 59, .12);
  --accent-glow: rgba(229, 56, 59, .16);
  --accent2: #4ade80; /* ok / clean */
  --danger: #f87171;
  --warn: #fbbf24;
  --info: #60a5fa;
  --chart-clean: #4ade80;    /* dicek CVD (deutan ΔE 15) */
  --chart-detected: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Manrope', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --sidebar: 220px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
/* Glow merah tipis di atas konten — pengganti glow biru referensi */
body::before {
  content: ''; position: fixed; z-index: 0; pointer-events: none;
  left: var(--sidebar); right: 0; top: -180px; height: 520px;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, var(--accent-glow), transparent 70%);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
  width: var(--sidebar);
  background: #050506;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 22px 14px 14px;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; text-decoration: none; }
.sidebar-logo img { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.sidebar-brand { font-weight: 800; font-size: 13.5px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.sidebar-tag { font-size: 9.5px; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; margin-top: 1px; }
.nav-label {
  padding: 16px 10px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; margin-bottom: 3px;
  color: var(--text-2); text-decoration: none;
  border: 1px solid transparent; border-radius: 11px;
  font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.nav-item svg { flex-shrink: 0; color: var(--muted); }
.nav-item:hover { color: var(--text); background: var(--surface2); }
.nav-item.active { color: var(--text); background: var(--surface2); border-color: var(--border-strong); font-weight: 700; }
.nav-item.active svg { color: var(--text); }
.nav-item .nav-count { margin-left: auto; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; }

.sidebar-footer { margin-top: auto; border-top: 1px solid var(--border); padding: 14px 4px 0; display: flex; flex-direction: column; gap: 10px; }
.sidebar-footer .row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.server-status { font-size: 11.5px; color: var(--muted); padding: 0 6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.status-dot.online { background: var(--accent2); box-shadow: 0 0 0 3px rgba(74,222,128,.15); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 3px rgba(248,113,113,.15); }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface3); border: 1px solid var(--border-strong);
  font-weight: 800; font-size: 13px;
}
.user-meta { min-width: 0; flex: 1; }
.user-meta .u { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta .r { font-size: 11px; color: var(--muted); }
.logout {
  width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid var(--border-strong); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer;
}
.logout:hover { color: var(--danger); border-color: var(--danger); }

/* ── Konten ───────────────────────────────────────────────── */
.main {
  position: relative; z-index: 1;
  margin-left: var(--sidebar);
  padding: 24px 28px 48px;
  flex: 1;
}
/* Konten ngisi lebar layar penuh — gak dibatesin max-width biar gak ada ruang kosong di kiri-kanan */
.main > * { max-width: none; }
.page-date { font-size: 12.5px; color: var(--text-2); margin-bottom: 18px; font-weight: 500; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.page-sub { color: var(--text-2); font-size: 13.5px; margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.header-actions { display: flex; gap: 8px; align-items: center; }

.site-footer {
  position: relative; z-index: 1;
  margin-left: var(--sidebar);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.site-footer b { color: var(--text-2); font-weight: 800; letter-spacing: .2em; font-size: 11px; }
.site-footer .links { margin-left: auto; display: flex; gap: 18px; }
.site-footer a { text-decoration: none; color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

/* ── Kartu ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  min-height: 64px;
}
.card-header + .card-body, .card-header + .table-wrap, .card-header + .toolbar { border-top: 1px solid var(--border-soft); }
.card-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.icon-ring {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--text-2);
}
.icon-ring.red { color: var(--danger); border-color: rgba(229,56,59,.35); background: rgba(229,56,59,.06); }
.icon-ring.green { color: var(--accent2); border-color: rgba(74,222,128,.3); }
.icon-ring.amber { color: var(--warn); border-color: rgba(251,191,36,.3); }
.icon-ring.lg { width: 40px; height: 40px; }
.card-title { font-weight: 800; font-size: 15px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card-sub { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.card-meta { font-size: 12px; color: var(--muted); }
.card-body { padding: 20px; }
.card-footer {
  padding: 12px 20px; border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.card.danger-zone { border-color: rgba(229,56,59,.45); }

/* Grid dashboard 12 kolom */
.dash-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.dash-row > .card { display: flex; flex-direction: column; min-width: 0; }
.dash-row > .card > .card-fill { flex: 1; min-height: 0; }
/* Tinggi ngikut isi (maks 400px, lebihnya scroll di dalam) — dulu dipaksa 400px, banyak ruang kosong */
.dash-row.fixed-h > .card { max-height: 400px; }
.dash-row.fixed-h > .card > .card-fill { overflow-y: auto; }
.scroll-y { overflow-y: auto; }
.flex-col { display: flex; flex-direction: column; }
.list-end { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 16px; color: var(--faint); font-size: 12px; }

/* ── Stat card ────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stats-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; min-height: 120px;
  text-decoration: none; color: inherit;
  transition: border-color .15s;
}
a.stat-card:hover { border-color: var(--border-strong); }
.stat-top { display: flex; align-items: center; gap: 12px; }
.stat-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--text-2);
}
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.stat-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.stat-label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.stat-meta { font-size: 12px; color: var(--muted); }
.stat-meta b { color: var(--text-2); font-weight: 700; }
.stat-value.zero { color: var(--text-2); }
.stat-card.red .stat-value:not(.zero) { color: var(--danger); }
.stat-card.green .stat-value:not(.zero) { color: var(--accent2); }
.stat-card.yellow .stat-value:not(.zero) { color: var(--warn); }
.stat-card.red .stat-icon { color: var(--danger); border-color: rgba(229,56,59,.35); }
.stat-card.green .stat-icon { color: var(--accent2); border-color: rgba(74,222,128,.3); }
.stat-card.yellow .stat-icon { color: var(--warn); border-color: rgba(251,191,36,.3); }
.spark { width: 96px; height: 28px; flex-shrink: 0; overflow: visible; }
.stat-card.cta { justify-content: space-between; }
.stat-card.cta .cta-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-card.cta .cta-sub { font-size: 12.5px; color: var(--text-2); }

/* ── Tombol & form ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 17px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn-primary { background: #f4f4f5; color: #000; }
.btn-primary:hover { background: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface2); border-color: #3a3a42; }
.btn-danger { background: rgba(229,56,59,.08); color: var(--danger); border-color: rgba(229,56,59,.45); }
.btn-danger:hover { background: rgba(229,56,59,.16); }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-icon { padding: 8px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
input, select, textarea { font-family: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text); padding: 10px 14px; font-size: 13px; outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: #4a4a54; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
select option { background: var(--surface2); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin-bottom: 14px; }
.field > label, .field-label { font-size: 12.5px; color: var(--text-2); font-weight: 700; }
.field-hint { font-size: 12px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
textarea.note, .code-area {
  width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text); padding: 12px 14px; font-size: 13px; outline: none; resize: vertical;
}
textarea.note { min-height: 70px; }
.code-area { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); min-height: 300px; line-height: 1.6; tab-size: 4; }

/* Chip filter (pil) */
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  padding: 6px 13px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.seg button:hover { background: var(--surface2); }
.seg button.active { background: var(--surface3); border-color: #3a3a42; }
.seg button .n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 16px; }
.card .toolbar { margin-bottom: 0; padding: 14px 20px; border-bottom: 1px solid var(--border-soft); }
.search-box { position: relative; min-width: 240px; flex: 0 1 300px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box input { width: 100%; padding-left: 38px !important; border-radius: 999px !important; }
.search-box kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 11px var(--font); color: var(--faint); border: 1px solid var(--border-strong); border-radius: 5px; padding: 0 5px; }

/* ── Tabel ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
thead th {
  padding: 11px 20px; text-align: left; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 13px 20px; border-bottom: 1px solid var(--border-soft); font-size: 13px; vertical-align: middle; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: rgba(255,255,255,.015); }
tbody tr:last-child td { border-bottom: none; }
tbody tr.clickable { cursor: pointer; }
tbody tr.selected { background: var(--accent-soft); }
tbody tr.row-flag td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.cell-main { color: var(--text); font-weight: 700; }
.cell-sub { color: var(--muted); font-size: 12px; margin-top: 1px; }
.cell-muted { color: var(--muted); white-space: nowrap; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.list-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--muted); }
.pagination { display: flex; gap: 6px; }
.pager { min-width: 32px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; }
.pager:hover { background: var(--surface2); }
.pager.active { background: #f4f4f5; color: #000; border-color: #f4f4f5; }
.pager:disabled { opacity: .35; cursor: default; }

/* ── Badge, chip, pill ────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--border-strong); color: var(--text-2); background: transparent;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-clean, .badge-active { color: var(--accent2); border-color: rgba(74,222,128,.28); }
.badge-cheat, .badge-ban { color: var(--danger); border-color: rgba(229,56,59,.4); }
.badge-review, .badge-pending { color: var(--warn); border-color: rgba(251,191,36,.3); }
.badge-white { color: var(--info); border-color: rgba(96,165,250,.3); }
.badge-normal, .badge-used { color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface2); color: var(--text-2); border: 1px solid var(--border-strong);
}
.chip-danger { color: var(--danger); border-color: rgba(229,56,59,.35); background: rgba(229,56,59,.06); }
.chip-warn { color: var(--warn); border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.05); }
.chip-info { color: var(--info); border-color: rgba(96,165,250,.3); background: rgba(96,165,250,.05); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.count-pill {
  display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px;
  border-radius: 999px; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--surface3); color: var(--text-2);
}
.count-pill.danger { background: var(--accent); color: #fff; }
.warn-text { color: var(--warn); } .danger-text { color: var(--danger); } .ok-text { color: var(--accent2); }
.mono { font-family: var(--mono); font-size: 12px; }
.kbd-hint { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }

/* Skor risiko */
.risk-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid var(--border-strong);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.risk-pill .num { min-width: 26px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: #000; padding: 0 6px; }
.risk-clean { color: var(--accent2); } .risk-clean .num { background: var(--accent2); }
.risk-review { color: var(--warn); } .risk-review .num { background: var(--warn); }
.risk-suspicious { color: #fb923c; } .risk-suspicious .num { background: #fb923c; }
.risk-cheating { color: var(--danger); border-color: rgba(229,56,59,.45); } .risk-cheating .num { background: var(--accent); color: #fff; }
.score { display: flex; align-items: center; gap: 16px; }
.score-num { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.score-num small { font-size: 15px; color: var(--muted); font-weight: 700; }
.score-bar { height: 6px; border-radius: 999px; background: var(--surface3); overflow: hidden; margin-top: 8px; }
.score-bar > i { display: block; height: 100%; border-radius: 999px; }
.reasons { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.reasons li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; font-size: 12.5px; color: var(--text-2); align-items: baseline; }
.reasons li b { font-family: var(--mono); font-size: 12px; color: var(--danger); text-align: right; }
.reasons li.warn b { color: var(--warn); }

/* ── Empty / alert / skeleton ─────────────────────────────── */
.empty { padding: 44px 20px; text-align: center; color: var(--text-2); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.empty svg { color: var(--faint); margin-bottom: 4px; }
.empty-title { color: var(--text); font-weight: 800; font-size: 14px; }
.empty a { color: var(--text); font-weight: 700; }
.loading { color: var(--muted); padding: 40px; text-align: center; }
.alert { display: none; align-items: center; gap: 10px; padding: 11px 16px; margin-bottom: 16px; border-radius: 12px; font-size: 13px; background: rgba(229,56,59,.08); border: 1px solid rgba(229,56,59,.4); color: var(--danger); }
.alert.show { display: flex; }
.skeleton { display: inline-block; border-radius: 6px; color: transparent !important; background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.callout { border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 12.5px; display: flex; gap: 10px; align-items: flex-start; }
.callout svg { flex-shrink: 0; margin-top: 1px; }
.callout b { display: block; margin-bottom: 2px; font-weight: 800; }
.callout ul { margin: 4px 0 0 16px; }
.callout.warn { background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.28); color: var(--warn); }
.callout.bad  { background: rgba(229,56,59,.07); border: 1px solid rgba(229,56,59,.35); color: var(--danger); }
.callout.ok   { background: rgba(74,222,128,.06); border: 1px solid rgba(74,222,128,.25); color: var(--accent2); }
.callout.info { background: rgba(96,165,250,.06); border: 1px solid rgba(96,165,250,.25); color: var(--info); }

/* ── Grafik ───────────────────────────────────────────────── */
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chart-wrap { position: relative; min-height: 210px; }
.chart-wrap svg { position: absolute; left: 20px; right: 20px; top: 12px; bottom: 12px; width: calc(100% - 40px); height: calc(100% - 24px); overflow: visible; }
.chart-wrap .grid-line { stroke: var(--border-soft); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-wrap .axis-text { fill: var(--faint); font-size: 10.5px; font-variant-numeric: tabular-nums; font-family: var(--font); }
.chart-wrap .bar-hit { fill: transparent; }
.chart-wrap .bar-col.hover .bar-hit { fill: rgba(255,255,255,.025); }
.chart-tip { position: absolute; pointer-events: none; z-index: 5; background: var(--surface2); border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 11px; font-size: 12px; min-width: 140px; opacity: 0; transition: opacity .1s; }
.chart-tip.show { opacity: 1; }
.chart-tip .tip-title { font-weight: 800; margin-bottom: 4px; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.chart-tip .tip-row b { margin-left: auto; color: var(--text); }
.chart-tip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* Donut hasil */
.donut-wrap { display: flex; align-items: center; gap: 28px; padding: 18px 22px 24px; flex: 1; }
.donut { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center b { font-size: 26px; font-weight: 800; line-height: 1; }
.donut-center span { font-size: 11px; color: var(--muted); margin-top: 2px; }
.legend-list { flex: 1; display: flex; flex-direction: column; gap: 12px; list-style: none; }
.legend-list li { display: grid; grid-template-columns: 10px 1fr auto 42px; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.legend-list i { width: 8px; height: 8px; border-radius: 50%; }
.legend-list .v { font-variant-numeric: tabular-nums; }
.legend-list .p { font-size: 11.5px; color: var(--muted); text-align: right; font-weight: 600; }

/* Daftar ranking & mix */
.rank-list { list-style: none; }
.rank-item { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 12px 20px; border-top: 1px solid var(--border-soft); }
.rank-name { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-count { font-size: 12px; color: var(--text-2); text-align: right; }
.rank-bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--surface3); overflow: hidden; }
.rank-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--chart-detected); }
.rank-meta { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mix-section { padding: 14px 20px 6px; }
.mix-section + .mix-section { border-top: 1px solid var(--border-soft); }
.mix-title { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mix-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; margin-bottom: 10px; font-size: 12.5px; }
.mix-label { color: var(--text-2); font-weight: 600; }
.mix-val { font-weight: 800; font-variant-numeric: tabular-nums; }
.mix-val small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.mix-bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--surface3); overflow: hidden; }
.mix-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--chart-detected); }
.mix-row.zero .mix-label, .mix-row.zero .mix-val { color: var(--faint); }

/* Antrian & sesi */
.queue-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--border-soft); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: rgba(229,56,59,.1); color: var(--danger); border: 1px solid rgba(229,56,59,.35); }
.queue-head { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.queue-name { font-weight: 800; }
.queue-host { font-size: 12px; color: var(--muted); }
.queue-dets { font-size: 12px; margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.queue-dets .mono { color: var(--danger); font-size: 11.5px; }
.queue-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.queue-actions { display: flex; gap: 6px; }
.quick-pin { display: flex; gap: 8px; padding: 0 20px 14px; }
.quick-pin input { flex: 1; min-width: 0; }
.session-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 11px 20px; border-top: 1px solid var(--border-soft); }
.session-pin { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 2px; padding: 4px 9px; border-radius: 8px; background: var(--surface2); border: 1px solid var(--border-strong); }
.session-item.is-live .session-pin { border-color: rgba(229,56,59,.5); color: var(--danger); }
.session-item.is-dead .session-pin { color: var(--faint); text-decoration: line-through; }
.session-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-time { font-size: 11.5px; color: var(--muted); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--info); display: inline-block; margin-right: 5px; animation: pulse 1.4s infinite; vertical-align: 1px; }
@keyframes pulse { 50% { opacity: .3; } }

/* ── Halaman Sessions ─────────────────────────────────────── */
.create-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.create-form { padding: 22px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.create-form .form-row input { flex: 1; min-width: 0; }
.create-hint { font-size: 12px; color: var(--muted); }
.pin-result { padding: 22px; border-left: 1px solid var(--border-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 190px; text-align: center; }
.pin-boxes { display: flex; gap: 6px; }
.pin-boxes span { width: 40px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-size: 22px; font-weight: 600; background: var(--surface2); border: 1px solid var(--border-strong); }
.pin-result.idle .pin-boxes span { color: var(--faint); }
.pin-result:not(.idle) .pin-boxes span { border-color: rgba(229,56,59,.45); }
.pin-for { font-size: 13px; font-weight: 700; }
.pin-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pin-cell { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 2px; }
tr.is-live .pin-cell { color: var(--danger); }
tr.is-dead .pin-cell { color: var(--faint); text-decoration: line-through; }
.pin-display { font-family: var(--mono); font-size: 32px; font-weight: 600; letter-spacing: 10px; text-align: center; padding: 14px; margin: 12px 0; background: var(--surface2); border: 1px solid var(--border-strong); border-radius: 12px; }

/* ── Drawer detail scan ───────────────────────────────────── */
.drawer-bg { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.65); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 901; width: min(780px, 100vw); background: #070708; border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.drawer-title { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; letter-spacing: -.01em; }
.drawer-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.drawer-actions { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px 36px; }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin-bottom: 18px; }
.sum-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; }
.sum-tile .v { font-size: 20px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sum-tile .l { font-size: 11.5px; color: var(--muted); }
.sum-tile.bad .v { color: var(--danger); } .sum-tile.warn .v { color: var(--warn); } .sum-tile.zero .v { color: var(--faint); }
.section { margin-bottom: 20px; }
.section-title { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.section-title .hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); font-size: 12px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.det-card { background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.det-card.warn { border-left-color: var(--warn); }
.det-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.det-name { font-family: var(--mono); font-size: 13px; color: var(--danger); font-weight: 500; word-break: break-all; }
.det-card.warn .det-name { color: var(--warn); }
.det-pid { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.det-lines { margin-top: 8px; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 4px 10px; font-size: 12px; }
.det-lines dt { color: var(--muted); }
.det-lines dd { color: var(--text-2); word-break: break-all; }
.det-lines dd.mono { font-size: 11.5px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.info-grid > div { padding: 10px 16px; border-bottom: 1px solid var(--border-soft); min-width: 0; }
.info-grid > div:nth-child(odd) { border-right: 1px solid var(--border-soft); }
.info-grid .k { font-size: 11px; color: var(--muted); margin-bottom: 1px; }
.info-grid .v { font-size: 13px; font-weight: 600; word-break: break-word; }
.info-grid .v.mono { font-size: 11.5px; font-weight: 400; word-break: break-all; }
.copy-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 4px; vertical-align: -2px; }
.copy-btn:hover { color: var(--text); background: var(--surface2); }
.tabbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tabbar button { font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); cursor: pointer; padding: 6px 12px; border-radius: 999px; }
.tabbar button:hover { color: var(--text); }
.tabbar button.active { background: var(--surface3); color: var(--text); border-color: #3a3a42; }
.tabbar .n { font-size: 11px; color: var(--muted); margin-left: 4px; }
.tab-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; max-height: 340px; overflow-y: auto; }
.tab-note { padding: 9px 16px; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--border-soft); }
.hist-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.hist-row:last-child { border-bottom: none; }
.hist-row .p { font-family: var(--mono); font-size: 11.5px; word-break: break-all; color: var(--text-2); }
.hist-row.flag .p { color: var(--danger); }
.hist-row .s { font-size: 11px; color: var(--muted); margin-top: 1px; }
.hist-row.flag .s { color: var(--warn); }
.hist-row .t { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.mini-list { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.mini-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; color: inherit; text-decoration: none; }
.mini-row:last-child { border-bottom: none; }
.mini-row:hover { background: var(--surface2); }
.mini-row.current { background: var(--accent-soft); }

/* Timeline */
.tl { position: relative; padding: 6px 16px 6px 34px; }
.tl::before { content: ''; position: absolute; left: 21px; top: 16px; bottom: 16px; width: 1px; background: var(--border-strong); }
.tl-item { position: relative; padding: 7px 0; font-size: 12.5px; display: grid; grid-template-columns: 108px 1fr; gap: 10px; }
.tl-item::before { content: ''; position: absolute; left: -17px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface3); border: 1px solid var(--faint); }
.tl-item.bad::before { background: var(--accent); border-color: var(--accent); }
.tl-item.warn::before { background: var(--warn); border-color: var(--warn); }
.tl-item.mark::before { background: var(--info); border-color: var(--info); }
.tl-time { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 1px; }
.tl-what { color: var(--text-2); word-break: break-all; }
.tl-what small { display: block; color: var(--muted); font-size: 11px; }
.tl-item.bad .tl-what { color: var(--danger); }
.tl-item.mark .tl-what { color: var(--info); font-weight: 700; }

/* Review staff */
.review-opts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.review-opts button { font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.review-opts button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.review-opts button[data-v="legit"]::before { background: var(--accent2); }
.review-opts button[data-v="suspicious"]::before { background: var(--warn); }
.review-opts button[data-v="cheating"]::before { background: var(--accent); }
.review-opts button:hover { color: var(--text); background: var(--surface2); }
.review-opts button.on { color: var(--text); background: var(--surface3); border-color: #4a4a54; }

/* ── Modal & toast ────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; padding: 24px; min-width: 360px; max-width: 92vw; }
.modal h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
#toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; background: var(--surface2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 11px 16px; font-size: 13px; font-weight: 600; max-width: 340px; transform: translateY(80px); opacity: 0; transition: all .25s; }
#toast.show { transform: none; opacity: 1; }
#toast.success { border-color: rgba(74,222,128,.4); color: var(--accent2); }
#toast.error { border-color: rgba(229,56,59,.5); color: var(--danger); }

/* ── Signature extractor ──────────────────────────────────── */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--text-2); cursor: pointer; transition: all .15s; text-align: center; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(229,56,59,.04); color: var(--text); }
.dz-hint { font-size: 12px; color: var(--muted); }
.step-num { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; border: 1px solid var(--border-strong); }
.card-title.with-step { gap: 10px; }
.str-row { cursor: pointer; }
.str-row.on { background: var(--accent-soft); }

/* ── Editor YARA ──────────────────────────────────────────── */
.editor { display: flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.editor .gutter { padding: 12px 10px; text-align: right; color: var(--faint); font-family: var(--mono); font-size: 12.5px; line-height: 1.6; user-select: none; border-right: 1px solid var(--border); min-width: 44px; white-space: pre; overflow: hidden; }
.editor textarea { flex: 1; border: 0; border-radius: 0; min-height: 360px; background: transparent; white-space: pre; overflow: auto; }
.check-msg { font-size: 12.5px; font-weight: 600; }
.ruleset-item { padding: 12px 20px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ruleset-item:hover { background: rgba(255,255,255,.015); }
.ruleset-item.on { background: var(--surface2); }
.ruleset-item .nm { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter { height: 5px; border-radius: 999px; background: var(--surface3); overflow: hidden; margin-top: 8px; }
.meter > i { display: block; height: 100%; background: var(--text-2); border-radius: 999px; }

/* Toggle switch */
.switch { position: relative; width: 34px; height: 20px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface3); border: 1px solid var(--border-strong); transition: .15s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; left: 2px; top: 2px; background: var(--muted); transition: .15s; }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { left: 16px; background: #fff; }

/* ── Branding ─────────────────────────────────────────────── */
.preset-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.preset { border: 1px solid var(--border-strong); border-radius: 12px; background: transparent; color: var(--text-2); cursor: pointer; padding: 14px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; font: inherit; font-size: 12px; font-weight: 700; }
.preset i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid currentColor; }
.preset:hover { background: var(--surface2); }
.preset.on { border-color: #f4f4f5; color: var(--text); background: var(--surface2); }
.color-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; }
.color-row input[type="color"] { width: 30px; height: 30px; border: 0; padding: 0; background: none; border-radius: 6px; cursor: pointer; }
.scanner-prev { background: #050506; border: 1px solid var(--border-strong); border-radius: 14px; padding: 34px 24px 20px; text-align: center; position: relative; min-height: 420px; display: flex; flex-direction: column; align-items: center; }
.scanner-prev .x { position: absolute; right: 14px; top: 12px; color: var(--faint); font-size: 16px; }
.sp-logo { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 14px; }
.sp-name { font-size: 24px; font-weight: 800; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; }
.sp-tag { font-size: 10px; letter-spacing: .28em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.sp-rule { width: 22px; height: 2px; margin: 16px auto 22px; }
.sp-label { font-size: 10.5px; letter-spacing: .22em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.sp-boxes { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
.sp-boxes span { width: 32px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 16px; background: var(--surface2); border: 1px solid var(--border-strong); }
.sp-msg { font-size: 12px; color: var(--text-2); }
.sp-consent { font-size: 10.5px; color: var(--muted); margin: 18px 0 10px; max-width: 280px; }
.sp-btn { width: 100%; max-width: 300px; padding: 12px; border-radius: 10px; font-weight: 800; letter-spacing: .18em; font-size: 12px; }
.sp-bar { width: 100%; max-width: 300px; height: 6px; border-radius: 999px; background: var(--surface3); overflow: hidden; margin: 10px 0; }
.sp-bar i { display: block; height: 100%; width: 62%; }
.sp-ver { margin-top: auto; padding-top: 14px; font-size: 10px; color: var(--faint); }

/* ── Login ────────────────────────────────────────────────── */
body.auth::before { left: 0; }
.auth-wrap { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 380px; padding: 30px 28px; }
.auth-logo { width: 84px; height: 84px; border-radius: 50%; display: block; margin: 0 auto 16px; box-shadow: 0 0 60px rgba(229,56,59,.28); }
.auth-title { font-size: 20px; font-weight: 800; letter-spacing: .26em; padding-left: .26em; text-align: center; text-transform: uppercase; }
.auth-sub { text-align: center; color: var(--muted); font-size: 12.5px; margin: 6px 0 24px; }
.auth-card input { width: 100%; }
.auth-card .btn { width: 100%; padding: 11px; margin-top: 4px; }
/* Tombol Discord — warna blurple resmi Discord biar langsung dikenali */
.btn-discord { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; background: #5865f2; color: #fff; border: 1px solid #5865f2; font-weight: 800; text-decoration: none; border-radius: 12px; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }
.btn-discord.disabled { opacity: .45; pointer-events: none; }
.auth-foot { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); }
.user-avatar img, .avatar-img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }

/* ── Detail scan (halaman penuh) ──────────────────────────── */
/* (.main.wide sekarang sama kayak .main — semua halaman udah full width) */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text); font-family: var(--mono); font-weight: 500; }

.sd-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: stretch; gap: 0; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(229,56,59,.05), transparent 70%), var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px;
}
.sd-hero::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone, var(--faint)); }
.sd-cell { padding: 16px 22px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border-right: 1px solid var(--border-soft); min-width: 0; }
.sd-cell:last-of-type { border-right: 0; }
.sd-k { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sd-v { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; min-width: 0; }
.sd-v .sub { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.sd-verdict { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--tone); background: color-mix(in srgb, var(--tone) 10%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent); white-space: nowrap; }
.sd-verdict::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 10px var(--tone); }
.sd-ring { --p: 0; width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--tone) calc(var(--p) * 1%), var(--surface3) 0); }
.sd-ring > span { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.sd-pin { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .12em; padding: 5px 11px; border-radius: 9px; background: var(--surface2); border: 1px solid var(--border-strong); }
.sd-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sd-hero .sd-cell { flex: 1 1 auto; }

.sd-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 560px; overflow: hidden; }
.sd-nav { border-right: 1px solid var(--border); padding: 14px 10px; background: #08080a; }
.sd-nav-head { padding: 4px 10px 12px; }
.sd-nav-head .t { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sd-nav-head .s { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.sd-group { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.sd-item {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 40px;
  padding: 7px 10px; margin-bottom: 2px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--text-2); font: 600 13px var(--font); text-align: left; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.sd-item:hover { background: var(--surface2); color: var(--text); }
.sd-item[aria-current="true"] { background: var(--surface3); color: var(--text); border-color: var(--border-strong); }
.sd-item.is-empty { color: var(--faint); }
.sd-ico { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; color: var(--tone, var(--muted)); background: color-mix(in srgb, var(--tone, var(--muted)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tone, var(--muted)) 28%, transparent); }
.sd-item.is-empty .sd-ico { --tone: var(--faint); opacity: .6; }
.sd-item .n { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sd-item .n.hot { color: #fff; background: var(--accent); border-radius: 999px; padding: 0 7px; font-weight: 800; }

.sd-main { min-width: 0; display: flex; flex-direction: column; }
.sd-main-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sd-main-head .ttl { font-size: 16px; font-weight: 800; }
.sd-main-head .sub { font-size: 11.5px; color: var(--muted); }
.sd-main-head .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.sd-main-head .search-box { min-width: 200px; flex: 0 1 240px; }
.sd-body { padding: 18px 20px 26px; flex: 1; }

.sd-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; margin-bottom: 8px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; }
.sd-row.bad { border-left: 2px solid var(--accent); }
.sd-row.warn { border-left: 2px solid var(--warn); }
.sd-row .main-t { font-family: var(--mono); font-size: 12.5px; color: var(--text); word-break: break-all; }
.sd-row.bad .main-t { color: var(--danger); }
.sd-row .meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.sd-row .meta.warn { color: var(--warn); }
.sd-row .when { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; font-family: var(--mono); }
.sd-empty { padding: 48px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.sd-empty b { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 4px; }
.sd-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.sd-jump { cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s; }
.sd-jump:hover { border-color: var(--border-strong); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sd-overview { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sd-layout { grid-template-columns: 1fr; }
  .sd-nav { border-right: 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
  .sd-nav-head, .sd-group { grid-column: 1 / -1; }
  .sd-hero .sd-cell { border-right: 0; border-bottom: 1px solid var(--border-soft); flex: 1 1 45%; padding: 12px 16px; }
  .crumbs { flex-wrap: wrap; }
  .sd-actions { margin-left: 0; width: 100%; }
  .sd-main-head .tools { margin-left: 0; width: 100%; }
  .sd-main-head .search-box { flex: 1 1 auto; }
}
@media (max-width: 1200px) {
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .dash-row.fixed-h > .card { height: auto; max-height: 420px; }
  .stats-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .create-grid, .field-row { grid-template-columns: 1fr; }
  .pin-result { border-left: 0; border-top: 1px solid var(--border-soft); }
  .preset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --sidebar: 64px; }
  .sidebar { padding: 18px 8px 12px; }
  .sidebar-logo { justify-content: center; padding: 0 0 16px; }
  .sidebar-logo .logo-text, .nav-item span, .nav-label, .user-meta, .server-status span, .nav-count { display: none; }
  .nav-item { justify-content: center; }
  .sidebar-footer .row { justify-content: center; flex-direction: column; }
  .main { padding: 18px 16px 40px; }
  .page-title { font-size: 23px; }
  .stats-grid, .stats-grid.cols-3, .stats-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-height: 0; padding: 14px; }
  .stat-value { font-size: 24px; }
  .spark { display: none; }
  .search-box { flex: 1 1 100%; }
  .donut-wrap { flex-direction: column; }
  .site-footer .links { margin-left: 0; }
}
@media (max-width: 560px) {
  .queue-item { grid-template-columns: 38px minmax(0, 1fr); }
  .queue-actions { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Label cuma buat screen reader */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Landing (halaman publik sebelum login) ───────────────── */
body.landing { --brand: var(--accent); display: block; }
body.landing::before { left: 0; top: -260px; height: 760px; background: radial-gradient(ellipse 55% 60% at 50% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%); }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.lp-nav { position: sticky; top: 0; z-index: 40; background: rgba(0,0,0,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-soft); }
.lp-nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.lp-brand img { border-radius: 50%; }
.lp-brand b { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: .22em; line-height: 1.1; }
.lp-brand small { display: block; font-size: 9.5px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }
.lp-links { display: flex; gap: 4px; margin-left: auto; }
.lp-links a { color: var(--text-2); text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.lp-links a:hover { color: var(--text); background: var(--surface2); }

.lp-hero { padding: 72px 0 88px; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); margin-bottom: 22px; }
.lp-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.lp-h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.lp-lead { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 560px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.lp-btn { min-height: 48px; padding: 0 20px; font-size: 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 10px; }
.lp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; }
.lp-trust li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.lp-trust svg { color: var(--accent2); }

.lp-visual { position: relative; padding: 46px 56px; }
.lp-window { border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden; background: #050506; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02), 0 0 90px color-mix(in srgb, var(--brand) 14%, transparent); max-width: 380px; margin: 0 auto; }
.lp-window-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--border-soft); background: #0a0a0c; }
.lp-window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface3); }
.lp-window-bar span { margin-left: 8px; font-size: 11px; color: var(--faint); font-weight: 600; }
.lp-prev { border: 0; border-radius: 0; min-height: 0; padding: 30px 26px 28px; }
.lp-prev .sp-boxes span { border-color: var(--brand); }
.accent-bg { background: var(--brand); color: #fff; }
.lp-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(18,18,21,.92); backdrop-filter: blur(8px); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.lp-float b { display: block; font-size: 13px; }
.lp-float small { display: block; font-size: 11.5px; color: var(--muted); }
/* Kartu melayang di pojok luar jendela — jangan sampai nutupin isi pratinjau */
.lp-float-a { right: 0; top: 0; }
.lp-float-b { left: 0; bottom: 0; }
.lp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 12px var(--accent2); flex-shrink: 0; }
.lp-pin { font-family: var(--mono); font-size: 14px; letter-spacing: .12em; padding: 4px 9px; border-radius: 8px; background: var(--surface3); border: 1px solid var(--border-strong); }

.lp-section { padding: 88px 0; border-top: 1px solid var(--border-soft); }
.lp-alt { background: linear-gradient(180deg, #050506, #000); }
.lp-head { max-width: 640px; margin-bottom: 40px; }
.lp-kicker { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lp-h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
.lp-sub { margin-top: 12px; font-size: 15.5px; line-height: 1.65; color: var(--text-2); }

.lp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-step { position: relative; padding: 26px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.lp-step-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); margin-bottom: 18px; }
.lp-step h3, .lp-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.01em; }
.lp-step p, .lp-card p { font-size: 14px; line-height: 1.6; color: var(--text-2); }

.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.lp-steps-mini { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 22px; }
.lp-steps-mini > div { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.lp-steps-mini p { margin: 0; }
.lp-steps-mini span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; font-size: 12px; font-weight: 800; background: var(--surface3); border: 1px solid var(--border-strong); color: var(--text); }
.lp-steps-mini b { color: var(--text); }
.lp-warn { margin: 0; font-size: 13px; }
.lp-cards { display: flex; flex-direction: column; gap: 12px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-card { padding: 22px 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.lp-card:hover { border-color: var(--border-strong); }
.lp-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; color: var(--text-2); background: var(--surface3); border: 1px solid var(--border-strong); }
.lp-ico.ok { color: var(--accent2); background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.28); }
.lp-ico.accent { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }

.lp-faq-wrap { max-width: 820px; }
.lp-faq { display: flex; flex-direction: column; gap: 10px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.lp-faq details[open] { border-color: var(--border-strong); }
.lp-faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 15px; position: relative; min-height: 44px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 500; color: var(--muted); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.lp-faq details p { padding: 0 20px 18px; font-size: 14px; line-height: 1.65; color: var(--text-2); }

.lp-footer { border-top: 1px solid var(--border-soft); padding: 26px 0; }
.lp-footer-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lp-copy { font-size: 12.5px; color: var(--muted); }
.lp-foot-link { margin-left: auto; font-size: 13px; color: var(--text-2); text-decoration: none; }
.lp-foot-link:hover { color: var(--text); }

@media (max-width: 960px) {
  .lp-hero { padding: 48px 0 64px; }
  .lp-hero-grid, .lp-split { grid-template-columns: 1fr; gap: 40px; }
  .lp-steps, .lp-grid { grid-template-columns: 1fr; }
  .lp-links { display: none; }
  .lp-nav-in .btn { margin-left: auto; }
  .lp-section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .lp-wrap { padding: 0 16px; }
  .lp-cta .lp-btn { width: 100%; justify-content: center; }
  .lp-visual { padding: 10px 0; }
  .lp-float { display: none; }
  .lp-foot-link { margin-left: 0; }
}
