/* =====================================================================
   Sistem Pemantauan MMPA — gaya panel admin HKL Sport.
   Hijau HKL #2e936f + mint #84c390, font Onest (tajuk) + Red Hat Text (teks),
   bucu bulat 20px, bayang lembut. Tema CERAH (krim) / GELAP (hijau gelap) ikut peranti.
   ===================================================================== */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f4f2ee;
  --hover: #f4f2ee;
  --ink: #242220;
  --ink-2: #4a4744;
  --muted: #7c7873;
  --line: #e8e6e1;
  --line-strong: #d9d5cd;
  --brand: #2e936f;
  --brand-d: #24805f;
  --brand-ink: #1f7a58;
  --brand-soft: #deede0;
  --active-line: #c6e3cf;
  --mint: #84c390;
  --blue: #4f86b3;   --blue-soft: #e4ecf2;
  --amber: #b7791f;  --amber-soft: #fbf1dc;
  --pink: #b0578a;   --pink-soft: #f2e6ec;
  --danger: #c0392b; --danger-soft: #fbe9e7;
  --ok: #2e936f;     --ok-soft: #deede0;
  --hero1: #1b6549;
  --hero2: #112111;
  --side-bg: #ffffff;
  --topbar-bg: rgba(250, 249, 247, 0.86);
  --radius: 20px;
  --shadow: 0 4px 30px rgba(17, 33, 17, 0.06);
  --font-head: 'Onest', 'Segoe UI', sans-serif;
  --font-body: 'Red Hat Text', 'Segoe UI', Roboto, sans-serif;
  --page-bg: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07100b;
    --surface: #0d1913;
    --surface-2: #112019;
    --hover: rgba(255, 255, 255, 0.05);
    --ink: #eef4f0;
    --ink-2: #c9d6ce;
    --muted: #9db0a4;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --brand-d: #3aa57d;
    --brand-ink: #84c390;
    --brand-soft: rgba(46, 147, 111, 0.2);
    --active-line: rgba(132, 195, 144, 0.35);
    --blue: #9cc4e6;   --blue-soft: rgba(79, 134, 179, 0.18);
    --amber: #f0b429;  --amber-soft: rgba(240, 180, 41, 0.13);
    --pink: #e3a3c6;   --pink-soft: rgba(214, 144, 179, 0.15);
    --danger: #ff7b6b; --danger-soft: rgba(229, 85, 70, 0.14);
    --ok: #84c390;     --ok-soft: rgba(46, 147, 111, 0.18);
    --side-bg: linear-gradient(180deg, #0b1a13 0%, #060d09 100%);
    --topbar-bg: rgba(7, 16, 11, 0.88);
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    --page-bg: radial-gradient(ellipse 80% 45% at 60% 0%, rgba(46, 147, 111, 0.14), transparent 70%), #07100b;
    color-scheme: dark;
  }
}

