/* =====================================================================
   Beranda SIMPel — gaya formal instansi (serumpun halaman Masuk/Daftar).
   Dimuat PALING AKHIR (sesudah landing.css & portal.css) dan hanya
   menimpa tampilan: biru muda sebagai warna utama, navy untuk teks &
   tombol, emas Melayu sebagai aksen; sudut tegas, tanpa efek "startup".
   Semua aturan dibatasi body.bf.
   ===================================================================== */

:root {
  --bf-navy: #0E2A52;
  --bf-navy-2: #16406F;
  --bf-biru-1: #EAF5FD;
  --bf-biru-3: #8CCBF1;
  --bf-biru-4: #5AAEE3;
  --bf-biru-5: #3D93D0;
  --bf-emas: #E8B53A;
  --bf-emas-muda: #F7D77A;
  --bf-emas-tua: #6B4A00;
  --bf-garis: #D9E6F3;
  --bf-redup: #5B6B82;
  --bf-pita: linear-gradient(90deg, #0E2A52 0 62%, #5AAEE3 62% 84%, #E8B53A 84% 100%);
}

/* ============================================================ NAVBAR */
html body.bf .landing-navbar { border-bottom: 0; }
html body.bf .landing-navbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--bf-pita);
}
html body.bf .landing-navbar .nav-link { border-radius: 4px; }
html body.bf .pt-merek b { letter-spacing: -.2px; }

html body.bf .landing-navbar .btn-gold,
html body.bf .btn-gold {
  border-radius: 6px !important;
  background: linear-gradient(180deg, var(--bf-navy-2), var(--bf-navy)) !important;
  color: #fff !important; border: 0 !important;
  box-shadow: inset 0 -3px 0 var(--bf-emas) !important;
}
html body.bf .landing-navbar .btn-gold::before,
html body.bf .landing-navbar .btn-gold::after,
html body.bf .landing-navbar .btn-outline-gold::before,
html body.bf .landing-navbar .btn-outline-gold::after { display: none !important; }
html body.bf .landing-navbar .btn-gold i { color: var(--bf-emas-muda) !important; }
html body.bf .landing-navbar .btn-outline-gold,
html body.bf .btn-outline-gold {
  border-radius: 6px !important; background: #fff !important;
  color: var(--bf-navy) !important; border: 1px solid #C5D5E6 !important; box-shadow: none !important;
}
html body.bf .landing-navbar .btn-outline-gold:hover { border-color: var(--bf-navy) !important; }
html body.bf .theme-toggle-wrapper { border-radius: 6px !important; }
html body.bf .theme-toggle-btn { border-radius: 4px !important; }

