/* =========================================================================
   assets/app.css — Blogger to WordPress (Bagian 2: Tema & Layout)
   Tanpa framework CSS. Semua warna/ukuran lewat custom property di :root.
   CSP proyek ini: style-src 'self' — TIDAK ADA style="" inline di manapun,
   semua styling lewat kelas di file ini.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1) @font-face
   Inter (self-host) → fallback Verdana → font sistem. Lihat assets/fonts/README.txt.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   2) Token desain
   ------------------------------------------------------------------------- */
:root {
  /* Tipografi */
  /* Satu keluarga sans untuk semua: Inter, jika belum ada file-nya jatuh ke Verdana */
  --font-sans: "Inter", Verdana, Geneva, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Skala responsif: nilai kecil = layar HP, nilai besar = desktop */
  --fs-xs: 0.75rem;                                  /* 12px  label, catatan */
  --fs-sm: 0.875rem;                                 /* 14px  tombol, nav, tabel */
  --fs-base: 0.9375rem;                              /* 15px  teks isi / keterangan */
  --fs-md: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);  /* 16-17px  sub-judul hero */
  --fs-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); /* 17-19px  judul kartu (h3) */
  --fs-xl: clamp(1.375rem, 1.15rem + 1.1vw, 1.75rem);  /* 22-28px  judul seksi (h2) */
  --fs-2xl: clamp(1.75rem, 1.3rem + 2.2vw, 2.5rem);    /* 28-40px  judul utama (h1) */
  --lh-tight: 1.25;
  --lh-normal: 1.6;

  /* Latar & permukaan — tema terang, putih hangat (bukan putih murni) */
  --bg: #faf8f5;
  --bg-inset: #f3efe8;
  --surface: #ffffff;
  --surface-2: #f6f2ec;
  --surface-hover: #efe9df;
  --border: #e5ded2;
  --border-strong: #cdc3b1;
  --overlay: rgba(33, 29, 23, 0.45);

  /* Teks */
  --text: #211d17;
  --text-muted: #5a5142;
  --text-faint: #786d59;
  --text-on-primary: #ffffff;

  /* Aksen — oranye #f57c00 (logo, teks logo, tombol) */
  --primary: #f57c00;
  --primary-hover: #ef6c00;
  --primary-active: #e65100;
  --primary-soft: rgba(245, 124, 0, 0.10);
  --primary-border: rgba(245, 124, 0, 0.35);

  /* Status */
  --ok: #2b7a48;
  --ok-soft: rgba(43, 122, 72, 0.10);
  --ok-border: rgba(43, 122, 72, 0.35);
  --warn: #9a6608;
  --warn-soft: rgba(196, 130, 10, 0.12);
  --warn-border: rgba(154, 102, 8, 0.38);
  --danger: #c0392f;
  --danger-hover: #a92f26;
  --danger-active: #922720;
  --danger-soft: rgba(192, 57, 47, 0.09);
  --danger-border: rgba(192, 57, 47, 0.35);
  --info: #2d68a8;
  --info-soft: rgba(45, 104, 168, 0.10);
  --info-border: rgba(45, 104, 168, 0.35);

  /* Bentuk & bayangan */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(60, 45, 25, 0.08);
  --shadow-md: 0 6px 20px rgba(60, 45, 25, 0.10);
  --shadow-lg: 0 16px 40px rgba(60, 45, 25, 0.14);

  /* Spasi */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;

  /* Layout */
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 72px;
  --topbar-h: 60px;
  --content-max: 1180px;

  --transition: 160ms ease;
  --z-sidebar: 40;
  --z-overlay: 45;
  --z-topbar: 30;
  --z-toast: 80;
  --z-dropdown: 50;
}

/* -------------------------------------------------------------------------
   3) Reset & dasar
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-3);
  color: var(--text);
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--sp-3); color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
code, pre, kbd { font-family: var(--font-mono); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: var(--sp-3);
  top: -48px;
  background: var(--primary);
  color: var(--text-on-primary);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top var(--transition);
}
.skip-link:focus {
  top: var(--sp-3);
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

/* -------------------------------------------------------------------------
   4) App shell (admin) — sidebar + topbar + konten
   ------------------------------------------------------------------------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sidebar-w);
  flex: 0 0 auto;
  background: var(--bg-inset);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: var(--z-sidebar);
  transition: width var(--transition), transform var(--transition);
}
.sidebar-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4);
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.sidebar-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.sidebar-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-fold-btn {
  margin-left: auto;
  flex: 0 0 auto;
}
.sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--sp-3) var(--sp-3);
}
.sidebar-section-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: var(--sp-4) var(--sp-3) var(--sp-2);
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  margin-bottom: 2px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-link:hover {
  background: var(--surface-hover);
  color: var(--text);
  text-decoration: none;
}
.sidebar-link-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--text-faint);
}
.sidebar-link:hover .sidebar-link-icon { color: var(--text-muted); }
.sidebar-link-label {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}
.sidebar-link.is-active {
  background: var(--primary-soft);
  color: var(--text);
  border: 1px solid var(--primary-border);
  padding: calc(var(--sp-3) - 1px);
}
.sidebar-link.is-active .sidebar-link-icon { color: var(--primary); }
.sidebar-link-badge { margin-left: auto; flex: 0 0 auto; }
.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: var(--sp-3);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sidebar-user:hover { background: var(--surface-hover); }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  flex: 0 0 auto;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-meta {
  overflow: hidden;
  white-space: nowrap;
}
.sidebar-user-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-email {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar terlipat (desktop) */
.app-shell[data-sidebar="collapsed"] .sidebar { width: var(--sidebar-w-collapsed); }
.app-shell[data-sidebar="collapsed"] .sidebar-brand,
.app-shell[data-sidebar="collapsed"] .sidebar-section-label,
.app-shell[data-sidebar="collapsed"] .sidebar-link-label,
.app-shell[data-sidebar="collapsed"] .sidebar-link-badge,
.app-shell[data-sidebar="collapsed"] .sidebar-user-meta {
  display: none;
}
.app-shell[data-sidebar="collapsed"] .sidebar-head { justify-content: center; }
.app-shell[data-sidebar="collapsed"] .sidebar-fold-btn { margin-left: 0; }
.app-shell[data-sidebar="collapsed"] .sidebar-link { justify-content: center; }
.app-shell[data-sidebar="collapsed"] .sidebar-user { justify-content: center; }

