/* =====================================================================
   SISLIA - lapisan tema di atas Bootstrap 5 (dimuat SETELAH bootstrap & font awesome).
   Mobile-first. Titik beralih desktop = 992px (breakpoint "lg" Bootstrap).
   Animasi hanya transform/opacity; mati pada prefers-reduced-motion.
   ===================================================================== */
:root {
    --bg: #eef1fb; --surface: rgba(255, 255, 255, .82); --surface-solid: #ffffff; --surface-2: #f3f5fe;
    --text: #131a33; --muted: #64709a; --line: rgba(76, 90, 160, .17);
    --accent: #5b50e8; --accent-2: #8b5cf6; --cyan: #11a9c4; --ok: #0f9f78; --warn: #cf8309; --bad: #de4560;
    --accent-rgb: 91, 80, 232;
    --shadow: 0 18px 50px rgba(38, 48, 112, .10);
    --glow: 0 0 0 1px rgba(91, 80, 232, .30), 0 12px 36px rgba(91, 80, 232, .20);
    --radius: 18px; --sidebar-w: 288px; --topbar-h: 64px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}
html[data-theme="dark"] {
    --bg: #080c1b; --surface: rgba(19, 27, 52, .74); --surface-solid: #111933; --surface-2: #0e1530;
    --text: #e8ecff; --muted: #94a1c9; --line: rgba(140, 160, 255, .16);
    --accent: #8f86ff; --accent-2: #b48cff; --cyan: #4fd8ee; --ok: #35d1a4; --warn: #f1b04a; --bad: #ff6f87;
    --accent-rgb: 143, 134, 255;
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
    --glow: 0 0 0 1px rgba(143, 134, 255, .35), 0 12px 40px rgba(122, 104, 255, .25);
}

