:root {
  --biru-1: #e8f2fb;
  --biru-2: #cfe4f7;
  --biru-3: #a7cdee;
  --biru-4: #6fa8d6;
  --biru-5: #3d7fb8;
  --biru-6: #1f5a91;
  --biru-7: #0f3d6b;
  --soft: #f4f9fd;
  --putih: #ffffff;
  --teks: #1e2a3a;
  --teks-lembut: #5b6b7f;
  --garis: #dbe7f2;
  --hijau: #2fa36a;
  --merah: #dc3b4a;
  --kuning: #e6a700;
  --bayang: 0 10px 30px rgba(31, 90, 145, .08);
  --bayang-tebal: 0 20px 50px rgba(31, 90, 145, .15);
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html,
body {
  scroll-behavior: smooth
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--soft);
  color: var(--teks);
  line-height: 1.6;
  overflow-x: hidden;
}

.display-font {
  font-family: 'Playfair Display', serif
}

/* ===== TOP BAR ===== */
.topbar {
  background: linear-gradient(135deg, var(--biru-7), var(--biru-6));
  color: #dfeaf5;
  font-size: 13px;
  padding: 8px 0;
}

.topbar-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar a {
  color: #dfeaf5;
  text-decoration: none;
  margin-left: 14px
}

.topbar a:hover {
  color: #fff
}

.topbar i {
  margin-right: 6px;
  color: var(--biru-3)
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--garis);
  box-shadow: 0 2px 10px rgba(31, 90, 145, .05);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--teks)
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-7));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: var(--bayang);
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.3px
}

.brand-text p {
  font-size: 11px;
  color: var(--teks-lembut);
  letter-spacing: 1px;
  text-transform: uppercase
}

.nav-menu {
  display: flex;
  gap: 6px;
  align-items: center
}

.nav-menu a {
  text-decoration: none;
  color: var(--teks);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14.5px;
  transition: all .25s;
  position: relative;
}

.nav-menu a:hover {
  background: var(--biru-1);
  color: var(--biru-6)
}

.nav-menu a.active {
  background: var(--biru-6);
  color: #fff
}

.nav-right {
  display: flex;
  gap: 10px;
  align-items: center
}

.btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--biru-5), var(--biru-6));
  color: #fff;
  box-shadow: var(--bayang)
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--bayang-tebal)
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--biru-4);
  color: var(--biru-6)
}

.btn-outline:hover {
  background: var(--biru-1)
}

.btn-ghost {
  background: var(--biru-1);
  color: var(--biru-6)
}

.btn-ghost:hover {
  background: var(--biru-2)
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--biru-6);
  cursor: pointer
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #ddeeff 0%, #b8d8f5 30%, #8bbde8 65%, #a8cef2 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,.65), transparent 38%),
    radial-gradient(circle at 78% 72%, rgba(80,148,210,.28), transparent 42%),
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.3), transparent 30%);
}

/* Subtle dot-grid texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(30,95,160,.1) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
}

.shape-1 {
  width: 520px; height: 520px;
  top: -140px; right: -120px;
  background: linear-gradient(135deg, var(--biru-4), var(--biru-6));
  opacity: .22;
}

.shape-2 {
  width: 380px; height: 380px;
  bottom: -100px; left: -90px;
  background: linear-gradient(135deg, var(--biru-3), var(--biru-5));
  opacity: .18;
}

/* Third decorative blob */
.hero-shape-3 {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, #63b3f0, #1e6abf);
  opacity: .12;
  filter: blur(50px);
  top: 50%; left: 42%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--biru-7);
  border: 1px solid rgba(255, 255, 255, .8);
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--hijau)
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--biru-7);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h2 span {
  background: linear-gradient(135deg, var(--biru-5), var(--biru-6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  display: inline-block;
  padding-right: 6px;
}

.hero p {
  font-size: 17px;
  color: var(--teks-lembut);
  margin-bottom: 32px;
  max-width: 560px
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 12px
}

.hero-visual {
  position: relative;
  height: 480px
}

.hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(10,50,120,.35), 0 0 0 6px rgba(255,255,255,.5);
  background: #333;
}

/* ── SLIDER ── */
.hero-slider-track {
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.hero-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(12,52,96,.55));
  pointer-events: none;
}

/* Tombol panah */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  outline: none;
}
.slider-btn:hover {
  background: rgba(255,255,255,.38);
  transform: translateY(-50%) scale(1.08);
}
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }

/* Dot indikator */
.slider-dots {
  position: absolute;
  bottom: 62px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 6;
}
.slider-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background .25s, transform .25s;
}
.slider-dot.active {
  background: #fff;
  transform: scale(1.35);
}

.hero-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: #fff;
  z-index: 3;
}

.hero-caption .small {
  font-size: 12px;
  opacity: .9;
  letter-spacing: 2px;
  text-transform: uppercase
}

.hero-caption .big {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700
}

.hero-float {
  position: absolute;
  bottom: -30px;
  right: -30px;
  z-index: 4;
  background: #fff;
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: var(--bayang-tebal);
  display: flex;
  align-items: center;
  gap: 14px;
}

.float-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hijau), #1d8050);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.float-text .num {
  font-size: 20px;
  font-weight: 800;
  color: var(--biru-7)
}

.float-text .lbl {
  font-size: 12px;
  color: var(--teks-lembut)
}

/* ===== STATS ===== */
.stats {
  max-width: 1280px;
  margin: -44px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.stats-grid {
  background: linear-gradient(135deg, #0d3b6e 0%, #1a5a90 50%, #0f4a7e 100%);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 16px 48px rgba(10,50,120,.35);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 10px 16px;
  border-right: 1px solid rgba(255,255,255,.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item i {
  font-size: 26px;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}

.stat-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-item .lbl {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin-top: 6px;
}

/* ===== SECTION ===== */
section {
  padding: 80px 0
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px
}

.sec-head {
  text-align: center;
  margin-bottom: 50px
}

.sec-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--biru-5);
  font-weight: 700;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--biru-1);
  border-radius: 20px;
}

.sec-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--biru-7);
  margin-bottom: 12px;
  letter-spacing: -.5px;
}

.sec-head p {
  color: var(--teks-lembut);
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px
}

/* ===== TENTANG ===== */
.tentang {
  background: var(--putih); /* overridden by dark-section block below */
}

.tentang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center
}

.tentang-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--bayang-tebal);
  aspect-ratio: 4/5;
}

.tentang-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.tentang-quote {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 14px;
  border-left: 4px solid var(--biru-5);
}

.tentang-quote i {
  color: var(--biru-5);
  font-size: 20px;
  margin-bottom: 8px
}

.tentang-quote p {
  font-style: italic;
  color: var(--teks);
  font-size: 14px
}

.tentang-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--biru-7);
  margin-bottom: 20px;
  line-height: 1.2;
}

.tentang-text>p {
  color: var(--teks-lembut);
  margin-bottom: 16px;
  font-size: 15.5px
}

.tentang-list {
  list-style: none;
  margin-top: 24px
}

.tentang-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.tentang-list .cek {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--biru-1), var(--biru-2));
  color: var(--biru-6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tentang-list strong {
  display: block;
  color: var(--biru-7);
  font-size: 15px;
  margin-bottom: 2px
}

.tentang-list span {
  color: var(--teks-lembut);
  font-size: 14px
}

/* ===== LAYANAN ===== */
.layanan {
  background: linear-gradient(158deg, #0c3460 0%, #15527b 40%, #1a6ba0 75%, #0e4a7b 100%);
  position: relative;
  overflow: hidden;
}
/* Decorative blobs */
.layanan > .container { position: relative; z-index: 1; }
.layanan::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.055) 0%, transparent 68%);
  top: -260px; right: -160px;
  pointer-events: none;
}
.layanan::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,180,255,.08) 0%, transparent 70%);
  bottom: -120px; left: -90px;
  pointer-events: none;
}

/* Section header teks putih di atas bg gelap */
.layanan .sec-kicker {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
.layanan .sec-head h3 { color: #fff; }
.layanan .sec-head p  { color: rgba(255,255,255,.72); }

/* Grid */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card ── */
.layanan-card {
  background: #fff;
  border-radius: 22px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 20, 70, .18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
  position: relative;
}
.layanan-card::before { display: none; }

.layanan-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 28px 70px rgba(0, 25, 90, .28);
}

/* ── Zona atas berwarna ── */
.lc-top {
  background: linear-gradient(135deg, #1e5fa0 0%, #134477 100%);
  padding: 26px 26px 20px;
  position: relative;
  overflow: hidden;
}
.lc-top::before {
  content: '';
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: -55px; right: -35px;
  pointer-events: none;
}
.lc-top::after {
  content: '';
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  bottom: -25px; left: 25px;
  pointer-events: none;
}

.layanan-card-warga .lc-top {
  background: linear-gradient(135deg, #16a34a 0%, #166534 100%);
}

.lc-top-foto {
  padding: 0;
  min-height: 168px;
  display: block;
  position: relative;
}
.lc-top-foto::before,
.lc-top-foto::after { display: none; }
.lc-foto {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}
.lc-top-foto .layanan-badge-jenis {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
}
.lc-top-foto::after {
  content: '';
  display: block !important;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 45, 94, .55), transparent 55%);
  pointer-events: none;
  z-index: 1;
}
.layanan-card-warga .lc-top-foto::after {
  background: linear-gradient(to top, rgba(22, 101, 52, .55), transparent 55%);
}

/* Ikon di zona atas */
.layanan-ic {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  margin-bottom: 14px;
  position: relative; z-index: 1;
  transition: background .3s;
}
.layanan-card:hover .layanan-ic { background: rgba(255,255,255,.28); }

/* Badge di zona atas */
.layanan-badge-jenis {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.25);
  position: relative; z-index: 1;
}
.layanan-card-warga .layanan-badge-jenis {
  background: rgba(255,255,255,.2);
  color: rgba(255,255,255,.95);
  border-color: rgba(255,255,255,.3);
}

