:root {
  --navy: #0f2744;
  --navy-2: #17375f;
  --gold: #c9a227;
  --gold-2: #e0c36a;
  --cream: #f6f1e6;
  --paper: #fffcf7;
  --ink: #1c2430;
  --muted: #5c6776;
  --line: #e4dccb;
  --ok: #1f7a4d;
  --danger: #b42318;
  --shadow: 0 16px 40px rgba(15, 39, 68, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}

a { color: var(--navy-2); text-decoration: none; }
img { max-width: 100%; }

.site-header {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.25);
}
.header-inner, .nav-inner, .container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: "Fraunces", Georgia, serif;
}
.brand small { display: block; color: var(--gold-2); font-size: 12px; letter-spacing: 0.06em; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
}
.nav a {
  color: #e8eef7;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover, .nav a.active { background: rgba(255,255,255,.12); color: var(--gold-2); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

.hero {
  background:
    radial-gradient(circle at 10% 20%, rgba(201,162,39,.25), transparent 40%),
    linear-gradient(160deg, var(--navy) 0%, #1d4a7a 100%);
  color: #fff;
  padding: 64px 0 72px;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 12px;
  max-width: 16ch;
}
.hero p { max-width: 58ch; color: #d7e3f4; font-size: 1.1rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.section { padding: 48px 0; }
.section h2 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0 0 8px;
  font-size: 1.8rem;
}
.lead { color: var(--muted); margin: 0 0 24px; }

.grid {
  display: grid;
  gap: 18px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-family: "Fraunces", Georgia, serif; }
.stat { font-size: 2rem; font-weight: 800; color: var(--navy); }
.kode {
  display: inline-block;
  background: var(--navy);
  color: var(--gold-2);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.muted { color: var(--muted); }
.status-AKTIF { color: var(--ok); font-weight: 700; }
.status-NON_AKTIF { color: var(--danger); font-weight: 700; }

.prose p, .prose li { line-height: 1.7; }
.visi-box {
  background: #fff;
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
}

.person {
  cursor: pointer;
  transition: transform .15s ease;
}
.person:hover { transform: translateY(-3px); }
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-2);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
th { background: var(--navy); color: #fff; font-weight: 600; }
.pos { color: var(--ok); font-weight: 700; }
.neg { color: var(--danger); font-weight: 700; }

.form {
  display: grid;
  gap: 12px;
}
label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; }
input, select, textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdecec;
  color: var(--danger);
  display: none;
}
.alert.show { display: block; }
.alert.ok { background: #e7f6ee; color: var(--ok); }

.login-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 32px 0;
}
.login-card { width: min(420px, 100%); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 39, 68, .55);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 40;
}
.modal.open { display: grid; }
.modal-card { width: min(480px, 100%); }

.site-footer {
  background: var(--navy);
  color: #c9d6e8;
  padding: 28px 0;
  margin-top: 24px;
}

.table-wrap { overflow-x: auto; }
#docs-box ul { padding-left: 18px; }
#docs-box li { margin-bottom: 8px; }
.card .actions { margin-top: 8px; }

@media (max-width: 900px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.captcha-box svg { display:block; border:1px solid #ddd; border-radius:8px; }
.form-row { display:flex; gap:8px; align-items:flex-start; margin:8px 0; }

.brand-logo { width:42px; height:42px; object-fit:contain; border-radius:10px; background:#fff; padding:4px; }
