/* ====================================================================
   Lost & Found – Pengadilan Agama Bantul
   public/lostfound/style.css

   DAFTAR ISI
    1. Dasar (variabel warna, reset)
    2. Komponen umum (kartu, tombol, badge, tabel kecil)
    3. Formulir
    4. Navbar & logo
    5. Halaman publik (beranda, layanan, cek status)
    6. Kartu hasil cek status
    7. Footer
    8. Login admin
    9. Panel admin
   10. Grafik
   11. Animasi
   12. Efek hover & fokus
   13. Responsif
   14. Kurangi gerakan (aksesibilitas)

   TIPS: warna utama ada di variabel :root (bagian 1).
         Untuk mengganti logo bulat dengan gambar, lihat komentar di bagian 4.
   ==================================================================== */

/* ==================================================================
   1. DASAR
   ================================================================== */

:root {
  --navy: #1f3a5f;
  --bg: #f8fafc;
  --card: #fff;
  --tx: #1e293b;
  --mut: #8590a6;
  --bd: #e5e9f0;
  --green: #16b84a;
  --blue: #3b82f6;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--tx);
  font-size: 14px;
}

h1,
h2,
h3,
.ph {
  font-family: Poppins, Inter, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ==================================================================
   2. KOMPONEN UMUM
   ================================================================== */

.wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
}

.btn.g {
  background: var(--green);
}

.btn.p {
  border-radius: 20px;
  padding: 9px 18px;
}

.done {
  max-width: 298px;
  padding: 16px;
  text-align: center;
}

.done .ck {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16b84a;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 16px;
}

.done h3 {
  margin: 0 0 10px;
  font-size: 12px;
}

.done p {
  margin: 0 0 14px;
  font-size: 10px;
  line-height: 1.7;
  color: #8f9ab5;
}

.done .btn {
  display: block;
  width: 100%;
  padding: 9px;
  font-size: 11px;
  margin-bottom: 6px;
  border-radius: 10px;
}

.btn.l,
.btn.l2 {
  background: #f1f5f9;
  color: #334155;
  font-weight: 500;
}

.mg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.tg {
  display: inline-block;
  background: #eaf0ff;
  color: #2f5fc9;
  border-radius: 10px;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 600;
  margin-bottom: 10px;
}

.tg.gr {
  background: #e3f9ea;
  color: #168a3c;
}

.tg.ol {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  font-weight: 500;
}

.ph0 {
  height: 110px;
  border-radius: 10px;
  background: #eef1f6;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: #b4bdd0;
  margin-bottom: 12px;
}

.kv {
  border-bottom: 1px solid #eef1f6;
  padding: 8px 0;
}

.kv:last-child {
  border: 0;
}

.kv small {
  display: block;
  font-size: 9px;
  color: #9aa5bd;
  margin-bottom: 3px;
}

.kv span {
  font-size: 11px;
}

.warn {
  background: #fffbe6;
  border: 1px solid #f6eab0;
  color: #8a5a00;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 10px;
}

.acts .btn {
  font-size: 11px;
  padding: 10px 16px;
  border-radius: 10px;
}

.btn:disabled {
  background: #8e9bb0;
  cursor: not-allowed;
}

.sq {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #4a607f;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 20px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.top h2 {
  margin: 0;
  font-size: 17px;
}

.top p {
  margin: 2px 0 0;
  color: var(--mut);
  font-size: 12px;
}

.date {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--mut);
}

.two {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.pad {
  padding: 16px;
}

.pad h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.mono {
  font-family: ui-monospace, Menlo, monospace;
  color: #64748b;
}

.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: #fff4dd;
  color: #b7791f;
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 11px;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.b {
  background: #e8f0ff;
  color: #2f5fc9;
}

.badge.s {
  background: #e3f9ea;
  color: #168a3c;
}

.badge.r {
  background: #fde8e8;
  color: #c53030;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.chip {
  border: 1px solid var(--bd);
  background: #f1f4f9;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 11px;
  color: #475569;
}

.chip.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.sm {
  padding: 5px 12px;
  border: 1px solid var(--bd);
  background: #fff;
  border-radius: 6px;
  font-size: 11px;
}

.empty {
  padding: 90px 20px;
  text-align: center;
  color: var(--mut);
}

.empty i {
  display: block;
  font-size: 30px;
  font-style: normal;
  opacity: .4;
  margin-bottom: 8px;
}

.acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

a.btn,
a.sm,
a.chip {
  display: inline-block;
  text-align: center;
}

.btn {
  border: 0;
}

.imgbox {
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #eef1f6;
}

.imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fimg {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-top: 6px;
}

.acts form {
  display: inline;
}

.dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 14px;
  font-size: 13px;
}