/* ── Body putih ── */
.lc-body {
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.layanan-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: #0c2d5e;
  margin-bottom: 8px;
  line-height: 1.3;
}

.layanan-card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.layanan-link {
  color: #1e5fa0;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  transition: gap .25s ease;
}
.layanan-link:hover { gap: 12px; text-decoration: none !important; }
.layanan-card-warga .layanan-link { color: #16a34a; }
.layanan-card a { text-decoration: none; }
.layanan-card a:hover { text-decoration: none; }

.mdl-lay-foto-wrap {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  background: #0c2d5e;
}
.mdl-lay-foto-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ===== MODAL DETAIL LAYANAN ===== */
.mdl-layanan-box {
  max-width: 540px;
  width: 100%;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  margin: auto;
  align-self: flex-start;
}

.mdl-lay-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px 22px;
  background: linear-gradient(135deg, #1e3a5f, #2d6aa0);
  position: relative;
  overflow: hidden;
}
.mdl-lay-header::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.mdl-lay-ic-wrap {
  width: 70px; height: 70px;
  border-radius: 18px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.mdl-lay-hd-info { position: relative; z-index: 1; }
.mdl-kat-badge {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 6px;
}
.mdl-kat-badge.usaha  { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.mdl-kat-badge.warga  { background: #dcfce7; color: #15803d; }
.mdl-lay-hd-info h2  { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.mdl-lay-jenis        { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; }

.mdl-lay-section {
  padding: 20px 28px 0;
}
.mdl-lay-sec-title {
  font-size: 12px; font-weight: 800; color: var(--biru-5);
  text-transform: uppercase; letter-spacing: .6px;
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--garis);
}
.mdl-lay-desc {
  font-size: 14.5px; color: var(--teks-lembut); line-height: 1.7; margin: 0;
}

.mdl-lay-info-row { display: flex; flex-direction: column; gap: 10px; }
.mdl-lay-info-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--teks-lembut);
}
.mdl-lay-info-item i {
  color: var(--biru-4); margin-top: 2px; flex-shrink: 0; width: 14px;
}

.mdl-lay-cta {
  display: flex; gap: 10px; align-items: center;
  padding: 22px 28px 26px;
  margin-top: 20px;
  border-top: 1px solid var(--garis);
}

/* ===== KEUANGAN ===== */
.keuangan {
  background: #fff; /* overridden by dark-section block below */
}

.keu-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px
}

.keu-card {
  padding: 24px;
  border-radius: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--bayang);
}

.keu-card.c1 { background: linear-gradient(135deg, #3d7fb8, #1f5a91) }
.keu-card.c2 { background: linear-gradient(135deg, #2fa36a, #1d8050) }
.keu-card.c3 { background: linear-gradient(135deg, #e6a700, #b88600) }
.keu-card.c4 { background: linear-gradient(135deg, #6b5bd9, #4c3eb3) }
.keu-card.c5 { background: linear-gradient(135deg, #0891b2, #0e7490) }
.keu-card.c6 { background: linear-gradient(135deg, #059669, #047857) }

/* info-card tambahan */
.info-card.f .ic { background: linear-gradient(135deg, #059669, #047857) }

.keu-card .ic {
  font-size: 24px;
  opacity: .4;
  position: absolute;
  top: 20px;
  right: 20px
}

.keu-card .lbl {
  font-size: 13px;
  opacity: .9;
  margin-bottom: 8px
}

.keu-card .val {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px
}

.keu-card .chg {
  font-size: 12px;
  opacity: .9
}

.chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px
}

.chart-box {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--bayang);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px
}

.chart-head h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--biru-7)
}

.chart-head span {
  font-size: 12px;
  color: var(--teks-lembut)
}

.chart-wrap {
  position: relative;
  height: 300px
}

.chart-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

/* ===== KONTAK + MAPS ===== */
.kontak {
  background: var(--soft); /* overridden by dark-section block below */
}

.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px
}

.kontak-info {
  background: #fff;
  padding: 36px;
  border-radius: 20px;
  box-shadow: var(--bayang);
}

.kontak-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--biru-7);
  margin-bottom: 10px;
}

.kontak-info>p {
  color: var(--teks-lembut);
  margin-bottom: 26px;
  font-size: 14.5px
}

.kontak-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--biru-1);
  margin-bottom: 12px;
  transition: all .25s;
}

.kontak-item:hover {
  background: var(--biru-2);
  transform: translateX(4px)
}

.kontak-item .ic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #fff;
  color: var(--biru-6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.kontak-item strong {
  display: block;
  color: var(--biru-7);
  font-size: 14px;
  margin-bottom: 2px
}

.kontak-item span {
  color: var(--teks-lembut);
  font-size: 13.5px
}

.form-field {
  margin-bottom: 14px
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--biru-7);
  margin-bottom: 6px
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--garis);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--teks);
  transition: all .2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--biru-5);
  box-shadow: 0 0 0 3px rgba(61, 127, 184, .12);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px
}

.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--bayang);
  border: 1px solid var(--garis);
  height: 100%;
  min-height: 520px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block
}

/* ===== BERITA ===== */
.berita {
  background: #fff; /* overridden by dark-section block below */
}

.berita-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.berita-card {
  border: 1px solid var(--garis);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: all .3s;
  cursor: pointer;
}

.berita-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bayang-tebal)
}

.berita-thumb {
  height: 200px;
  background: var(--biru-2);
  position: relative;
  overflow: hidden
}

.berita-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s
}

.berita-card:hover .berita-thumb img {
  transform: scale(1.06)
}

.berita-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, .95);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--biru-6);
  letter-spacing: .5px;
}

.berita-body {
  padding: 22px
}

.berita-date {
  font-size: 12px;
  color: var(--teks-lembut);
  margin-bottom: 8px
}

.berita-date i {
  margin-right: 5px;
  color: var(--biru-4)
}

.berita-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--biru-7);
  margin-bottom: 10px;
  line-height: 1.35
}

.berita-body p {
  font-size: 14px;
  color: var(--teks-lembut);
  margin-bottom: 14px
}

.berita-link {
  color: var(--biru-6);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none
}

/* ===== BERITA ADMIN REDESIGN ===== */
.bn-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d6aa0 60%, #3d7fb8 100%);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.bn-hero::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.bn-hero::after {
  content: '';
  position: absolute;
  right: 80px; bottom: -50px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.bn-hero-left { display: flex; align-items: center; gap: 16px; }
.bn-hero-ic {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.15);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.2);
}
.bn-hero h2 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.bn-hero p  { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; }
.bn-hero-badge {
  display: flex; align-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  position: relative; z-index: 1;
}

/* Two-column layout */
.bn-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-bottom: 24px;
  align-items: start;
}

/* Form card */
.bn-form-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--garis);
  overflow: hidden;
}
.bn-form-card-head {
  background: linear-gradient(90deg, #f0f7ff, #e8f2fb);
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--biru-6);
  border-bottom: 1px solid var(--garis);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bn-field {
  padding: 14px 22px 0;
}
.bn-field:last-of-type { padding-bottom: 0; }
.bn-lbl {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teks);
  margin-bottom: 6px;
}
.bn-lbl span { color: #ef4444; }
.bn-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--teks);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  font-family: inherit;
}
.bn-input:focus {
  outline: none;
  border-color: var(--biru-4);
  box-shadow: 0 0 0 3px rgba(61,127,184,.12);
}
.bn-textarea { resize: vertical; min-height: 130px; }
.bn-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 22px 0;
}

/* Foto upload area */
.bn-foto-area {
  border: 2px dashed #c8dff0;
  border-radius: 12px;
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, background .2s;
  background: #f8fbff;
}
.bn-foto-area:hover { border-color: var(--biru-4); background: #eef6ff; }
.bn-foto-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #94a3b8; pointer-events: none;
}
.bn-foto-placeholder i { font-size: 28px; color: var(--biru-3); }
.bn-foto-placeholder span { font-size: 13px; font-weight: 600; color: var(--biru-5); }
.bn-foto-placeholder small { font-size: 11px; }

