/* Portal MBJ — portal kerajaan enterprise (PETRA). */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy-950: #071628;
  --navy-900: #0c2344;
  --navy-800: #143864;
  --navy-700: #1a4a82;
  --navy-600: #2a5f9e;
  --blue-500: #3f74c9;
  --blue-100: #eaf1fb;
  --gold-500: #c59a2f;
  --gold-400: #d4ae45;
  --gold-100: #f8f1df;
  --ink-900: #12161e;
  --ink-700: #3a4150;
  --ink-500: #667085;
  --ink-300: #b9bfc9;
  --line: #e3e8f0;
  --bg: #f3f6fb;
  --white: #ffffff;
  --green-600: #1f7a4d;
  --green-100: #e6f5ec;
  --amber-700: #92600b;
  --amber-100: #fdf0d8;
  --red-700: #a3283a;
  --red-100: #fbe7ea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(7, 22, 40, 0.04), 0 10px 28px rgba(7, 22, 40, 0.07);
  --shadow-lg: 0 4px 12px rgba(7, 22, 40, 0.06), 0 24px 48px rgba(7, 22, 40, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy-900); }
img { max-width: 100%; }
button { font-family: inherit; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(7, 22, 40, 0.03);
}
.site-header::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-700) 42%, var(--gold-500) 100%);
}
.site-header .inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-crest {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(155deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.brand-jata { height: 52px; width: auto; flex-shrink: 0; display: block; }
.brand-title {
  font-size: 17px; font-weight: 800; color: var(--navy-900); line-height: 1.2;
  letter-spacing: -0.015em;
}
.brand-sub { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; letter-spacing: 0.01em; }

.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav a {
  font-size: 13.5px; font-weight: 600; color: var(--ink-700);
  padding: 9px 13px; border-radius: 8px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.main-nav a:hover { background: var(--blue-100); color: var(--navy-800); }
.main-nav a.current {
  background: var(--blue-100); color: var(--navy-800);
  box-shadow: inset 0 -2px 0 var(--gold-500);
}

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy-800); cursor: pointer; flex-shrink: 0;
}

/* ---------- Hero band ---------- */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 88% 18%, rgba(197, 154, 47, 0.14), transparent 55%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 48%, var(--navy-700) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; right: 120px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(197,154,47,0.18), transparent 70%);
}
.page-hero .texture {
  position: absolute; inset: 0; opacity: 0.45; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 22px 22px;
}
.page-hero .inner { max-width: 1180px; margin: 0 auto; padding: 34px 24px 40px; position: relative; }
.breadcrumb { font-size: 12px; color: #b9cbea; margin-bottom: 10px; }
.breadcrumb a { color: #b9cbea; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: 28px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.page-hero p { font-size: 14px; color: #cddcf3; margin: 0; max-width: 620px; line-height: 1.65; }

.hero-home { padding: 64px 24px 72px; }
.hero-home h1 {
  font-size: clamp(30px, 4vw, 42px); max-width: 640px; line-height: 1.15;
  animation: fade-up .7s var(--ease) both;
}
.hero-home p { font-size: 15.5px; max-width: 560px; animation: fade-up .7s var(--ease) .08s both; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 14px;
  animation: fade-up .6s var(--ease) both;
}
.hero-eyebrow::before {
  content: ""; width: 18px; height: 2px; background: var(--gold-500); border-radius: 2px;
}
.hero-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; animation: fade-up .7s var(--ease) .16s both; }

/* Hero laman utama: latar geometri + ilustrasi kanan */
.hero-geo-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-art { max-width: 500px; justify-self: end; width: 100%; animation: fade-in .9s var(--ease) .2s both; }
.hero-art svg { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700;
  padding: 12px 22px; border-radius: 8px; border: none; cursor: pointer; font-family: inherit; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: #2a1f06;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 20px rgba(197,154,47,0.28);
}
.btn-gold:hover { background: linear-gradient(180deg, #ddb74f, #b88c24); color: #2a1f06; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-secondary { background: var(--white); color: var(--ink-700); border: 1px solid var(--line); }
.btn-secondary:hover { background: #f2f4f8; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

/* ---------- Layout / sections ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-alt { background: var(--white); }
.section-head { margin-bottom: 28px; }
.section-head h2 {
  font-size: 24px; font-weight: 800; margin: 0 0 8px; color: var(--navy-900);
  letter-spacing: -0.02em;
}
.section-head h2::after {
  content: ""; display: block; width: 40px; height: 3px; margin: 12px auto 0;
  background: linear-gradient(90deg, var(--navy-700), var(--gold-500)); border-radius: 2px;
}
.section-head p { font-size: 14px; color: var(--ink-500); margin: 0; }

.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

/* Titik Tujuan & Fungsi (laman utama) */
.point-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; max-width: 1000px; margin: 0 auto; }
.point-card { padding: 26px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; align-content: start; }
.point-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfd9ea; }
.point-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-100), #dce8f8); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(26, 74, 130, 0.06);
}
.point-text { font-size: 14px; line-height: 1.7; color: var(--ink-700); margin: 0; align-self: center; }