.dl dt {
  color: var(--mut);
}

.dl dd {
  margin: 0;
  word-break: break-word;
}

/* ==================================================================
   3. FORMULIR
   ================================================================== */

label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin: 14px 0 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--bd);
  background: #f7f8fb;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.bf {
  max-width: 384px;
  padding: 16px;
  border-radius: 14px;
}

.bf label {
  font-size: 11px;
  font-weight: 500;
  margin: 0 0 6px;
}

.bf input,
.bf select,
.bf textarea {
  background: #fff;
  font-size: 12px;
  border-radius: 10px;
  padding: 9px 12px;
}

.bf textarea {
  min-height: 60px;
}

.fl {
  margin-bottom: 16px;
}

.bad {
  border-color: #e5484d !important;
  background: #fff8f8 !important;
  animation: shake .3s;
}

.fm {
  display: block;
  color: #d33;
  font-size: 11px;
  margin-top: 5px;
  font-weight: 500;
  animation: fm .25s ease;
}

.chk:has(.bad) {
  color: #d33;
}

.form {
  padding: 22px;
  margin-top: 14px;
}

.note {
  background: #eaf1ff;
  color: #2f5fc9;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  margin: 0 0 6px;
}

.chk {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 12px;
}

.chk input {
  width: auto;
  margin-top: 2px;
}

.ok {
  background: #e9fbef;
  border: 1px solid #b7ecc7;
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
  text-align: center;
}

.ok b {
  font: 700 18px Poppins;
  display: block;
  margin-top: 4px;
}

.err {
  color: #d33;
  font-size: 12px;
  margin-top: 8px;
  display: none;
}

.fi {
  display: block;
  width: 100%;
  border: 1.5px dashed #dde3ee;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  font-size: 12px;
  color: #64748b;
}

.fi::file-selector-button {
  border: 0;
  background: #1f3a5f;
  color: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  margin-right: 10px;
  font: 600 11px Inter, sans-serif;
  cursor: pointer;
}

.hint {
  display: block;
  font-size: 9px;
  color: #b7c0d3;
  margin-top: 6px;
}