/* Action buttons */
.bn-btns {
  display: flex; gap: 10px;
  padding: 18px 22px;
}
.bn-save-btn {
  flex: 1;
  padding: 11px 20px;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-6));
  color: #fff; border: none;
  border-radius: 10px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all .2s;
}
.bn-save-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bn-reset-btn {
  padding: 11px 18px;
  background: #f1f5f9; color: #64748b;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: all .2s;
}
.bn-reset-btn:hover { background: #e2e8f0; color: #334155; }

/* Preview column */
.bn-preview-col { display: flex; flex-direction: column; gap: 12px; }
.bn-preview-label {
  font-size: 12px; font-weight: 700; color: var(--biru-5);
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: .5px;
}
.bn-prev-card {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--bayang);
}
.bn-prev-thumb {
  height: 160px;
  background: linear-gradient(135deg, #e8f2fb, #c8dff0);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.bn-prev-body { padding: 16px; }
.bn-prev-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.bn-prev-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  color: #fff; padding: 3px 9px; border-radius: 6px;
  background: #64748b;
}
.bn-prev-date { font-size: 11.5px; color: var(--teks-lembut); }
.bn-prev-judul {
  font-size: 14px; font-weight: 800; color: var(--biru-7);
  margin-bottom: 6px; line-height: 1.4;
}
.bn-prev-isi { font-size: 12.5px; color: var(--teks-lembut); margin: 0; line-height: 1.5; }
.bn-preview-hint {
  font-size: 11.5px; color: #94a3b8;
  display: flex; align-items: center; gap: 6px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 8px 12px;
}

/* Daftar berita card grid */
.bn-list-wrap {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: 16px;
  overflow: hidden;
}
.bn-list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(90deg, #f0f7ff, #e8f2fb);
  border-bottom: 1px solid var(--garis);
}
.bn-list-head h3 { font-size: 14px; font-weight: 800; color: var(--biru-7); margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
.bn-list-head p  { font-size: 12px; color: var(--teks-lembut); margin: 0; }
.bn-count {
  background: var(--biru-5);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  white-space: nowrap;
}
.bn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.bnc {
  border-right: 1px solid var(--garis);
  border-bottom: 1px solid var(--garis);
  display: flex; flex-direction: column;
  transition: background .2s;
}
.bnc:hover { background: #f8fbff; }
.bnc:nth-child(3n) { border-right: none; }
.bnc-thumb { flex-shrink: 0; height: 130px; overflow: hidden; position: relative; }
.bnc-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .4s;
}
.bnc:hover .bnc-img { transform: scale(1.04); }
.bnc-img-empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.bnc-body { padding: 12px 14px; flex: 1; }
.bnc-top { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; flex-wrap: wrap; }
.bnc-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: .5px;
  color: #fff; padding: 2px 8px; border-radius: 5px;
}
.bnc-date { font-size: 11px; color: var(--teks-lembut); }
.bnc-title {
  display: block; font-size: 13px; font-weight: 700; color: var(--teks);
  margin-bottom: 5px; line-height: 1.35;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
}
.bnc-isi {
  font-size: 12px; color: var(--teks-lembut); margin: 0; line-height: 1.5;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
}
.bnc-acts {
  display: flex; gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--garis);
}
.bn-edt {
  flex: 1; padding: 6px 10px;
  background: #e0f2fe; color: #0369a1;
  border: none; border-radius: 7px; cursor: pointer;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: all .2s;
}
.bn-edt:hover { background: #bae6fd; }
.bn-del {
  width: 34px; height: 34px;
  background: #fee2e2; color: #dc2626;
  border: none; border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all .2s; flex-shrink: 0;
}
.bn-del:hover { background: #fecaca; }
.bn-empty {
  text-align: center; padding: 60px 20px; color: #94a3b8;
  grid-column: 1 / -1;
}
.bn-empty i { font-size: 40px; margin-bottom: 12px; display: block; opacity: .5; }

/* ===== BERITA PUBLIC — no-image variant ===== */
.berita-thumb-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
}
.berita-thumb-ic {
  font-size: 48px;
  opacity: .6;
}
.berita-tag {
  color: #fff !important;
  letter-spacing: .5px;
}
.berita-empty-pub {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}
.berita-empty-pub i { font-size: 40px; margin-bottom: 12px; display: block; }

/* ===== BERITA ADMIN LIST ===== */
/* (old bn-item list rules removed — replaced by bnc card grid above) */
.berita-empty {
  text-align: center; padding: 40px; color: #94a3b8;
}
.berita-empty i { font-size: 36px; margin-bottom: 10px; display: block; }

/* Upload foto widget */
.foto-upload-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.foto-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: var(--biru-1);
  color: var(--biru-6);
  border: 1.5px dashed var(--biru-3);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.foto-upload-btn:hover {
  background: var(--biru-2);
  border-color: var(--biru-5);
  color: var(--biru-7);
}
.foto-upload-name {
  font-size: 12.5px;
  color: var(--teks-lembut);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.foto-preview {
  margin-top: 10px;
  max-width: 240px;
  max-height: 160px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--garis);
  box-shadow: var(--bayang);
  display: block;
}

/* ===== BERITA SELENGKAPNYA LINK ===== */
.berita-selengkapnya {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--biru-5);
  transition: gap .2s;
}
.berita-card:hover .berita-selengkapnya { gap: 10px; }

/* ===== MODAL DETAIL BERITA ===== */
.mdl-berita-box {
  background: #fff;
  border-radius: 22px;
  max-width: 600px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,20,80,.3);
  animation: slide .4s;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Foto header */
.mdl-br-foto {
  width: 100%;
  height: 260px;
  flex-shrink: 0;
  overflow: hidden;
  background: #0c3460;
}
.mdl-br-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body konten */
.mdl-br-body {
  padding: 24px 28px 6px;
  overflow-y: auto;
  flex: 1;
}

.mdl-br-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.mdl-br-date {
  font-size: 13px;
  color: var(--teks-lembut);
}
.mdl-br-date i { color: var(--biru-4); margin-right: 4px; }

.mdl-berita-box h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--biru-7);
  line-height: 1.35;
  margin-bottom: 16px;
}

.mdl-br-isi {
  font-size: 14.5px;
  color: var(--teks-lembut);
  line-height: 1.75;
}

/* Footer tutup */
.mdl-br-footer {
  padding: 16px 28px 22px;
  border-top: 1px solid var(--garis);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ===== CATATAN PUBLIC (keuangan.html) ===== */
.pub-cat-section { margin-top: 48px; }
.pub-cat-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  align-items: flex-start;
  transition: box-shadow .2s;
}
.pub-cat-item:hover { box-shadow: var(--bayang); }
.pub-cat-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-6));
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.pub-cat-body { flex: 1; min-width: 0; }
.pub-cat-row {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 6px;
}
.pub-cat-row strong { font-size: 15px; color: var(--teks); font-weight: 700; }
.pub-cat-date { font-size: 12px; color: var(--teks-lembut); white-space: nowrap; }
.pub-cat-date i { margin-right: 4px; color: var(--biru-4); }
.pub-cat-body p { font-size: 13.5px; color: var(--teks-lembut); margin: 0; line-height: 1.6; }

/* ===== HUKUM PUBLIC (keuangan.html) ===== */
.pub-hukum-wrap { margin-top: 48px; }

.pub-hukum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.pub-hukum-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  padding: 22px 24px 20px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-hukum-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pub-hukum-ic {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #3d7fb8, #1f5a91);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}

.pub-hukum-ic.dasar { background: linear-gradient(135deg, #7c3aed, #5b21b6); }

.pub-hukum-card-head h5 {
  font-size: 15px; font-weight: 700;
  color: #fff; margin: 0;
}

.pub-hukum-card > p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.7;
  margin: 0 0 16px;
  flex: 1;
}

.pub-hukum-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, .85);
  color: #fff;
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: background .2s, transform .15s;
}

.pub-hukum-pdf-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.pub-dasar-list {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: dl-c;
}

.pub-dasar-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  line-height: 1.55;
  counter-increment: dl-c;
}

.pub-dasar-list li:last-child { border-bottom: none; padding-bottom: 0; }

.pub-dasar-list li::before {
  content: counter(dl-c);
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(255, 255, 255, .13);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: rgba(255, 255, 255, .9);
  margin-top: 1px;
}

.pub-dasar-list li strong { color: #fff; font-weight: 600; }

@media (max-width: 680px) {
  .pub-hukum-grid { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--biru-7), #082647);
  color: #c8d6e5;
  padding: 60px 0 20px;
}

.ftr-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px
}

.ftr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px
}

.ftr-brand h4 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff;
  font-weight: 700
}

.ftr-brand .brand-logo {
  box-shadow: 0 0 20px rgba(61, 127, 184, .4)
}

.ftr-col p {
  font-size: 14px;
  margin-bottom: 16px;
  color: #a7bccf
}

.ftr-col h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .5px
}

.ftr-col ul {
  list-style: none
}

.ftr-col li {
  margin-bottom: 10px
}

.ftr-col a {
  color: #a7bccf;
  text-decoration: none;
  font-size: 14px;
  transition: color .2s
}

.ftr-col a:hover {
  color: #fff
}

.ftr-col a i {
  margin-right: 8px;
  color: var(--biru-4);
  font-size: 12px
}

.sosmed {
  display: flex;
  gap: 10px;
  margin-top: 16px
}

.sosmed a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all .25s;
}

.sosmed a:hover {
  background: var(--biru-5);
  transform: translateY(-3px)
}

.ftr-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #8ca4bc;
}

/* ===== MODAL LOGIN ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 61, 107, .7);
  backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  animation: fade .3s
}

@keyframes fade {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 40px;
  box-shadow: var(--bayang-tebal);
  position: relative;
  animation: slide .4s;
}

@keyframes slide {
  from {
    transform: translateY(20px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--biru-1);
  color: var(--biru-6);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.modal-head {
  text-align: center;
  margin-bottom: 28px
}

.modal-head .brand-logo {
  margin: 0 auto 14px;
  width: 56px;
  height: 56px
}

.modal-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--biru-7);
  font-weight: 700
}

.modal-head p {
  color: var(--teks-lembut);
  font-size: 14px;
  margin-top: 4px
}

.login-hint {
  background: var(--biru-1);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--biru-7);
  margin-bottom: 16px;
  text-align: center;
}

.login-hint strong {
  color: var(--biru-6)
}

/* ===== MODAL FORM ===== */
.modal-form-box {
  background: #fff;
  border-radius: 14px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--bayang-tebal);
  position: relative;
  overflow: hidden;
  animation: slide .4s;
}

