/* ============================================================================
   PORTAL APLIKASI PROGRAM TERPUSAT — Stylesheet (css/style.css)
   Sistem desain: DESIGN.md (Plus Jakarta Sans + Inter, emerald/navy/aqua/gold,
   glassmorphism lembut, kartu 24px, tombol pill). Mobile-first.
   ============================================================================ */

/* ── 1. Token ─────────────────────────────────────────────────────────────── */
:root {
  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --green: #16A34A;            /* aksen, titik status, indikator */
  --green-btn: #15803D;        /* latar tombol (kontras teks putih 4.8:1) */
  --green-btn-hover: #006B2C;
  --navy: #0B3B8C;
  --navy-deep: #0B2545;
  --aqua: #22B8CF;
  --fresh: #3DDC84;
  --gold: #F5B50A;
  --red: #BA1A1A;

  --bg: #EEF7FD;
  --bg-band: #E5F0F9;
  --surface: #FFFFFF;
  --surface-2: #F1F7FC;
  --surface-3: #E8F1F9;
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .9);
  --glass-soft: rgba(255, 255, 255, .45);
  --border: #DCE8F0;
  --border-strong: #C9DAE7;
  --border-glass: rgba(255, 255, 255, .8);

  --text: #0B2545;
  --muted: #5B6B7F;
  --link: #0B3B8C;
  --placeholder: rgba(91, 107, 127, .6);

  --ok-bg: rgba(22, 163, 74, .12);   --ok-tx: #166534;
  --warn-bg: rgba(245, 181, 10, .16); --warn-tx: #A0460A;
  --info-bg: rgba(34, 184, 207, .14); --info-tx: #0E7490;
  --navy-bg: rgba(11, 59, 140, .08);  --navy-tx: #0B3B8C;
  --err-bg: #FFE4E1;                  --err-tx: #93000A;

  --grad-hero: linear-gradient(135deg, #0B3B8C 0%, #1C7FB6 38%, #22B8CF 62%, #16A34A 100%);
  --grad-banner: linear-gradient(115deg, #0A2A63 0%, #0B3B8C 42%, #0D6C7C 100%);
  --grad-side: linear-gradient(180deg, #0A2A63 0%, #0B3B8C 48%, #0B6B78 100%);

  --sh-1: 0 4px 16px -2px rgba(11, 59, 140, .06);
  --sh-2: 0 8px 24px rgba(11, 59, 140, .08);
  --sh-3: 0 16px 36px -4px rgba(11, 59, 140, .14), 0 4px 12px rgba(11, 59, 140, .05);
  --sh-btn: 0 8px 20px -6px rgba(22, 163, 74, .45);

  --r-xs: 8px; --r-sm: 12px; --r-input: 14px; --r-icon: 16px; --r-card: 24px; --r-xl: 32px; --r-pill: 9999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 160ms; --t-med: 240ms;
  --header-h: 68px;
  --side-w: 280px;
}

[data-theme="dark"] {
  --bg: #06111F;
  --bg-band: #0A1A30;
  --surface: #0D1B32;
  --surface-2: #11223D;
  --surface-3: #162B4B;
  --glass: rgba(13, 27, 50, .74);
  --glass-strong: rgba(15, 31, 57, .94);
  --glass-soft: rgba(255, 255, 255, .06);
  --border: #1D3254;
  --border-strong: #284270;
  --border-glass: rgba(255, 255, 255, .08);
  --text: #E7EFF8;
  --muted: #9FB1C7;
  --link: #93B7FF;
  --placeholder: rgba(159, 177, 199, .55);
  --ok-bg: rgba(74, 222, 128, .14);   --ok-tx: #7EE2A5;
  --warn-bg: rgba(245, 181, 10, .16); --warn-tx: #F8CF5A;
  --info-bg: rgba(34, 184, 207, .16); --info-tx: #6FDCEC;
  --navy-bg: rgba(147, 183, 255, .12); --navy-tx: #A8C4FF;
  --err-bg: rgba(255, 99, 99, .14);   --err-tx: #FFB4AB;
  --sh-1: 0 4px 16px -2px rgba(0, 0, 0, .35);
  --sh-2: 0 8px 24px rgba(0, 0, 0, .35);
  --sh-3: 0 18px 40px -6px rgba(0, 0, 0, .55);
}

/* ── 2. Dasar ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 1rem/1.5 var(--font-body); -webkit-font-smoothing: antialiased;
  transition: background-color var(--t-med) ease, color var(--t-med) ease;
}
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.25; letter-spacing: -.015em; color: var(--text); }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--link); }
img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); font-size: .85em; background: var(--surface-3); padding: .1em .4em; border-radius: 6px; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 20px 0 14px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.block { display: block; }
.mt-2 { margin-top: 8px; }
.req { color: var(--red); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid rgba(22, 163, 74, .55); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--green-btn); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; transition: top var(--t-fast); }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.view { min-height: 100vh; }

/* Ikon SVG */
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic--sm { width: 15px; height: 15px; }
.ic--inline { width: 16px; height: 16px; vertical-align: -3px; }
[data-theme="dark"] .ic-tema-terang, :root:not([data-theme="dark"]) .ic-tema-gelap { display: none; }

/* ── 3. Tombol ────────────────────────────────────────────────────────────── */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--r-pill);
  font: 600 .875rem/1.2 var(--font-head); letter-spacing: .01em; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; transition: background-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  user-select: none; position: relative;
}
.btn:active { transform: scale(.98); }
.btn--sm { --h: 40px; padding: 0 16px; }
.btn--lg { --h: 52px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green-btn); color: #fff; box-shadow: var(--sh-btn); }
.btn--primary:hover { background: var(--green-btn-hover); transform: translateY(-1px); }
.btn--soft { background: var(--glass-strong); color: var(--navy-tx); border-color: var(--border); }
.btn--soft:hover { background: var(--surface); box-shadow: var(--sh-2); }
.btn--ghost { color: var(--muted); }
.btn--ghost:hover { background: var(--navy-bg); color: var(--text); }
.btn--danger { background: #C62828; color: #fff; box-shadow: 0 8px 20px -6px rgba(198, 40, 40, .45); }
.btn--danger:hover { background: #A31515; }
.btn--onDark { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.btn--onDark:hover { background: rgba(255, 255, 255, .22); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: putar .7s linear infinite;
}
.btn--soft.is-loading::after, .btn--ghost.is-loading::after { border-color: var(--border); border-top-color: var(--navy-tx); }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r-pill);
  color: var(--muted); transition: background-color var(--t-fast), color var(--t-fast); flex: none;
}
.icon-btn:hover { background: var(--navy-bg); color: var(--text); }
.icon-btn--sm { width: 36px; height: 36px; }
.icon-btn--sm .ic { width: 18px; height: 18px; }
.icon-btn--danger:hover { background: var(--err-bg); color: var(--err-tx); }
.icon-btn--light { color: rgba(255, 255, 255, .85); }
.icon-btn--light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font: 600 .875rem var(--font-head); text-decoration: none; min-height: 32px; border-radius: 8px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn--sm { font-size: .8rem; }
.link-btn--sm .ic { width: 16px; height: 16px; }
.link-btn--center { width: 100%; justify-content: center; }

/* ── 4. Chip, badge, tag, titik ───────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font: 700 .6875rem/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.chip .ic { width: 14px; height: 14px; }
.chip--glass { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(10px); }
.chip--outline { background: var(--glass-strong); color: var(--navy-tx); border: 1px solid var(--border); }
.chip--info { background: var(--info-bg); color: var(--info-tx); }
.chip--mono { background: var(--surface-3); color: var(--muted); text-transform: none; letter-spacing: .02em; }
.sub-head__meta { display: none; }
.chip--onDark { background: rgba(255, 255, 255, .14); color: #fff; text-transform: none; letter-spacing: .01em; font-weight: 600; font-size: .75rem; border: 1px solid rgba(255, 255, 255, .2); }
.chip-text { color: rgba(255, 255, 255, .8); font: 600 .75rem var(--font-head); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); font: 700 .6875rem/1.3 var(--font-head); letter-spacing: .04em; white-space: nowrap; }
.badge .ic { width: 13px; height: 13px; }
.badge--ok { background: var(--ok-bg); color: var(--ok-tx); }
.badge--warn { background: var(--warn-bg); color: var(--warn-tx); }
.badge--info { background: var(--info-bg); color: var(--info-tx); }
.badge--navy { background: var(--navy-bg); color: var(--navy-tx); }
.badge--mute { background: var(--surface-3); color: var(--muted); }
.badge--err { background: var(--err-bg); color: var(--err-tx); }
.badge--glass { background: rgba(255, 255, 255, .88); color: #166534; box-shadow: 0 2px 8px rgba(11, 59, 140, .08); }
[data-theme="dark"] .badge--glass { background: rgba(13, 27, 50, .85); color: var(--ok-tx); }
.badge--glass.is-warn { color: #A0460A; }
.badge--glass.is-info { color: #0E7490; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.dot--ok { background: var(--green); }
.dot--gold { background: var(--gold); }
.dot--warn { background: var(--gold); }
.dot--mute { background: #94A3B8; }
.dot--err { background: #E5484D; }
.dot--pulse { background: var(--green); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: denyut 2s infinite; }
.eyebrow { font: 700 .6875rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kbd { font: 600 .75rem var(--font-mono); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); background: var(--surface-2); }
.accent-bar { width: 6px; align-self: stretch; min-height: 32px; border-radius: 6px; background: linear-gradient(180deg, var(--navy), var(--green)); flex: none; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font: 700 .625rem/1.4 var(--font-head); letter-spacing: .07em; text-transform: uppercase; }
.tag--aqua { background: #CFF4F9; color: #0B5E6E; }
.tag--indigo { background: #E1E6F7; color: #213B86; }
.tag--green { background: #CDF5DC; color: #14532D; }
.tag--gold { background: #FCEFC7; color: #7A3E06; }
[data-theme="dark"] .tag--aqua { background: rgba(34, 184, 207, .2); color: #8DE6F2; }
[data-theme="dark"] .tag--indigo { background: rgba(147, 183, 255, .18); color: #BBD0FF; }
[data-theme="dark"] .tag--green { background: rgba(74, 222, 128, .18); color: #9AEBB8; }
[data-theme="dark"] .tag--gold { background: rgba(245, 181, 10, .18); color: #F8D27A; }

/* ── 5. Formulir ──────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field__row > label:not(.check), .label, legend.label { font: 600 .875rem var(--font-body); color: var(--text); padding: 0; }
.field__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.field__help { font-size: .8rem; color: var(--muted); display: block; line-height: 1.5; }
.field__help .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.field__help--warn { color: var(--warn-tx); }
.field__err { font-size: .8rem; color: var(--err-tx); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.input, .input--icon {
  width: 100%; min-height: 48px; border-radius: var(--r-input); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
input.input, textarea.input { padding: 12px 14px; outline: none; }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }
.input--icon { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; }
.input--icon > .ic { color: var(--muted); }
.input--icon input { flex: 1; min-width: 0; height: 46px; border: 0; outline: none; background: transparent; }
.input::placeholder, .input--icon input::placeholder { color: var(--placeholder); }
.input:focus, .input--icon:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.is-invalid .input, .is-invalid .input--icon, .input.is-invalid { border-color: #D93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, .12); }
.input__aksi { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); flex: none; }
.input__aksi:hover { background: var(--navy-bg); color: var(--text); }
.input__aksi[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; position: relative; padding: 4px 0; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.check__box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; margin-top: 1px; background: var(--surface); transition: all var(--t-fast); }
.check__box .ic { width: 13px; height: 13px; stroke-width: 3; color: #fff; opacity: 0; }
.check input:checked + .check__box { background: var(--green-btn); border-color: var(--green-btn); }
.check input:checked + .check__box .ic { opacity: 1; }
.check input:focus-visible + .check__box { outline: 3px solid rgba(22, 163, 74, .45); outline-offset: 2px; }
.check--box { padding: 14px; border-radius: var(--r-input); border: 1px solid var(--border); background: var(--surface-2); width: 100%; }
fieldset.field { gap: 4px; }

/* Toggle switch */
.switch { --w: 50px; width: var(--w); height: 28px; border-radius: var(--r-pill); background: #C3CFDB; position: relative; transition: background-color var(--t-fast); flex: none; display: inline-block; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(11, 37, 69, .25); transition: transform var(--t-med) var(--ease); }
[data-theme="dark"] .switch { background: #34496B; }
button.toggle { padding: 8px 0; border-radius: var(--r-pill); display: inline-flex; }
button.toggle[aria-checked="true"] .switch, .switch-input:checked + .switch { background: var(--green-btn); }
button.toggle[aria-checked="true"] .switch::after, .switch-input:checked + .switch::after { transform: translateX(22px); }
button.toggle:disabled { opacity: .5; cursor: not-allowed; }
.switch-row { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-size: .9rem; position: relative; }
.switch-input { position: absolute; opacity: 0; width: 50px; height: 28px; margin: 0; }
.switch-input:focus-visible + .switch { outline: 3px solid rgba(22, 163, 74, .45); outline-offset: 2px; }

/* Segmented control */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: var(--surface-3); }
.seg__btn { min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); font: 600 .85rem var(--font-head); color: var(--muted); white-space: nowrap; transition: all var(--t-fast); }
.seg__btn span { font-variant-numeric: tabular-nums; opacity: .8; }
.seg__btn:hover { color: var(--text); }
.seg__btn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
.seg--sm .seg__btn { min-height: 36px; padding: 0 12px; font-size: .8rem; }
.seg--block { display: flex; }
.seg--block .seg__btn { flex: 1; }

/* Catatan & alert */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-input); font-size: .85rem; }
.note .ic { width: 18px; height: 18px; margin-top: 1px; }
.note b { display: block; font-weight: 600; font-size: .85rem; }
.note span { color: var(--muted); }
.note--info { background: var(--navy-bg); color: var(--navy-tx); font-weight: 600; align-items: center; }
.note--info span { color: inherit; }
.note--soft { background: var(--surface-2); border: 1px solid var(--border); }
.note--soft .ic { color: var(--green); }
.alert { padding: 12px 14px; border-radius: var(--r-input); font-size: .875rem; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.alert--err { background: var(--err-bg); color: var(--err-tx); }
.alert--warn { background: var(--warn-bg); color: var(--warn-tx); }
.alert .ic { width: 18px; height: 18px; margin-top: 1px; }

/* ── 6. Kartu dasar ───────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--sh-1); padding: 20px; }
.card--glass { background: var(--glass); border-color: var(--border-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--sh-2); }
.card--tint { background: var(--surface-2); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__title { font: 700 1.125rem/1.3 var(--font-head); display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.card__title .ic { color: var(--navy-tx); }
.card > .card__title { margin-bottom: 16px; }
.tile-ic { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; color: #fff; }
.tile-ic--teal { background: linear-gradient(135deg, #0E7490, #22B8CF); }
.tile-ic--navy { background: var(--navy-bg); color: var(--navy-tx); }
.tile-ic--green { background: linear-gradient(135deg, #15803D, #22C55E); }
.tile-ic--soft { background: var(--surface-3); color: var(--muted); }
.tile-ic--indigo { background: linear-gradient(135deg, #3B5BDB, #7C9BFF); }
.tile-ic--err { background: var(--err-bg); color: var(--err-tx); }
.spin-sm { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--link); animation: putar .7s linear infinite; display: inline-block; flex: none; }

/* ── 7. Overlay boot ──────────────────────────────────────────────────────── */
.boot { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--bg); transition: opacity var(--t-med) ease; }
.boot.is-hidden { opacity: 0; pointer-events: none; }
.boot__ring { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--green); animation: putar .8s linear infinite; }