/* ============================================================== HERO */
html:not([data-theme="dark"]) body.bf .pt-hero {
  background:
    radial-gradient(760px 460px at 90% 10%, rgba(255, 255, 255, .6), transparent 62%),
    radial-gradient(620px 400px at 6% 96%, rgba(255, 255, 255, .45), transparent 62%),
    linear-gradient(170deg, #B4DDF8 0%, #8CCBF1 50%, #5AAEE3 100%);
}
html body.bf .pt-sirkuit { opacity: .35; }
html body.bf .pt-sirkuit * { animation: none !important; }

html body.bf .pt-eyebrow {
  padding: 2px 0 2px 12px; border: 0; border-left: 3px solid var(--bf-emas);
  border-radius: 0; background: none !important; backdrop-filter: none;
  font-size: .78rem; font-weight: 700; letter-spacing: 2px;
}
html body.bf .pt-eyebrow-titik { display: none; }
html:not([data-theme="dark"]) body.bf .pt-eyebrow { color: var(--bf-navy); }
html[data-theme="dark"] body.bf .pt-eyebrow { color: var(--bf-emas-muda); }

html body.bf .pt-judul { letter-spacing: -1.2px; }
html body.bf .pt-judul::after {
  content: ''; display: block; width: 64px; height: 4px; margin-top: 20px; background: var(--bf-emas);
}
html:not([data-theme="dark"]) body.bf .pt-judul { color: var(--bf-navy); }
html:not([data-theme="dark"]) body.bf .pt-judul span {
  background: none; -webkit-text-fill-color: #fff; color: #fff; filter: none;
  text-shadow: 0 2px 10px rgba(14, 42, 82, .35);
}
html:not([data-theme="dark"]) body.bf .pt-deskripsi { color: #12365F; }

html body.bf .pt-tombol { border-radius: 6px; height: 50px; }
html body.bf .pt-tombol:hover { transform: none !important; }
html body.bf .pt-tombol.emas {
  background: linear-gradient(180deg, var(--bf-navy-2), var(--bf-navy)); color: #fff;
  box-shadow: inset 0 -3px 0 var(--bf-emas), 0 12px 24px -14px rgba(14, 42, 82, .7);
}
html body.bf .pt-tombol.emas:hover { color: #fff; background: var(--bf-navy-2); }
html body.bf .pt-tombol.emas i { color: var(--bf-emas-muda); }
html:not([data-theme="dark"]) body.bf .pt-tombol.garis { border: 1px solid #fff; border-radius: 6px; box-shadow: 0 10px 22px -16px rgba(14, 42, 82, .5); }

html body.bf .pt-tf-langkah { border-radius: 6px; box-shadow: none; border: 1px solid rgba(255, 255, 255, .9); }
html body.bf .pt-tf-langkah i { border-radius: 4px; }
html body.bf .pt-tf-langkah.akhir { outline: 0; border: 1px solid var(--bf-emas); box-shadow: inset 0 -3px 0 var(--bf-emas); }
html:not([data-theme="dark"]) body.bf .pt-tf-langkah { color: var(--bf-navy); }
html:not([data-theme="dark"]) body.bf .pt-tf-langkah i { background: var(--bf-biru-1); color: var(--bf-navy-2); }
html:not([data-theme="dark"]) body.bf .pt-tf-langkah.akhir i { background: #FDF1D3; color: var(--bf-emas-tua); }

/* kartu lacak & teknologi */
html body.bf .pt-lacak { border-radius: 6px; overflow: hidden; }
html body.bf .pt-lacak::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--bf-pita); z-index: 1;
}
html body.bf .pt-lacak-ikon { border-radius: 6px; }
html:not([data-theme="dark"]) body.bf .pt-lacak-ikon { background: var(--bf-navy); color: var(--bf-emas-muda); box-shadow: none; }
html body.bf .pt-cari { border-radius: 6px; }
html:not([data-theme="dark"]) body.bf .pt-cari { background: #fff; border: 1px solid #C5D5E6; }
html body.bf .pt-cari button { border-radius: 4px; }
html:not([data-theme="dark"]) body.bf .pt-cari button { background: var(--bf-navy); box-shadow: inset 0 -2px 0 var(--bf-emas); }
html body.bf .pt-tek { border-radius: 6px; border-left: 4px solid var(--bf-emas); }
html body.bf .pt-tek-item { border-radius: 4px; }
html body.bf .pt-tek-item > i { border-radius: 4px; }
html:not([data-theme="dark"]) body.bf .pt-tek-item > i { background: var(--bf-biru-1); color: var(--bf-navy-2); }
html:not([data-theme="dark"]) body.bf .pt-tek-kepala i { color: var(--bf-emas) !important; }

/* ==================================================== JUDUL BAGIAN */
html body.bf .section-badge {
  display: inline-flex !important; align-items: center; gap: 8px;
  padding: 2px 0 2px 12px !important; border: 0 !important; border-left: 3px solid var(--bf-emas) !important;
  border-radius: 0 !important; background: none !important; box-shadow: none !important;
  font-size: .76rem !important; font-weight: 700 !important; letter-spacing: 1.8px !important; text-transform: uppercase;
}
html:not([data-theme="dark"]) body.bf .section-badge { color: var(--bf-navy-2) !important; }
html:not([data-theme="dark"]) body.bf .section-badge i { color: var(--bf-emas) !important; }
html[data-theme="dark"] body.bf .section-badge { color: var(--bf-emas-muda) !important; }
html:not([data-theme="dark"]) body.bf .sx-judul,
html:not([data-theme="dark"]) body.bf .features-section h2 { color: var(--bf-navy) !important; }
html body.bf .sx-judul::after,
html body.bf .features-section h2::after {
  content: ''; display: block; width: 48px; height: 3px; margin-top: 12px; background: var(--bf-emas);
}
html body.bf .features-section h2::after { margin-left: auto; margin-right: auto; }

/* ================================================== CARA MENGAJUKAN */
html:not([data-theme="dark"]) body.bf .features-section {
  background:
    radial-gradient(rgba(61, 147, 208, .14) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(180deg, #FFFFFF 0%, var(--bf-biru-1) 100%) !important;
}
html body.bf .langkah-kartu { border-radius: 6px !important; border-top: 3px solid var(--bf-navy) !important; }
html body.bf .langkah-kartu:hover { border-top-color: var(--bf-emas) !important; transform: none !important; }
html body.bf .langkah-ikon { border-radius: 6px !important; }
html:not([data-theme="dark"]) body.bf .langkah-ikon { background: var(--bf-biru-1) !important; color: var(--bf-navy-2) !important; }
html body.bf .langkah-nomor { color: rgba(232, 181, 58, .45) !important; }
html:not([data-theme="dark"]) body.bf .langkah-tautan { color: var(--bf-navy-2) !important; }

/* ======================================================== STATISTIK */
html:not([data-theme="dark"]) body.bf .sx-bagian { background: linear-gradient(180deg, var(--bf-biru-1) 0%, #F7FBFF 100%); }
html body.bf .sx-angka { border-radius: 6px !important; border-left: 4px solid var(--bf-biru-5) !important; }
html body.bf .sx-angka:nth-child(2) { border-left-color: var(--bf-navy) !important; }
html body.bf .sx-angka:nth-child(4) { border-left-color: var(--bf-emas) !important; }
html body.bf .sx-angka-ikon,
html body.bf .ix-mini-ikon,
html body.bf .ix-unsur-ikon { border-radius: 6px !important; }
html body.bf .sx-kartu { border-radius: 6px !important; }
html body.bf .sx-rincian div { border-radius: 4px !important; }
html body.bf .select2-container--bootstrap-5 .select2-selection { border-radius: 6px !important; }
html body.bf .select2-container--bootstrap-5 .select2-dropdown { border-radius: 6px !important; }
html body.bf .stat-card, html body.bf .stats-chart-card { border-radius: 6px !important; }

/* ============================================================== IKM */
html:not([data-theme="dark"]) body.bf .ix-bagian { background: #fff; }
html body.bf .ix-skor {
  border-radius: 6px !important; border-top: 4px solid var(--bf-emas);
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(140, 203, 241, .35), transparent 65%),
    linear-gradient(160deg, var(--bf-navy-2) 0%, var(--bf-navy) 100%) !important;
}
html body.bf .ix-mini, html body.bf .ix-unsur, html body.bf .ix-kosong { border-radius: 6px !important; }
html body.bf .ix-tombol-survei { border-radius: 6px !important; }
html body.bf .ikm-main-card, html body.bf .ikm-mini-card, html body.bf .unsur-card { border-radius: 6px !important; }

/* ============================================================ BERITA */
html:not([data-theme="dark"]) body.bf .bx-bagian { background: linear-gradient(180deg, #F7FBFF 0%, var(--bf-biru-1) 100%); }
html body.bf .nx-utama, html body.bf .nx-daftar, html body.bf .bx-kartu, html body.bf .bx-kosong { border-radius: 6px !important; }
html body.bf .nx-utama { border-top: 3px solid var(--bf-navy) !important; }
html body.bf .nx-daftar { border-top: 3px solid var(--bf-emas) !important; }
html body.bf .nx-item-gambar { border-radius: 4px !important; }
html body.bf .bx-semua { border-radius: 6px !important; }
html body.bf .bx-kategori, html body.bf .berita-kategori-badge { border-radius: 4px !important; }
html body.bf .berita-card { border-radius: 6px !important; }

/* ============================================================ FOOTER */
html:not([data-theme="dark"]) body.bf .landing-footer {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='18'%3E%3Cpath d='M2 18 L16 3 L30 18' fill='none' stroke='%23E8B53A' stroke-opacity='.55' stroke-width='1.2'/%3E%3Cpath d='M16 8 l2.5 4 l-2.5 4 l-2.5 -4Z' fill='%23F7D77A' fill-opacity='.6'/%3E%3C/svg%3E") repeat-x 0 3px / 32px 18px,
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(140, 203, 241, .16) 0%, transparent 60%),
    linear-gradient(165deg, var(--bf-navy-2) 0%, var(--bf-navy) 70%) !important;
}
html body.bf .landing-footer::before { background: var(--bf-pita) !important; height: 3px; box-shadow: none !important; }
html:not([data-theme="dark"]) body.bf .footer-bottom-bar { background: #0A1F3D !important; border-top: 1px solid rgba(232, 181, 58, .35) !important; }
html:not([data-theme="dark"]) body.bf .footer-brand-sub,
html:not([data-theme="dark"]) body.bf .footer-contact-item strong,
html:not([data-theme="dark"]) body.bf .landing-footer .text-warning { color: var(--bf-emas-muda) !important; }
html:not([data-theme="dark"]) body.bf .footer-links a:hover { color: var(--bf-emas-muda) !important; }
html body.bf .footer-heading { letter-spacing: .4px; }
html body.bf .footer-heading::after { background: var(--bf-emas) !important; border-radius: 0 !important; }
html body.bf .footer-contact-icon, html body.bf .social-icon-btn { border-radius: 6px !important; }
html:not([data-theme="dark"]) body.bf .footer-contact-icon,
html:not([data-theme="dark"]) body.bf .social-icon-btn { background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .22) !important; }

/* ========================================================= ASISTEN AI */
html body.bf .floating-chat-widget { border-radius: 6px !important; }

/* ===================================================== HASIL LACAK */
html body.bf #trackingResultBox { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.lk-hasil { border: 1px solid #DCE8F4; border-radius: 8px; background: #fff; overflow: hidden; text-align: left; }
.lk-label { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #5B6B82; }
.lk-kepala { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #F4F9FE; border-bottom: 1px solid #E3EEF8; }
.lk-nomor { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .98rem; font-weight: 800; color: #0E2A52; word-break: break-all; }
.lk-salin { border: 0; background: none; padding: 2px 4px; color: #5B6B82; cursor: pointer; border-radius: 4px; }
.lk-salin:hover { color: #2A77BD; background: #EAF4FC; }
.lk-status { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; font-size: .74rem; font-weight: 700; }
.lk-status.proses { color: #1F5E96; background: #E3F1FB; border: 1px solid #B9DBF4; }
.lk-status.terbit { color: #15803D; background: #DCFCE7; border: 1px solid #BBF7D0; }
.lk-izin { padding: 14px 16px 4px; }
.lk-izin b { display: block; margin-top: 4px; font-size: .95rem; line-height: 1.4; color: #0B2545; }
.lk-kemajuan { padding: 12px 16px 4px; }
.lk-kemajuan-teks { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: #526075; }
.lk-kemajuan-teks b { color: #0B2545; }
.lk-persen { font-weight: 800; color: #2A77BD; }
.lk-bilah { height: 6px; margin-top: 8px; border-radius: 99px; background: #E3EEF8; overflow: hidden; }
.lk-bilah span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6CACE4, #2A77BD); }
.lk-hasil.terbit .lk-bilah span { background: linear-gradient(90deg, #34D399, #16A34A); }
.lk-angka { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 16px 0; border: 1px solid #E3EEF8; border-radius: 6px; }
.lk-angka > div { padding: 10px 12px; }
.lk-angka > div + div { border-left: 1px solid #E3EEF8; }
.lk-angka b { display: block; margin-top: 3px; font-size: .86rem; color: #0B2545; }
.lk-linimasa-judul { margin: 16px 16px 8px; font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #5B6B82; }
.lk-linimasa { list-style: none; margin: 0 16px; padding: 0; }
.lk-linimasa li { position: relative; display: flex; gap: 12px; padding-bottom: 12px; }
.lk-linimasa li:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: #E3EEF8; }
.lk-linimasa li.selesai:not(:last-child)::before { background: #86C5F0; }
.lk-titik { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #8A9AB0; background: #F1F5F9; border: 1.5px solid #D6E0EA; }
.lk-titik i { color: inherit !important; }
.lk-linimasa li.selesai .lk-titik { color: #fff; background: #2A77BD; border-color: #2A77BD; }
.lk-linimasa li.proses .lk-titik { color: #fff; background: #6CACE4; border-color: #6CACE4; box-shadow: 0 0 0 4px rgba(108, 172, 228, .25); }
.lk-linimasa b { display: block; font-size: .86rem; color: #0B2545; line-height: 1.3; margin-top: 4px; }
.lk-linimasa li.menunggu b { color: #8A9AB0; font-weight: 600; }
.lk-linimasa small { display: block; font-size: .74rem; color: #5B6B82; margin-top: 1px; }
.lk-linimasa li.proses small { color: #2A77BD; font-weight: 600; }
.lk-catatan { display: flex; gap: 10px; margin: 4px 16px 16px; padding: 10px 12px; border-radius: 6px; font-size: .8rem; line-height: 1.5; color: #1F5E96; background: #F2F8FE; border: 1px solid #DCEBF8; }
.lk-catatan > i { color: #2A77BD !important; margin-top: 2px; }
.lk-hasil.terbit .lk-catatan { color: #166534; background: #F0FDF4; border-color: #BBF7D0; }
.lk-hasil.terbit .lk-catatan > i { color: #16A34A !important; }
.lk-catatan-kaki { display: block; margin-top: 4px; font-size: .72rem; color: #5B6B82; }
.lk-catatan-kaki a { font-weight: 700; color: #2A77BD; }
.lk-pesan { display: flex; gap: 12px; padding: 14px 16px; border-radius: 8px; text-align: left; font-size: .82rem; }
.lk-pesan > i { font-size: 1.2rem; margin-top: 1px; }
.lk-pesan b { display: block; font-size: .9rem; }
.lk-pesan p { margin: 2px 0 0; }
.lk-pesan small { display: block; margin-top: 6px; font-size: .74rem; opacity: .9; }
.lk-pesan.kuning { color: #78350F; background: #FFFBEB; border: 1px solid #FDE68A; }
.lk-pesan.kuning > i { color: #D97706 !important; }
.lk-pesan.merah { color: #991B1B; background: #FEF2F2; border: 1px solid #FECACA; }
.lk-pesan.merah > i { color: #DC2626 !important; }
@media (max-width: 420px) {
  .lk-kepala { flex-direction: column; }
  .lk-angka { grid-template-columns: 1fr; }
  .lk-angka > div + div { border-left: 0; border-top: 1px solid #E3EEF8; }
}
html[data-theme="dark"] .lk-hasil { background: #0F172A; border-color: #1E293B; }
html[data-theme="dark"] .lk-kepala { background: #0B1324; border-color: #1E293B; }
html[data-theme="dark"] .lk-nomor, html[data-theme="dark"] .lk-izin b, html[data-theme="dark"] .lk-angka b,
html[data-theme="dark"] .lk-linimasa b, html[data-theme="dark"] .lk-kemajuan-teks b { color: #E6EEF9; }
html[data-theme="dark"] .lk-angka, html[data-theme="dark"] .lk-angka > div + div { border-color: #1E293B; }
html[data-theme="dark"] .lk-catatan { background: rgba(108, 172, 228, .08); border-color: #1E293B; color: #CFE3F7; }