.modal-form-head {
  background: linear-gradient(135deg, var(--biru-6), var(--biru-4));
  color: #fff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-form-head h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.modal-form-head .modal-close {
  position: static;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-form-head .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-form-body {
  padding: 24px;
}

.modal-form-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--garis);
  background: var(--soft);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ===== RICH TEXT EDITOR ===== */
.rte-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f8fafc;
  border: 1px solid var(--garis);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 5px 8px;
  flex-wrap: wrap;
}
.rte-toolbar button {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--teks-lembut);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.rte-toolbar button:hover {
  background: #e0f2fe;
  color: var(--biru-5);
}
.rte-sep {
  width: 1px;
  height: 18px;
  background: var(--garis);
  margin: 0 4px;
  flex-shrink: 0;
}
.rte-editor {
  min-height: 90px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--garis);
  border-radius: 0 0 8px 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--teks);
  line-height: 1.7;
  outline: none;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.rte-editor:focus {
  border-color: var(--biru-4);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.rte-editor:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
  display: block;
}
.rte-editor ol, .rte-editor ul { padding-left: 22px; margin: 4px 0; }
.rte-editor li { margin-bottom: 2px; }

/* Lists and formatting inside the public layanan modal */
.mdl-lay-desc ol, .mdl-lay-desc ul { padding-left: 22px; margin: 6px 0; }
.mdl-lay-desc li { margin-bottom: 3px; }
.mdl-lay-desc b, .mdl-lay-desc strong { color: var(--teks); font-weight: 700; }
.mdl-lay-desc i, .mdl-lay-desc em { font-style: italic; }
.mdl-lay-desc u { text-decoration: underline; }

/* ===== ADMIN PANEL ===== */
.admin {
  display: none;
  min-height: 100vh;
  background: var(--soft)
}

.admin.show {
  display: grid;
  grid-template-columns: 260px 1fr
}

.admin-side {
  background: linear-gradient(180deg, var(--biru-7), #082647);
  color: #c8d6e5;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-brand {
  padding: 0 22px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 18px
}

.admin-brand .brand-text h1 {
  color: #fff;
  font-size: 16px
}

.admin-brand .brand-text p {
  color: #8ca4bc
}

.menu-group {
  padding: 6px 14px
}

.menu-group .group-lbl {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6c85a0;
  padding: 14px 10px 8px;
  font-weight: 700;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #c8d6e5;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: all .2s;
  margin-bottom: 2px;
  font-weight: 500;
}

.menu-item i {
  width: 20px;
  text-align: center;
  color: var(--biru-4);
  font-size: 14px
}

.menu-item:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff
}

.menu-item.active {
  background: linear-gradient(135deg, var(--biru-5), var(--biru-6));
  color: #fff
}

.menu-item.active i {
  color: #fff
}

.admin-main {
  padding: 0;
  overflow-x: hidden;
  min-width: 0;
}

.admin-top {
  background: #fff;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--garis);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-top h2 {
  font-size: 20px;
  color: var(--biru-7);
  font-weight: 700
}

.admin-top .sub {
  font-size: 13px;
  color: var(--teks-lembut)
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 12px
}

.admin-user .ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-7));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.admin-user .nm {
  font-size: 13px;
  font-weight: 600;
  color: var(--biru-7)
}

.admin-user .rl {
  font-size: 11px;
  color: var(--teks-lembut)
}

.btn-logout {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--biru-1);
  color: var(--biru-6);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px
}

.admin-content {
  padding: 28px
}

.page {
  display: none
}

.page.active {
  display: block
}

/* Admin widgets */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px
}

.info-card {
  background: #fff;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--garis);
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-card .ic {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.info-card.a .ic {
  background: linear-gradient(135deg, #3d7fb8, #1f5a91)
}

.info-card.b .ic {
  background: linear-gradient(135deg, #2fa36a, #1d8050)
}

.info-card.c .ic {
  background: linear-gradient(135deg, #e6a700, #b88600)
}

.info-card.d .ic {
  background: linear-gradient(135deg, #6b5bd9, #4c3eb3)
}

.info-card .txt {
  flex: 1;
  min-width: 0;
}

.info-card .txt .val {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--biru-7);
  word-break: break-word;
  line-height: 1.2;
}

.info-card .txt .lbl {
  font-size: 12px;
  color: var(--teks-lembut)
}

.panel {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--garis);
  margin-bottom: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px
}

.panel-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--biru-7)
}

.panel-head .tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px
}

/* Tabel */
.tbl-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--garis)
}

table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 800px
}

.tbl thead {
  background: var(--biru-1)
}

.tbl th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--biru-7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--garis);
}

.tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--garis);
  color: var(--teks)
}

.tbl tbody tr:hover {
  background: var(--soft)
}

.tbl tbody tr:last-child td {
  border-bottom: none
}

.td-right {
  text-align: right;
  font-variant-numeric: tabular-nums
}

.td-center {
  text-align: center
}

/* ===== AKTIVITAS TERBARU ===== */
.panel-aktivitas {
  border-top: 3px solid var(--biru-5);
  padding: 0;
  overflow: hidden;
}

.panel-aktivitas .panel-head {
  padding: 18px 24px 16px;
  border-bottom: 2px solid var(--garis);
}

.akt-subtitle {
  font-size: 12px;
  color: var(--teks-lembut);
  font-weight: 500;
  background: var(--biru-1);
  padding: 3px 10px;
  border-radius: 20px;
}

/* override tbl-wrap border so panel handles it */
.panel-aktivitas .tbl-wrap {
  border: none;
  border-radius: 0;
}

table.tbl-aktivitas {
  table-layout: fixed;
  min-width: 700px;
}

.tbl-aktivitas thead {
  background: linear-gradient(90deg, #ddeeff, #eef6ff);
}

.tbl-aktivitas th {
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: .7px;
  color: var(--biru-6);
  border-right: 1px solid #c8dff0;
}

.tbl-aktivitas th:last-child {
  border-right: none;
}

.tbl-aktivitas td {
  padding: 14px 16px;
  vertical-align: middle;
  color: var(--teks);
  border-right: 1px solid var(--garis);
}

.tbl-aktivitas td:last-child {
  border-right: none;
}

.tbl-aktivitas tbody tr {
  transition: background .15s;
}

.tbl-aktivitas tbody tr:hover {
  background: #eef6ff;
}

.tbl-aktivitas tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--biru-5);
}

.akt-date {
  font-size: 12.5px;
  color: var(--teks-lembut) !important;
  white-space: nowrap;
}

.akt-uraian {
  font-weight: 600 !important;
  color: var(--teks) !important;
  font-size: 13.5px;
}

.akt-nilai {
  font-weight: 700 !important;
  font-size: 13.5px;
  color: var(--biru-6) !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.badge.db {
  background: #ddeeff;
  color: #1565c0;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  display: inline-block;
  letter-spacing: .3px;
}

.act {
  display: inline-flex;
  gap: 4px
}

.act button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.act .edt {
  background: var(--biru-1);
  color: var(--biru-6)
}

.act .edt:hover {
  background: var(--biru-2)
}

.act .del {
  background: #fde6e8;
  color: var(--merah)
}

.act .del:hover {
  background: #fbcfd3
}

.tfoot td {
  background: var(--biru-1);
  font-weight: 700;
  color: var(--biru-7)
}

/* ===== JURNAL UMUM ===== */
.panel-jurnal {
  border-top: 3px solid var(--biru-5);
  padding: 0;
  overflow: visible;
}

.panel-jurnal .panel-head {
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--garis);
}

.jurnal-search {
  padding: 8px 14px;
  border: 1px solid var(--garis);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
  width: 200px;
}

.jurnal-search:focus { border-color: var(--biru-4); }

/* Bulk action bar */
#bulkBar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: linear-gradient(90deg, #fff8e1, #fffde7);
  border-bottom: 1px solid #f0d060;
  font-size: 13.5px;
  color: #7a5c00;
}

#bulkBar i { color: var(--biru-5); }

/* Jurnal table */
table.tbl-jurnal {
  table-layout: fixed;
  min-width: 1100px;
  width: 100%;
}

.panel-jurnal .tbl-wrap {
  border: none;
  border-radius: 0;
  overflow-x: auto;
}