/* ── 8. Halaman publik ────────────────────────────────────────────────────── */
.pub-header { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--border-glass); }
.pub-header.is-scrolled { box-shadow: var(--sh-1); border-bottom-color: var(--border); }
.pub-header__in { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-align: left; min-width: 0; border-radius: 12px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__text strong { font: 700 .95rem/1.2 var(--font-head); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.brand__text small { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.brand__logo { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.brand__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.brand__logo--sm { width: 36px; height: 36px; border-radius: 10px; }
.brand__logo--glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .24); }
.emblem { width: 100%; height: 100%; display: grid; place-items: center; background: var(--grad-hero); color: #fff; }
.emblem .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.brand__logo--sm .emblem .ic, .mini-portal__bar .emblem .ic { width: 16px; height: 16px; }
.login__emblem .emblem .ic { width: 34px; height: 34px; }
.logo-edit__preview .emblem .ic { width: 30px; height: 30px; }
.pub-nav { display: none; margin-left: auto; gap: 4px; }
.pub-nav__link { white-space: nowrap; padding: 10px 14px; border-radius: var(--r-pill); font: 600 .875rem var(--font-head); color: var(--muted); }
.pub-nav__link:hover { color: var(--text); background: var(--navy-bg); }
.pub-nav__link.is-active { color: var(--green-btn); }
[data-theme="dark"] .pub-nav__link.is-active { color: var(--ok-tx); }
.pub-header__aksi { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.badge--koneksi { display: none; }
#btnMasukAdmin span { display: none; }
#btnMasukAdmin { padding: 0 12px; }

.hero { padding-top: 16px; position: relative; }
.hero__card { position: relative; overflow: hidden; border-radius: 28px; background: var(--grad-hero); color: #fff; padding: 36px 22px 92px; box-shadow: 0 24px 48px -16px rgba(11, 59, 140, .35); }
.hero__decor { position: absolute; inset: 0; pointer-events: none; }
.hero__waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(4px); }
.hero__blob--a { width: 420px; height: 260px; right: -80px; top: -60px; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); }
.hero__blob--b { width: 300px; height: 300px; left: 30%; bottom: -180px; background: radial-gradient(closest-side, rgba(61, 220, 132, .35), transparent); }
.hero__grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 75%); mask-image: linear-gradient(115deg, transparent 35%, #000 75%); }
.hero__content { position: relative; max-width: 640px; }
.hero__title { color: #fff; font-size: 2rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 800; margin: 16px 0 12px; text-wrap: balance; }
.hero__desc { color: rgba(255, 255, 255, .9); font-size: 1rem; max-width: 560px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 28px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .22); max-width: 520px; }
.hero__stats dt { font-size: .72rem; color: rgba(255, 255, 255, .82); font-weight: 500; }
.hero__stats dd { margin: 0; font: 800 1.5rem/1.15 var(--font-head); letter-spacing: -.02em; }
.hero__stats div { display: flex; flex-direction: column-reverse; }

.searchbar { position: relative; z-index: 2; margin: -56px 12px 0; background: var(--glass-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border-glass); border-radius: 24px; box-shadow: var(--sh-3); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.searchbar__field { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid transparent; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.searchbar__field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.searchbar__field .ic { color: var(--green-btn); }
.searchbar__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 50px; font-size: .95rem; }
.searchbar__field input::placeholder { color: var(--placeholder); }
.searchbar__field input::-webkit-search-cancel-button { cursor: pointer; }
.searchbar .kbd { display: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: 600 .8rem var(--font-head); white-space: nowrap; transition: all var(--t-fast); }
.chip-btn:hover { color: var(--text); border-color: var(--border-strong); }
.chip-btn[aria-pressed="true"] { background: var(--green-btn); border-color: var(--green-btn); color: #fff; box-shadow: var(--sh-btn); }
.chip-btn span { opacity: .75; font-variant-numeric: tabular-nums; }

.section { padding-top: 48px; scroll-margin-top: 80px; }
.band, #status { scroll-margin-top: 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.section-head__title { display: flex; gap: 14px; align-items: stretch; }
.section-head__title h2 { font-size: 1.375rem; font-weight: 700; }
.section-head__title p { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.section-head__meta { display: flex; align-items: center; gap: 10px; }

.app-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.app-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 14px; display: flex; flex-direction: column; box-shadow: var(--sh-1); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med); animation: muncul .45s var(--ease) both; }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--border-strong); }
.app-card:hover .thumb__tile { transform: scale(1.07) rotate(-2deg); }
.app-card__media { position: relative; }
.app-card__media .tag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.app-card__media .badge { position: absolute; top: 10px; right: 10px; z-index: 2; }
.app-card__body { padding: 16px 6px 14px; flex: 1; }
.app-card__body h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.app-card__body p { color: var(--muted); font-size: .875rem; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.app-card mark { background: rgba(245, 181, 10, .3); color: inherit; border-radius: 3px; padding: 0 1px; }
.app-card__foot { padding: 0 2px 2px; }

/* Thumbnail ilustrasi teknologi (dibuat otomatis per nama aplikasi) */
.thumb { --t1: #D6F4F8; --t2: #EEFCFF; --t3: #C2ECF4; --tc: #0E7490; --tl: rgba(14, 116, 144, .5);
  position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 8.6; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 85% 10%, var(--t2) 0%, transparent 60%), linear-gradient(135deg, var(--t1), var(--t3)); isolation: isolate; }
.thumb::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--tl) 1px, transparent 1.3px); background-size: 14px 14px; opacity: .45; }
.thumb::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tc); opacity: .2;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 172' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0 40h60l20 20h50M0 120h40l24-24h52M320 30h-70l-18 18h-46M320 140h-56l-22-22h-50M160 0v22M160 172v-24M110 172v-20l14-14M210 0v18l-14 14'/%3E%3Cg fill='%23000' stroke='none'%3E%3Ccircle cx='130' cy='60' r='4'/%3E%3Ccircle cx='116' cy='96' r='4'/%3E%3Ccircle cx='186' cy='48' r='4'/%3E%3Ccircle cx='192' cy='118' r='4'/%3E%3Ccircle cx='160' cy='22' r='3'/%3E%3Ccircle cx='160' cy='148' r='3'/%3E%3Ccircle cx='124' cy='138' r='3'/%3E%3Ccircle cx='196' cy='32' r='3'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 172' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0 40h60l20 20h50M0 120h40l24-24h52M320 30h-70l-18 18h-46M320 140h-56l-22-22h-50M160 0v22M160 172v-24M110 172v-20l14-14M210 0v18l-14 14'/%3E%3Cg fill='%23000' stroke='none'%3E%3Ccircle cx='130' cy='60' r='4'/%3E%3Ccircle cx='116' cy='96' r='4'/%3E%3Ccircle cx='186' cy='48' r='4'/%3E%3Ccircle cx='192' cy='118' r='4'/%3E%3Ccircle cx='160' cy='22' r='3'/%3E%3Ccircle cx='160' cy='148' r='3'/%3E%3Ccircle cx='124' cy='138' r='3'/%3E%3Ccircle cx='196' cy='32' r='3'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat; }
.thumb__tile { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: var(--tc); background: rgba(255, 255, 255, .92); box-shadow: 0 10px 24px -8px rgba(11, 37, 69, .28), inset 0 1px 0 #fff; transition: transform var(--t-med) var(--ease); }
.thumb__tile .ic { width: 28px; height: 28px; stroke-width: 1.9; }
.thumb--indigo { --t1: #DCE2F4; --t2: #F2F4FC; --t3: #CDD6EE; --tc: #2A4BA8; --tl: rgba(42, 75, 168, .45); }
.thumb--green { --t1: #D3F4E0; --t2: #F0FDF5; --t3: #C2EDD3; --tc: #15803D; --tl: rgba(21, 128, 61, .45); }
.thumb--gold { --t1: #FBEFCB; --t2: #FFFAEB; --t3: #F6E2A8; --tc: #A0460A; --tl: rgba(160, 70, 10, .4); }
[data-theme="dark"] .thumb { --t1: #10324A; --t2: #15405A; --t3: #0C2A40; --tc: #6FDCEC; --tl: rgba(111, 220, 236, .45); }
[data-theme="dark"] .thumb--indigo { --t1: #1A2B57; --t2: #223769; --t3: #15234A; --tc: #A8C4FF; --tl: rgba(168, 196, 255, .4); }
[data-theme="dark"] .thumb--green { --t1: #0F3A2A; --t2: #144833; --t3: #0B2F22; --tc: #7EE2A5; --tl: rgba(126, 226, 165, .4); }
[data-theme="dark"] .thumb--gold { --t1: #3A2E10; --t2: #483915; --t3: #30260D; --tc: #F8CF5A; --tl: rgba(248, 207, 90, .4); }
[data-theme="dark"] .thumb__tile { background: rgba(6, 17, 31, .7); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08); }
.thumb--img { background: var(--surface-3); }
.thumb--img::before, .thumb--img::after { display: none; }
.thumb--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb--mini { aspect-ratio: 1; border-radius: var(--r-icon); }
.thumb--mini::after { display: none; }
.thumb--mini .thumb__tile { width: auto; height: auto; background: none; box-shadow: none; }
.thumb--mini .thumb__tile .ic { width: 24px; height: 24px; }
button.thumb-btn { display: block; width: 100%; border-radius: var(--r-icon); }
.tbl__c-thumb .thumb { width: 56px; }

.empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 2px dashed var(--border); border-radius: var(--r-card); color: var(--muted); }
.empty .ic { width: 40px; height: 40px; color: var(--border-strong); margin-bottom: 10px; }
.empty h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }

.band { margin-top: 56px; background: var(--bg-band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px 0; }
.band__in { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.band__copy h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 10px; }
.band__copy > p { color: var(--muted); max-width: 560px; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
.feature { display: flex; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.feature__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-bg); color: var(--green-btn); flex: none; }
[data-theme="dark"] .feature__icon { color: var(--ok-tx); }
.feature h3 { font-size: .95rem; font-weight: 700; }
.feature p { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.status-panel { box-shadow: var(--sh-3); padding: 22px; }
.status-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.status-panel__head h3 { font-size: 1.1rem; font-weight: 700; }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.status-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: .85rem; }
.status-list li b { margin-left: auto; font-weight: 600; color: var(--muted); font-size: .8rem; text-align: right; }
.status-panel__foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .75rem; font-weight: 600; color: var(--muted); }

.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.guide { position: relative; padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); }
.guide__no { position: absolute; top: 18px; right: 20px; font: 800 2.2rem/1 var(--font-head); color: var(--surface-3); }
.guide__ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--navy-bg); color: var(--navy-tx); margin-bottom: 14px; box-sizing: border-box; }
.guide h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.guide p { font-size: .875rem; color: var(--muted); }

.pub-footer { margin-top: 56px; background: var(--bg-band); border-top: 1px solid var(--border); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.pub-footer__in { display: flex; flex-direction: column; gap: 18px; }
.pub-footer__brand { display: flex; gap: 12px; align-items: flex-start; }
.pub-footer__brand strong { font: 700 1rem var(--font-head); }
.pub-footer__brand p { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.pub-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.pub-footer__links .link-btn { color: var(--muted); font-weight: 500; }

.setup-needed { padding: 48px 16px; }
.setup-needed__card { max-width: 560px; margin: 0 auto; text-align: center; padding: 36px 24px; }
.setup-needed__icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--warn-bg); color: var(--warn-tx); }
.setup-needed__icon .ic { width: 30px; height: 30px; }
.setup-needed h1 { font-size: 1.5rem; margin-bottom: 8px; }
.setup-needed p { color: var(--muted); }
.setup-needed .steps-mini { text-align: left; margin: 20px auto; }
.steps-mini { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: .875rem; color: var(--muted); }
.steps-mini b { color: var(--text); }

/* ── 9. Login ─────────────────────────────────────────────────────────────── */
.pub-header--plain .pub-header__aksi { margin-left: auto !important; }
.pub-header--plain { background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; position: relative; }
.login { max-width: 460px; margin: 0 auto; padding: 8px 16px 40px; outline: none; }
.login__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 22px; }
.login__emblem { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--surface); border: 6px solid var(--surface); box-shadow: 0 0 0 1px var(--border), 0 0 42px 6px rgba(61, 220, 132, .35), 0 0 80px 12px rgba(34, 184, 207, .18); }
.login__emblem img { width: 100%; height: 100%; object-fit: contain; }
.login__emblem .emblem { border-radius: 50%; }
.login__head h1 { font-size: 1.6rem; font-weight: 700; }
.login__card { padding: 26px 22px; border-radius: 28px; box-shadow: var(--sh-3); display: flex; flex-direction: column; gap: 16px; }
.login__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.login__title h2 { font-size: 1.35rem; font-weight: 700; }
.login__card > .muted { font-size: .9rem; margin-top: -8px; }
.login__card .input--icon { background: var(--surface-2); }
.login__card.is-shake { animation: getar .38s; }
.trust-row { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font: 600 .75rem var(--font-head); color: var(--muted); }
.trust-row li { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .ic { width: 16px; height: 16px; color: var(--green); }

/* ── 10. Admin: kerangka ──────────────────────────────────────────────────── */
.view--admin { display: block; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: min(86vw, var(--side-w)); z-index: 90; display: flex; flex-direction: column; gap: 18px;
  padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); background: var(--grad-side); color: #fff; overflow-y: auto;
  transform: translateX(-102%); transition: transform var(--t-med) var(--ease); box-shadow: 0 0 40px rgba(0, 0, 0, .25);
}
.sidebar.is-open { transform: none; }
.sidebar__brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.sidebar__brand strong { display: block; font: 800 1.15rem/1.15 var(--font-head); color: #fff; }
.sidebar__brand small { display: block; font: 700 .68rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.sidebar__tutup { margin-left: auto; }
.sidebar__profil { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); }
.sidebar__profil strong { display: block; font: 700 .85rem var(--font-head); color: #fff; }
.sidebar__profil small { display: block; font-size: .75rem; color: rgba(255, 255, 255, .72); font-family: var(--font-mono); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 800 .95rem var(--font-head); color: #fff; background: linear-gradient(135deg, #22B8CF, #16A34A); border: 2px solid rgba(255, 255, 255, .7); }
.avatar--sm { width: 38px; height: 38px; font-size: .85rem; border-color: var(--surface); box-shadow: var(--sh-1); }
.sidebar__nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; color: rgba(255, 255, 255, .86); font: 600 .95rem var(--font-head); text-align: left; transition: background-color var(--t-fast), color var(--t-fast); }
.nav-item:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-item.is-active { background: var(--green-btn); color: #fff; box-shadow: 0 10px 22px -10px rgba(22, 163, 74, .9); }
.nav-item__badge { margin-left: auto; min-width: 26px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); background: #86EFAC; color: #14532D; font: 700 .72rem/22px var(--font-head); text-align: center; }
.nav-item.is-active .nav-item__badge { background: rgba(255, 255, 255, .92); }
.nav-item--keluar { color: rgba(255, 255, 255, .78); }
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(6, 17, 31, .5); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity var(--t-med); }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.admin-main { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 0 12px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border-glass); }
.crumb { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumb__root { white-space: nowrap; display: none; font-size: .85rem; color: var(--muted); font-weight: 500; }
.crumb__sep { display: none; width: 16px; height: 16px; color: var(--muted); }
.crumb__now { font: 600 1.05rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.topbar__aksi { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar__publik span, .pill-clock { display: none; }
.topbar__publik { padding: 0 12px; }
.pill-clock { align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); font: 600 .78rem var(--font-head); color: var(--muted); }
.pill-clock .ic { width: 16px; height: 16px; }
.pill-clock b { color: var(--text); }
.sync { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border-radius: var(--r-pill); font: 600 .75rem var(--font-head); color: var(--ok-tx); background: var(--ok-bg); }
.sync .ic { width: 16px; height: 16px; }
.sync span { display: none; }
.sync.is-busy { color: var(--info-tx); background: var(--info-bg); }
.sync.is-busy .ic { animation: denyut-op 1s ease-in-out infinite; }
.admin-content { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 16px 12px 48px; outline: none; }
.sec { animation: muncul .3s var(--ease) both; }
.page-head { margin-bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.page-head h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; }
.page-head p { color: var(--muted); max-width: 720px; }

/* Banner dashboard */
.banner { position: relative; overflow: hidden; border-radius: 28px; background: var(--grad-banner); color: #fff; padding: 26px 22px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 24px 48px -20px rgba(11, 42, 99, .6); }
.banner__decor { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 120% at 100% 0%, rgba(34, 184, 207, .35), transparent 60%), radial-gradient(40% 80% at 85% 110%, rgba(61, 220, 132, .25), transparent 70%); }
.banner__decor::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.4px); background-size: 20px 20px; -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 90%); mask-image: linear-gradient(100deg, transparent 45%, #000 90%); }
.banner__body, .banner__aksi { position: relative; }
.banner__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.banner h1 { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 8px; }
.banner p { color: rgba(255, 255, 255, .88); max-width: 620px; }
.banner__aksi { display: flex; flex-direction: column; gap: 10px; }
.banner__aksi .btn { justify-content: flex-start; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kpi__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.kpi__label { font: 700 .68rem/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi__val { font: 800 2.1rem/1.05 var(--font-head); letter-spacing: -.03em; margin-top: 8px; color: var(--text); }
.kpi__val.kpi__val--sm { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; margin-top: 12px; }
.kpi .tile-ic { width: 44px; height: 44px; }
.kpi__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }

.dash-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
.chart-card { min-width: 0; }
.chart-total { text-align: right; }
.chart-total span { display: block; font: 800 1.6rem/1 var(--font-head); letter-spacing: -.02em; }
.chart-total small { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.chart { position: relative; height: 220px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font: 500 11px var(--font-body); }
.chart .axis-label--strong { fill: var(--text); font-weight: 700; }
.chart .bar { fill: var(--green); transition: opacity var(--t-fast); }
.chart .bar--today { fill: var(--green-btn); }
.chart:hover .bar { opacity: .55; }
.chart .hit:hover + .bar, .chart .bar.is-hover { opacity: 1; }
.chart .hit { fill: transparent; cursor: default; }
.chart .val-label { fill: var(--text); font: 700 11px var(--font-body); }
.chart__tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); background: var(--navy-deep); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: .78rem; white-space: nowrap; box-shadow: var(--sh-2); opacity: 0; transition: opacity var(--t-fast); }
.chart__tip b { display: block; font-size: .9rem; }
.chart__tip.is-on { opacity: 1; }
[data-theme="dark"] .chart__tip { background: #E7EFF8; color: #0B2545; }
.chart__empty { position: absolute; inset: 0 0 28px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .85rem; pointer-events: none; }
.insight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.insight { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: .85rem; line-height: 1.45; }
.insight .tile-ic { width: 32px; height: 32px; border-radius: 10px; }
.insight .tile-ic .ic { width: 17px; height: 17px; }
.insight--ok .tile-ic { background: var(--ok-bg); color: var(--ok-tx); }
.insight--warn .tile-ic { background: var(--warn-bg); color: var(--warn-tx); }
.insight--info .tile-ic { background: var(--info-bg); color: var(--info-tx); }
.insight b { font-weight: 600; }

.dash-main { min-width: 0; }
.sub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sub-head h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; flex: 1; min-width: 200px; }
.sub-head__meta { font-size: .75rem; color: var(--muted); font-weight: 600; }
.op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.op-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 14px; transition: opacity var(--t-fast), box-shadow var(--t-fast); }
.op-card.is-off { opacity: .72; }
.op-card.is-pending { box-shadow: 0 0 0 2px var(--info-bg), var(--sh-1); }
.op-card__head { display: flex; gap: 12px; align-items: flex-start; }
.op-card__head .thumb { width: 48px; flex: none; }
.op-card__name { flex: 1; min-width: 0; }
.op-card__name h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.op-card__name p { font-size: .82rem; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.metrics dt { font-size: .72rem; color: var(--muted); font-weight: 500; }
.metrics dd { margin: 2px 0 0; font: 700 .9rem var(--font-head); }
.metrics .is-ok { color: var(--ok-tx); }
.metrics .is-warn { color: var(--warn-tx); }
.op-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 600 .78rem var(--font-head); }
.status-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.status-dot.is-ok { color: var(--ok-tx); }
.status-dot.is-warn { color: var(--warn-tx); }
.dash-side { display: grid; gap: 16px; align-content: start; }
.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.log { display: flex; gap: 12px; padding: 10px 4px; border-radius: 12px; }
.log + .log { border-top: 1px solid var(--border); border-radius: 0; }
.log .tile-ic { width: 38px; height: 38px; border-radius: 50%; }
.log .tile-ic .ic { width: 18px; height: 18px; }
.log h4 { font: 600 .875rem/1.35 var(--font-head); letter-spacing: -.005em; }
.log p { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.log-empty { padding: 18px 0; text-align: center; color: var(--muted); font-size: .85rem; }
.server-card__title { display: flex; gap: 12px; align-items: center; }
.server-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.srv { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.srv dt { font: 700 .64rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.srv dd { margin: 4px 0 0; font: 700 .9rem/1.3 var(--font-head); overflow-wrap: anywhere; }
.srv dd.is-ok { color: var(--ok-tx); }
.srv dd.is-warn { color: var(--warn-tx); }
.server-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* Toolbar & tabel kelola */
.card.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px; }
.toolbar__cari { flex: 1 1 100%; background: var(--surface-2); }
.toolbar .seg { flex: 1 1 auto; }
.toolbar .seg__btn { flex: 1; }
.toolbar__tambah { flex: 1 1 100%; }
.card.table-card { margin-top: 16px; padding: 0; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead { display: none; }
.tbl tbody { display: grid; gap: 0; }
.tbl tr { display: grid; grid-template-columns: auto 56px 1fr; grid-template-areas: "urut thumb nama" "url url url" "status status aksi"; gap: 12px 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); background: var(--surface); transition: background-color var(--t-fast); }
.tbl tr:last-child { border-bottom: 0; }
.tbl tr.tbl__kosong { display: block; padding: 16px; }
.tbl td { padding: 0; min-width: 0; }
.tbl tr.is-off { background: var(--surface-2); }
.tbl tr.is-off .tbl__nama h3 { color: var(--muted); }
.tbl tr.is-pending { background: var(--info-bg); }
.tbl tr.is-drag { opacity: .45; }
.tbl tr.is-over-atas { box-shadow: inset 0 3px 0 var(--green); }
.tbl tr.is-over-bawah { box-shadow: inset 0 -3px 0 var(--green); }
.tbl tr.is-baru { animation: sorot 1.6s ease; }
.tbl__c-urut { grid-area: urut; }
.tbl__c-thumb { grid-area: thumb; }
.tbl__c-nama { grid-area: nama; }
.tbl__c-url { grid-area: url; }
.tbl__c-status { grid-area: status; }
.tbl__c-aksi { grid-area: aksi; justify-self: end; }
.urut { display: flex; align-items: center; gap: 2px; }
.urut__grip { width: 28px; height: 44px; display: grid; place-items: center; color: var(--muted); cursor: grab; border-radius: 8px; }
.urut__grip:active { cursor: grabbing; }
.urut__no { font: 800 1.25rem var(--font-head); color: var(--navy-tx); min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.urut__btns { display: flex; flex-direction: column; }
.urut__btns button { width: 32px; height: 22px; display: grid; place-items: center; color: var(--muted); border-radius: 6px; }
.urut__btns button:hover:not(:disabled) { background: var(--navy-bg); color: var(--text); }
.urut__btns button:disabled { opacity: .25; cursor: not-allowed; }
.urut__btns .ic { width: 16px; height: 16px; }
.urut.is-locked .urut__grip { opacity: .3; cursor: not-allowed; }
.tbl__nama { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tbl__nama-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tbl__nama h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tbl__nama p { font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.url-box { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.url-box code { flex: 1; min-width: 0; background: none; padding: 0; font-size: .76rem; color: var(--navy-tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url-box--kosong code { color: var(--warn-tx); font-family: var(--font-body); font-weight: 600; }
.url-box .icon-btn { width: 34px; height: 34px; }
.url-box .icon-btn .ic { width: 16px; height: 16px; }
.status-cell { display: flex; align-items: center; gap: 10px; }
.aksi-cell { display: flex; gap: 2px; }
.tbl-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: .82rem; }
.info-card { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; background: var(--surface-2); }
.info-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.info-card p { font-size: .875rem; color: var(--muted); }

/* Pengaturan */
.set-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.set-main { display: grid; gap: 16px; min-width: 0; }
.logo-edit { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.logo-edit__preview { width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; flex: none; }
.logo-edit__preview img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo-edit__aksi { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; min-width: 200px; }
.logo-edit__aksi .field__help { flex-basis: 100%; }
label.btn { cursor: pointer; }
.preview-card { position: sticky; top: 84px; }
.mini-portal { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); margin-bottom: 12px; }
.mini-portal__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.mini-portal__bar .brand__logo { width: 28px; height: 28px; border-radius: 8px; }
.mini-portal__bar strong { font: 700 .72rem/1.2 var(--font-head); display: block; }
.mini-portal__bar small { font-size: .6rem; color: var(--muted); display: block; }
.mini-portal__hero { margin: 10px; padding: 16px 14px 18px; border-radius: 14px; background: var(--grad-hero); color: #fff; }
.mini-portal__hero .chip { font-size: .5rem; padding: 3px 8px; }
.mini-portal__hero h4 { color: #fff; font-size: 1rem; font-weight: 800; margin: 8px 0 4px; letter-spacing: -.02em; }
.mini-portal__hero p { font-size: .65rem; color: rgba(255, 255, 255, .88); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-portal__kat { padding: 2px 12px 10px; }
.mini-portal__kat b { font: 700 .72rem var(--font-head); display: block; }
.mini-portal__kat span { font-size: .6rem; color: var(--muted); }
.mini-portal__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 10px 10px; }
.mini-portal__cards i { display: block; aspect-ratio: 1 / .8; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.mini-portal__foot { padding: 8px 12px; font-size: .58rem; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }
.form-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 20px; background: var(--glass-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); box-shadow: var(--sh-3); }
.form-bar.is-dirty #setStatus { color: var(--warn-tx); font-weight: 600; }
.form-bar__aksi { display: flex; gap: 8px; margin-left: auto; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Akun */
.akun-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.akun-side { display: grid; gap: 16px; align-content: start; }
.kv { margin: 0 0 16px; display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .85rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.stack-btn { display: grid; gap: 8px; }
.meter { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.meter span { display: block; height: 100%; width: 0; border-radius: 6px; transition: width var(--t-med), background-color var(--t-med); }

/* Migrasi */
.mig-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
#formMigrasi { display: flex; flex-direction: column; gap: 16px; }
#formMigrasi .form-actions { margin-top: 4px; }
.mig-hasil { margin-top: 16px; }
.mig-tabel { width: 100%; border-collapse: collapse; font-size: .875rem; margin-top: 12px; }
.mig-tabel th, .mig-tabel td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.mig-tabel th:first-child, .mig-tabel td:first-child { text-align: left; }
.mig-tabel th { font: 700 .68rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mig-tabel .plus { color: var(--ok-tx); font-weight: 700; }
.mig-tabel .upd { color: var(--info-tx); font-weight: 700; }
.mig-warn { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.mig-warn li { display: flex; gap: 8px; font-size: .82rem; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-tx); }
.mig-warn .ic { width: 16px; height: 16px; margin-top: 2px; }
.tbl-scroll { overflow-x: auto; }

/* ── 11. Modal ────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 17, 31, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: pudar var(--t-med) ease both; }
.modal__panel { position: relative; width: 100%; max-height: 92vh; display: flex; flex-direction: column; background: var(--glass-strong); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); border: 1px solid var(--border-glass); border-radius: 24px 24px 0 0; box-shadow: var(--sh-3); animation: naik var(--t-med) var(--ease) both; }
[data-theme="dark"] .modal__panel { background: var(--surface); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 8px; }
.modal__head h2 { font-size: 1.25rem; font-weight: 700; }
.modal__body { padding: 8px 20px 16px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.modal__foot--end { justify-content: flex-end; }
.modal__foot-aksi { display: flex; gap: 8px; margin-left: auto; }
.app-form { display: grid; grid-template-columns: 1fr; gap: 18px; }
.app-form__media { display: flex; flex-direction: column; gap: 10px; }
.media-preview { border-radius: 18px; overflow: hidden; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border-radius: 16px; border: 2px dashed var(--border-strong); text-align: center; cursor: pointer; font-size: .85rem; color: var(--muted); transition: border-color var(--t-fast), background-color var(--t-fast); }
.dropzone .ic { width: 26px; height: 26px; color: var(--green-btn); }
.dropzone b { color: var(--text); }
.dropzone small { font-size: .72rem; }
.dropzone:hover, .dropzone.is-over { border-color: var(--green); background: var(--ok-bg); }
.confirm { display: flex; gap: 16px; padding: 24px 22px 10px; }
.confirm__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--err-bg); color: #C62828; }
.confirm__icon.is-info { background: var(--info-bg); color: var(--info-tx); }
.confirm__icon .ic { width: 26px; height: 26px; }
.confirm__body { flex: 1; min-width: 0; }
.confirm__body h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.confirm__body p { color: var(--muted); font-size: .92rem; }
.confirm__body p b { color: var(--text); }
.confirm__x { margin: -8px -8px 0 0; }
.prat { display: grid; place-items: center; background: var(--surface-2); border-radius: 16px; min-height: 220px; overflow: hidden; }
.prat img { max-height: 60vh; width: auto; object-fit: contain; }

/* ── 12. Toast ────────────────────────────────────────────────────────────── */
.toasts { position: fixed; z-index: 260; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--glass-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border-glass); box-shadow: var(--sh-3); animation: naik var(--t-med) var(--ease) both; }
[data-theme="dark"] .toast { background: var(--surface-3); border-color: var(--border); }
.toast.is-out { animation: turun var(--t-fast) ease forwards; }
.toast__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.toast__ic .ic { width: 18px; height: 18px; }
.toast--ok .toast__ic { background: var(--ok-bg); color: var(--ok-tx); }
.toast--err .toast__ic { background: var(--err-bg); color: var(--err-tx); }
.toast--warn .toast__ic { background: var(--warn-bg); color: var(--warn-tx); }
.toast--info .toast__ic { background: var(--info-bg); color: var(--info-tx); }
.toast__body { flex: 1; min-width: 0; padding-top: 1px; }
.toast__title { font: 700 .7rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.toast--ok .toast__title { color: var(--ok-tx); }
.toast--err .toast__title { color: var(--err-tx); }
.toast--warn .toast__title { color: var(--warn-tx); }
.toast--info .toast__title { color: var(--info-tx); }
.toast__msg { font-size: .875rem; margin-top: 2px; overflow-wrap: anywhere; }
.toast .icon-btn { width: 32px; height: 32px; margin: -2px -2px 0 0; }
.toast .icon-btn .ic { width: 16px; height: 16px; }

/* Skeleton */
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: kilau 1.2s linear infinite; }

/* ── 13. Animasi ──────────────────────────────────────────────────────────── */
@keyframes putar { to { transform: rotate(360deg); } }
@keyframes denyut { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
@keyframes denyut-op { 50% { opacity: .35; } }
@keyframes muncul { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes naik { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes turun { to { opacity: 0; transform: translateY(10px); } }
@keyframes pudar { from { opacity: 0; } }
@keyframes getar { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes sorot { 0% { background: var(--ok-bg); } 100% { background: var(--surface); } }
@keyframes kilau { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── 14. Breakpoint (mobile-first) ────────────────────────────────────────── */
@media (min-width: 560px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
  .server-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .hero__title { font-size: 2.5rem; }
  .toasts { left: auto; right: 20px; bottom: auto; top: 20px; width: 380px; }
  .modal { align-items: center; padding: 20px; }
  .modal__panel { width: min(560px, 100%); border-radius: 24px; }
  .modal__panel--sm { width: min(460px, 100%); }
  .modal__panel--lg { width: min(860px, 100%); }
  .modal__foot { padding-bottom: 16px; }
  .banner__aksi { flex-direction: row; flex-wrap: wrap; }
  .toolbar__tambah { flex: 0 0 auto; margin-left: auto; }
  .toolbar .seg { flex: 0 0 auto; }
  .toolbar__cari { flex: 1 1 320px; }
  .sync span { display: inline; }
  .sub-head__meta { display: inline; }
}
@media (min-width: 768px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  #btnMasukAdmin span { display: inline; }
  #btnMasukAdmin { padding: 0 16px; }
  .brand__text strong, .brand__text small { max-width: 280px; }
  .hero { padding-top: 24px; }
  .hero__card { padding: 56px 48px 108px; border-radius: 32px; }
  .hero__title { font-size: 3rem; line-height: 1.12; }
  .hero__desc { font-size: 1.06rem; }
  .hero__stats dd { font-size: 1.9rem; }
  .searchbar { flex-direction: row; align-items: center; margin: -48px auto 0; max-width: 1000px; border-radius: var(--r-pill); padding: 8px 8px 8px 8px; }
  .searchbar__field { flex: 1; border-radius: var(--r-pill); }
  .searchbar .kbd { display: inline-block; }
  .chips { flex: none; max-width: 52%; }
  .section-head__title h2 { font-size: 1.6rem; }
  .app-card { padding: 16px; }
  .band__in { grid-template-columns: 1.15fr 1fr; gap: 40px; }
  .band__copy h2 { font-size: 2rem; }
  .pub-footer__in { flex-direction: row; justify-content: space-between; align-items: center; }
  .login { padding-top: 24px; }
  .login__card { padding: 32px; }
  .admin-content { padding: 24px 24px 56px; }
  .topbar { padding: 0 20px; min-height: 72px; }
  .topbar__publik span { display: inline; }
  .topbar__publik { padding: 0 16px; }
  .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
  .kpi { padding: 22px; }
  .kpi__val { font-size: 2.6rem; }
  .banner { padding: 34px 36px; flex-direction: row; align-items: center; justify-content: space-between; border-radius: 32px; }
  .banner h1 { font-size: 2.4rem; }
  .banner__aksi { flex-direction: column; flex-wrap: nowrap; flex: none; }
  .card { padding: 24px; }
  .page-head h1 { font-size: 2.2rem; }
  .app-form { grid-template-columns: 1fr 280px; }
  .mig-grid { grid-template-columns: 1.3fr 1fr; }
  .akun-grid { grid-template-columns: 1.4fr 1fr; }
  /* Baris tabel kelola versi tablet (kartu 2 baris) */
  .tbl tr { grid-template-columns: auto 64px minmax(0, 1fr) auto auto; grid-template-areas: "urut thumb nama status aksi" "urut thumb url url url"; gap: 10px 16px; padding: 16px 20px; }
  .tbl__c-thumb .thumb { width: 64px; }
}
@media (min-width: 1024px) {
  .pub-nav { display: flex; }
  .pub-header__aksi { margin-left: 8px; }
  .badge--koneksi { display: inline-flex; }
  .crumb__root, .crumb__sep { display: inline-block; }
  .pill-clock { display: inline-flex; }
  .app-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .sidebar { transform: none; box-shadow: none; width: var(--side-w); padding: 26px 20px; }
  .sidebar__tutup, .topbar__menu, .scrim { display: none; }
  .admin-main { margin-left: var(--side-w); }
  .admin-content { padding: 28px 32px 64px; }
  .topbar { padding: 0 32px; }
  .dash-row { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); }
  .dash-row--main { grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); }
  .set-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .form-bar { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1180px) {
  /* Tabel kelola: tampil sebagai tabel penuh */
  .tbl thead { display: table-header-group; }
  .tbl tbody { display: table-row-group; }
  .tbl tr, .tbl tr.tbl__kosong { display: table-row; padding: 0; }
  .tbl th { padding: 16px 14px; text-align: left; font: 700 .7rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
  .tbl td { display: table-cell; padding: 16px 14px; vertical-align: middle; border-bottom: 1px solid var(--border); }
  .tbl tr:last-child td { border-bottom: 0; }
  .tbl__c-thumb { width: 92px; }
  .tbl__c-thumb .thumb { width: 64px; }
  .tbl__c-url { width: 30%; max-width: 320px; }
  .tbl__c-status { width: 150px; }
  .tbl__c-aksi { width: 96px; }
  .tbl th.tbl__urut { padding-left: 22px; }
  .tbl td.tbl__c-urut { padding-left: 12px; }
}
@media (min-width: 1280px) {
  .admin-content { padding: 32px 40px 72px; }
  .op-grid { gap: 16px; }
}

/* ── 15. Tambahan frontend statis (REST API) ──────────────────────────────── */
.skel--card { height: 320px; border-radius: var(--r-card); }
.status-list li.is-memuat { color: var(--muted); }
.setup-needed__card .steps-mini code { white-space: nowrap; }
.noscript { max-width: 560px; margin: 48px auto; padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); text-align: center; }