/* Overlay drawer (mobile) */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: var(--z-overlay);
}
.drawer-overlay[hidden] { display: none; }

.content-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  z-index: var(--z-topbar);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-5);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-drawer-btn { display: none; }
.topbar-title {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-spacer { flex: 1 1 auto; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px;
  background: var(--surface);
}
.lang-switch-opt {
  padding: 5px var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.lang-switch-opt:hover { color: var(--text); text-decoration: none; }
.lang-switch-opt.is-active {
  background: var(--primary);
  color: var(--text-on-primary);
}
.lang-switch-opt.is-active:hover { color: var(--text-on-primary); }

.app-main {
  flex: 1 1 auto;
  padding: var(--sp-6);
  min-width: 0;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.page-head h1 { margin-bottom: var(--sp-1); }
.page-lede { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.page-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   5) Chrome situs publik (site_partials.php)
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 var(--sp-5);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--primary);
}
.site-logo:hover { text-decoration: none; color: var(--primary-hover); }
.site-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.site-nav a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.is-active { color: var(--text); }
.site-header-spacer { flex: 1 1 auto; }
.site-menu-btn { display: none; }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--sp-8);
  padding: var(--sp-7) 0;
  background: var(--bg-inset);
}
.site-footer-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.site-footer-links {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.site-footer-links a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.site-footer-copy {
  color: var(--text-faint);
  font-size: var(--fs-xs);
}

/* -------------------------------------------------------------------------
   6) Kartu & stat-card
   ------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.card-header h3 { margin: 0; }
.card-header-sub { color: var(--text-faint); font-size: var(--fs-xs); margin-top: 2px; }
.card-body { color: var(--text-muted); }
.card-footer {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--sp-2);
  justify-content: flex-end;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.stat-card-icon svg { width: 22px; height: 22px; }
.stat-card-body { min-width: 0; }
.stat-card-label {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-1);
}
.stat-card-value {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}
.stat-card-delta {
  margin-top: var(--sp-1);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.stat-card-delta.is-up { color: var(--ok); }
.stat-card-delta.is-down { color: var(--danger); }

/* -------------------------------------------------------------------------
   7) Badge & chip
   ------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--sp-2);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.6;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-new { background: var(--info-soft); color: #24568f; border-color: var(--info-border); }
.badge-ok { background: var(--ok-soft); color: #216a3c; border-color: var(--ok-border); }
.badge-warn { background: var(--warn-soft); color: #7d4f06; border-color: var(--warn-border); }
.badge-danger { background: var(--danger-soft); color: #a3302a; border-color: var(--danger-border); }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); }
.badge-dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
  flex: 0 0 auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px var(--sp-3);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.chip-remove {
  width: 16px; height: 16px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  flex: 0 0 auto;
}
.chip-remove:hover { background: var(--surface-hover); color: var(--text); }

/* -------------------------------------------------------------------------
   8) Tombol
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  background: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-on-primary);
}
.btn-primary:hover:not([disabled]) { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--text-on-primary); }
.btn-primary:active:not([disabled]) { background: var(--primary-active); border-color: var(--primary-active); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover:not([disabled]) { background: var(--surface-hover); border-color: var(--border-strong); color: var(--text); }
.btn-danger {
  background: transparent;
  border-color: var(--danger-border);
  color: var(--danger);
}
.btn-danger:hover:not([disabled]) { background: var(--danger-soft); border-color: var(--danger); color: #a3302a; }
.btn-danger.btn-solid {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-danger.btn-solid:hover:not([disabled]) { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn-sm { padding: 5px var(--sp-3); font-size: var(--fs-xs); }
.btn-lg { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-base); min-height: 46px; }
.btn-icon { padding: var(--sp-2); min-width: 40px; min-height: 40px; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------------
   9) Formulir: input, select, checkbox/radio
   ------------------------------------------------------------------------- */
.field { margin-bottom: var(--sp-4); }
.field-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.field-hint {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-top: var(--sp-1);
}
.field-error {
  font-size: var(--fs-xs);
  color: var(--danger);
  margin-top: var(--sp-1);
}
.input,
.select,
.textarea {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-sm);
  padding: var(--sp-3);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.textarea { resize: vertical; min-height: 96px; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid {
  border-color: var(--danger);
}
.input.is-invalid:focus, .textarea.is-invalid:focus {
  box-shadow: 0 0 0 3px var(--danger-soft);
}
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' stroke='%23b8ab93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-3) center;
  padding-right: var(--sp-7);
}
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.check-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  cursor: pointer;
}
.check-row input[type="checkbox"],
.check-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.check-box, .radio-box {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background var(--transition), border-color var(--transition);
}
.check-box { border-radius: 5px; }
.radio-box { border-radius: var(--radius-full); }
.check-box svg { width: 12px; height: 12px; }
.radio-box::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: transparent;
  transition: background var(--transition);
}
.check-row input:checked ~ .check-box,
.check-row input:checked ~ .radio-box {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-on-primary);
}
.check-row input:checked ~ .radio-box::after { background: var(--text-on-primary); }
.check-row input:focus-visible ~ .check-box,
.check-row input:focus-visible ~ .radio-box {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.check-row-label { font-size: var(--fs-sm); color: var(--text); }
.check-row-desc { font-size: var(--fs-xs); color: var(--text-faint); }

/* -------------------------------------------------------------------------
   10) Tabel desktop -> daftar kartu di layar sempit (<720px)
   ------------------------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.table { width: 100%; border-collapse: collapse; }
.table caption { display: none; }
.table th, .table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table thead th {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  background: var(--bg-inset);
  font-weight: 600;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-hover); }
.table td.is-num, .table th.is-num { text-align: right; font-family: var(--font-mono); }
.table-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; }

/* Kolom label untuk mode kartu di mobile, diisi lewat data-label di <td> */
@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table-wrap { border: none; background: none; overflow: visible; }
  .table tbody tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--sp-3);
    padding: var(--sp-2) var(--sp-4);
  }
  .table td {
    border-bottom: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-3) 0;
    text-align: right;
  }
  .table td:last-child { border-bottom: none; }
  .table td::before {
    content: attr(data-label);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
    font-weight: 600;
    text-align: left;
  }
  .table td.is-num { font-family: var(--font-mono); }
  .table-actions { justify-content: flex-end; width: 100%; }
}