.pilih {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.pilih select {
  max-width: 340px;
  background: #fff;
}

.pilih label {
  margin: 0;
  font-size: 11px;
}

.sbox {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.sbox input {
  max-width: 240px;
}

/* ==================================================================
   4. NAVBAR & LOGO
   ================================================================== */

.nav {
  background: var(--navy);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(16px, calc(50% - 445px));
  box-shadow: 0 2px 6px #0003;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
}

.logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(#7fb34a, #3f7d2a);
  border: 2px solid #d9b94a;
  flex: none;
}

.brand b {
  display: block;
  font: 600 14px Poppins;
  line-height: 1.1;
}

.brand small {
  font-size: 10px;
  color: #b9c6dc;
}

.nav nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav nav a {
  color: #9fb1cf;
  font: 500 14px Poppins;
}

.nav nav a.on {
  color: #fff;
}

.nav nav .adm {
  background: #4a607f;
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
}

/* ---- GANTI LOGO ----------------------------------------------------
   Logo di navbar, sidebar admin, dan footer memakai kelas .logo.
   Untuk memakai gambar sendiri, taruh file di public/lostfound/img/logo.png
   lalu ganti aturan .logo di atas dengan:

   .logo {
     width: 34px;
     height: 34px;
     background: url("img/logo.png") center / contain no-repeat;
     flex: none;
   }
   ------------------------------------------------------------------- */

/* ==================================================================
   5. HALAMAN PUBLIK
   ================================================================== */

.pub {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

.pub main {
  flex: 1;
  padding: 44px 0;
}

.hp {
  padding: 0 !important;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 540px;
}

.hp::before,
.hp::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #ffffff14;
}

.hp::before {
  width: 340px;
  height: 340px;
  right: -150px;
  top: -130px;
}

.hp::after {
  width: 260px;
  height: 260px;
  left: -130px;
  bottom: -130px;
}

.hi {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 540px;
  padding: 48px 20px;
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #ffffff14;
  border: 1px solid #ffffff33;
  color: #e3eaf5;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 34px;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.pill.off::before {
  background: #ef4444;
}

.hi h1 {
  color: #fff;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.3;
  margin: 0 0 22px;
  font-weight: 600;
}

.hi p {
  color: #a9b9d4;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 auto 38px;
  max-width: 500px;
}

.hb {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hb a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 14px;
}

.hb .w {
  background: #fff;
  color: var(--navy);
}

.hb .d {
  background: #3b5278;
  border: 1px solid #58729d;
  color: #fff;
  font-weight: 700;
}

.rc {
  display: block;
  background: #fff;
  color: var(--tx);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
}

.rc.x {
  color: #c53030;
}

.hb svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr {
  padding: 56px 16px 48px;
}

.pr .in {
  max-width: 794px;
  margin: 0 auto;
}

.pr h2 {
  text-align: center;
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 8px;
}

.pr .sub {
  text-align: center;
  color: #8a97b5;
  font-size: 12px;
  margin: 0 0 40px;
}

.sg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sc {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px #1f3a5f12;
}

.sc .t {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.ib {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--navy);
  display: grid;
  place-items: center;
  flex: none;
}

.ib.l {
  background: #dce9ff;
}

.ib svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ib.l svg {
  stroke: #1f3a5f;
  width: 15px;
  height: 15px;
}

.sc .t span {
  font: 600 10px Poppins;
  color: #c3cbdc;
}

.sc h3 {
  font-size: 13px;
  margin: 0 0 6px;
  font-weight: 600;
}

.sc p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #8f9ab5;
}

.pv {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #eef4ff;
  border: 1px solid #dbe8fb;
  border-radius: 12px;
  padding: 16px;
  margin-top: 52px;
}

.pv h3 {
  font-size: 13px;
  margin: 0 0 6px;
  font-weight: 600;
}

.pv p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #64748b;
}

.hero {
  text-align: center;
}

.hero h1 {
  font-size: 30px;
  margin: 0 0 8px;
}

.hero p {
  color: var(--mut);
  margin: 0 0 24px;
}

.svc {
  display: flex;
  gap: 18px;
  padding: 26px 28px;
  margin: 0 auto 20px;
  max-width: 424px;
}

.svc .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef3ff;
  display: grid;
  place-items: center;
  flex: none;
}

.svc.g .ic {
  background: #e9fbef;
}

.svc h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.svc p {
  margin: 0 0 16px;
  color: var(--mut);
}

/* ==================================================================
   6. KARTU HASIL CEK STATUS
   ================================================================== */

.sk {
  background: #fff;
  color: var(--tx);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 18px #1f3a5f14;
  text-align: left;
  margin-top: 14px;
  font-weight: 400;
  font-size: 12px;
  animation: up .45s cubic-bezier(.2, .8, .2, 1) backwards;
}

.sk .lb {
  font-size: 10px;
  letter-spacing: .07em;
  color: #8a97b5;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 3px;
}

.sk .cd {
  font: 600 20px Poppins;
  color: #f0a500;
  letter-spacing: .01em;
}