/* ---------- Asas ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page-bg); background-attachment: fixed; color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.ic { flex-shrink: 0; }
::selection { background: rgba(132, 195, 144, 0.35); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* ---------- Rangka: menu sisi + kandungan ---------- */
.app { display: flex; min-height: 100vh; }
.side {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
  width: 256px; display: flex; flex-direction: column;
  background: var(--side-bg); border-right: 1px solid var(--line);
  transition: transform 0.25s ease;
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.brand-badge {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--hero1), var(--brand)); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 19px;
  box-shadow: 0 6px 16px rgba(46, 147, 111, 0.35);
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.brand-name em { font-style: normal; color: var(--brand-ink); }
.brand-name small { display: block; margin-top: 2px; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted); }
.side-nav { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.side-label { padding: 2px 12px 8px; font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 14px; border: 1px solid transparent;
  color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.side-nav a .ic { opacity: 0.8; }
.side-nav a:hover { background: var(--hover); color: var(--ink); }
.side-nav a.active { background: var(--brand-soft); border-color: var(--active-line); color: var(--brand-ink); }
.side-nav a.active .ic { opacity: 1; }
.nav-badge { margin-left: auto; min-width: 22px; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.side-foot { padding: 14px 16px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.side-live { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.side-foot form { margin: 0; }
.side-logout {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 12px; border: 1px solid var(--line); background: transparent;
  color: var(--ink-2); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.side-logout:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }

.main { margin-left: 256px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: 64px;
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: var(--topbar-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; width: 40px; height: 40px; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.page-title { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sync-pill, .user-chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; white-space: nowrap; }
.sync-pill { padding: 6px 12px; color: var(--muted); }
.user-chip { padding: 4px 12px 4px 4px; font-weight: 600; color: var(--ink-2); }
.user-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 13px; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--mint); box-shadow: 0 0 0 3px var(--ok-soft); }
.sync-dot.stale { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.content { width: 100%; max-width: 1440px; padding: 28px; display: grid; gap: 22px; }
.shade { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.45); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: 30px 34px; border-radius: 24px; color: #fff;
  background:
    radial-gradient(ellipse 55% 130% at 100% 0%, rgba(132, 195, 144, 0.35), transparent 60%),
    linear-gradient(135deg, var(--hero1) 0%, var(--hero2) 100%);
  box-shadow: var(--shadow);
}
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; border: 42px solid rgba(255, 255, 255, 0.05); }
.hero::before { width: 300px; height: 300px; right: -90px; bottom: -150px; }
.hero::after { width: 160px; height: 160px; right: 210px; top: -110px; border-width: 26px; }
.hero-text { max-width: 640px; }
.hero-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #aee2b8; font-weight: 600; font-size: 14px; text-decoration: none; }
.hero-back:hover { color: #fff; }
.hero-kicker { display: block; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #aee2b8; }
.hero h2 { margin: 6px 0 8px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: #fff; }
.hero p { margin: 0; max-width: 60ch; font-size: 14.5px; color: rgba(255, 255, 255, 0.78); }
.hero-figure { text-align: right; }
.hero-figure strong { display: block; font-family: var(--font-head); font-size: clamp(42px, 5vw, 58px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-figure span { display: block; margin-top: 6px; font-weight: 700; color: #dff3e4; }
.hero-figure small { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* ---------- Kad statistik ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat {
  position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 18px 18px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--acc); }
.stat-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; color: var(--acc); background: var(--acc-soft); }
.stat-lbl { display: block; font-family: var(--font-head); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat strong { display: block; margin-top: 2px; font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12.5px; color: var(--muted); }
.stat small a { font-weight: 700; text-decoration: none; }
.acc-green { --acc: var(--brand); --acc-soft: var(--brand-soft); }
.acc-blue { --acc: var(--blue); --acc-soft: var(--blue-soft); }
.acc-amber { --acc: var(--amber); --acc-soft: var(--amber-soft); }
.acc-mint { --acc: var(--ok); --acc-soft: var(--ok-soft); }
.acc-pink { --acc: var(--pink); --acc-soft: var(--pink-soft); }

/* ---------- Panel ---------- */
.panel { min-width: 0; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.panel-head h2 .ic { color: var(--brand-ink); }
.panel-head small { color: var(--muted); font-size: 12.5px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 800; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; align-items: start; }
.stack { display: grid; gap: 22px; align-content: start; min-width: 0; }
.dash-row { display: grid; grid-template-columns: fit-content(560px) minmax(0, 1fr); gap: 22px; align-items: start; }

/* ---------- Penapis & borang ---------- */
.tools { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(290px, 1fr); gap: 22px; align-items: stretch; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.tools-head { flex-basis: 100%; margin-bottom: 2px; }
.link-reset { font-size: 13px; font-weight: 700; color: var(--brand-ink); text-decoration: none; }
.field { display: grid; gap: 5px; min-width: 140px; flex: 1 1 150px; }
.field label { font-family: var(--font-head); font-size: 12px; font-weight: 600; color: var(--muted); }
input[type="text"], input[type="search"], input[type="password"], input[type="date"], select {
  width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
  font: inherit; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: 999px;
  box-shadow: 0 6px 16px rgba(46, 147, 111, 0.25); transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:hover { background: var(--brand-d); box-shadow: 0 8px 20px rgba(46, 147, 111, 0.32); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--hover); color: var(--brand-ink); border-color: var(--brand); box-shadow: none; }
.btn-gold { background: linear-gradient(135deg, var(--hero1), var(--brand)); border-color: transparent; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.report-bar { display: flex; flex-direction: column; gap: 10px; }
.report-bar > small { color: var(--muted); font-size: 13px; }
.report-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: auto; }
.report-controls .field { flex: 1 1 150px; }

/* ---------- Carta bar ---------- */
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 36%) 1fr auto; align-items: center; gap: 12px; padding: 3px 6px; border-radius: 10px; font-size: 14px; color: inherit; text-decoration: none; }
a.bar-row:hover { background: var(--hover); }
.bar-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.bar-track { display: block; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--mint)); }
.bar-value { min-width: 3.4rem; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Trend harian ---------- */
.trend { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.trend-col { flex: 1 0 12px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.trend-bar { width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--mint), var(--brand)); }
.trend-col:hover .trend-bar { background: var(--amber); }
.trend-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ---------- Jadual ---------- */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; background: var(--surface-2); font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--hover); }
td.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-wait { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge-dup { background: var(--amber-soft); color: var(--amber); }
.badge-peg { background: var(--pink-soft); color: var(--pink); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.pager-links { display: flex; gap: 8px; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--active-line); }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(192, 57, 43, 0.3); }

/* ---------- Jadual pangsi Formasi × Kategori ---------- */
.pivot-panel { padding: 18px 18px 16px; }
.pivot-panel .panel-head { margin-bottom: 10px; }
.pivot-panel .panel-head small { display: block; margin-top: 2px; }
.pivot-wrap { overflow-x: auto; }
.pivot { width: auto; min-width: 380px; font-size: 13.5px; }
.pivot th, .pivot td { padding: 6px 12px; }
.pivot th.n, .pivot td.n { min-width: 64px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pivot td:first-child { white-space: nowrap; }
.pivot td:first-child a { color: inherit; font-weight: 600; text-decoration: none; }
.pivot td:first-child a:hover { color: var(--brand-ink); text-decoration: underline; }
.pivot td.total { font-weight: 700; background: var(--brand-soft); }
.pivot tfoot td { font-weight: 800; background: var(--surface-2); border-top: 2px solid var(--brand); border-bottom: 0; }

/* ---------- Log masuk ---------- */
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background:
    radial-gradient(ellipse 70% 50% at 75% 0%, rgba(132, 195, 144, 0.28), transparent 60%),
    linear-gradient(160deg, #1b6549 0%, #0b1a12 70%);
}
.login-card { width: min(420px, 100%); display: grid; gap: 16px; padding: 32px 28px; border-radius: 24px; background: var(--surface); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-card h1 { font-size: 21px; font-weight: 800; }
.login-card p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.login-card .btn { width: 100%; margin-top: 4px; }

/* ---------- Responsif ---------- */
@media (max-width: 1180px) {
  .tools { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .side { transform: translateX(-100%); box-shadow: none; }
  body.menu-open .side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.35); }
  body.menu-open { overflow: hidden; }
  .main { margin-left: 0; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 32px; gap: 18px; }
  .dash-row { grid-template-columns: 1fr; }
  .pivot { width: 100%; }
}
@media (max-width: 640px) {
  .sync-text, .user-id { display: none; }
  .user-chip { padding: 4px; }
  .page-title { font-size: 18px; }
  .hero { padding: 22px 20px; border-radius: 20px; }
  .hero-figure { text-align: left; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { flex-direction: column; gap: 10px; padding: 14px 14px 14px 18px; }
  .stat-ic { width: 36px; height: 36px; border-radius: 11px; }
  .stat strong { font-size: 24px; }
  .bar-row { grid-template-columns: minmax(90px, 40%) 1fr auto; gap: 8px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Pautan menu "Laporan Excel" (#laporan): jangan terlindung di bawah bar atas, dan menyala sekejap. */
#laporan { scroll-margin-top: 88px; }
.report-bar.flash { animation: mmpa-flash 1.8s ease; }
@keyframes mmpa-flash {
  0%, 55% { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(132, 195, 144, 0.45), var(--shadow); }
  100% { box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: reduce) { .report-bar.flash { animation: none; border-color: var(--mint); } }

/* ---------- Menu kumpulan "MMPA" (klik buka/tutup 3 modul) ---------- */
.side-label-gap { margin-top: 14px; }
.nav-group-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px;
  border-radius: 14px; border: 1px solid transparent; background: none; cursor: pointer;
  color: var(--ink-2); font: inherit; font-weight: 700; font-size: 14.5px; text-align: left;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-group-btn .ic { opacity: 0.85; }
.nav-group-btn:hover { background: var(--hover); color: var(--ink); }
.nav-group-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav-group-btn.has-active { color: var(--brand-ink); }
.nav-group:not(.open) .nav-group-btn.has-active { background: var(--brand-soft); border-color: var(--active-line); }
.nav-chevron { display: inline-flex; margin-left: auto; transition: transform 0.25s ease; }
.nav-group-badge + .nav-chevron { margin-left: 6px; }
.nav-group.open .nav-chevron { transform: rotate(180deg); }
.nav-group.open .nav-group-badge { display: none; }
.nav-group.open .nav-group-badge + .nav-chevron { margin-left: auto; }
.nav-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.nav-group.open .nav-sub { grid-template-rows: 1fr; }
.nav-sub-in { overflow: hidden; display: flex; flex-direction: column; gap: 4px; margin-left: 12px; padding-left: 6px; border-left: 1px solid var(--line); }
.nav-group.open .nav-sub-in { padding-top: 4px; }
/* Sub-menu: tulisan sentiasa SEBARIS (tidak turun baris) */
.nav-sub-in a { font-size: 13.5px; padding: 9px 10px; gap: 10px; white-space: nowrap; }
.nav-sub-in a > span:not(.nav-badge) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-sub-in a .nav-badge { flex: none; }
.nav-group-btn > span:not(.nav-badge):not(.nav-chevron) { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .nav-sub, .nav-chevron { transition: none; } }

/* ---------- Halaman modul "akan datang" (PIK) ---------- */
.soon { max-width: 640px; display: grid; justify-items: center; gap: 8px; padding: 48px 24px; text-align: center; }
.soon-ic { display: inline-flex; padding: 14px; border-radius: 18px; background: var(--brand-soft); color: var(--brand-ink); }
.soon h2 { margin: 6px 0 0; font-size: 20px; font-weight: 700; }
.soon p { margin: 0; max-width: 42ch; }