/* -------------------------------------------------------------------------
   11) Pagination
   ------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}
.pagination-item {
  min-width: 34px;
  height: 34px;
  padding: 0 var(--sp-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.pagination-item:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.pagination-item.is-active {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  color: var(--text);
}
.pagination-item.is-disabled {
  color: var(--text-faint);
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-ellipsis { color: var(--text-faint); padding: 0 var(--sp-1); }

/* -------------------------------------------------------------------------
   12) Progress bar
   ------------------------------------------------------------------------- */
.progress {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary);
  transition: width 240ms ease;
}
.progress-bar.is-ok { background: var(--ok); }
.progress-bar.is-warn { background: var(--warn); }
.progress-bar.is-danger { background: var(--danger); }
.progress-bar.is-indeterminate {
  width: 40% !important;
  animation: progress-indeterminate 1.2s ease-in-out infinite;
}
@keyframes progress-indeterminate {
  0% { margin-left: -40%; }
  100% { margin-left: 100%; }
}
.progress-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-2) 0;
}
.progress-row .progress { flex: 1 1 auto; }
.progress-label {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  font-family: var(--font-mono);
  flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
   13) Dropzone unggah
   ------------------------------------------------------------------------- */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-inset);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}
.dropzone.is-dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.dropzone.is-invalid { border-color: var(--danger); }
.dropzone-icon {
  width: 48px; height: 48px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.dropzone-title { font-weight: 600; color: var(--text); margin-bottom: var(--sp-1); }
.dropzone-hint { font-size: var(--fs-xs); color: var(--text-faint); margin-bottom: var(--sp-4); }
.dropzone input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-top: var(--sp-3);
}
.upload-row-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  flex: 0 0 auto;
}
.upload-row-body { flex: 1 1 auto; min-width: 0; }
.upload-row-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-row-meta { font-size: var(--fs-xs); color: var(--text-faint); }
.upload-row-remove { flex: 0 0 auto; color: var(--text-faint); }
.upload-row-remove:hover { color: var(--danger); }

/* -------------------------------------------------------------------------
   14) Toast
   ------------------------------------------------------------------------- */
.toast-region {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: min(360px, calc(100vw - 2 * var(--sp-5)));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3) var(--sp-4);
  animation: toast-in 180ms ease;
}
.toast.is-leaving { animation: toast-out 160ms ease forwards; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}
.toast-icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.toast.is-success .toast-icon { color: var(--ok); }
.toast.is-error .toast-icon { color: var(--danger); }
.toast.is-warn .toast-icon { color: var(--warn); }
.toast.is-info .toast-icon { color: var(--info); }
.toast-body { flex: 1 1 auto; font-size: var(--fs-sm); color: var(--text); }
.toast-close { flex: 0 0 auto; color: var(--text-faint); }
.toast-close:hover { color: var(--text); }