.top2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.bd2 {
  background: #e8ebf2;
  color: #64748b;
  border-radius: 14px;
  padding: 5px 13px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.bd2.b {
  background: #e0ecff;
  color: #2f5fc9;
}

.bd2.s {
  background: #dcfce7;
  color: #15803d;
}

.bd2.r {
  background: #fde8e8;
  color: #c53030;
}

.stp {
  display: flex;
  align-items: flex-start;
  margin: 22px 0 32px;
}

.si {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
}

.ln {
  flex: 1;
  height: 2px;
  background: #e2e5ec;
  margin: 11px 10px 0;
  transform-origin: left;
}

.ln.d {
  background: #0f766e;
  animation: ln .7s .2s backwards;
}

.cr {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e8ebf2;
  color: #9aa5bd;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}

.cr.d,
.cr.a {
  background: #0f766e;
  color: #fff;
  animation: pop .5s backwards;
}

.cr.x {
  background: #c53030;
  color: #fff;
}

.cr svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sl {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 10px;
  color: #8a97b5;
  white-space: nowrap;
}

.sl.l {
  left: 0;
  transform: none;
}

.sl.r {
  left: auto;
  right: 0;
  transform: none;
}

.kg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  border-top: 1px solid #e7ebf2;
  padding-top: 20px;
}

.kg .w {
  grid-column: 1/-1;
}

.kg b {
  font-size: 13px;
  font-weight: 600;
}

.kg span {
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
  word-break: break-word;
}

.mono2 {
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: .05em;
}

.sn {
  margin: 20px 0 0;
  border-top: 1px solid #e7ebf2;
  padding-top: 16px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

.side {
  width: 220px;
  background: var(--navy);
  color: #fff;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex: none;
}

.side .brand {
  padding: 4px 6px 18px;
  border-bottom: 1px solid #2f4b74;
  margin-bottom: 12px;
}

.side a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  color: #b9c6dc;
  font-size: 12px;
  margin-bottom: 3px;
}

.side a.on {
  background: #4a607f;
  color: #fff;
}

.side .sp {
  flex: 1;
}

/* ==================================================================
   7. FOOTER
   ================================================================== */

footer {
  background: var(--navy);
  color: #fff;
  padding: 32px max(16px, calc(50% - 460px)) 0;
}

footer h4 {
  font: 600 14px Poppins;
  color: #ffd78a;
  margin: 0 0 10px;
}

footer p,
footer a {
  display: block;
  color: #a9b9d4;
  font-size: 12px;
  margin: 0 0 6px;
}

/* Tautan footer: bergeser + garis bawah saat disentuh */
footer a {
  position: relative;
  width: fit-content;
  transition: color .25s, transform .25s;
  animation: up .5s cubic-bezier(.2, .8, .2, 1) backwards;
}
footer a:nth-of-type(1) { animation-delay: .15s; }
footer a:nth-of-type(2) { animation-delay: .22s; }
footer a:nth-of-type(3) { animation-delay: .29s; }

footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

footer a:hover,
footer a:focus-visible {
  color: #fff;
  transform: translateX(5px);
}

footer a:hover::after,
footer a:focus-visible::after {
  transform: scaleX(1);
}

footer a:active {
  transform: translateX(5px) scale(.97);
}

/* Kolom menu & tautan (panah di depan) */
footer a.ar {
  color: #dbe6f7;
  margin-bottom: 8px;
}
footer a.ar::before {
  content: "→";
  color: #7cc4ff;
  margin-right: 7px;
}
footer a.ar:hover {
  color: #fff;
}

.fg {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

/* Kolom kiri: logo, tagline, sosial media */
.fb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.fb .logo { width: 30px; height: 30px; }
.fb b {
  display: block;
  font: 600 14px Poppins;
  line-height: 1.2;
}
.fb small {
  color: #a9b9d4;
  font-size: 10px;
}

.ftag {
  font-style: italic;
  color: #e3ebf8;
  font-size: 12px;
  margin: 0 0 14px;
}

.soc {
  display: flex;
  gap: 8px;
}
.soc a {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
}
.soc a::after { display: none; }
.soc a:hover { transform: translateY(-3px) scale(1.1); }
.soc svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Baris logo mitra */
.lgs {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #35527c;
  margin-top: 28px;
  padding: 26px 0;
}
.lgs .lg {
  display: grid;
  place-items: center;
  height: 44px;
  margin: 0;
}
.lgs a.lg::after { display: none; }
.lgs a.lg:hover { transform: translateY(-3px); }
.lgs img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}
.lgs .ph {
  min-width: 70px;
  padding: 0 14px;
  border: 1px dashed #55709b;
  border-radius: 10px;
  color: #7d92b5;
  font-size: 10px;
}

/* Baris paling bawah: hak cipta + dasar hukum */
.copy {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-top: 1px solid #35527c;
  padding: 14px 0;
  text-align: left;
  color: #8da2c4;
  font-size: 10px;
}

/* ==================================================================
   8. LOGIN ADMIN
   ================================================================== */

.login {
  background: var(--navy);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login .box {
  width: 100%;
  max-width: 340px;
  text-align: center;
  color: #fff;
}

.login .card {
  padding: 20px;
  text-align: left;
  color: var(--tx);
  margin: 20px 0 16px;
}

.login .card h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.login small {
  color: #9fb1cf;
  display: block;
  text-align: center;
  font-size: 11px;
  margin-top: 12px;
}

/* ==================================================================
   9. PANEL ADMIN
   ================================================================== */

.app {
  display: flex;
  min-height: 100vh;
}

.me {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 6px;
  border-top: 1px solid #2f4b74;
  font-size: 12px;
}

.me i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #4a607f;
  display: grid;
  place-items: center;
  font-style: normal;
}

.me small {
  display: block;
  color: #9fb1cf;
  font-size: 10px;
}

.main {
  flex: 1;
  padding: 22px 24px;
  min-width: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.st {
  padding: 14px;
}

.st .i {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}

.st b {
  display: block;
  font: 600 18px Poppins;
}

.st span {
  color: var(--mut);
  font-size: 11px;
}

.qa a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
}

.qa i {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  text-align: left;
  color: var(--mut);
  font-weight: 500;
  padding: 10px 8px;
  border-bottom: 1px solid var(--bd);
}

td {
  padding: 12px 8px;
  border-bottom: 1px solid #f0f2f6;
}

.stt {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 14px;
}

.leg div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 5px 0;
}

