/* =========================================================================
   NEMS — NEXTPLAY Event Management System
   Tema: Dark Navy + Neon Green (premium SaaS dashboard)
   Satu sumber warna di :root. Komponen memakai variabel, bukan hex lepas.
   ========================================================================= */

:root {
  --bg: #05091a;
  --bg-2: #070d20;
  --bg-3: #0a1329;
  --panel: #0c152c;
  --panel-2: #111d38;
  --panel-3: #16244576;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f2f6ff;
  --ink-2: #bcc8e0;
  --muted: #7d8ba8;
  --navy: #16274b;
  --neon: #b6ff2e;
  --neon-2: #96e000;
  --neon-soft: rgba(182, 255, 46, 0.12);
  --neon-ink: #07101f;
  --blue: #4c8dff;
  --cyan: #2dd4bf;
  --violet: #9c7bff;
  --amber: #ffb84d;
  --green: #3fd37a;
  --red: #ff6b6b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 32px 70px -40px rgba(0, 0, 0, 0.95);
  --sidebar-w: 256px;
  --sidebar-mini: 78px;
  --topbar-h: 74px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(38, 74, 160, 0.36), transparent 62%),
    radial-gradient(900px 460px at 96% 4%, rgba(182, 255, 46, 0.09), transparent 60%),
    radial-gradient(700px 520px at 60% 110%, rgba(76, 141, 255, 0.13), transparent 65%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.ic { flex: none; }
.only-mobile { display: none; }

::selection { background: rgba(182, 255, 46, 0.28); }

/* ---------------- shell ---------------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  flex: none;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(6, 11, 26, 0.98), rgba(4, 8, 19, 0.98));
  border-right: 1px solid var(--line);
  z-index: 40;
  transition: width 0.18s ease, transform 0.22s ease;
}
.sidebar-top { padding: 20px 18px 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; color: #fff; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word strong { font-size: 17px; letter-spacing: 0.06em; font-weight: 800; }
.brand-word small { font-size: 9.5px; letter-spacing: 0.24em; color: var(--muted); font-weight: 600; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.nav-group { margin-bottom: 6px; }
.nav-group-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; color: var(--muted);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 12px 10px 6px; cursor: pointer;
}
.nav-caret { transition: transform 0.18s ease; opacity: 0.6; }
.nav-group.is-collapsed .nav-items { display: none; }
.nav-group.is-collapsed .nav-caret { transform: rotate(-90deg); }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin: 2px 0;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 500; font-size: 13.6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.nav-item .ic { color: var(--muted); }
.nav-item:hover .ic { color: var(--ink-2); }
.nav-item.is-active {
  background: linear-gradient(90deg, rgba(182, 255, 46, 0.16), rgba(76, 141, 255, 0.1));
  color: #fff;
}
.nav-item.is-active .ic { color: var(--neon); }
.nav-glow {
  position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 3px; background: var(--neon);
  box-shadow: 0 0 14px rgba(182, 255, 46, 0.75);
}
.nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-foot { padding: 12px 16px 18px; border-top: 1px solid var(--line); }
.phase-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 99px;
  background: var(--neon-soft); color: var(--neon);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid rgba(182, 255, 46, 0.24);
}
.side-link {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; color: var(--muted); font-size: 12.5px;
}
.side-link:hover { color: var(--ink-2); }

/* sidebar mini (dilipat) */
body.sidebar-mini .sidebar { width: var(--sidebar-mini); }
body.sidebar-mini .brand-word,
body.sidebar-mini .nav-text,
body.sidebar-mini .nav-group-head span,
body.sidebar-mini .nav-caret,
body.sidebar-mini .sidebar-foot { display: none; }
body.sidebar-mini .nav-group-head { height: 8px; padding: 0; overflow: hidden; }
body.sidebar-mini .nav-item { justify-content: center; padding: 11px 0; }
body.sidebar-mini .nav-glow { left: -12px; }
body.sidebar-mini .sidebar-top { padding: 20px 0 12px; display: flex; justify-content: center; }

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

/* ---------------- topbar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  min-height: var(--topbar-h);
  padding: 12px 26px;
  background: rgba(5, 9, 26, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-title { min-width: 0; }
.topbar-title h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.topbar-title p { color: var(--muted); font-size: 12.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topsearch {
  position: relative; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line); border-radius: 11px;
  padding: 0 12px; height: 38px; width: min(320px, 30vw);
}
.topsearch .ic { color: var(--muted); }
.topsearch input {
  border: 0; background: none; outline: none; color: var(--ink);
  font-family: inherit; font-size: 13px; width: 100%;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }

.usermenu { position: relative; }
.usermenu > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 9px;
  padding: 4px 8px 4px 4px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
}
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu[open] > summary { background: rgba(255, 255, 255, 0.08); }
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-meta strong { font-size: 12.5px; font-weight: 600; }
.user-meta small { font-size: 10.5px; color: var(--muted); }
.usermenu-caret { color: var(--muted); }
.usermenu-pop {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 236px; padding: 8px;
  background: #0b142a; border: 1px solid var(--line-2); border-radius: 13px;
  box-shadow: var(--shadow-lg); z-index: 50;
}
.usermenu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.usermenu-pop a, .usermenu-pop button.as-link {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; margin-top: 4px; border-radius: 9px;
  background: none; border: 0; color: var(--ink-2); font-size: 13px; cursor: pointer; text-align: left;
}
.usermenu-pop a:hover, .usermenu-pop button.as-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

.pagebar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px 26px 0;
}
.content { padding: 18px 26px 34px; flex: 1; }
.foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 26px 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}

/* ---------------- tombol ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; min-height: 38px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.tone-primary {
  background: linear-gradient(180deg, #c6ff56, var(--neon));
  color: var(--neon-ink);
  box-shadow: 0 10px 26px -14px rgba(182, 255, 46, 0.85);
}
.btn.tone-primary:hover { background: linear-gradient(180deg, #d3ff7a, #b0f92a); }
.btn.tone-ghost { background: rgba(255, 255, 255, 0.045); border-color: var(--line-2); color: var(--ink); }
.btn.tone-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn.tone-danger { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.35); color: #ff9d9d; }
.btn.tone-danger:hover { background: rgba(255, 107, 107, 0.2); }
.btn.tone-quiet { background: none; color: var(--ink-2); border-color: transparent; padding-left: 8px; padding-right: 8px; }
.btn.tone-quiet:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn-sm { min-height: 32px; padding: 6px 11px; font-size: 12.2px; border-radius: 9px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------------- kartu & grid ---------------- */
.card {
  background: linear-gradient(178deg, rgba(19, 31, 60, 0.86), rgba(9, 17, 35, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 17px 20px 0;
  flex-wrap: wrap;
}
.card-title { font-size: 14.5px; font-weight: 700; letter-spacing: -0.005em; }
.card-sub { color: var(--muted); font-size: 12.4px; margin-top: 2px; }
.card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 16px 20px 20px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); }
.grid-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.section-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

/* ---------------- stat ---------------- */
.stat {
  position: relative;
  display: block;
  padding: 17px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(23, 37, 70, 0.72), rgba(9, 17, 35, 0.9));
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}
a.stat:hover { transform: translateY(-2px); border-color: rgba(182, 255, 46, 0.32); }
.stat-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.06); color: var(--ink-2);
}
.stat-label { color: var(--muted); font-size: 11.6px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.stat-value { font-size: 23px; font-weight: 750; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.2; }
.stat-foot { color: var(--muted); font-size: 11.8px; margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.stat-foot .up { color: var(--green); font-weight: 600; }
.stat-foot .down { color: var(--red); font-weight: 600; }
.stat.hero { background: linear-gradient(140deg, rgba(182, 255, 46, 0.16), rgba(15, 28, 56, 0.92) 46%); border-color: rgba(182, 255, 46, 0.28); }
.stat.hero .stat-icon { background: rgba(182, 255, 46, 0.18); color: var(--neon); }

/* tone helper untuk ikon & bar */
.tone-neon { color: var(--neon); background-color: transparent; }
.stat-icon.tone-neon { background: rgba(182, 255, 46, 0.14); color: var(--neon); }
.stat-icon.tone-blue { background: rgba(76, 141, 255, 0.16); color: #7fb0ff; }
.stat-icon.tone-violet { background: rgba(156, 123, 255, 0.16); color: #b9a0ff; }
.stat-icon.tone-amber { background: rgba(255, 184, 77, 0.16); color: var(--amber); }
.stat-icon.tone-green { background: rgba(63, 211, 122, 0.16); color: var(--green); }
.stat-icon.tone-red { background: rgba(255, 107, 107, 0.16); color: #ff9d9d; }
.stat-icon.tone-slate { background: rgba(125, 139, 168, 0.16); color: var(--ink-2); }

/* ---------------- badge ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11.2px; font-weight: 650; letter-spacing: 0.015em;
  border: 1px solid transparent; white-space: nowrap;
  background: rgba(125, 139, 168, 0.14); color: var(--ink-2);
}
.b-neon { background: rgba(182, 255, 46, 0.14); color: var(--neon); border-color: rgba(182, 255, 46, 0.3); }
.b-green { background: rgba(63, 211, 122, 0.14); color: #67e79b; border-color: rgba(63, 211, 122, 0.28); }
.b-blue { background: rgba(76, 141, 255, 0.14); color: #8fb8ff; border-color: rgba(76, 141, 255, 0.28); }
.b-cyan { background: rgba(45, 212, 191, 0.14); color: #5fe3d2; border-color: rgba(45, 212, 191, 0.28); }
.b-violet { background: rgba(156, 123, 255, 0.15); color: #bfa6ff; border-color: rgba(156, 123, 255, 0.3); }
.b-amber { background: rgba(255, 184, 77, 0.14); color: #ffca85; border-color: rgba(255, 184, 77, 0.3); }
.b-red { background: rgba(255, 107, 107, 0.14); color: #ff9d9d; border-color: rgba(255, 107, 107, 0.3); }
.b-slate { background: rgba(125, 139, 168, 0.14); color: #b3bfd6; border-color: rgba(125, 139, 168, 0.26); }

/* ---------------- tabel ---------------- */
.tablewrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
.table th {
  text-align: left; padding: 9px 12px;
  font-size: 10.8px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.028); }
.table .ta-right { text-align: right; }
.table .ta-center { text-align: center; }
.table-empty { text-align: center; color: var(--muted); padding: 26px 12px; }
.table .cell-main { font-weight: 600; }
.table .cell-sub { color: var(--muted); font-size: 11.8px; }
.table a.cell-main:hover { color: var(--neon); }
.code-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.4px; letter-spacing: 0.02em;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.06); color: var(--ink-2);
  border: 1px solid var(--line);
}
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--green); }
.neg { color: var(--red); }