/* -------------------------------------------------------------------------
   15) Empty state
   ------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  color: var(--text-muted);
}
.empty-state-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}
.empty-state-title {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--text);
  margin-bottom: var(--sp-1);
}
.empty-state-desc { font-size: var(--fs-sm); max-width: 380px; margin: 0 auto var(--sp-4); }

/* -------------------------------------------------------------------------
   16) Skeleton loading
   ------------------------------------------------------------------------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(60, 45, 25, 0.06), transparent);
  animation: skeleton-shimmer 1.4s infinite;
}
@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}
.skeleton-text { height: 12px; margin-bottom: var(--sp-2); width: 100%; }
.skeleton-text.is-short { width: 40%; }
.skeleton-title { height: 20px; width: 60%; margin-bottom: var(--sp-3); }
.skeleton-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); }
.skeleton-card { height: 96px; border-radius: var(--radius-lg); }

/* -------------------------------------------------------------------------
   17) Utilitas kecil
   ------------------------------------------------------------------------- */
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-mono { font-family: var(--font-mono); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
.hide-mobile { display: initial; }
.show-mobile { display: none; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 auto; min-width: 0; }

/* -------------------------------------------------------------------------
   18) Responsif: sidebar jadi drawer di layar sempit
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(84vw, 300px);
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .app-shell[data-drawer="open"] .sidebar { transform: translateX(0); }
  .app-shell[data-sidebar="collapsed"] .sidebar { width: min(84vw, 300px); }
  .app-shell[data-sidebar="collapsed"] .sidebar-brand,
  .app-shell[data-sidebar="collapsed"] .sidebar-section-label,
  .app-shell[data-sidebar="collapsed"] .sidebar-link-label,
  .app-shell[data-sidebar="collapsed"] .sidebar-link-badge,
  .app-shell[data-sidebar="collapsed"] .sidebar-user-meta {
    display: revert;
  }
  .app-shell[data-sidebar="collapsed"] .sidebar-head { justify-content: flex-start; }
  .app-shell[data-sidebar="collapsed"] .sidebar-fold-btn { margin-left: auto; }
  .app-shell[data-sidebar="collapsed"] .sidebar-link,
  .app-shell[data-sidebar="collapsed"] .sidebar-user { justify-content: flex-start; }
  .sidebar-fold-btn { display: none; }
  .topbar-drawer-btn { display: inline-flex; }
  .drawer-overlay:not([hidden]) { display: block; }
  .app-main { padding: var(--sp-4); }
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}
@media (min-width: 961px) {
  .drawer-overlay { display: none; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-menu-btn { display: inline-flex; }
  .card-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
}

/* =========================================================================
   Bagian 4 — Content, Filter, Options
   ========================================================================= */

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.filter-bar { display:flex; flex-direction:column; gap:var(--sp-3); margin-bottom:var(--sp-4); }
.filter-row { display:flex; flex-wrap:wrap; gap:var(--sp-2); align-items:flex-end; }
.filter-group { display:flex; flex-direction:column; gap:var(--sp-1); }
.filter-group-grow { flex:1; min-width:180px; }
.filter-label { font-size:.75rem; font-weight:500; color:var(--c-text-muted); text-transform:uppercase; letter-spacing:.04em; }
.input-sm { height:32px; padding:0 var(--sp-2); font-size:.85rem; }
.select-sm { height:32px; padding:0 var(--sp-2); font-size:.85rem; }

/* ── Chip / label ────────────────────────────────────────────────────────── */
.chip-row { display:flex; flex-wrap:wrap; gap:var(--sp-1); }
.chip { display:inline-flex; align-items:center; gap:4px; padding:2px 10px;
        border-radius:9999px; font-size:.78rem; font-weight:500;
        background:var(--c-surface-2); color:var(--c-text-muted);
        border:1px solid transparent; cursor:pointer; line-height:1.6;
        transition:background .15s, color .15s, border-color .15s; }
.chip:hover { background:var(--c-surface-3); color:var(--c-text); }
.chip.is-active { background:var(--c-accent); color:#fff; border-color:var(--c-accent); }
.chip-sm { font-size:.72rem; padding:1px 8px; }
.chip-more { font-size:.78rem; color:var(--c-text-muted); align-self:center; }

/* ── Bulk action bar ─────────────────────────────────────────────────────── */
.bulk-bar { display:flex; align-items:center; flex-wrap:wrap; gap:var(--sp-2);
            padding:var(--sp-2) var(--sp-3);
            background:var(--c-surface-2); border-radius:var(--radius);
            margin-bottom:var(--sp-3); font-size:.85rem; }
.bulk-check-all { display:flex; align-items:center; gap:6px; font-weight:500; }
.bulk-sep { color:var(--c-border); }
.bulk-summary { color:var(--c-text-muted); margin-left:auto; }

/* ── Tabel data ──────────────────────────────────────────────────────────── */
.table-card { padding:0; overflow:hidden; }
.table-responsive { overflow-x:auto; }
.data-table { width:100%; border-collapse:collapse; font-size:.875rem; }
.data-table th, .data-table td { padding:10px 14px; text-align:left; white-space:nowrap; }
.data-table th { background:var(--c-surface-2); font-weight:600; font-size:.78rem;
                 text-transform:uppercase; letter-spacing:.04em; color:var(--c-text-muted);
                 border-bottom:1px solid var(--c-border); }
.data-table td { border-bottom:1px solid var(--c-border); color:var(--c-text); }
.data-table tr:last-child td { border-bottom:none; }
.data-table tr.is-selected td { background:color-mix(in srgb, var(--c-accent) 6%, transparent); }
.data-table tr:hover td { background:var(--c-surface-2); }
.col-check { width:36px; }
.col-title { min-width:220px; white-space:normal; }
.col-title a { color:var(--c-text); text-decoration:none; }
.col-title a:hover { color:var(--c-accent); text-decoration:underline; }
.col-type  { width:120px; }
.col-date  { width:110px; }
.col-labels{ min-width:120px; white-space:normal; }
.col-size  { width:80px; }
.table-loading { text-align:center; color:var(--c-text-muted); padding:var(--sp-6) !important; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination { padding:var(--sp-3) var(--sp-4); border-top:1px solid var(--c-border); }
.pagination-inner { display:flex; gap:4px; align-items:center; justify-content:center; }
.pag-btn { min-width:32px; height:32px; padding:0 6px; border-radius:var(--radius-sm); }
.pag-btn.is-active { background:var(--c-accent); color:#fff; }
.pag-btn:disabled { opacity:.4; pointer-events:none; }
.pag-ellipsis { color:var(--c-text-muted); padding:0 4px; }

/* ── Content footer ──────────────────────────────────────────────────────── */
.content-footer { display:flex; align-items:center; justify-content:space-between;
                  flex-wrap:wrap; gap:var(--sp-3);
                  padding:var(--sp-4) 0; margin-top:var(--sp-4); }
.content-footer-summary { color:var(--c-text-muted); font-size:.9rem; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state { text-align:center; padding:var(--sp-8) var(--sp-4); }
.empty-state-icon { font-size:2.5rem; margin-bottom:var(--sp-2); }
.empty-state-title { font-size:1.1rem; font-weight:600; color:var(--c-text); margin-bottom:var(--sp-1); }
.empty-state-desc { color:var(--c-text-muted); max-width:420px; margin:0 auto var(--sp-4); }

/* ── Options form ────────────────────────────────────────────────────────── */
.options-form { display:flex; flex-direction:column; gap:var(--sp-4); max-width:720px; }
.card-title { font-size:1rem; font-weight:600; margin-bottom:var(--sp-3); }
.radio-group { border:none; padding:0; margin:0; display:flex; flex-direction:column; gap:var(--sp-2); }
.radio-option, .checkbox-option { display:flex; align-items:flex-start; gap:10px;
                                   cursor:pointer; font-size:.9rem; }
.radio-option input, .checkbox-option input { margin-top:3px; accent-color:var(--c-accent); }
.field-group { display:flex; flex-direction:column; gap:var(--sp-1); }
.field-label { font-size:.85rem; font-weight:500; }
.field-row { display:flex; gap:var(--sp-3); flex-wrap:wrap; }
.field-row .field-group { flex:1; min-width:160px; }
.form-actions { display:flex; gap:var(--sp-2); align-items:center; padding-top:var(--sp-2); }
.input { width:100%; padding:8px 12px; border-radius:var(--radius-sm);
         border:1px solid var(--c-border); background:var(--c-surface);
         color:var(--c-text); font-size:.9rem; }
.input:focus { outline:none; border-color:var(--c-accent); box-shadow:0 0 0 2px color-mix(in srgb, var(--c-accent) 20%, transparent); }

/* Badge tipe artikel/halaman */
.badge-post { background:color-mix(in srgb, var(--c-accent) 15%, transparent); color:var(--c-accent); }
.badge-page { background:color-mix(in srgb, var(--c-ok) 15%, transparent); color:var(--c-ok); }
.badge-warn { background:color-mix(in srgb, var(--c-warn) 15%, transparent); color:var(--c-warn); }

/* Checkbox custom */
.checkbox-wrap { display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.checkbox-wrap input { accent-color:var(--c-accent); width:16px; height:16px; }

/* Toast error (dipakai upload.php) */
.toast.toast-error { background:color-mix(in srgb, var(--c-danger) 12%, var(--c-surface));
                     border:1px solid var(--c-danger); color:var(--c-danger);
                     padding:var(--sp-3) var(--sp-4); border-radius:var(--radius);
                     margin-bottom:var(--sp-4); }

/* Dropzone detail states */
.dropzone-status-error { color:var(--c-danger); }
.dropzone-or { color:var(--c-text-muted); font-size:.85rem; }
.dropzone-note { font-size:.78rem; color:var(--c-text-muted); margin-top:var(--sp-1); }
.dropzone-pct { font-size:.85rem; color:var(--c-text-muted); margin-top:var(--sp-1); }
.dropzone-actions { display:flex; gap:var(--sp-2); justify-content:center; margin-top:var(--sp-3); }
.card-note { font-size:.8rem; color:var(--c-text-muted); padding:var(--sp-2) var(--sp-4) var(--sp-3); }

@media (max-width: 720px) {
  .data-table thead { display:none; }
  .data-table tr { display:flex; flex-direction:column; border:1px solid var(--c-border);
                   border-radius:var(--radius); margin-bottom:var(--sp-2); background:var(--c-surface); }
  .data-table td { border:none; padding:6px 12px; }
  .data-table td::before { content:attr(data-label); font-weight:600; font-size:.75rem;
                            color:var(--c-text-muted); display:block; text-transform:uppercase;
                            letter-spacing:.04em; margin-bottom:2px; }
  .col-check { order:-1; }
  .filter-row { flex-direction:column; }
  .field-row { flex-direction:column; }
}

/* -------------------------------------------------------------------------
   19) Kompatibilitas Bagian 3-4 (alias token + kelas yang dipakai halaman
       unggah/konten tetapi belum didefinisikan di Bagian 2)
   ------------------------------------------------------------------------- */
:root {
  --c-accent: var(--primary);
  --c-border: var(--border);
  --c-danger: var(--danger);
  --c-ok: var(--ok);
  --c-warn: var(--warn);
  --c-surface: var(--surface);
  --c-surface-2: var(--surface-2);
  --c-surface-3: var(--surface-hover);
  --c-text: var(--text);
  --c-text-muted: var(--text-muted);
  --radius: var(--radius-md);
  --space-1: var(--sp-1);
  --space-2: var(--sp-2);
  --space-3: var(--sp-3);
  --space-4: var(--sp-4);
}
[hidden] { display: none !important; }

.page-head-title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--text);
  margin: 0 0 var(--sp-1);
}
.page-head-desc { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-full);
  background: var(--primary);
  transition: width 240ms ease;
}
.progress-bar-fill.is-danger { background: var(--danger); }

.dropzone-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  text-align: center;
}
.dropzone-filename { margin: 0; color: var(--text); font-weight: 600; word-break: break-all; }
.dropzone-filesize { margin: 0; font-size: var(--fs-sm); }
.dropzone-status-label { margin: 0; color: var(--text); font-weight: 600; }

/* -------------------------------------------------------------------------
   20) Bagian 5: login Google, notice, akun
   ------------------------------------------------------------------------- */
/* Tombol "Sign in with Google" — pedoman branding Google, varian tema terang.
   Logo tidak boleh diubah; tinggi 40px; teks 14px medium. */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #747775;
  border-radius: 4px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.btn-google:hover { background: #f3f3f3; color: #1f1f1f; text-decoration: none; }
.btn-google:active { background: #e8e8e8; }
.btn-google:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-google svg { width: 20px; height: 20px; flex: 0 0 auto; }

.notice {
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-sm);
}
.notice-error { background: var(--danger-soft); border-color: var(--danger-border); }
.notice-ok { background: var(--ok-soft); border-color: var(--ok-border); }

.signin-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.signin-card h3 { margin: 0; }
.signin-card p { margin: 0; max-width: 60ch; }
.signin-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }

.sidebar-logout { margin-top: var(--sp-2); }
.sidebar-logout-btn { justify-content: flex-start; }
.app-shell[data-sidebar="collapsed"] .sidebar-logout-label { display: none; }
.app-shell[data-sidebar="collapsed"] .sidebar-logout-btn { justify-content: center; }

.blog-name { color: var(--text); font-weight: 600; }
.blog-url { display: block; font-size: var(--fs-xs); color: var(--text-faint); word-break: break-all; }
.inline-form { display: inline; margin: 0; }
.row-actions { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.text-sm { font-size: var(--fs-xs); }
.mt-3 { margin-top: var(--sp-3); }
.danger-zone { border-color: var(--danger-border); }

/* =========================================================================
   21) Polish pass — kedalaman visual, gradasi halus, micro-interactions.
   Ditambahkan di akhir file agar menang lewat urutan sumber (tanpa
   menaikkan spesifisitas berlebihan). Murni CSS — tidak ada style="" atau
   <script> inline, sesuai batas CSP proyek ini.
   ========================================================================= */
:root {
  --primary-glow: rgba(245, 124, 0, 0.28);
  --grad-primary: linear-gradient(135deg, #f98a12 0%, #f57c00 100%);
  --grad-primary-hover: linear-gradient(135deg, #ef6c00, #e65100);
}

/* Latar halaman — kedalaman lembut, bukan warna datar */
body.app-body {
  background:
    radial-gradient(1000px 520px at 12% -10%, rgba(245, 124, 0, 0.07), transparent 60%),
    radial-gradient(900px 480px at 102% 0%, rgba(45, 104, 168, 0.045), transparent 55%),
    var(--bg);
  background-attachment: fixed, fixed, fixed;
}

/* Scrollbar halus, mengikuti tema gelap */
.sidebar-nav, .app-main, .table-responsive, .table-wrap {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.sidebar-nav::-webkit-scrollbar, .app-main::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar { width: 9px; height: 9px; }
.sidebar-nav::-webkit-scrollbar-thumb, .app-main::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
.sidebar-nav::-webkit-scrollbar-thumb:hover, .app-main::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* Sidebar — sedikit lebih dalam, aksen pada item aktif */
.sidebar { background: linear-gradient(180deg, var(--bg-inset) 0%, #ece6db 100%); }
.sidebar-logo {
  background: var(--grad-primary);
  border-color: transparent;
  color: var(--text-on-primary);
  box-shadow: 0 4px 14px -5px var(--primary-glow);
}
.sidebar-link { transition: background var(--transition), color var(--transition), transform 140ms ease; }
.sidebar-link:hover { transform: translateX(2px); }
.sidebar-link.is-active {
  background: linear-gradient(90deg, var(--primary-soft), rgba(245, 124, 0, 0.02));
  box-shadow: inset 2px 0 0 var(--primary), 0 4px 16px -9px var(--primary-glow);
}
.avatar { box-shadow: 0 0 0 2px var(--bg-inset), 0 0 0 3px var(--border); }

/* Topbar — garis bawah lebih hidup, tetap tipis */
.topbar {
  background: linear-gradient(180deg, rgba(250, 248, 245, 0.96), rgba(250, 248, 245, 0.88));
  box-shadow: 0 12px 24px -22px rgba(60, 45, 25, 0.35);
}
.lang-switch-opt.is-active { box-shadow: 0 2px 8px -3px var(--primary-glow); }

/* Kartu & stat-card — kedalaman, garis atas halus, hover terangkat */
.card, .stat-card {
  position: relative;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card::before, .stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}
.card:hover, .stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.stat-card-icon {
  background: linear-gradient(135deg, var(--primary-soft), rgba(245, 124, 0, 0.03));
  box-shadow: inset 0 0 0 1px var(--primary-border), 0 6px 16px -9px var(--primary-glow);
}
.stat-card-value { letter-spacing: -0.01em; }

/* Judul halaman — sedikit lebih dramatis lewat gradasi teks */
.page-head-title {
  background: linear-gradient(180deg, var(--text), var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Masuk halus untuk kepala halaman & grid statistik (dinonaktifkan bila
   pengguna minta gerakan lebih sedikit) */
.page-head { animation: app-rise-in 380ms ease both; }
.card-grid > * { animation: app-rise-in 420ms ease both; }
.card-grid > *:nth-child(1) { animation-delay: 20ms; }
.card-grid > *:nth-child(2) { animation-delay: 70ms; }
.card-grid > *:nth-child(3) { animation-delay: 120ms; }
.card-grid > *:nth-child(4) { animation-delay: 170ms; }
@keyframes app-rise-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-head, .card-grid > * { animation: none; }
}

/* Tombol — gradasi lembut & efek terangkat saat hover */
.btn {
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), opacity var(--transition),
              transform 140ms ease, box-shadow 180ms ease;
}
.btn-primary {
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 6px 16px -7px var(--primary-glow);
}
.btn-primary:hover:not([disabled]) {
  background: var(--grad-primary-hover);
  border-color: transparent;
  box-shadow: 0 10px 22px -7px var(--primary-glow);
  transform: translateY(-1px);
}
.btn-primary:active:not([disabled]) { transform: translateY(0); box-shadow: 0 4px 10px -6px var(--primary-glow); }
.btn-ghost:hover:not([disabled]) { transform: translateY(-1px); }
.btn-google:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Empty state & dropzone — lingkaran ikon lebih berdimensi */
.empty-state-icon, .dropzone-icon {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--border), 0 8px 18px -12px rgba(60, 45, 25, 0.25);
}

/* Tabel — transisi hover lebih mulus */
.table tbody tr, .data-table tr { transition: background 140ms ease; }

/* Sign-in card — sedikit menonjol dari kartu biasa */
.signin-card {
  background: linear-gradient(160deg, var(--surface-hover), var(--surface));
  border-color: var(--primary-border);
}
/* -------------------------------------------------------------------------
   Bagian 8: Chrome pemasaran halaman publik (beranda, halaman konten SEO)
   ------------------------------------------------------------------------- */
.section { padding-block: var(--sp-8); }
.section-head { max-width: 780px; margin-bottom: var(--sp-6); }
.section-head h2 { margin-bottom: var(--sp-2); }
.section-lede { color: var(--text-muted); margin: 0; font-size: var(--fs-base); }

.hero {
  padding-block: var(--sp-8) var(--sp-7);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 720px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-3);
}
.hero h1 {
  font-size: var(--fs-2xl);
  line-height: 1.15;
  margin-bottom: var(--sp-3);
}
.hero-sub { font-size: var(--fs-md); font-weight: 500; color: var(--text); margin-bottom: var(--sp-2); }
.hero-intro { font-size: var(--fs-base); color: var(--text-muted); max-width: 62ch; margin-bottom: var(--sp-6); }
.hero-actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.hero-actions-or { color: var(--text-faint); font-size: var(--fs-sm); }

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-5);
  counter-reset: step;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  position: relative;
}
.step-card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--radius-full);
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  color: var(--primary); font-weight: 700; font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}
.step-card h3 { margin-bottom: var(--sp-1); }
.step-card p { color: var(--text-muted); margin: 0; font-size: var(--fs-base); }

.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 760px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
}
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--text); font-size: var(--fs-base);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--text-faint); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { color: var(--text-muted); margin: var(--sp-3) 0 0; font-size: var(--fs-base); }