.tbl-jurnal thead {
  background: linear-gradient(90deg, #ddeeff, #eef6ff);
}

.tbl-jurnal th {
  padding: 11px 10px;
  font-size: 11px;
  letter-spacing: .6px;
  color: var(--biru-6);
  border-right: 1px solid #c8dff0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl-jurnal th:last-child { border-right: none; }

.tbl-jurnal td {
  padding: 10px 10px;
  vertical-align: middle;
  border-right: 1px solid var(--garis);
  overflow: hidden;
}

.tbl-jurnal td:last-child { border-right: none; }

.tbl-jurnal tbody tr:hover { background: #eef6ff; }

.tbl-jurnal tbody tr:hover td:nth-child(2) {
  box-shadow: inset 3px 0 0 var(--biru-5);
}

/* Checkbox */
.j-chk-cell input[type="checkbox"] {
  width: 15px; height: 15px;
  cursor: pointer;
  accent-color: var(--biru-5);
}

#chkAll {
  width: 15px; height: 15px;
  cursor: pointer;
  accent-color: var(--biru-5);
}

/* Jurnal cell styles */
.j-tgl {
  font-size: 12.5px;
  color: var(--teks-lembut);
  white-space: nowrap;
}

.bukti-badge {
  display: block;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--biru-1);
  color: var(--biru-6);
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: .3px;
}

.j-uraian {
  font-weight: 600;
  color: var(--teks);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-code {
  display: inline-block;
  font-size: 11.5px;
  font-family: monospace;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.j-debit-val {
  font-weight: 700;
  color: #15803d;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  display: block;
  text-align: right;
}

.j-kredit-val {
  font-weight: 700;
  color: #b45309;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  display: block;
  text-align: right;
}

.j-empty {
  color: #cbd5e1;
}

.ket-saldo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
}

.j-ket {
  font-size: 12px;
  color: var(--teks-lembut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700
}

.badge.db {
  background: #e4f3ff;
  color: #1a6fb8
}

.badge.kr {
  background: #fde8d4;
  color: #b56a00
}

/* Form row */
.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.form-row-jurnal-1 {
  display: grid;
  grid-template-columns: 160px 220px 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-row-jurnal-2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 14px;
  margin-bottom: 14px;
}

/* ===== INPUT JURNAL FORM ===== */
.panel-input-jurnal {
  border-top: 3px solid var(--biru-5);
  padding: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.panel-input-jurnal .panel-head {
  padding: 18px 24px 16px;
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
  border-bottom: 2px solid var(--garis);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jurnal-form-badge {
  font-size: 12px;
  font-weight: 600;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.jurnal-section {
  padding: 16px 24px 14px;
  border-bottom: 1px solid var(--garis);
}

.jurnal-section-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--biru-5);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.jlbl-ic {
  font-size: 11px;
}

.lbl-opt {
  font-size: 10px;
  font-weight: 600;
  color: var(--teks-lembut);
  background: var(--soft);
  border: 1px solid var(--garis);
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.input-prefix-wrap {
  display: flex;
  align-items: stretch;
}

.input-prefix {
  background: var(--biru-1);
  border: 1.5px solid var(--garis);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--biru-6);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.has-prefix {
  border-radius: 0 10px 10px 0 !important;
}

.post-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid var(--garis);
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
  transition: border-color .2s;
  background: #fff;
}

.post-search-input:focus {
  border-color: var(--biru-5);
  box-shadow: 0 0 0 3px rgba(61,127,184,.12);
}

.jurnal-submit-row {
  padding: 16px 24px;
  background: linear-gradient(90deg, #f8fbff, #f4f9fd);
  border-top: 1px solid var(--garis);
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-jurnal-submit {
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
}

.btn-jurnal-reset {
  padding: 11px 20px;
  border-radius: 10px;
}

/* ===== KODE AKUN FORM ===== */
.panel-akun-input {
  border-top: 3px solid var(--biru-5);
  padding: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.panel-akun-input .panel-head {
  padding: 18px 24px 16px;
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
  border-bottom: 2px solid var(--garis);
}

.akun-form-badge {
  font-size: 12px;
  font-weight: 600;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.akun-section {
  padding: 16px 24px 14px;
  border-bottom: 1px solid var(--garis);
}

.akun-section-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--biru-5);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-row-akun {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.akun-hint {
  display: block;
  font-size: 11px;
  color: var(--teks-lembut);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.akun-hint i {
  color: var(--biru-4);
  font-size: 10px;
}

.akun-level-guide {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.lvl-pip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.lvl-pip.l1 { background:#fff0f0; color:#b91c1c; border:1px solid #fecaca; }
.lvl-pip.l2 { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.lvl-pip.l3 { background:#f0fdf4; color:#15803d; border:1px solid #bbf7d0; }
.lvl-pip.l4 { background:#f5f3ff; color:#6d28d9; border:1px solid #ddd6fe; }

.akun-submit-row {
  padding: 16px 24px;
  background: linear-gradient(90deg, #f8fbff, #f4f9fd);
  border-top: 1px solid var(--garis);
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-akun-submit {
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
}

.btn-akun-reset {
  padding: 11px 20px;
  border-radius: 10px;
}

/* ===== KODE AKUN TABLE ===== */
.panel-akun-list {
  border-top: 3px solid var(--biru-5);
  padding: 0;
  overflow: hidden;
}

.panel-akun-list .panel-head {
  padding: 16px 24px;
  border-bottom: 2px solid var(--garis);
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
}

.akun-count-badge {
  font-size: 12px;
  font-weight: 700;
  background: var(--biru-1);
  color: var(--biru-6);
  border: 1px solid #c3dff5;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.akun-search {
  padding: 8px 14px 8px 34px;
  border: 1.5px solid var(--garis);
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  width: 200px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 10px center;
  transition: border-color .2s, box-shadow .2s;
}

.akun-search:focus {
  border-color: var(--biru-5);
  box-shadow: 0 0 0 3px rgba(61,127,184,.12);
}

table.tbl-akun {
  min-width: 0;
}

.tbl-akun thead {
  background: linear-gradient(90deg, #ddeeff, #eef6ff);
}

.tbl-akun th {
  font-size: 11px;
  padding: 11px 14px;
  letter-spacing: .5px;
  border-right: 1px solid var(--garis);
}

.tbl-akun th:last-child { border-right: none; }

.tbl-akun td {
  padding: 10px 14px;
  border-right: 1px solid #f0f4f8;
  vertical-align: middle;
}

.tbl-akun td:last-child { border-right: none; }

/* Level row styles */
.tbl-akun tr.akun-l1 td { background: #fff5f5; }
.tbl-akun tr.akun-l2 td { background: #f0f7ff; }
.tbl-akun tr.akun-l3 td { background: #f0fdf4; }
.tbl-akun tr.akun-l1:hover td { background: #fee2e2; }
.tbl-akun tr.akun-l2:hover td { background: #dbeafe; }
.tbl-akun tr.akun-l3:hover td { background: #dcfce7; }
.tbl-akun tr.akun-l4:hover td,
.tbl-akun tr.akun-l5:hover td { background: #f8fafc; }

/* Left accent border for level */
.tbl-akun tr.akun-l1 td:first-child { border-left: 4px solid #ef4444; }
.tbl-akun tr.akun-l2 td:first-child { border-left: 4px solid #3b82f6; }
.tbl-akun tr.akun-l3 td:first-child { border-left: 4px solid #22c55e; }
.tbl-akun tr.akun-l4 td:first-child { border-left: 4px solid #a855f7; }

/* Kode cell */
.akun-kode-txt {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .3px;
}

.akun-kode-txt.l1 { color: #b91c1c; }
.akun-kode-txt.l2 { color: #1d4ed8; }
.akun-kode-txt.l3 { color: #15803d; }
.akun-kode-txt.l4, .akun-kode-txt.l5 { color: #6d28d9; }

/* H/D badge */
.hd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
}

.hd-badge.H { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.hd-badge.D { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.hd-badge.K { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }

/* Level badge */
.lvl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.lvl-badge.lv1 { background: #fee2e2; color: #991b1b; }
.lvl-badge.lv2 { background: #dbeafe; color: #1e40af; }
.lvl-badge.lv3 { background: #dcfce7; color: #166534; }
.lvl-badge.lv4, .lvl-badge.lv5 { background: #ede9fe; color: #5b21b6; }

/* Akun nama indent */
.akun-nama {
  font-size: 13.5px;
}

.akun-nama.l1 { font-weight: 800; color: #991b1b; }
.akun-nama.l2 { font-weight: 700; color: #1e40af; }
.akun-nama.l3 { font-weight: 600; color: #166534; }
.akun-nama.l4, .akun-nama.l5 { font-weight: 400; color: var(--teks); }

.akun-hd-suffix {
  font-size: 10.5px;
  font-weight: 700;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
}

.akun-hd-suffix.D { background: #fef3c7; color: #92400e; }
.akun-hd-suffix.K { background: #ede9fe; color: #5b21b6; }

/* Report */
.rpt {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--garis);
  font-size: 13.5px;
  max-width: 820px;
  margin: 0 auto;
}

.rpt-head {
  text-align: center;
  border-bottom: 2px solid var(--biru-7);
  padding-bottom: 14px;
  margin-bottom: 18px
}

.rpt-head h2 {
  font-family: 'Playfair Display', serif;
  color: var(--biru-7);
  font-size: 22px
}

.rpt-head p {
  color: var(--teks-lembut);
  font-size: 13px
}

.rpt table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px
}

.rpt td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--garis)
}

.rpt .hd td {
  background: #fff5f5;
  font-weight: 800;
  color: #dc3b4a;
  border-left: 4px solid #dc3b4a;
  letter-spacing: .3px;
  font-size: 12.5px;
}

.rpt .ttl td {
  background: #f0f6fc;
  font-weight: 700;
  border-left: 3px solid var(--biru-5);
}

.rpt .sum td {
  border-top: 2px solid var(--biru-7);
  border-bottom: 2px solid var(--biru-7);
  font-weight: 800;
  background: var(--biru-1);
  color: var(--biru-7)
}

.rpt tbody tr:not(.hd):not(.sum):not(.ttl):not(.ek-section):not(.ek-grandtotal):hover td {
  background: rgba(30, 90, 168, 0.04);
  transition: background .15s;
}

/* Ekuitas Kepmendes format */
.rpt table thead th {
  background: var(--biru-7);
  color: #fff;
  font-weight: 700;
  padding: 8px 10px;
  font-size: 13px;
}
.rpt .ek-section td {
  color: #dc3b4a;
  font-weight: 800;
  background: #fff5f5;
  letter-spacing: .3px;
}
.rpt .ek-subhead td {
  font-weight: 700;
  color: var(--biru-8);
  background: #f8faff;
}
.rpt .ek-item td { color: #374151; }
.rpt .ek-subtotal td {
  font-weight: 700;
  font-style: italic;
  background: #f0f6fc;
  border-top: 1px solid var(--garis);
}
.rpt .ek-grandtotal td {
  font-weight: 800;
  color: #dc3b4a;
  background: #fff5f5;
  border-top: 2px solid #dc3b4a;
  border-bottom: 2px solid #dc3b4a;
}

/* Arus Kas khusus */
.rpt .ak-bersih td {
  font-weight: 700;
  font-style: italic;
  color: var(--biru-8);
  background: #eef4fc;
  border-top: 2px solid var(--biru-5);
  border-bottom: 2px solid var(--biru-5);
}

/* ===== UNIT USAHA REDESIGN ===== */

.unit-tab-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: #fff;
  border: 1.5px solid var(--garis);
  border-radius: 14px;
  padding: 5px;
  width: fit-content;
  box-shadow: 0 2px 10px rgba(30,58,95,.06);
}

.unit-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--teks-lembut);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.unit-tab i { font-size: 13px; }

.unit-tab.active {
  background: linear-gradient(135deg, var(--biru-5), var(--biru-7));
  color: #fff;
  box-shadow: 0 4px 14px rgba(61,127,184,.32);
}

.unit-tab:not(.active):hover {
  background: var(--biru-1);
  color: var(--biru-6);
}

.unit-panel {
  background: #fff;
  border: 1.5px solid var(--garis);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30,58,95,.07);
}

.unit-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
  border-bottom: 2px solid var(--garis);
  gap: 16px;
  flex-wrap: wrap;
}

.unit-panel-hd-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.unit-panel-ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-7));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(61,127,184,.28);
}

.unit-panel-ic.layanan {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 4px 14px rgba(22,163,74,.28);
}

.unit-panel-hd h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--biru-7);
  margin-bottom: 2px;
}

.unit-panel-hd p {
  font-size: 12px;
  color: var(--teks-lembut);
  margin: 0;
}

/* Grid & Cards */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding: 22px;
}

.unit-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--garis);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.unit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(30,58,95,.12);
  border-color: var(--biru-4);
}

.unit-card.layanan:hover { border-color: #86efac; }

.uc-top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--biru-5), #7cb9e8);
  flex-shrink: 0;
}

.uc-thumb {
  height: 120px;
  overflow: hidden;
  flex-shrink: 0;
}
.uc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.unit-foto-area { height: 140px; }

.unit-card.layanan .uc-top-bar {
  background: linear-gradient(90deg, #16a34a, #4ade80);
}

.uc-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.uc-hd { display: flex; align-items: flex-start; gap: 13px; }

.uc-ic {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-7));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(61,127,184,.22);
}

.unit-card.layanan .uc-ic {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 4px 12px rgba(22,163,74,.22);
}

.uc-nm {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--biru-7);
  line-height: 1.3;
  margin-bottom: 6px;
  word-break: break-word;
}

.uc-badge-jenis {
  display: inline-block;
  background: #eff6ff;
  color: var(--biru-6);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid #dbeafe;
}

.unit-card.layanan .uc-badge-jenis {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.uc-view {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: #eff6ff;
  color: var(--biru-5);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: background .15s;
}
.uc-view:hover { background: #dbeafe; }

/* modal detail unit */
.md-unit-label {
  font-size: 11px; font-weight: 800; color: var(--teks-lembut);
  text-transform: uppercase; letter-spacing: .5px; margin: 0 0 4px;
}
.md-unit-val {
  font-size: 14px; color: var(--teks); margin: 0 0 16px;
}
.md-unit-desc {
  font-size: 14px; color: var(--teks-lembut); line-height: 1.7;
  max-height: 340px; overflow-y: auto;
}
.md-unit-desc ol, .md-unit-desc ul { padding-left: 20px; margin: 4px 0; }
.md-unit-desc li { margin-bottom: 3px; }
.md-unit-desc b, .md-unit-desc strong { color: var(--teks); font-weight: 700; }
.md-unit-desc i, .md-unit-desc em { font-style: italic; }

.uc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--garis);
}

.uc-aktif {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: 10px;
}

.uc-aktif i { font-size: 6px; }

.uc-btns { display: flex; gap: 6px; }

.uc-edt, .uc-del {
  width: 32px; height: 32px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: all .15s;
}

.uc-edt { background: #eff6ff; color: var(--biru-5); }
.uc-edt:hover { background: var(--biru-5); color: #fff; box-shadow: 0 2px 8px rgba(61,127,184,.35); }

.uc-del { background: #fff5f5; color: #ef4444; }
.uc-del:hover { background: #ef4444; color: #fff; box-shadow: 0 2px 8px rgba(239,68,68,.35); }

.unit-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 52px 0 40px;
  color: var(--teks-lembut);
}

.unit-empty i { font-size: 40px; opacity: .18; display: block; margin-bottom: 12px; }
.unit-empty p { font-size: 13.5px; line-height: 1.6; }

/* ===== CATATAN LAPORAN REDESIGN ===== */
.cat-panel {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid var(--garis);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30,58,95,.07);
  margin-bottom: 20px;
}

.cat-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
  border-bottom: 2px solid var(--garis);
  gap: 16px;
  flex-wrap: wrap;
}

.cat-panel-hd-left { display: flex; align-items: center; gap: 14px; }

.cat-panel-ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-7));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(61,127,184,.28);
}

.cat-panel-ic.hukum { background: linear-gradient(135deg, #7c3aed, #5b21b6); box-shadow: 0 4px 14px rgba(124,58,237,.28); }
.cat-panel-ic.dasar { background: linear-gradient(135deg, #d97706, #b45309); box-shadow: 0 4px 14px rgba(217,119,6,.28); }
.cat-panel-ic.ops   { background: linear-gradient(135deg, #16a34a, #15803d); box-shadow: 0 4px 14px rgba(22,163,74,.28); }

.cat-panel-hd h3 { font-size: 15px; font-weight: 800; color: var(--biru-7); margin-bottom: 2px; }
.cat-panel-hd p  { font-size: 12px; color: var(--teks-lembut); margin: 0; }

/* Catatan card list */
.cat-list { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }

.cat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1.5px solid var(--garis);
  border-radius: 14px;
  padding: 16px 18px;
  transition: box-shadow .2s, border-color .2s, transform .18s;
}

.cat-item:hover {
  border-color: var(--biru-4);
  box-shadow: 0 4px 18px rgba(61,127,184,.10);
  transform: translateY(-1px);
}

.cat-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-7));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(61,127,184,.25);
  letter-spacing: .5px;
}

.cat-body { flex: 1; min-width: 0; }

.cat-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.cat-title { font-size: 14.5px; color: var(--biru-7); }

.cat-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--teks-lembut);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 9px;
  border-radius: 10px;
}

.cat-ringkasan {
  font-size: 13px;
  color: var(--teks-lembut);
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cat-acts { display: flex; gap: 6px; flex-shrink: 0; padding-top: 2px; }

.cat-edt, .cat-del {
  width: 32px; height: 32px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: all .15s;
}

.cat-edt { background: #eff6ff; color: var(--biru-5); }
.cat-edt:hover { background: var(--biru-5); color: #fff; box-shadow: 0 2px 8px rgba(61,127,184,.35); }
.cat-del { background: #fff5f5; color: #ef4444; }
.cat-del:hover { background: #ef4444; color: #fff; box-shadow: 0 2px 8px rgba(239,68,68,.35); }

.cat-empty { text-align: center; padding: 40px 0; color: var(--teks-lembut); }
.cat-empty i { font-size: 36px; opacity: .18; display: block; margin-bottom: 10px; }
.cat-empty p { font-size: 13.5px; line-height: 1.6; }

/* Static sections */
.cat-text-body { padding: 22px 24px 26px; font-size: 14px; color: var(--teks); line-height: 1.75; }
.cat-text-body p { margin-bottom: 12px; }
.cat-text-body p:last-of-type { margin-bottom: 0; }

.cat-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 18px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(239,68,68,.28);
}

.cat-pdf-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(239,68,68,.38); color: #fff; }

/* Dasar hukum numbered list */
.dasar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }

.dasar-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--garis);
}

.dasar-list li:last-child { border-bottom: none; }

.dasar-num {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid #fcd34d;
  margin-top: 1px;
}

.dasar-txt { font-size: 13.5px; color: var(--teks); line-height: 1.6; padding-top: 2px; }

/* Warga dilayani form */
.cat-ops-body { padding: 22px 24px 26px; }
.cat-ops-body p { font-size: 13.5px; color: var(--teks-lembut); margin-bottom: 16px; line-height: 1.65; }

.cat-ops-form { display: flex; gap: 10px; align-items: center; max-width: 480px; }

.cat-ops-form input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--garis);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.cat-ops-form input:focus {
  border-color: var(--biru-5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(61,127,184,.12);
}

/* ========== YEAR SELECTOR ========== */
.year-selector {
  display: flex;
  gap: 12px;
  align-items: center;
}

.year-selector label {
  font-weight: 600;
  color: var(--biru-7);
  font-size: 14px;
  white-space: nowrap;
}

.year-selector select {
  padding: 10px 14px;
  border: 2px solid var(--biru-4);
  border-radius: 8px;
  background: #fff;
  color: var(--biru-7);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(26, 110, 177, 0.1);
}

.year-selector select:hover {
  border-color: var(--biru-5);
  box-shadow: 0 4px 12px rgba(26, 110, 177, 0.15);
}

.year-selector select:focus {
  outline: none;
  border-color: var(--biru-6);
  box-shadow: 0 0 0 4px rgba(26, 110, 177, 0.2);
}

/* ========== DOWNLOAD CONTAINER ========== */
.download-container {
  margin-top: 28px;
}

.download-category {
  margin-bottom: 42px;
  animation: fadeIn .3s ease-in-out;
}

.category-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--biru-7);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--biru-4);
}

.category-title i {
  color: var(--biru-5);
  font-size: 20px;
}

/* ========== FILES WRAPPER ========== */
.files-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ========== DOWNLOAD FILE ========== */
.download-file {
  background: #fff;
  border: 1.5px solid var(--garis);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.download-file:hover {
  border-color: var(--biru-4);
  box-shadow: 0 8px 20px rgba(26, 110, 177, 0.12);
  transform: translateX(4px);
}

.download-file .file-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.pdf-file .file-icon {
  background: linear-gradient(135deg, #e64545 0%, #b83030 100%);
}

.excel-file .file-icon {
  background: linear-gradient(135deg, #2fa36a 0%, #1d8050 100%);
}

.download-file .file-info {
  flex: 1;
  min-width: 0;
}

.download-file .file-info h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--biru-7);
  margin: 0 0 6px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-file .file-info p {
  font-size: 12px;
  color: var(--teks-lembut);
  margin: 0;
}

.download-file .btn-dl {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-4));
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(26, 110, 177, 0.2);
}

.download-file .btn-dl:hover {
  background: linear-gradient(135deg, var(--biru-6), var(--biru-5));
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(26, 110, 177, 0.3);
}

.download-file .btn-dl:active {
  transform: scale(0.96);
}

/* ===== NEW DOWNLOAD CENTRE ===== */
.dl-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
  border: 1px solid var(--garis);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.dl-page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--biru-7);
  margin: 0 0 4px;
}

.dl-page-title i {
  color: var(--biru-5);
  margin-right: 6px;
}

.dl-page-sub {
  font-size: 13px;
  color: var(--teks-lembut);
  margin: 0;
}

.dl-meta-badge {
  font-size: 12px;
  color: var(--teks-lembut);
  background: var(--soft);
  border: 1px solid var(--garis);
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
  align-self: center;
}

.dl-section-lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--biru-6);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 2px;
}

.dl-section-lbl::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--garis);
  margin-left: 4px;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.dl-card {
  background: #fff;
  border: 1.5px solid var(--garis);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}

.dl-card:hover {
  border-color: var(--biru-4);
  box-shadow: 0 6px 18px rgba(61,127,184,.12);
  transform: translateY(-2px);
}

.dl-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dl-card-ic {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--ic-bg, #dbeafe);
  color: var(--ic-c, #1e40af);
}

.dl-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--teks);
  margin-bottom: 3px;
}

.dl-card-desc {
  font-size: 11.5px;
  color: var(--teks-lembut);
  line-height: 1.4;
}

.dl-card-btns {
  display: flex;
  gap: 8px;
}

.btn-dl-new {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn-dl-new.pdf {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239,68,68,.25);
}

.btn-dl-new.pdf:hover {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239,68,68,.35);
}

.btn-dl-new.xls {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,163,74,.25);
}

.btn-dl-new.xls:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,163,74,.35);
}

.btn-dl-new:active {
  transform: scale(.97);
}

.btn-dl-new.print {
  flex: 0 0 38px;
  width: 38px;
  background: #f1f5f9;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  box-shadow: none;
}

.btn-dl-new.print:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: translateY(-1px);
  box-shadow: none;
}

.dl-pdf-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(135deg, #1e3a5f, #3d7fb8);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  z-index: 99999;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn .3s ease-out;
}

.dl-note {
  font-size: 11.5px;
  color: var(--teks-lembut);
  background: #f8fafc;
  border: 1px solid var(--garis);
  border-radius: 10px;
  padding: 10px 16px;
  margin-top: 20px;
  line-height: 1.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* ========== OLD STYLES COMPATIBILITY ========== */
.file-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px
}

.file-card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--garis);
  display: flex;
  gap: 14px;
  align-items: center;
  transition: all .2s;
}

.file-card:hover {
  border-color: var(--biru-4);
  transform: translateY(-2px);
  box-shadow: var(--bayang)
}

.file-card .ic {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.file-card.pdf .ic {
  background: linear-gradient(135deg, #e64545, #b83030)
}

.file-card.xls .ic {
  background: linear-gradient(135deg, #2fa36a, #1d8050)
}

.file-card .info {
  flex: 1
}

.file-card .info .nm {
  font-weight: 700;
  color: var(--biru-7);
  font-size: 14px
}

.file-card .info .dt {
  font-size: 11.5px;
  color: var(--teks-lembut)
}

.file-card a {
  padding: 8px 12px;
  background: var(--biru-1);
  color: var(--biru-6);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.file-card a:hover {
  background: var(--biru-2)
}

.profil-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px
}

.profil-ava {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--garis);
  text-align: center;
}

.profil-ava .big-ava {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-7));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
}

.profil-ava h4 {
  color: var(--biru-7);
  font-size: 17px;
  margin-bottom: 4px
}

.profil-ava p {
  color: var(--teks-lembut);
  font-size: 13px
}

/* ===== PROFIL REDESIGN ===== */
.prf-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--garis);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(30,58,95,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 28px;
}

.prf-banner {
  width: 100%;
  height: 132px;
  background: linear-gradient(135deg, var(--biru-7) 0%, #2a6fa8 55%, var(--biru-5) 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.prf-blob1 {
  position: absolute;
  width: 230px; height: 230px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -80px; right: -55px;
}

.prf-blob2 {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  bottom: -55px; left: 24px;
}

.prf-blob3 {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: 18px; left: 55px;
}

.prf-ava-ring {
  margin-top: -54px;
  position: relative;
  width: 108px; height: 108px;
  flex-shrink: 0;
}

.prf-big-ava {
  width: 108px !important;
  height: 108px !important;
  border-radius: 50% !important;
  border: 4px solid #fff !important;
  box-shadow: 0 6px 24px rgba(30,58,95,.20) !important;
  margin: 0 !important;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-7));
  color: #fff;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 36px;
  font-weight: 800;
  background-size: cover !important;
  background-position: center !important;
}

.prf-cam-btn {
  position: absolute;
  bottom: 4px; right: 2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-6));
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  transition: transform .15s, box-shadow .15s;
  padding: 0;
}

.prf-cam-btn:hover { transform: scale(1.12); box-shadow: 0 4px 14px rgba(0,0,0,.28); }

.prf-identity {
  margin-top: 14px;
  text-align: center;
  padding: 0 22px;
}

.prf-identity h4 {
  font-size: 19px;
  font-weight: 800;
  color: var(--biru-7);
  margin-bottom: 8px;
}

.prf-role-badge {
  display: inline-block;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: var(--biru-6);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
  letter-spacing: .3px;
}

.prf-divider {
  width: calc(100% - 44px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--garis), transparent);
  margin: 20px 0 16px;
}

.prf-info-list {
  width: 100%;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.prf-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prf-info-ic {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  background: #eff6ff; color: var(--biru-5);
}

.prf-info-ic.ic-email { background: #eff6ff; color: var(--biru-5); }
.prf-info-ic.ic-phone { background: #f0fdf4; color: #16a34a; }
.prf-info-ic.ic-shield { background: #fef3c7; color: #d97706; }

.prf-info-txt {
  font-size: 12.5px;
  color: var(--teks-lembut);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.prf-change-foto {
  margin-top: 20px;
  padding: 10px 22px;
  border-radius: 30px;
  border: 1.5px solid var(--garis);
  background: #fff;
  color: var(--biru-6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: all .2s;
  font-family: inherit;
}

.prf-change-foto:hover {
  background: var(--biru-1);
  border-color: var(--biru-4);
  color: var(--biru-7);
  transform: translateY(-1px);
}

/* Right Form Panel */
.prf-form-wrap {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--garis);
  box-shadow: 0 4px 24px rgba(30,58,95,.08);
  overflow: hidden;
}

.prf-section {
  padding: 30px;
}

.prf-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--garis);
}

.prf-section-ic {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-7));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(61,127,184,.30);
}

.prf-section-head h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--biru-7);
  margin-bottom: 3px;
}

.prf-section-head p {
  font-size: 12.5px;
  color: var(--teks-lembut);
  margin: 0;
}

.prf-lbl-ic {
  color: var(--biru-5);
  margin-right: 4px;
  font-size: 11px;
}

/* Password section box */
.prf-pass-section {
  background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
  border: 1.5px solid #dbeafe;
  border-radius: 16px;
  padding: 22px;
  margin: 24px 0;
}

.prf-pass-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.prf-pass-ic {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245,158,11,.28);
}

.prf-pass-head h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--biru-7);
  margin-bottom: 2px;
}