.leg i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
}

.me .lo {
  margin-left: auto;
  background: none;
  border: 0;
  color: #b9c6dc;
  cursor: pointer;
  font-size: 15px;
  padding: 4px 6px;
  border-radius: 6px;
}

/* ==================================================================
   10. GRAFIK (tooltip memakai CSS saja)
   ================================================================== */

.cw {
  position: relative;
}

.bg .band {
  fill: transparent;
  transition: fill .2s;
}

.tip {
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}

.tip rect {
  fill: #fff;
  stroke: #e5e9f0;
  filter: drop-shadow(0 4px 8px #1f3a5f22);
  animation: none;
  transform: none;
}

.tip text {
  font-size: 10px;
  font-family: Inter, sans-serif;
}

.tip .t1 {
  fill: #2f4fa8;
}

.tip .a {
  fill: #3b82f6;
}

.tip .b {
  fill: #1e293b;
}

.ds {
  cursor: pointer;
}

.hl {
  text-align: center;
  font-size: 10px;
  color: #64748b;
}

/* ==================================================================
   11. ANIMASI
   ("backwards" dipakai agar efek hover tetap jalan setelah animasi selesai)
   ================================================================== */

@keyframes up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pop {
  0% { opacity: 0; transform: scale(.6); }
  70% { transform: scale(1.08); }
  100% { opacity: 1; transform: none; }
}
@keyframes grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes spin {
  from { opacity: 0; transform: rotate(-80deg) scale(.88); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb,var(--c) 60%,transparent); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}
@keyframes float {
  to { transform: translate(-22px,16px); }
}
@keyframes ln {
  from { transform: scaleX(0); }
}
@keyframes shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@keyframes fm {
  from { opacity: 0; transform: translateY(-3px); }
}

.pill::before {
  --c: #22c55e;
  animation: pulse 2s ease-out infinite;
}

.pill.off::before {
  --c: #ef4444;
}

.hp::before {
  animation: float 14s ease-in-out infinite alternate;
}

.hp::after {
  animation: float 18s ease-in-out infinite alternate-reverse;
}

.hi > * {
  animation: up .7s cubic-bezier(.2, .8, .2, 1) backwards;
}

.hi > :nth-child(2) {
  animation-delay: .08s;
}

.hi > :nth-child(3) {
  animation-delay: .16s;
}

.hi > :nth-child(4) {
  animation-delay: .24s;
}

.pv,
.login .box {
  animation: up .7s cubic-bezier(.2, .8, .2, 1) backwards;
}

.sc {
  animation: up .6s cubic-bezier(.2, .8, .2, 1) backwards;
}

.sc:nth-child(2) {
  animation-delay: .06s;
}

.sc:nth-child(3) {
  animation-delay: .12s;
}

.sc:nth-child(4) {
  animation-delay: .18s;
}

.pub main:not(.hp) > * {
  animation: up .6s cubic-bezier(.2, .8, .2, 1) backwards;
}

.pub main:not(.hp) > :nth-child(2) {
  animation-delay: .07s;
}

.pub main:not(.hp) > :nth-child(3) {
  animation-delay: .14s;
}

.pub main:not(.hp) > :nth-child(4) {
  animation-delay: .2s;
}

.main > *:not(.stats) {
  animation: up .5s cubic-bezier(.2, .8, .2, 1) backwards;
}

.main > :nth-child(2) {
  animation-delay: .05s;
}

.main > :nth-child(3) {
  animation-delay: .1s;
}

.main > :nth-child(4) {
  animation-delay: .15s;
}

.st {
  animation: up .5s cubic-bezier(.2, .8, .2, 1) backwards;
}

.st:nth-child(2) {
  animation-delay: .05s;
}

.st:nth-child(3) {
  animation-delay: .1s;
}

.st:nth-child(4) {
  animation-delay: .15s;
}

.st:nth-child(5) {
  animation-delay: .2s;
}

tbody tr {
  animation: fade .5s .1s backwards;
}

.cw rect:not(.band) {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: grow .8s cubic-bezier(.2, .8, .2, 1) backwards;
  animation-delay: var(--d, 0s);
}

.cw g:nth-of-type(2) {
  --d: .05s;
}

.cw g:nth-of-type(3) {
  --d: .1s;
}

.cw g:nth-of-type(4) {
  --d: .15s;
}

.cw g:nth-of-type(5) {
  --d: .2s;
}

.cw g:nth-of-type(6) {
  --d: .25s;
}

.cw g:nth-of-type(7) {
  --d: .3s;
}

.cw g:nth-of-type(8) {
  --d: .35s;
}

.cw g:nth-of-type(9) {
  --d: .4s;
}

.dn svg {
  animation: spin .9s cubic-bezier(.2, .8, .2, 1) backwards;
}

.done,
.ok,
.rc {
  animation: up .45s cubic-bezier(.2, .8, .2, 1) backwards;
}

.done .ck {
  animation: pop .6s .15s backwards;
}

/* Kotak tooltip di dalam grafik tidak ikut animasi tumbuh */
.cw .tip rect {
  animation: none;
}

/* ==================================================================
   12. EFEK HOVER & FOKUS
   ================================================================== */

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.card,
.sc,
.btn,
.sm,
.chip,
.hb a,
.cs button,
.side a,
.qa a,
.nav nav a,
tbody tr,
input,
select,
textarea {
  transition: transform .2s, box-shadow .25s, border-color .25s, background-color .2s, color .2s, filter .2s;
}

.svc:hover,
.sc:hover,
.st:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px #1f3a5f1a;
}