/* Senarai usul awam (jadual + tapisan) */
.usul-filter { padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 16px; }
.usul-filter-field { flex: 1 1 180px; }
.usul-filter-actions { display: flex; gap: 8px; }
.usul-count { font-size: 12.5px; font-weight: 600; color: var(--ink-500); margin: 0 2px 10px; }
.usul-table-wrap { overflow: hidden; }
.usul-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.usul-table thead th { background: var(--navy-700); color: #fff; text-align: left; font-weight: 700; font-size: 12.5px; padding: 12px 14px; vertical-align: bottom; }
.usul-table tbody td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-700); line-height: 1.55; }
.usul-table tbody tr:nth-child(even) td { background: #f3f7fd; }
.usul-table .usul-tajuk { font-weight: 600; color: var(--ink-900); }
.usul-table .nowrap { white-space: nowrap; }
.usul-table .muted { color: var(--ink-300); }
.usul-empty td { text-align: center; padding: 40px 14px; color: var(--ink-500); }
.peringatan-senarai { list-style: lower-roman; margin: 6px 0 0; padding-left: 22px; }
.peringatan-senarai li { margin-bottom: 4px; }
.peringatan-senarai a { font-weight: 700; text-decoration: underline; }
.minit-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.bahagian-tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--navy-800); background: var(--blue-100); padding: 2px 8px; border-radius: 5px; margin: 0 4px 4px 0; cursor: help; }
.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.pager-info { font-size: 13px; font-weight: 600; color: var(--ink-700); }
.pager-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.pager-btn { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; border: 1px solid var(--line); background: var(--white); color: var(--ink-700); font-size: 13.5px; font-weight: 600; }
a.pager-btn:hover { background: var(--blue-100); color: var(--navy-800); }
.pager-btn.is-current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pager-btn.is-disabled { opacity: .45; }
.pager-btn.is-gap { border-color: transparent; background: transparent; }
@media (max-width: 600px) { .pager { justify-content: center; } }