.prf-pass-head p {
  font-size: 12px;
  color: var(--teks-lembut);
  margin: 0;
}

/* Password input with eye toggle */
.prf-pass-wrap {
  position: relative;
}

.prf-pass-wrap input {
  padding-right: 42px;
  box-sizing: border-box;
  width: 100%;
}

.prf-eye {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #94a3b8;
  transition: color .2s;
  font-size: 14px;
}

.prf-eye:hover { color: var(--biru-5); }

/* Submit row */
.prf-submit-row {
  display: flex;
  align-items: center;
  padding-top: 4px;
}

.prf-submit-btn {
  padding: 13px 34px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--biru-5), var(--biru-7)) !important;
  box-shadow: 0 4px 16px rgba(61,127,184,.35);
  transition: transform .15s, box-shadow .2s;
}

.prf-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(61,127,184,.45);
}

.admin-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--biru-7);
  cursor: pointer;
  padding: 4px;
}

/* =========================================================
   DARK-GRADIENT SECTION SYSTEM — semua halaman publik
   ========================================================= */

/* Gradient + blob yang sama untuk semua section publik */
.tentang, .keuangan, .berita, .kontak {
  background: linear-gradient(158deg, #0c3460 0%, #15527b 40%, #1a6ba0 75%, #0e4a7b 100%);
  position: relative;
  overflow: hidden;
}
.tentang::before, .keuangan::before, .berita::before, .kontak::before {
  content: '';
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.055) 0%, transparent 68%);
  top: -200px; right: -110px;
  pointer-events: none;
}
.tentang::after, .keuangan::after, .berita::after, .kontak::after {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,180,255,.08) 0%, transparent 70%);
  bottom: -110px; left: -80px;
  pointer-events: none;
}
.tentang > .container,
.keuangan > .container,
.berita > .container,
.kontak > .container { position: relative; z-index: 1; }