.inline-link { color: var(--primary); }
.inline-link:hover { color: var(--primary-hover); }
.u-mt-6 { margin-top: var(--sp-6); }
.prose { max-width: 74ch; }
.prose h2 { margin-top: var(--sp-6); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 0 0 var(--sp-1); }
.prose p { color: var(--text-muted); font-size: var(--fs-base); }
.prose ol, .prose ul { font-size: var(--fs-base); color: var(--text-muted); padding-left: 1.25em; margin: 0; }
.prose ol > li, .prose ul > li { margin-bottom: var(--sp-4); }
.prose ol > li:last-child, .prose ul > li:last-child { margin-bottom: 0; }
.prose li p { color: var(--text-muted); margin: 0; }

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* -------------------------------------------------------------------------
   Responsif HP: jarak lebih rapat, tombol hero selebar layar, tap target 44px+
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .container, .site-header-inner, .site-footer-inner { padding-inline: var(--sp-4); }
  .site-header-inner { gap: var(--sp-3); }
  .section { padding-block: var(--sp-7); }
  .section-head { margin-bottom: var(--sp-5); }
  .hero { padding-block: var(--sp-7) var(--sp-6); }
  .hero-actions { align-items: stretch; gap: var(--sp-3); }
  .hero-actions .btn, .hero-actions .btn-google { width: 100%; justify-content: center; min-height: 46px; }
  .hero-actions-or { text-align: center; }
  .step-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .faq-item { padding: var(--sp-4); }
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1200px) {
  :root { --fs-base: 1rem; }  /* desktop lebar: teks isi 16px */
}

