/* ============================================================
   Balam Sempurna — tema indigo/violet glassmorphism
   ============================================================ */
:root {
  --bg: #F3F0FF;
  --ink: #1F1B3A;
  --ink-soft: #635F82;
  --accent1: #4F46E5;
  --accent2: #8B5CF6;
  --grad: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
  --danger: #E11D48;
  --ok: #059669;
  --amber: #B45309;
  --rose: #BE123C;
  --card: rgba(255, 255, 255, 0.62);
  --card-border: rgba(255, 255, 255, 0.75);
  --shadow: 0 10px 34px rgba(79, 70, 229, 0.14), 0 2px 8px rgba(31, 27, 58, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --gap: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent1); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

/* ---------- Latar dekoratif ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 420px at 12% -6%, rgba(129, 140, 248, 0.35), transparent 65%),
    radial-gradient(520px 400px at 88% 4%, rgba(236, 72, 153, 0.22), transparent 62%),
    radial-gradient(640px 460px at 50% 108%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(520px 380px at 95% 62%, rgba(139, 92, 246, 0.20), transparent 60%),
    linear-gradient(180deg, #F3F0FF 0%, #EEEAFC 100%);
}
.bg-decor::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(79, 70, 229, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 55%);
}

/* ---------- Wadah & layout dasar ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 56px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-text { font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
.brand-dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mainnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mainnav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.mainnav a:hover { background: rgba(79, 70, 229, 0.08); color: var(--ink); text-decoration: none; }
.mainnav a.aktif { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35); }
.nav-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Judul halaman ---------- */
.page-head { margin: 8px 0 26px; }
.page-title { font-size: 30px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.page-sub { color: var(--ink-soft); margin: 0; font-size: 15px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #312E81 0%, #4F46E5 55%, #8B5CF6 100%);
  color: #fff;
  padding: 42px 44px;
  margin: 6px 0 28px;
  box-shadow: 0 18px 44px rgba(79, 70, 229, 0.35);
}
.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 65%);
  pointer-events: none;
}
.hero-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
}
.hero h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; margin: 0 0 10px; letter-spacing: -0.02em; }
.hero .grad-text { background: linear-gradient(135deg, #FDE68A, #FBBF24); }
.hero-sub { margin: 0; max-width: 520px; color: rgba(255, 255, 255, 0.88); font-size: 15.5px; }
.hero-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  padding: 14px 18px;
  backdrop-filter: blur(8px);
}
.badge-big {
  font-size: 26px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 8px 12px;
}
.badge-info { font-size: 13px; font-weight: 600; line-height: 1.45; }

/* ---------- Hero statistik (Total Pemilih, L/P, TPS) ---------- */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 18px 22px;
  backdrop-filter: blur(8px);
  min-width: 200px;
}
.hs-item { display: flex; flex-direction: column; gap: 1px; }
.hs-row { display: flex; gap: 40px; align-items: flex-start; justify-content: flex-start; }
.hs-num { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hs-main .hs-num { font-size: 38px; }
.hs-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.hs-sub { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.hs-pct { font-size: 15px; font-weight: 800; color: #fff; }
.hs-pct em { font-style: normal; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.hs-item-tps { border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 14px; }

/* ---------- Kartu ---------- */
.card {
  background: var(--card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: var(--gap);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.link-more { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.link-more:hover { text-decoration: none; }

/* ---------- Flash ---------- */
.flash {
  border-radius: 12px;
  padding: 12px 16px;
  margin: 18px 0;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid;
}
.flash-ok { background: rgba(5, 150, 105, 0.12); border-color: rgba(5, 150, 105, 0.35); color: #065F46; }
.flash-warn { background: rgba(180, 83, 9, 0.12); border-color: rgba(180, 83, 9, 0.35); color: #92400E; }
.flash-info { background: rgba(79, 70, 229, 0.10); border-color: rgba(79, 70, 229, 0.3); color: var(--accent1); }

/* ---------- Cek NIK ---------- */
.check-card { padding: 24px; margin-bottom: var(--gap); }
.tabs { display: inline-flex; gap: 6px; background: rgba(255, 255, 255, 0.55); padding: 5px; border-radius: 12px; border: 1px solid var(--card-border); margin-bottom: 18px; }
.tab {
  padding: 8px 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  border: none;
  background: transparent;
  cursor: pointer;
}
.tab:hover { text-decoration: none; color: var(--ink); }
.tab.aktif { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35); }
.check-form { display: flex; gap: 10px; }
.check-form input[type="text"] {
  flex: 1;
  padding: 13px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid rgba(99, 95, 130, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  min-width: 0;
}
.check-form input[type="text"]:focus { outline: none; border-color: var(--accent1); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18); }
.hint { color: var(--ink-soft); font-size: 13.5px; margin: 10px 0 0; }
.hint.center { text-align: center; }
.hint.warn { color: var(--amber); }
.warn { color: var(--amber); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45); color: #fff; }
.btn-outline { background: rgba(255, 255, 255, 0.7); border-color: rgba(79, 70, 229, 0.4); color: var(--accent1); }
.btn-outline:hover { background: rgba(79, 70, 229, 0.08); color: var(--accent1); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: rgba(31, 27, 58, 0.06); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-mini {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid rgba(79, 70, 229, 0.35);
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent1);
  cursor: pointer;
}
.btn-mini:hover { background: rgba(79, 70, 229, 0.16); }
.btn-mini.danger { border-color: rgba(225, 29, 72, 0.35); background: rgba(225, 29, 72, 0.07); color: var(--danger); }
.btn-mini.danger:hover { background: rgba(225, 29, 72, 0.14); }

/* ---------- Hasil pencarian ---------- */
.result-list { display: grid; gap: var(--gap); margin-bottom: 8px; }
.result-card { margin-bottom: 0; }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rc-top h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.rc-nik { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.rc-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink); }
.rc-detail { color: var(--ink-soft); }
.result-empty h3 { margin: 0 0 8px; }
.result-empty p { margin: 0 0 12px; }
.result-empty .btn { margin-top: 6px; }

/* ---------- Kartu cepat ---------- */
.quick-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); margin-top: 8px; }
.quick { margin-bottom: 0; display: flex; flex-direction: column; gap: 4px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.quick:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(79, 70, 229, 0.2); text-decoration: none; }
.quick h3 { margin: 0; font-size: 16.5px; }
.quick p { margin: 0; color: var(--ink-soft); font-size: 14px; flex: 1; }
.quick .link-more { color: var(--accent1); }

/* ---------- Statistik ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.stat { display: flex; flex-direction: column; gap: 2px; margin-bottom: 0; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 34px; font-weight: 800; line-height: 1.15; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-sub { font-size: 13px; color: var(--ink-soft); }
.stat-sub.warn { color: var(--danger); font-weight: 700; }

/* ---------- Sebaran Pemilih per TPS (kartu + rincian laki/perempuan) ---------- */
.tps-section-head { margin: 0 0 16px; }
.tps-section-head h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.tps-section-head p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.tps-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.tps-card {
  margin-bottom: 0;
  padding: 18px 22px;
  background: linear-gradient(140deg, #3F3BB0 0%, #5B4BC4 45%, #7C3AED 100%);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35), 0 2px 8px rgba(49, 46, 129, 0.22);
}
.tps-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tps-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 16, 35, 0.18);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 6px 16px rgba(17, 12, 47, 0.2);
}
.tps-chip-lbl {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #E11D48;
}
.tps-chip .tps-total {
  font-size: 24px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9px;
  background: #E11D48;
  color: #fff;
  line-height: 1.15;
}
.tps-total { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; color: #141023; }
.tps-dpt {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 16, 35, 0.18);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 6px 16px rgba(17, 12, 47, 0.2);
}
.tps-dpt-lbl {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #141023;
}
.tps-dpt .tps-total {
  font-size: 24px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9px;
  background: #141023;
  color: #fff;
  line-height: 1.15;
}
.tps-dua-bar {
  display: flex;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}
.tps-fill { height: 100%; transition: width 0.3s ease; }
.tps-fill-l { background: linear-gradient(135deg, #141023, #2B28A0); }
.tps-fill-p { background: linear-gradient(135deg, #E11D48, #FB7185); }
.tps-legend-stack { display: flex; flex-direction: column; gap: 8px; }
.tps-ket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  color: #141023;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.30);
}
.tps-label { display: flex; align-items: center; gap: 6px; }
.tps-val { display: flex; align-items: baseline; gap: 6px; }
.tps-ket b { color: #0D0A1E; font-size: 15px; font-weight: 800; }
.tps-ket em { font-style: normal; font-size: 13px; color: #1A1633; font-weight: 800; opacity: 0.9; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; border: 1px solid rgba(255,255,255,0.8); }
.dot-l { background: linear-gradient(135deg, #141023, #2B28A0); }
.dot-p { background: linear-gradient(135deg, #E11D48, #FB7185); }

/* ---------- Galeri ---------- */
.galeri-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gap); }
.galeri-item { margin-bottom: 0; overflow: hidden; padding: 0; }
.galeri-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #E0E7FF, #EDE9FE); }
.galeri-img img { width: 100%; height: 100%; object-fit: cover; }
.galeri-item figcaption { padding: 14px 18px 16px; }
.galeri-item h3 { margin: 0 0 4px; font-size: 15.5px; }
.galeri-item p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }

/* ---------- Kegiatan & tahapan (publik) ---------- */
.kegiatan-pub { margin-bottom: var(--gap); }
.kegiatan-list { display: flex; flex-direction: column; }
.kegiatan-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(99, 95, 130, 0.14); }
.kegiatan-item:last-child { border-bottom: none; padding-bottom: 4px; }
.kegiatan-date { flex-shrink: 0; width: 58px; height: 58px; border-radius: 14px; background: var(--grad); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3); }
.kegiatan-d { font-size: 21px; font-weight: 800; line-height: 1; }
.kegiatan-my { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.9; margin-top: 3px; }
.kegiatan-body { flex: 1; min-width: 0; }
.kegiatan-body h3 { margin: 2px 0 4px; font-size: 16.5px; }
.kegiatan-body p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---------- Form umum ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  padding: 10px 13px;
  font-size: 14.5px;
  font-family: inherit;
  border: 1px solid rgba(99, 95, 130, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent1);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}
.field input[readonly] { background: rgba(99, 95, 130, 0.08); color: var(--ink-soft); }
.field-note { font-size: 12px; color: var(--ink-soft); margin: 2px 0 0; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pengaduan-form { margin-bottom: var(--gap); }
.narrow { max-width: 480px; }

/* ---------- Toolbar (admin) ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-form { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar-form input[type="search"], .toolbar-form select {
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid rgba(99, 95, 130, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-bottom: 2px solid rgba(99, 95, 130, 0.18);
  white-space: nowrap;
}
.tbl td { padding: 9px 12px; border-bottom: 1px solid rgba(99, 95, 130, 0.12); vertical-align: top; }
.tbl tbody tr:hover { background: rgba(79, 70, 229, 0.045); }
.tbl td.num { text-align: right; }
.tbl td.cb { width: 34px; text-align: center; }
.tbl th.cb { text-align: center; }
.tbl td.aksi { white-space: nowrap; }
.tbl td.small { font-size: 13px; color: var(--ink); }
.tbl td.kosong { text-align: center; color: var(--ink-soft); padding: 26px; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.hidden-form { display: none; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-tps { background: rgba(79, 70, 229, 0.12); color: var(--accent1); }
.badge-hijau { background: rgba(5, 150, 105, 0.13); color: #047857; }
.badge-rose { background: rgba(190, 18, 60, 0.12); color: var(--rose); }
.badge-amber { background: rgba(180, 83, 9, 0.13); color: var(--amber); }
.badge-abu { background: rgba(99, 95, 130, 0.14); color: var(--ink-soft); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.page {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 95, 130, 0.2);
}
.page:hover { text-decoration: none; border-color: var(--accent1); color: var(--accent1); }
.page.aktif { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(31, 27, 58, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px 16px;
  overflow-y: auto;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(31, 27, 58, 0.35);
  padding: 22px 24px;
}
.modal-wide { max-width: 780px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.modal-close {
  border: none;
  background: rgba(99, 95, 130, 0.12);
  color: var(--ink-soft);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { background: rgba(225, 29, 72, 0.12); color: var(--danger); }

/* ---------- Dua kolom (admin) ---------- */
.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--gap); align-items: start; }
.two-col .card { margin-bottom: 0; }
.log-list { list-style: none; margin: 0; padding: 0; }
.log-list li { padding: 8px 0; border-bottom: 1px solid rgba(99, 95, 130, 0.12); display: flex; flex-direction: column; gap: 1px; }
.log-list li:last-child { border-bottom: none; }
.log-aksi { font-weight: 700; font-size: 13.5px; }
.log-detail { color: var(--ink-soft); font-size: 13px; }
.log-meta { color: var(--ink-soft); font-size: 12px; }

/* ---------- Impor ---------- */
.impor-form { max-width: 640px; }
.radio { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; margin: 6px 0; cursor: pointer; }
.radio input { margin-top: 3px; }
.hint-block { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(79, 70, 229, 0.06); border: 1px dashed rgba(79, 70, 229, 0.35); font-size: 13.5px; color: var(--ink-soft); }
.mini-select { font-size: 13px; padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(99, 95, 130, 0.32); font-family: inherit; }

/* ---------- Galeri admin ---------- */
.galeri-admin { list-style: none; margin: 0; padding: 0; }
.galeri-admin li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(99, 95, 130, 0.12); }
.galeri-admin li:last-child { border-bottom: none; }
.ga-thumb { width: 74px; height: 46px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #E0E7FF, #EDE9FE); flex-shrink: 0; }
.ga-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ga-info { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ga-info b { font-size: 14px; }
.ga-info .small { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 400px; padding: 30px; }
.login-brand { margin-bottom: 18px; }
.login-title { margin: 0 0 4px; font-size: 21px; font-weight: 800; }
.login-sub { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-back { margin-top: 18px; text-align: center; font-size: 13.5px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}
.footer p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.foot-small { margin-top: 4px !important; font-size: 12.5px !important; }

/* ---------- Responsif ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .mainnav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    padding: 10px 16px;
    box-shadow: var(--shadow);
  }
  .mainnav.buka { display: flex; }
  .mainnav a { padding: 11px 14px; border-radius: 10px; }
  .two-col { grid-template-columns: 1fr; }
  .check-form { flex-direction: column; }
  .hero { padding: 30px 24px; }
  .hero-stats { width: 100%; }
  .hero-in { flex-direction: column; align-items: stretch; }
}