/* Galeri — album (4 sebaris) & gambar dlm album */
.album-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.album-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.album-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(15,43,82,0.08), 0 16px 32px rgba(15,43,82,0.12); color: inherit; }
.album-cover { position: relative; aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.album-card:hover .album-cover img { transform: scale(1.04); }
.album-bil { position: absolute; right: 10px; bottom: 10px; background: rgba(11,31,58,0.82); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.album-info { padding: 14px 16px 16px; }
.album-tajuk { font-size: 14.5px; font-weight: 700; color: var(--ink-900); line-height: 1.4; }
.album-tarikh { font-size: 12px; color: var(--ink-500); margin-top: 4px; }
.foto-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.foto-thumb { display: block; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); cursor: zoom-in; aspect-ratio: 4 / 3; }
.foto-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.foto-thumb:hover img { transform: scale(1.05); }
.lightbox-nav { flex-shrink: 0; background: rgba(255,255,255,0.14); color: #fff; border: none; width: 46px; height: 46px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; margin: 0 10px; }
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-nav[hidden] { display: none; }

/* Ahli Majlis — dua bahagian + lightbox */
.ahli-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.ahli-card { padding: 20px; display: flex; flex-direction: column; }
.ahli-title { font-size: 17px; font-weight: 800; color: var(--navy-900); margin: 0 0 14px; }
.ahli-thumb { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: zoom-in; overflow: hidden; }
.ahli-thumb img { display: block; width: 100%; height: 420px; object-fit: contain; }
.ahli-zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(11,31,58,0.8); color: #fff; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 20px; opacity: 0; transition: opacity .15s; }
.ahli-thumb:hover .ahli-zoom, .ahli-thumb:focus .ahli-zoom { opacity: 1; }
.ahli-meta { font-size: 12px; color: var(--ink-500); margin-top: 10px; }
.ahli-empty { padding: 60px 16px; text-align: center; font-size: 13.5px; color: var(--ink-500); background: var(--bg); border-radius: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(8,20,40,0.92); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; color: #fff; font-size: 14px; font-weight: 700; }
.lightbox-bar a { color: #cddcf3; font-size: 12.5px; font-weight: 600; margin-right: 14px; }
.lightbox-bar button { background: rgba(255,255,255,0.15); color: #fff; border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 22px; line-height: 1; cursor: pointer; }
.lightbox-body { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 0 16px 16px; }
.lightbox-body img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 4px; }

/* Flip book Perlembagaan */
.flipbook-wrap { overflow-x: clip; background: #e6ebf2; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 16px; }
.flipbook-wrap:fullscreen { background: var(--navy-950); border: none; border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
.flipbook-stage { max-width: 860px; margin: 0 auto; }
#flipbook { transition: transform .45s ease; }
.flipbook-sheet { background: #fff; box-shadow: 0 1px 3px rgba(11,31,58,0.15); }
.flipbook-sheet img { width: 100%; height: 100%; object-fit: contain; display: block; }
.flipbook-single .flipbook-sheet { width: fit-content; max-width: 100%; margin: 0 auto; }
.flipbook-single .flipbook-sheet img { width: auto; height: auto; max-width: 100%; max-height: 80vh; }
.flipbook-wrap:fullscreen .flipbook-single .flipbook-sheet img { max-height: 88vh; }
.flipbook-status { text-align: center; padding: 60px 16px; font-size: 13.5px; color: var(--ink-500); }
.flipbook-controls { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.flipbook-page { font-size: 13px; font-weight: 600; color: var(--ink-700); min-width: 120px; text-align: center; }
.flipbook-wrap:fullscreen .flipbook-page { color: #fff; }
.flipbook-wrap [hidden] { display: none !important; }
.flipbook-tajuk { text-align: center; font-size: 14px; font-weight: 700; color: var(--navy-900); margin-bottom: 14px; }
.flipbook-wrap:fullscreen .flipbook-tajuk { color: #fff; }

/* Perlembagaan — tab dokumen (asal + pindaan) & senarai dokumen */
.dok-tab { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dok-tab-item { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink-700); font-size: 13.5px; font-weight: 600; }
.dok-tab-item:hover { background: var(--blue-100); color: var(--navy-800); }
.dok-tab-item.aktif { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.dok-tab-tahun { font-size: 11.5px; font-weight: 600; opacity: .75; }
.dok-senarai { padding: 6px 22px; }
.dok-senarai-tajuk { font-size: 13px; font-weight: 700; color: var(--navy-800); padding: 14px 0 6px; }
.dok-senarai-baris { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.dok-senarai-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-500, #b78a24); }

/* Kluster cards (status usul) */
.kluster-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.kluster-card { padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 12px; }
.kluster-card:hover { border-color: var(--navy-600); }
.kluster-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kluster-name { font-size: 14.5px; font-weight: 700; }
.kluster-count { font-size: 10.5px; font-weight: 700; color: var(--ink-500); background: var(--bg); padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.stat-dots { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--ink-500); flex-wrap: wrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.kluster-more { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 11px; font-size: 12px; font-weight: 700; color: var(--navy-700); }

/* Stat tiles */
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.stat-row-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.stat-tile { padding: 18px 20px; }
.stat-label { font-size: 11.5px; font-weight: 600; color: var(--ink-500); margin-bottom: 6px; }
.stat-value { font-size: 27px; font-weight: 800; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab-btn {
  font-size: 13px; font-weight: 600; padding: 10px 16px; color: var(--ink-500);
  border: none; background: none; border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.tab-btn.active { color: var(--navy-800); border-bottom-color: var(--navy-800); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.badge-progress { background: var(--amber-100); color: var(--amber-700); }
.badge-done { background: var(--green-100); color: var(--green-600); }
.badge-rejected { background: var(--red-100); color: var(--red-700); }
.badge-approved { background: var(--blue-100); color: var(--navy-700); }
.badge-neutral { background: var(--bg); color: var(--ink-500); }

/* Usul list rows */
.usul-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.usul-row + .usul-row { border-top: 1px solid var(--line); }
.usul-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.usul-desc { font-size: 12.5px; color: var(--ink-500); line-height: 1.6; max-width: 640px; }
.usul-meta { font-size: 11px; color: var(--ink-500); margin-top: 8px; }
.empty-state { padding: 40px 20px; text-align: center; font-size: 13px; color: var(--ink-500); }

/* Forms */
.field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.field-label .req { color: var(--red-700); }
.field-hint { font-size: 11px; color: var(--ink-500); margin-top: 5px; }
.lampiran-kotak { display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--ink-300); border-radius: 8px; padding: 14px 16px; background: var(--bg); color: var(--ink-500); font-size: 12.5px; line-height: 1.5; cursor: pointer; }
.lampiran-kotak:hover { border-color: var(--navy-700); background: #eef3fb; }
.lampiran-kotak strong { color: var(--navy-800); }
.lampiran-senarai { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12.5px; }
.lampiran-senarai li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 4px; background: #fff; }
.lampiran-senarai li::before { content: '📎 '; }
.lampiran-senarai li.jumlah { border: none; background: none; color: var(--ink-500); padding-left: 2px; }
.lampiran-senarai li.jumlah::before { content: ''; }
.field-input, .field-select, .field-textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 10px 13px;
  font-size: 13.5px; color: var(--ink-900); background: var(--white); font-family: inherit;
}
.field-input:focus, .field-select:focus, .field-textarea:focus { outline: 2px solid var(--blue-100); border-color: var(--navy-600); }
.field-textarea { resize: vertical; min-height: 90px; }
.field-error { font-size: 11.5px; color: var(--red-700); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.field-ok { font-size: 11.5px; color: var(--green-600); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.otp-kotak { display: flex; gap: 8px; }
.otp-digit { width: 46px; height: 52px; padding: 0; text-align: center; font-size: 22px; font-weight: 700; }
@media (max-width: 400px) { .otp-kotak { gap: 6px; } .otp-digit { width: 40px; height: 48px; } }

/* Step chips */
.step-row { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.chip { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink-500); }
.chip .dot-num { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--ink-500); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.chip.current { color: var(--navy-800); }
.chip.current .dot-num { background: var(--navy-800); color: #fff; }
.chip.done .dot-num { background: var(--green-600); color: #fff; }
.chip-sep { width: 40px; height: 1px; background: var(--line); }

/* Tables (admin) */
table { width: 100%; border-collapse: collapse; }
.th { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-500); padding: 11px 16px; text-align: left; }
.td { padding: 14px 16px; font-size: 13px; border-top: 1px solid var(--line); vertical-align: top; }
.act-approve { font-size: 11.5px; font-weight: 700; padding: 6px 12px; border-radius: 5px; background: var(--green-600); color: white; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-family: inherit; }
.act-reject { font-size: 11.5px; font-weight: 700; padding: 6px 12px; border-radius: 5px; background: white; border: 1px solid var(--red-700); color: var(--red-700); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-family: inherit; }
.status-select { font-size: 12px; color: var(--ink-700); border: 1px solid var(--line); border-radius: 6px; padding: 7px 11px; font-family: inherit; background: white; }

/* Toast */
.toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 7px; background: var(--green-100); border: 1px solid #b9dfc7; color: #1c5c3b; font-size: 12.5px; margin-bottom: 18px; }
.toast-x { cursor: pointer; font-size: 15px; line-height: 1; color: #1c5c3b; background: none; border: none; font-family: inherit; }

/* Info rows (hubungi) */
.info-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.icon-badge { width: 38px; height: 38px; border-radius: 9px; background: var(--blue-100); color: var(--navy-800); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.person-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; }
.person-row + .person-row { border-top: 1px solid var(--line); }

/* Version history rows */
.ver-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.ver-row + .ver-row { border-top: 1px solid var(--line); }
.ver-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 5px; }
.ver-tag.current { color: var(--navy-700); background: var(--blue-100); }
.ver-tag.old { color: var(--ink-500); background: var(--bg); }

/* Footer */
.site-footer { background: var(--navy-950); color: #b9c6df; margin-top: 40px; }
.footer-bottom { padding: 16px 24px; text-align: center; font-size: 12px; color: #8a99b8; }

/* Responsive */
@media (max-width: 980px) {
  .kluster-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .album-grid, .foto-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .point-grid { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { justify-self: center; max-width: 400px; }
  .hero-geo-bg .geo-hex { display: none; }
  .stat-row, .stat-row-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 10px 16px 16px; z-index: 40;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 14px; }
  .site-header .inner { position: relative; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .hero-home { padding: 40px 20px 44px; }
  .hero-home h1 { font-size: 27px; }
  .hero-home p { font-size: 13.5px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .section { padding: 32px 0; }
  .section-head h2 { font-size: 19px; }
  .kluster-grid { grid-template-columns: 1fr; }
  .point-card { padding: 18px; column-gap: 12px; }
  .hero-art { max-width: 300px; }
  .ahli-grid { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: 1fr; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 24px; margin: 0 4px; }
  .usul-table thead { display: none; }
  .usul-table, .usul-table tbody, .usul-table tr, .usul-table td { display: block; width: 100%; }
  .usul-table tbody tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .usul-table tbody tr:first-child { border-top: none; }
  .usul-table tbody tr:nth-child(even) td { background: none; }
  .usul-table tbody tr:nth-child(even) { background: #f3f7fd; }
  .usul-table tbody td { border: none; padding: 4px 16px; }
  .usul-table tbody td::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
  .usul-empty td::before { content: none; }
  .usul-filter-actions { width: 100%; }
  .usul-filter-actions .btn { flex: 1; justify-content: center; }
  .ahli-thumb img { height: 300px; }
  .point-icon { width: 44px; height: 44px; }
  .container { padding: 0 16px; }
  .site-header .inner, .page-hero .inner { padding-left: 16px; padding-right: 16px; }
}