/* Tombol menu situs hanya tampil di HP (aturan .btn di atas sebelumnya menimpa display:none) */
.btn.site-menu-btn { display: none; }
@media (max-width: 640px) {
  .btn.site-menu-btn { display: inline-flex; }
}

/* Hero rata kiri sejajar seksi lain; hanya teksnya dibatasi lebar bacanya */
.hero-inner { max-width: var(--content-max); }
.hero-inner > h1, .hero-inner > .hero-sub, .hero-inner > .hero-intro { max-width: 720px; }

@media (max-width: 640px) {
  .site-logo { font-size: var(--fs-sm); line-height: 1.2; white-space: nowrap; }
  .lang-switch-opt { min-height: 32px; }
}

/* -------------------------------------------------------------------------
   Halaman panduan /blogger-xml-to-wordpress: TOC, daftar langkah, callout,
   checklist, blok CTA & kepercayaan (khusus konten panjang)
   ------------------------------------------------------------------------- */
.u-mt-4 { margin-top: var(--sp-4); }
.section-tight { padding-block: var(--sp-5); }
.section[id], .hero { scroll-margin-top: calc(64px + var(--sp-4)); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.page-meta { margin: var(--sp-5) 0 0; font-size: var(--fs-xs); color: var(--text-faint); }
.note { color: var(--text-muted); font-size: var(--fs-base); max-width: 72ch; }

/* Daftar isi */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
}
.toc-title {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.toc-list {
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px var(--sp-6);
}
.toc-list li { counter-increment: toc; }
.toc-list a {
  display: flex;
  gap: var(--sp-3);
  align-items: baseline;
  padding: 6px 0;
  font-size: var(--fs-base);
  color: var(--text);
}
.toc-list a::before { content: counter(toc) "."; color: var(--primary); font-weight: 700; min-width: 1.4em; }
.toc-list a:hover { color: var(--primary); }

/* Langkah bernomor (5 langkah) */
.step-list { counter-reset: stp; display: grid; gap: var(--sp-4); max-width: 820px; }
.step-list-item {
  counter-increment: stp;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.step-list-item h3 { margin-bottom: var(--sp-2); }
.step-list-item p { margin: 0; font-size: var(--fs-base); }

/* Callout */
.callout {
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  max-width: 820px;
}
.callout p { margin: 0; font-size: var(--fs-base); color: var(--text); }
.callout-warn { border-color: var(--warn-border); border-left-color: var(--warn); background: var(--warn-soft); }
.callout-info { border-color: var(--info-border); border-left-color: var(--info); background: var(--info-soft); }
.callout-foot { margin-top: var(--sp-4) !important; font-weight: 600; }

.bullet-list { display: grid; gap: var(--sp-2); }
.bullet-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--fs-base);
  color: var(--text);
}
.bullet-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warn);
}