/* ---------------- progress ---------------- */
.progress {
  position: relative;
  height: 7px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  min-width: 70px;
}
.progress.sm { height: 5px; }
.progress-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--neon-2), var(--neon)); }
.progress-bar.tone-blue { background: linear-gradient(90deg, #2f6ad9, #4c8dff); }
.progress-bar.tone-violet { background: linear-gradient(90deg, #7257d8, var(--violet)); }
.progress-bar.tone-amber { background: linear-gradient(90deg, #d99a3a, var(--amber)); }
.progress-bar.tone-red { background: linear-gradient(90deg, #d64c4c, var(--red)); }
.progress-label { position: absolute; right: 0; top: -1px; font-size: 10px; color: var(--muted); display: none; }
.progress-cell { display: flex; align-items: center; gap: 9px; min-width: 120px; }
.progress-cell .progress { flex: 1; }
.progress-cell b { font-size: 11.6px; color: var(--ink-2); font-weight: 650; min-width: 30px; text-align: right; }

/* ---------------- avatar ---------------- */
.avatar {
  display: inline-grid; place-items: center; flex: none;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(182, 255, 46, 0.3), rgba(76, 141, 255, 0.3));
  color: #fff; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.avatar-row { display: flex; align-items: center; gap: 9px; min-width: 0; }

/* ---------------- formulir ---------------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 12.6px; font-weight: 600; color: var(--ink-2); }
.req { color: var(--neon); }
.input {
  width: 100%; min-height: 40px;
  padding: 9px 12px;
  background: rgba(4, 8, 20, 0.6);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink); font-family: inherit; font-size: 13.4px;
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}
.input::placeholder { color: #5f6c86; }
.input:focus { border-color: rgba(182, 255, 46, 0.55); box-shadow: 0 0 0 3px rgba(182, 255, 46, 0.12); }
.input.has-error { border-color: rgba(255, 107, 107, 0.65); }
.textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.select option { background: #0b142a; color: var(--ink); }
.field-hint { color: var(--muted); font-size: 11.6px; }
.field-error { color: #ff9d9d; font-size: 11.8px; }
.money-input { position: relative; display: flex; align-items: center; }
.money-input .money-prefix {
  position: absolute; left: 12px; color: var(--muted); font-size: 12.5px; font-weight: 600;
}
.money-input .input { padding-left: 38px; font-variant-numeric: tabular-nums; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--neon); }
.inline-form { display: inline-flex; align-items: center; gap: 8px; }
.help-block {
  border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px;
  color: var(--muted); font-size: 12.4px; background: rgba(255, 255, 255, 0.02);
}

/* ---------------- tabs ---------------- */
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 13px; border-radius: 9px 9px 0 0;
  color: var(--muted); font-size: 13px; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink-2); background: rgba(255, 255, 255, 0.03); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--neon); background: rgba(182, 255, 46, 0.06); }
.tab-count { font-size: 10.5px; padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.09); color: var(--ink-2); }

/* ---------------- flash & empty ---------------- */
.flash {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 14px; border-radius: 12px; margin-bottom: 16px;
  font-size: 13.2px; border: 1px solid transparent;
}
.flash-ok { background: rgba(63, 211, 122, 0.1); border-color: rgba(63, 211, 122, 0.3); color: #a9f0c4; }
.flash-err { background: rgba(255, 107, 107, 0.1); border-color: rgba(255, 107, 107, 0.32); color: #ffc0c0; }
.flash .ic { margin-top: 2px; }
.empty { padding: 34px 18px; text-align: center; color: var(--muted); }
.empty-icon {
  width: 46px; height: 46px; border-radius: 13px; margin: 0 auto 12px;
  display: grid; place-items: center;
  background: rgba(182, 255, 46, 0.08); color: var(--neon);
  border: 1px solid rgba(182, 255, 46, 0.18);
}
.empty-title { color: var(--ink); font-weight: 650; font-size: 14px; }
.empty-text { font-size: 12.8px; margin-top: 4px; }
.empty-action { margin-top: 14px; }

/* ---------------- chart ---------------- */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.ch-axis { fill: #71809c; font-size: 10.5px; font-family: var(--font); }
.ch-bar-a { fill: var(--neon); }
.ch-bar-b { fill: #3b4c74; }
.ch-hit { fill: transparent; }
.ch-hit:hover { fill: rgba(255, 255, 255, 0.035); }
.chart-legend { display: flex; gap: 16px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot-a { background: var(--neon); }
.dot-b { background: #3b4c74; }
.donut { margin: 0; display: flex; justify-content: center; }
.dn-value { fill: var(--ink); font-size: 22px; font-weight: 700; font-family: var(--font); }
.dn-label { fill: #71809c; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font); }
.legend-list { display: grid; gap: 8px; margin-top: 8px; }
.legend-item { display: flex; align-items: center; gap: 9px; font-size: 12.6px; }
.legend-item .sw { width: 9px; height: 9px; border-radius: 3px; }
.legend-item .lg-count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.hbars { display: grid; gap: 14px; min-width: 0; }
.hbar-row { display: grid; gap: 5px; }
.hbar-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.4px; min-width: 0; }
.hbar-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hbar-val { flex: 0 0 auto; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 11.6px; }
.hbar-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.hbar-a { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--neon-2), var(--neon)); }
.hbar-b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6b53cc, var(--violet)); }

/* ---------------- daftar aktivitas / tenggat ---------------- */
.timeline { display: grid; gap: 2px; }
.tl-item { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 9px 0; position: relative; }
.tl-dot {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); color: var(--muted); border: 1px solid var(--line);
}
.tl-body { min-width: 0; }
.tl-title { font-size: 12.9px; color: var(--ink-2); }
.tl-meta { color: var(--muted); font-size: 11.4px; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.deadline { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.deadline:last-child { border-bottom: 0; }
.date-chip {
  flex: none; width: 42px; text-align: center; padding: 5px 0;
  border-radius: 9px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.date-chip b { display: block; font-size: 15px; line-height: 1.1; }
.date-chip span { display: block; font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.date-chip.is-soon { background: rgba(255, 184, 77, 0.12); border-color: rgba(255, 184, 77, 0.3); }
.date-chip.is-late { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.3); }
.dl-body { min-width: 0; flex: 1; }
.dl-title { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-meta { color: var(--muted); font-size: 11.5px; margin-top: 1px; }

/* ---------------- pipeline ---------------- */
.pipeline {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(232px, 1fr);
  gap: 14px; overflow-x: auto; padding-bottom: 6px;
}
.pipe-col {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; min-height: 160px; display: flex; flex-direction: column; gap: 10px;
}
.pipe-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pipe-head h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-2); }
.pipe-count { font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, 0.07); padding: 1px 7px; border-radius: 99px; }
.pipe-card {
  display: block; padding: 11px; border-radius: 11px;
  background: linear-gradient(180deg, rgba(23, 37, 70, 0.9), rgba(12, 21, 44, 0.9));
  border: 1px solid var(--line); transition: border-color 0.15s ease, transform 0.15s ease;
}
.pipe-card:hover { border-color: rgba(182, 255, 46, 0.34); transform: translateY(-1px); }
.pipe-name { font-weight: 650; font-size: 12.9px; }
.pipe-meta { color: var(--muted); font-size: 11.4px; margin-top: 3px; }
.pipe-value { color: var(--neon); font-size: 12.2px; font-weight: 650; margin-top: 6px; }
.pipe-empty { color: var(--muted); font-size: 11.5px; text-align: center; padding: 10px 0; }

/* ---------------- workspace proyek ---------------- */
.proj-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(182, 255, 46, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(20, 33, 64, 0.9), rgba(9, 17, 35, 0.94));
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.proj-title { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; margin: 6px 0 4px; }
.proj-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12.4px; }
.proj-meta span { display: inline-flex; align-items: center; gap: 6px; }
.proj-side { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.proj-side .sum { display: flex; justify-content: space-between; gap: 12px; font-size: 12.4px; }
.proj-side .sum b { font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); }

.milestones { display: grid; gap: 2px; }
.ms-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 2px; border-bottom: 1px solid var(--line);
}
.ms-row:last-child { border-bottom: 0; }
.ms-row form { display: flex; }
.ms-check {
  width: 20px; height: 20px; flex: none; border-radius: 6px;
  border: 1.5px solid var(--line-2); background: none; cursor: pointer;
  display: grid; place-items: center; color: transparent; padding: 0;
}
.ms-check:hover { border-color: var(--neon); }
.ms-row.is-done .ms-check { background: var(--neon); border-color: var(--neon); color: var(--neon-ink); }
.ms-title { font-size: 13.2px; }
.ms-row.is-done .ms-title { color: var(--muted); text-decoration: line-through; }
.ms-date { margin-left: auto; color: var(--muted); font-size: 11.6px; white-space: nowrap; }
.ms-date.late { color: #ff9d9d; }

.money-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.money-box { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.money-box .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 650; }
.money-box .val { font-size: 16px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }

.filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.024);
}
.filters .field { min-width: 150px; flex: 1; }
.filters .field-search { flex: 2; min-width: 200px; }
.chiplist { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255, 255, 255, 0.03);
}
.chip:hover { border-color: rgba(182, 255, 46, 0.4); color: #fff; }
.chip.is-active { background: var(--neon-soft); border-color: rgba(182, 255, 46, 0.45); color: var(--neon); }
.chip .n { font-size: 10.5px; opacity: 0.85; }

.danger-zone { border-color: rgba(255, 107, 107, 0.26); }
.danger-zone .card-title { color: #ffb3b3; }

/* ---------------- halaman login ---------------- */
.auth-body {
  display: grid; place-items: center; min-height: 100vh; padding: 26px;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(42, 79, 168, 0.4), transparent 62%),
    radial-gradient(700px 420px at 92% 22%, rgba(182, 255, 46, 0.12), transparent 60%),
    var(--bg);
}
.auth-shell {
  width: min(980px, 100%);
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 26px;
  align-items: stretch;
}
.auth-card {
  background: linear-gradient(180deg, rgba(19, 31, 60, 0.95), rgba(8, 15, 32, 0.97));
  border: 1px solid var(--line-2); border-radius: 20px;
  padding: 28px 26px 26px; box-shadow: var(--shadow-lg);
}
.auth-brand { margin-bottom: 22px; }
.auth-card h1 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.auth-card .auth-sub { color: var(--muted); font-size: 13px; margin: 6px 0 20px; }
.auth-aside { display: grid; align-content: center; padding: 10px 6px; }
.auth-hero .eyebrow {
  display: inline-block; padding: 4px 11px; border-radius: 99px;
  background: var(--neon-soft); color: var(--neon); border: 1px solid rgba(182, 255, 46, 0.28);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.auth-hero h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 750; letter-spacing: -0.025em; line-height: 1.2; margin: 14px 0 18px; }
.auth-points { display: grid; gap: 10px; }
.auth-points li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 13.4px; }
.auth-points li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 3px; background: var(--neon);
  box-shadow: 0 0 12px rgba(182, 255, 46, 0.6);
}
.auth-note { color: var(--muted); font-size: 12px; margin-top: 26px; letter-spacing: 0.02em; }

.error-shell { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.error-card {
  max-width: 520px; text-align: center; padding: 34px 30px;
  background: linear-gradient(180deg, rgba(19, 31, 60, 0.95), rgba(8, 15, 32, 0.97));
  border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow-lg);
}
.error-code { font-size: 44px; font-weight: 800; color: var(--neon); letter-spacing: -0.03em; }
.error-card h1 { font-size: 19px; margin: 6px 0 10px; }
.error-card p { color: var(--muted); font-size: 13.4px; margin-bottom: 8px; }
.error-card .btn { margin-top: 16px; }

/* ---------------- responsif ---------------- */
@media (max-width: 1240px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .grid-main, .grid-side { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topsearch { width: 230px; }
}
@media (max-width: 900px) {
  :root { --topbar-h: 64px; }
  .only-mobile { display: inline-grid; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-104%);
    box-shadow: 30px 0 80px -30px rgba(0, 0, 0, 0.9);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-mini .sidebar { width: var(--sidebar-w); }
  body.sidebar-mini .brand-word,
  body.sidebar-mini .nav-text,
  body.sidebar-mini .nav-group-head span,
  body.sidebar-mini .nav-caret,
  body.sidebar-mini .sidebar-foot { display: initial; }
  body.sidebar-mini .brand-word { display: flex; }
  body.sidebar-mini .nav-group-head { height: auto; padding: 12px 10px 6px; }
  body.sidebar-mini .nav-item { justify-content: flex-start; padding: 9px 12px; }
  body.sidebar-mini .sidebar-top { padding: 20px 18px 14px; justify-content: flex-start; }
  .sidebar-scrim {
    position: fixed; inset: 0; background: rgba(3, 6, 14, 0.66);
    backdrop-filter: blur(2px); z-index: 35; border: 0;
  }
  .topbar { padding: 10px 16px; gap: 10px; }
  .topsearch { display: none; }
  .user-meta { display: none; }
  .content { padding: 16px 16px 28px; }
  .pagebar { padding: 14px 16px 0; }
  .foot { padding: 14px 16px 20px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .proj-head { padding: 16px; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: span 1; }
  .money-split { grid-template-columns: minmax(0, 1fr); }
  .stat-value { font-size: 21px; }
  .topbar-actions .btn.tone-ghost { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tab { white-space: nowrap; }
  .proj-title { font-size: 18px; }
  .kv { grid-template-columns: 108px 1fr; }
  .pipeline { grid-auto-columns: minmax(80%, 1fr); }
}
@media (max-width: 520px) {
  .card-head { padding: 14px 15px 0; }
  .card-body { padding: 14px 15px 16px; }
  .stat { padding: 14px 15px; }
  .foot { display: grid; }
  .row-between .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