/* sec-head putih (berita, keuangan, kontak) */
.berita .sec-kicker,
.keuangan .sec-kicker,
.kontak .sec-kicker {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
.berita .sec-head h3,
.keuangan .sec-head h3,
.kontak .sec-head h3 { color: #fff; }
.berita .sec-head p,
.keuangan .sec-head p,
.kontak .sec-head p { color: rgba(255,255,255,.72); }

/* ── TENTANG ── */
.tentang .sec-kicker {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
.tentang-text h3 { color: #fff; }
.tentang-text > p { color: rgba(255,255,255,.82); }
.tentang-list strong { color: #fff; }
.tentang-list span { color: rgba(255,255,255,.72); }
.tentang-list .cek {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.22);
  color: #fff;
}
.tentang-visual {
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  border: 3px solid rgba(255,255,255,.1);
}
.tentang-quote {
  background: rgba(8,26,60,.78);
  backdrop-filter: blur(14px);
  border-left: 4px solid rgba(99,179,255,.7);
}
.tentang-quote i { color: rgba(147,210,255,.85); }
.tentang-quote p { color: rgba(255,255,255,.88); font-style: italic; }

/* ── BERITA ── */
.berita-card {
  border: none;
  box-shadow: 0 6px 28px rgba(0,20,70,.18);
}
.berita-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(0,20,80,.28);
}

/* ── KEUANGAN ── */
.keu-card { box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.chart-box {
  background: rgba(255,255,255,.97);
  border: none;
  box-shadow: 0 8px 32px rgba(0,20,70,.22);
  border-radius: 20px;
}
/* Catatan laporan section di keuangan */
.pub-cat-section .sec-head h3,
.pub-cat-section .sec-head span { color: #fff; }
.pub-cat-item {
  border: none;
  box-shadow: 0 4px 18px rgba(0,20,70,.15);
}

/* ── KONTAK ── */
.kontak-info h4 { color: #1e293b; }
.kontak-info > p { color: #475569; }
.kontak-item {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.6);
}
.kontak-item:hover {
  background: #ffffff;
  transform: translateX(5px);
}
.kontak-item .ic {
  background: #dbeafe;
  color: #1e40af;
  border: 1.5px solid #bfdbfe;
}
.kontak-item strong { color: #1e293b; }
.kontak-item span { color: #475569; }
/* Form label & inputs di kontak */
.kontak .form-field label { color: #1e293b; font-weight: 600; }
.kontak .form-field input,
.kontak .form-field textarea {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}
.kontak .form-field input::placeholder,
.kontak .form-field textarea::placeholder { color: #94a3b8; }
.kontak .form-field input:focus,
.kontak .form-field textarea:focus {
  background: #ffffff;
  border-color: #3d7fb8;
  box-shadow: 0 0 0 3px rgba(61,127,184,.18);
}
/* Map */
.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 48px rgba(0,0,0,.38);
  border: 3px solid rgba(255,255,255,.1);
}

/* RESPONSIVE */
@media (max-width:980px) {

  .hero-wrap,
  .tentang-grid,
  .kontak-grid,
  .chart-grid {
    grid-template-columns: 1fr
  }

  /* Berita admin: stack preview below form */
  .bn-layout {
    grid-template-columns: 1fr;
  }
  .bn-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    height: 360px
  }

  .hero-float {
    bottom: -20px;
    right: 20px
  }

  .layanan-grid,
  .berita-grid,
  .keu-summary {
    grid-template-columns: repeat(2, 1fr)
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding: 14px
  }

  .ftr-grid {
    grid-template-columns: 1fr 1fr
  }

  /* Download responsive */
  .files-wrapper {
    grid-template-columns: 1fr;
  }
  
  .download-filter {
    flex-wrap: wrap;
  }

  .chart-grid-2,
  .form-row,
  .form-row-2,
  .form-row-jurnal-1,
  .form-row-jurnal-2 {
    grid-template-columns: 1fr
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .admin.show {
    grid-template-columns: 1fr
  }

  .admin-menu-toggle {
    display: block;
  }

  .admin-side {
    position: fixed;
    left: -260px;
    transition: left .3s;
    z-index: 100
  }

  .admin-side.open {
    left: 0
  }

  .profil-grid {
    grid-template-columns: 1fr
  }

  .prf-section { padding: 22px; }
  .prf-pass-section { padding: 18px; }
  .prf-change-foto { padding: 9px 18px; font-size: 12.5px; }

  .file-list {
    grid-template-columns: 1fr
  }

  /* Download responsive for tablet */
  .year-selector {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 14px;
  }

  .year-selector select {
    width: 100%;
  }
}

@media (max-width:680px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--bayang);
    gap: 4px
  }

  .nav-menu.open {
    display: flex
  }

  .nav-menu a {
    width: 100%;
    text-align: left
  }

  .menu-toggle {
    display: block
  }

  .nav-right .btn-outline {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 13px;
  }

  .layanan-grid,
  .berita-grid,
  .keu-summary,
  .info-grid {
    grid-template-columns: 1fr
  }

  .hero h2 {
    font-size: 32px
  }

  section {
    padding: 60px 0
  }

  /* Download responsive for mobile */
  .panel-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .year-selector {
    width: 100%;
    flex-direction: column;
  }

  .year-selector select {
    width: 100%;
  }

  .download-file {
    flex-wrap: wrap;
  }

  /* Footer: single column on mobile */
  .ftr-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Keuangan summary: single column on mobile */
  .keu-summary {
    grid-template-columns: 1fr;
  }

  /* Topbar info bar: wrap to two lines */
  .topbar-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Admin top header: reduce padding, hide subtitle */
  .admin-top {
    padding: 10px 14px;
    gap: 8px;
  }
  .admin-top h2 {
    font-size: 16px;
  }
  .admin-top .sub {
    display: none;
  }
  /* Hide name/role text, keep avatar + logout */
  .admin-user .nm,
  .admin-user .rl {
    display: none;
  }

  /* Reduce modal overlay padding */
  .modal {
    padding: 12px;
  }
  /* Reduce login modal box padding */
  .modal-box {
    padding: 24px 20px;
  }

  /* Berita admin: single column card grid */
  .bn-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== VERY SMALL PHONES (≤480px — iPhone SE, entry Android) ===== */
@media (max-width: 480px) {

  /* Topbar info: hide entirely, too cramped */
  .topbar { display: none; }

  /* Stats grid: single column */
  .stats-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--garis);
    padding: 12px;
  }
  .stat-item:last-child { border-bottom: none; border-right: none; }

  /* Hero text */
  .hero h2 { font-size: 26px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Section header */
  .sec-head { margin-bottom: 32px; }
  .sec-head h3 { font-size: 24px; }

  /* Navbar brand: reduce size */
  .brand-logo { width: 38px; height: 38px; font-size: 16px; border-radius: 9px; }
  .brand-text h1 { font-size: 15px; }
  .brand-text p { display: none; }
  .nav-wrap { padding: 10px 16px; }

  /* Admin top: hide avatar name */
  .admin-user .ava { width: 34px; height: 34px; font-size: 12px; }
  .btn-logout span, .btn-logout { font-size: 12px; padding: 6px 10px; }

  /* Admin pages: reduce inner padding */
  .panel-head { padding: 14px 16px !important; }
  .panel-body, .panel-form { padding: 14px 16px; }

  /* Modal: reduce border radius for full-width feel */
  .modal { padding: 8px; }
  .modal-form-box { border-radius: 12px; }
  .modal-form-head { padding: 14px 16px; }
  .modal-form-body { padding: 16px; }
  .modal-form-footer { padding: 12px 16px; }
  .modal-box { padding: 20px 16px; border-radius: 16px; }

  /* Keuangan summary: single column */
  .keu-summary { grid-template-columns: 1fr; }

  /* Footer: tighten spacing */
  .ftr-grid { gap: 20px; }
  footer { padding: 40px 0 20px; }
  .ftr-bottom { flex-direction: column; gap: 6px; text-align: center; font-size: 12px; }

  /* Berita admin: reduce hero banner */
  .bn-hero { padding: 24px 16px; }
  .bn-form-card, .bn-preview-col { padding: 16px; }
}