/* ---------- Penyelarasan variabel Bootstrap dengan tema ---------- */
html[data-bs-theme] {
    --bs-body-bg: var(--bg); --bs-body-color: var(--text); --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-secondary-color: var(--muted); --bs-border-color: var(--line); --bs-emphasis-color: var(--text);
    --bs-primary: var(--accent); --bs-primary-rgb: var(--accent-rgb); --bs-link-color: var(--accent); --bs-link-hover-color: var(--accent-2);
    --bs-link-color-rgb: var(--accent-rgb); --bs-border-radius: 12px;
}
body { min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 2000; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

.btn { --bs-btn-border-radius: 12px; font-weight: 650; transition: transform .22s var(--ease), box-shadow .22s, filter .2s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: transparent; --bs-btn-color: #fff; --bs-btn-hover-bg: var(--accent-2); --bs-btn-hover-border-color: transparent; --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--accent-2); --bs-btn-active-border-color: transparent; --bs-btn-active-color: #fff; background-image: linear-gradient(120deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 22px rgba(var(--accent-rgb), .30); }
.btn-outline-primary { --bs-btn-color: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--accent); --bs-btn-active-border-color: var(--accent); --bs-btn-active-color: #fff; }
.btn-danger { background-image: linear-gradient(120deg, #d6334f, #f0604b); --bs-btn-border-color: transparent; }
.card { --bs-card-bg: var(--surface); --bs-card-border-color: var(--line); --bs-card-color: var(--text); --bs-card-cap-bg: transparent; --bs-card-border-radius: var(--radius); --bs-card-inner-border-radius: calc(var(--radius) - 1px); box-shadow: var(--shadow); }
.form-control, .form-select { min-height: 46px; background-color: var(--surface-2); color: var(--text); border-color: var(--line); border-radius: 12px; }
.form-control:focus, .form-select:focus { background-color: var(--surface-2); color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 .25rem rgba(var(--accent-rgb), .20); }
.form-control::placeholder { color: var(--muted); opacity: .8; }
.form-label { font-weight: 650; font-size: .86rem; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line); --bs-table-hover-bg: var(--surface-2); --bs-table-hover-color: var(--text); --bs-table-striped-bg: var(--surface-2); }
.table > thead th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
.dropdown-menu { --bs-dropdown-bg: var(--surface-solid); --bs-dropdown-border-color: var(--line); --bs-dropdown-link-color: var(--text); --bs-dropdown-link-hover-bg: var(--surface-2); --bs-dropdown-link-hover-color: var(--text); --bs-dropdown-link-active-bg: var(--accent); --bs-dropdown-border-radius: 16px; --bs-dropdown-padding-x: .5rem; --bs-dropdown-padding-y: .5rem; --bs-dropdown-divider-bg: var(--line); --bs-dropdown-header-color: var(--muted); box-shadow: var(--shadow); min-width: 240px; }
.dropdown-menu.show { animation: dd-in .25s var(--ease) both; transform-origin: top right; }
.dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: .55rem .7rem; font-size: .9rem; }
.dropdown-item i { width: 1.1em; text-align: center; color: var(--muted); }
.dropdown-item.text-danger i { color: inherit; }
.dropdown-header small { display: block; color: var(--muted); font-size: .74rem; }
.modal-content { --bs-modal-bg: var(--surface-solid); --bs-modal-border-color: var(--line); --bs-modal-border-radius: 20px; --bs-modal-header-border-color: var(--line); --bs-modal-footer-border-color: var(--line); color: var(--text); box-shadow: var(--shadow); }
.page-link { --bs-pagination-bg: var(--surface); --bs-pagination-border-color: var(--line); --bs-pagination-color: var(--text); --bs-pagination-hover-bg: var(--surface-2); --bs-pagination-hover-color: var(--accent); --bs-pagination-disabled-bg: transparent; --bs-pagination-active-bg: var(--accent); --bs-pagination-active-border-color: var(--accent); }
.alert { border-radius: 14px; animation: slide-in .45s var(--ease) both; }
.badge { font-weight: 650; }

/* ---------- Latar aurora ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--muted) .6px, transparent .6px); background-size: 26px 26px; opacity: .10; }
.aurora span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .45; animation: drift 24s ease-in-out infinite; will-change: transform; }
.aurora span:nth-child(1) { left: -22vmax; top: -24vmax; background: radial-gradient(circle, rgba(111, 94, 255, .55), transparent 65%); }
.aurora span:nth-child(2) { right: -26vmax; top: 10vmax; background: radial-gradient(circle, rgba(34, 184, 207, .40), transparent 65%); animation-delay: -9s; }
.aurora span:nth-child(3) { left: 20vmax; bottom: -32vmax; background: radial-gradient(circle, rgba(180, 90, 255, .35), transparent 65%); animation-delay: -16s; }
html[data-theme="light"] .aurora span { opacity: .30; }
.public-nav { background: var(--surface); border-bottom: 1px solid var(--line); }

/* ---------- Sidebar: offcanvas Bootstrap (HP) -> tetap (desktop) ---------- */
.sidebar.offcanvas { --bs-offcanvas-width: min(86vw, 312px); --bs-offcanvas-bg: var(--surface-solid); --bs-offcanvas-border-color: var(--line); --bs-offcanvas-color: var(--text); --bs-offcanvas-padding-x: 14px; --bs-offcanvas-zindex: 1045; padding: 18px 14px 14px; }
.offcanvas-backdrop { --bs-backdrop-bg: #04071e; --bs-backdrop-opacity: .6; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.logo:hover { color: var(--text); }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #fff; font-size: 1.1rem; background: linear-gradient(135deg, var(--accent), var(--accent-2) 55%, var(--cyan)); box-shadow: var(--glow); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo-text strong { font-size: 1.15rem; letter-spacing: .14em; }
.logo-text small { color: var(--muted); font-size: .66rem; letter-spacing: .06em; white-space: nowrap; }
.side-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 2px 8px; scrollbar-width: thin; }
.group-title { margin: 0; padding: 16px 12px 6px; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.side-nav ul { display: grid; gap: 3px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 550; transition: background .2s, transform .25s var(--ease), color .2s; }
.nav-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); transition: all .25s var(--ease); flex-shrink: 0; }
a.nav-item:hover { background: var(--surface-2); transform: translateX(3px); color: var(--text); }
a.nav-item:hover .nav-ic { color: var(--accent); border-color: var(--accent); }
.nav-item.is-active { background: linear-gradient(90deg, rgba(139, 92, 246, .22), rgba(var(--accent-rgb), .05)); }
.nav-item.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 6px 6px 0; background: linear-gradient(var(--accent), var(--cyan)); box-shadow: 0 0 14px var(--accent); }
.nav-item.is-active .nav-ic { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: var(--glow); }
.nav-item.is-soon { opacity: .55; cursor: not-allowed; }
.soon-badge { margin-left: auto; font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.sidebar-foot { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.user-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.user-meta strong { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: var(--muted); font-size: .72rem; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 13px; font-weight: 750; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--cyan)); }
.avatar.sm { width: 34px; height: 34px; border-radius: 11px; font-size: .78rem; }
.logout-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--bad); font-weight: 600; transition: background .2s; }
.logout-btn:hover { background: rgba(222, 69, 96, .12); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: transform .2s var(--ease), border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.icon-btn:active { transform: scale(.94); }
.ic-sun { display: none; }
html[data-theme="dark"] .ic-sun { display: inline; }
html[data-theme="dark"] .ic-moon { display: none; }

/* ---------- Area utama ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar-app { position: sticky; top: 0; z-index: 1020; min-height: var(--topbar-h); padding: 10px 14px; display: flex; align-items: center; gap: 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .topbar-app, .bottom-nav, .public-nav { backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); } }
.page-heading { min-width: 0; flex: 1; }
.crumbs { margin: 0; font-size: .7rem; color: var(--muted); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs span { opacity: .5; padding: 0 3px; }
.page-title { margin: 0; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.chip i { color: var(--accent); }
.chip:hover { color: var(--text); border-color: var(--accent); }
.user-btn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .7rem; }
.user-btn .caret { transition: transform .25s var(--ease); }
.user-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.content { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 16px 14px 104px; outline: none; }
.app-footer { display: none; }

.bottom-nav { position: fixed; z-index: 1030; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; gap: 4px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border: 0; background: transparent; border-radius: 16px; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; transition: color .2s, background .2s, transform .2s var(--ease); }
.bottom-nav i { font-size: 1.1rem; }
.bottom-nav a.is-active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--glow); }
.bottom-nav a:active, .bottom-nav button:active { transform: scale(.92); }

/* ---------- Dashboard ---------- */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 24px 20px; color: #fff; margin-bottom: 16px; background: linear-gradient(125deg, #4b3fe0 0%, #7c4ff0 48%, #12a8c8 100%); box-shadow: 0 24px 60px rgba(75, 63, 224, .35); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 48%, transparent 66%); transform: translateX(-120%); animation: sheen 7s ease-in-out infinite; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .05) 70%); animation: float 9s ease-in-out infinite; pointer-events: none; }
.orb-a { width: 150px; height: 150px; right: -34px; top: -40px; }
.orb-b { width: 90px; height: 90px; right: 72px; bottom: -34px; animation-delay: -4s; opacity: .7; }
.hero-body { position: relative; z-index: 1; max-width: 640px; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); }
.hero h2 { font-size: clamp(1.5rem, 5.5vw, 2.3rem); line-height: 1.15; letter-spacing: -.03em; margin: 14px 0 8px; font-weight: 800; color: #fff; }
.hero h2 span { background: linear-gradient(90deg, #fff, #bff4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; opacity: .92; font-size: .95rem; }
.hero-meta, .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-glass { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.chip-glass i { color: #fff; }

.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { position: relative; overflow: hidden; display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.kpi:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--glow); }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--k, var(--accent)); opacity: .12; filter: blur(6px); }
.kpi-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; flex-shrink: 0; font-size: 1.05rem; background: linear-gradient(135deg, var(--k, var(--accent)), var(--k2, var(--accent-2))); box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.kpi p { margin: 0; }
.kpi-label { font-size: .74rem; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-hint { font-size: .68rem; color: var(--muted); }
.tone-indigo { --k: #6759eb; --k2: #8b5cf6; } .tone-cyan { --k: #0ea5c4; --k2: #38d0e8; } .tone-violet { --k: #9a4fe8; --k2: #c07cf5; }
.tone-green { --k: #0f9f78; --k2: #3dd6a6; } .tone-amber { --k: #d98a0b; --k2: #f5bd4b; } .tone-rose { --k: #dc3f66; --k2: #f77a8f; }

.dash-grid { display: grid; gap: 14px; }
.dash-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
@supports (backdrop-filter: blur(1px)) { .panel, .kpi, .unit-card, .card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0; }
.panel-head h3 i { color: var(--accent); }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.empty { color: var(--muted); text-align: center; padding: 18px 0; font-size: .88rem; margin: 0; }

.legend { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); }
.legend b { color: var(--text); margin-right: 6px; }
.legend span { width: 9px; height: 9px; border-radius: 3px; }
.lg-ok { background: var(--ok); } .lg-bad { background: var(--bad); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 168px; padding-top: 6px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-stack { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 2px; max-width: 46px; }
.bar { display: block; width: 100%; height: var(--h); border-radius: 8px 8px 4px 4px; transform-origin: bottom; animation: grow .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.bar-ok { background: var(--ok); background: linear-gradient(var(--ok), color-mix(in srgb, var(--ok) 50%, transparent)); }
.bar-bad { background: var(--bad); background: linear-gradient(var(--bad), color-mix(in srgb, var(--bad) 55%, transparent)); }
.bar-label { font-size: .68rem; color: var(--muted); }

.unit-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.unit-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.unit-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--glow); }
.unit-logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; overflow: hidden; font-weight: 800; font-size: .8rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--cyan)); }
.unit-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.unit-info h4 { font-size: .9rem; line-height: 1.3; margin: 0 0 4px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 650; color: var(--accent); background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .3); }
.unit-stats { display: flex; gap: 12px; margin: 0; text-align: center; }
.unit-stats dt { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.unit-stats dd { margin: 0; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; }
.tl-dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; font-size: .85rem; color: var(--t, var(--accent)); background: rgba(128, 128, 200, .16); border: 1px solid var(--line); background: color-mix(in srgb, var(--t, var(--accent)) 16%, transparent); border-color: color-mix(in srgb, var(--t, var(--accent)) 40%, transparent); }
.tl-ok { --t: var(--ok); } .tl-warn { --t: var(--warn); } .tl-bad { --t: var(--bad); } .tl-info { --t: var(--accent); }
.timeline p { margin: 0; font-size: .88rem; font-weight: 600; line-height: 1.3; }
.timeline small { color: var(--muted); font-size: .74rem; }
.health { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.health li { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.h-label { color: var(--muted); } .h-value { margin-left: auto; font-weight: 650; text-align: right; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--c); animation: pulse 2.4s ease-out infinite; }
.dot-ok { --c: var(--ok); } .dot-warn { --c: var(--warn); } .dot-bad { --c: var(--bad); }
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .86rem; }
.roadmap li { display: flex; align-items: center; gap: 10px; }
.roadmap .done { color: var(--ok); } .roadmap .next { color: var(--muted); }
.error-code { font-size: 4rem; font-weight: 800; line-height: 1; margin: 0 0 .4rem; background: linear-gradient(135deg, var(--accent), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Animasi ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); animation: reveal-fallback 0s 2.5s forwards; }
[data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(4vmax, 3vmax, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes grow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes dd-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(128, 200, 180, .5); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }

@media (min-width: 576px) {
    .content { padding: 22px 22px 110px; }
    .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { padding: 32px 30px; }
}

/* ---------- Desktop (lg >= 992px): sidebar tetap + dapat diciutkan ---------- */
@media (min-width: 992px) {
    .sidebar.offcanvas { position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-w); transform: none; visibility: visible; z-index: 1040; background: var(--surface); transition: width .35s var(--ease); border-right: 1px solid var(--line); }
    @supports (backdrop-filter: blur(1px)) { .sidebar.offcanvas { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); } }
    .shell { margin-left: var(--sidebar-w); transition: margin-left .35s var(--ease); }
    .content { padding: 26px 30px 36px; }
    .app-footer { display: flex; justify-content: space-between; gap: 12px; padding: 14px 30px 20px; color: var(--muted); font-size: .76rem; }
    .topbar-app { padding: 12px 30px; }
    .page-title { font-size: 1.35rem; }
    .dash-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }
    .dash-col { gap: 18px; }
    .hero { padding: 38px 40px; }
    .collapse-ic { transition: transform .35s var(--ease); }

    html.sidebar-collapsed { --sidebar-w: 90px; }
    html.sidebar-collapsed .logo-text, html.sidebar-collapsed .nav-label, html.sidebar-collapsed .group-title,
    html.sidebar-collapsed .soon-badge, html.sidebar-collapsed .user-meta { display: none; }
    html.sidebar-collapsed .sidebar-head { flex-direction: column; gap: 12px; }
    html.sidebar-collapsed .nav-item { justify-content: center; padding: 8px 0; }
    html.sidebar-collapsed .user-card { justify-content: center; padding: 6px; }
    html.sidebar-collapsed .logout-btn { padding: 10px 0; }
    html.sidebar-collapsed .collapse-ic { transform: rotate(180deg); }
}
@media (min-width: 1280px) {
    .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .kpi { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