/* Checklist */
.check-list { display: grid; gap: var(--sp-2); }
.check-list.card { max-width: 820px; }
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: var(--fs-base);
  color: var(--text-muted);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.25em;
  width: 1.05rem; height: 1.05rem;
  border-radius: 4px;
  border: 1.5px solid var(--primary-border);
  background: var(--primary-soft);
}
.check-list li::after {
  content: "";
  position: absolute; left: 0.34rem; top: 0.42em;
  width: 0.3rem; height: 0.55rem;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

/* Daftar bernomor panjang (impor WXR) */
.num-list { counter-reset: n; display: grid; gap: var(--sp-3); max-width: 820px; }
.num-list li {
  counter-increment: n;
  position: relative;
  padding-left: 2.25rem;
  font-size: var(--fs-base);
  color: var(--text-muted);
}
.num-list li::before {
  content: counter(n);
  position: absolute; left: 0; top: 0;
  width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: var(--fs-xs); font-weight: 700;
}

/* Grid dua kolom (gambar & checklist) */
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-list.card:hover, .num-list.card:hover, .cta-card:hover, .card-grid-2 .card:hover { transform: none; }

/* CTA & kepercayaan */
.cta-card { max-width: 820px; }
.cta-card h2 { margin-bottom: var(--sp-2); }
.cta-card p { font-size: var(--fs-base); margin-bottom: 0; }
.cta-card-primary { margin-top: var(--sp-6); background: var(--primary-soft); border-color: var(--primary-border); }
.trust-block { max-width: 820px; margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.trust-title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.trust-block p { font-size: var(--fs-base); }

@media (max-width: 720px) {
  .toc-list, .card-grid-2 { grid-template-columns: 1fr; }
  .toc { padding: var(--sp-4); }
  .step-list-item, .callout { padding: var(--sp-4); }
}


/* Tombol dengan teks panjang boleh membungkus baris (mencegah scroll horizontal di HP) */
.cta-card .btn { white-space: normal; text-align: center; }
@media (max-width: 640px) {
  .cta-card .btn { width: 100%; }
}

/* Tiga kolom untuk 6 kartu "apa yang dipindahkan" */
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid-3 { grid-template-columns: 1fr; } }


/* -------------------------------------------------------------------------
   22) Teks keterangan (deskripsi/isi, bukan judul/tombol/label) — Verdana,
   berat 300, 15px. Diletakkan di akhir file supaya menang lewat urutan
   sumber atas aturan spesifik sebelumnya (mis. .hero-sub, .note) tanpa
   perlu !important. Judul (h1–h4), tombol, nav, badge, dan chip TIDAK
   disentuh — tetap pakai --font-sans (Inter/Verdana fallback).
   ------------------------------------------------------------------------- */
p,
.card-body,
.note,
.section-lede,
.hero-sub,
.hero-intro,
.step-card p,
.step-list-item p,
.faq-item p,
.callout p,
.prose p,
.bullet-list li,
.check-list li,
.num-list li,
.trust-block p {
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 300;
  font-size: 15px;
}