.btn:hover:not(:disabled),
.hb a:hover,
.cs button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.hb .w:hover {
  box-shadow: 0 8px 20px #0003;
}

.btn:active,
.sm:active,
.chip:active,
.hb a:active,
.cs button:active {
  transform: scale(.97);
}

.sm:hover,
.chip:hover {
  border-color: #b8c4d9;
}

.nav nav a:hover {
  color: #fff;
}

.side a:hover {
  background: #ffffff14;
  color: #fff;
  transform: translateX(3px);
}

.side a.on:hover {
  background: #4a607f;
}

.qa a:hover {
  transform: translateX(3px);
}

tbody tr:hover {
  background: #f7f9fc;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px #3b82f622;
}

.bad:focus {
  box-shadow: 0 0 0 3px #e5484d22 !important;
}

.qa a:hover {
  background: #f3f6fb;
}

.me .lo:hover {
  background: #ffffff14;
  color: #fff;
}

.bg:hover .band {
  fill: #f3f5f9;
}

.bg:hover .tip,
.ds:hover .tip {
  opacity: 1;
}

.ds path,
.ds circle {
  transition: opacity .15s;
}

.dn:hover .ds path,
.dn:hover .ds circle {
  opacity: .45;
}

.dn .ds:hover path,
.dn .ds:hover circle {
  opacity: 1;
}

/* ==================================================================
   13. RESPONSIF
   ================================================================== */

@media (max-width: 900px) {
  .sg {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .mg {
    grid-template-columns: 1fr;
  }

  .nav nav {
    gap: 12px;
  }

  .nav nav a {
    font-size: 12px;
  }

  .fg {
    grid-template-columns: 1fr;
  }

  .app {
    flex-direction: column;
  }

  .side {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding: 8px;
  }

  .side .brand,
  .me,
  .side .sp {
    display: none;
  }

  .side a {
    white-space: nowrap;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .two,
  .stt {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 16px;
  }

  .tw {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .kg {
    grid-template-columns: 1fr;
  }

  .sk {
    padding: 20px;
  }

  .sg {
    grid-template-columns: 1fr;
  }

}

/* ==================================================================
   14. KURANGI GERAKAN (untuk pengguna yang mematikan animasi di perangkatnya)
   ================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* ==================================================================
   15. TAMBAHAN: PENCOCOKAN BARANG & NOTIFIKASI
   ================================================================== */

.flash {
  max-width: 760px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}
.flash.ok2 {
  background: #e9fbef;
  border: 1px solid #b7ecc7;
  color: #166534;
}
.flash.er2 {
  background: #fdecec;
  border: 1px solid #f7c6c6;
  color: #b42318;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tabs .chip {
  font-size: 12px;
  padding: 8px 14px;
}

.btnrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumb {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef1f6;
}

.ket {
  font-size: 10px;
  color: var(--mut);
}

.saran a {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 3px 9px;
  border-radius: 10px;
  background: #eef3ff;
  color: #2f5fc9;
  font-size: 10px;
  font-weight: 600;
}
.saran a:hover {
  background: #dce9ff;
}

td .sm {
  display: inline-block;
  margin: 0 4px 4px 0;
}

/* Halaman WhatsApp (admin) */
.wa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  .wa-grid { grid-template-columns: 1fr; }
}


/* Foto pop-up (tanpa JavaScript: memakai :target) */
.thumb-link {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}
.thumb-link .thumb {
  transition: transform .25s;
}
.thumb-link:hover .thumb {
  transform: scale(1.12);
}
a.imgbox {
  display: block;
  cursor: zoom-in;
}
a.imgbox img {
  transition: transform .25s;
}
a.imgbox:hover img {
  transform: scale(1.04);
}
.fimg {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox:target {
  display: flex;
  animation: fade .2s backwards;
}
.lb-latar {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .8);
  cursor: zoom-out;
}
.lb-isi {
  position: relative;
  margin: 0;
  max-width: min(92vw, 900px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lb-isi img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lb-isi figcaption {
  color: #e5e9f0;
  font-size: 12px;
  text-align: center;
}
.lb-isi figcaption a {
  color: #9fc2ff;
  text-decoration: underline;
}
.lb-x {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.lb-x:hover {
  background: #f1f5f9;
}


/* ==================================================================
   16. KOTAK CEK STATUS DI BERANDA (kartu putih melayang + transisi mulus)
   ================================================================== */

/* Hero memudar ke warna navy di bagian bawah supaya tidak ada garis pemisah */
.hp .hi {
  z-index: 2;
  padding-bottom: 84px;
}
.hp-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(31, 58, 95, 0), var(--navy));
}

/* Bagian di bawah hero: navy yang perlahan berubah menjadi warna halaman */
.cs {
  position: relative;
  z-index: 2;
  margin-top: -48px;
  padding: 0 16px 56px;
  background: linear-gradient(to bottom, var(--navy) 0, var(--navy) 48px, var(--bg) 100%);
  color: var(--tx);
  text-align: left;
}

.cs-card {
  max-width: 890px;
  margin: 0 auto;
  padding: 26px 32px 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .06);
  animation: up .7s cubic-bezier(.2, .8, .2, 1) backwards;
}

.cs-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font: 600 18px Poppins, Inter, sans-serif;
  color: #1b2a4f;
}
.cs-card h2 svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: #f5a524;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.cs-card > p {
  margin: 0 0 18px;
  font-size: 12px;
  color: #8a97b5;
}

.cs-card > form {
  display: flex;
  gap: 12px;
}
.cs-card > form input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
}
.cs-card > form button {
  height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: #1b2a4f;
  color: #fff;
  font: 600 14px Poppins, Inter, sans-serif;
  white-space: nowrap;
}

.cs-card output {
  display: block;
  margin-top: 16px;
}
.cs-card output:empty,
.cs-card output:not(:has(*)) {
  display: none;
}
.cs-card .sk {
  margin-top: 0;
  box-shadow: none;
  border-radius: 14px;
}
.cs-card .rc {
  background: #fff6f6;
  border: 1px solid #f7c6c6;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .cs-card {
    padding: 22px 18px 24px;
  }
  .cs-card > form {
    flex-direction: column;
  }
}
