/* =============================================================================
   siteplan.siproper.com
   Palet mengikuti identitas Sapphire Grup: merah marun tua + emas.
   Nilainya diambil dari Laporan/konsolidasi/index.blade.php di si-proper
   supaya kedua aplikasi terasa satu keluarga.

   Ditulis tangan tanpa kerangka kerja CSS: halaman ini sedikit, memasang
   Bootstrap/Tailwind hanya menambah beban unduh tanpa manfaat nyata.
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* -- identitas Sapphire Grup -- */
  --red:      #9B1B1B;
  --red-dk:   #6E1212;
  --gold:     #C9A227;
  --gold-lt:  #E8D49A;
  --cream:    #fbf5ec;
  --cream-dk: #f3e6c9;

  /* -- netral -- */
  --bg:        #f7f5f2;
  --surface:   #ffffff;
  --line:      #e8e2d8;
  --ink:       #2A1F1F;
  --ink-soft:  #6b5d55;
  --ink-faint: #a08f7d;

  --radius:    14px;
  --shadow:    0 1px 2px rgba(42,31,31,.05), 0 2px 8px rgba(42,31,31,.06);
  --shadow-md: 0 6px 20px rgba(42,31,31,.10);
  --shadow-lg: 0 18px 44px rgba(42,31,31,.20);
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ----------------------------------------------------------------- topbar -- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.brand-txt span { font-size: 11px; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; }

.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .topbar-in { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .topbar-right { width: 100%; }
  /* min-width:0 pada input WAJIB: bawaan flex-basis membuat input menolak
     menyusut, sehingga tombol Cari terdorong keluar tepi layar. */
  .search { width: 100%; }
  .search input { flex: 1 1 auto; min-width: 0; }
  .topbar-right > .btn { flex: 0 0 auto; }
}

/* -------------------------------------------------------------------- hero - */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dk) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* Cahaya emas samar di pojok -- meniru aksen hero di laporan si-proper. */
.hero::after {
  content: '';
  position: absolute;
  top: -140px; right: -100px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(201,162,39,.40), transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; padding: 46px 0 40px; }
.hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.hero p { margin: 0; max-width: 560px; color: rgba(255,255,255,.86); font-size: 15px; }

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 22px; }
.hero-stat .n {
  display: block;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--gold-lt);
}
.hero-stat .l {
  display: block;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}

@media (max-width: 600px) {
  .hero-in { padding: 32px 0 28px; }
  .hero h1 { font-size: 23px; }
}

/* --------------------------------------------------------------- tombol ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--cream); text-decoration: none; }

.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dk); border-color: var(--red-dk); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a07d10);
  border: none;
  color: #3a2a00;
  font-weight: 600;
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

.btn-wa { background: #128c7e; border-color: #128c7e; color: #fff; }
.btn-wa:hover { background: #0e7568; }

.btn-danger { color: var(--red); border-color: #eccfcf; }
.btn-danger:hover { background: #fdf3f3; }

.btn-sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* --------------------------------------------------------------- formulir -- */
.search { display: flex; gap: 8px; }

input[type=text], input[type=search], input[type=email],
input[type=password], input[type=url], select, textarea {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold-lt);
  outline-offset: -1px;
  border-color: var(--gold);
}
/* Lebar nyaman di desktop. Di layar sempit dikecilkan lagi oleh media query
   di bawah -- diletakkan SETELAH aturan ini supaya menang tanpa !important. */
.search input { min-width: 210px; }

@media (max-width: 720px) {
  /* Tanpa min-width:0, bawaan flex membuat input menolak menyusut sehingga
     tombol "Cari" terdorong keluar tepi layar. */
  .search input { min-width: 0; }
}

label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.hint { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.err { font-size: 12.5px; color: var(--red); margin-top: 4px; }

input[type=file] {
  width: 100%;
  padding: 9px 12px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: var(--cream);
  font-size: 13px;
}

/* ---------------------------------------------------------------- alert ---- */
.alert {
  padding: 11px 14px;
  border-radius: 9px;
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid transparent;
}
.alert-ok  { background: #edf7ed; border-color: #cfe8cf; color: #1f5c1f; }
.alert-bad { background: #fdf3f3; border-color: #f3d9d9; color: var(--red-dk); }

/* ------------------------------------------------------- kartu proyek ----- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 28px 0 16px;
}
.section-head h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.section-head .muted { font-size: 13.5px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 20px;
  padding-bottom: 44px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
}
.card:hover { box-shadow: var(--shadow-md); }

/* -- gambar sampul -- */
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--cream), var(--cream-dk));
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.card:hover .card-media img { transform: scale(1.04); }

/* Sampul belum diunggah: tampilkan lambang, bukan kotak kosong. */
.card-media-kosong {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.card-media-kosong img { width: 60px; height: 60px; object-fit: contain; opacity: .32; }

/* Lencana ketersediaan di atas gambar */
.card-badge {
  position: absolute;
  top: 11px; left: 11px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 1px 5px rgba(42,31,31,.18);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #1f6b3f;
}
.card-badge.habis { color: var(--ink-soft); }

.card-body { padding: 15px 16px 0; }
.card-body h3 { margin: 0 0 3px; font-size: 16.5px; font-weight: 650; letter-spacing: -.015em; }
.card-body .loc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  gap: 5px;
  align-items: flex-start;
}
.card-body .loc svg { flex: 0 0 auto; margin-top: 2px; opacity: .55; }

.card-stats {
  display: flex;
  gap: 24px;
  margin: 14px 16px 0;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
}
.stat .n { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.stat .l { display: block; font-size: 10.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.stat.ok .n { color: #1f6b3f; }

/* -- baris tombol galeri + siteplan -- */
.card-foot {
  display: flex;
  gap: 7px;
  padding: 14px 16px 16px;
  margin-top: auto;
}
.card-foot .btn { flex: 0 0 auto; }
.card-foot .btn-plan { flex: 1 1 auto; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
}
.chip:hover:not([disabled]) { background: var(--cream); color: var(--ink); border-color: var(--gold-lt); }
.chip[disabled] { opacity: .42; cursor: not-allowed; }
.chip .n { color: var(--ink-faint); font-weight: 400; }

/* ------------------------------------------------------------- siteplan ---- */
.sp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 16px;
}
.sp-head h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.025em; }
.sp-head .loc { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.sp-head-act { display: flex; gap: 8px; flex-wrap: wrap; }

.legend { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; }
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
}
.legend-key { width: 11px; height: 11px; border-radius: 3px; border: 1px solid rgba(42,31,31,.22); flex: 0 0 auto; }
/* Status tanpa isian (mis. 'available'): kotak kosong bergaris putus-putus,
   supaya jelas "tidak diwarnai" bukan "diwarnai kelabu". */
.legend-key-kosong { background: transparent; border-style: dashed; border-color: var(--ink-faint); }
.legend-item .n { color: var(--ink-faint); font-weight: 400; }

.map-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  margin-bottom: 14px;
}
.map-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#mapplic-inner { width: 1200px; }
#mapplic { width: 100%; height: auto; user-select: none; }

@media (min-width: 900px) {
  .map-scroll { overflow-x: visible; }
  #mapplic-inner { width: 100%; }
}

/* Mapplic memasang pin bulat di tiap unit; siteplan kami memakai warna isian
   bentuk SVG sebagai penanda, jadi pin justru menutupi peta. */
.mapplic-pin { display: none !important; }
/* Legenda bawaan mapplic dimatikan -- legenda kami sendiri sudah tampil di
   atas peta, lengkap dengan jumlah unit per status. */
.mapplic-legend { display: none !important; }

.sp-hint {
  padding-bottom: 34px;
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* ---------------------------------------------------------------- modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(42,31,31,.62);
}
.modal.open { display: flex; }
.modal-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-box.lebar { max-width: 940px; }
.modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 5;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: 0 1px 5px rgba(42,31,31,.24);
  font-size: 22px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.modal-close:hover { background: #fff; color: var(--ink); }

@media (max-width: 560px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-box, .modal-box.lebar { max-width: none; max-height: 92vh; border-radius: 16px 16px 0 0; }
}

/* ------------------------------------------------------- isi detail unit -- */
.unit-head { padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.unit-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.unit-status .dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(42,31,31,.25); }
.unit-status .dot-kosong { background: transparent; border-style: dashed; border-color: var(--ink-faint); }
.unit-head h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.unit-head .proj { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-soft); }

.unit-price { padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--cream); }
.unit-price .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.unit-price .val { font-size: 24px; font-weight: 700; letter-spacing: -.025em; color: var(--red-dk); }
.unit-price .note { font-size: 12.5px; color: var(--ink-soft); }

.unit-img { display: block; width: 100%; max-height: 210px; object-fit: cover; }

.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td {
  padding: 10px 20px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid #f5f1ea;
  vertical-align: top;
}
.spec th { width: 42%; font-weight: 500; color: var(--ink-soft); }
.spec td { font-weight: 500; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.unit-desc { padding: 14px 20px; font-size: 13.5px; color: var(--ink-soft); border-top: 1px solid var(--line); }

.unit-foot {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #fdfbf7;
}
.unit-foot .btn { flex: 1 1 auto; }

/* ---------------------------------------------------------------- galeri --- */
.gal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.gal-head h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
}
.gal-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 9px 7px;
  background: linear-gradient(transparent, rgba(42,31,31,.82));
  color: #fff;
  font-size: 12px;
  text-align: left;
  line-height: 1.3;
}
/* Tanda putar untuk kartu video */
.gal-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gal-play span {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(155,27,27,.92);
  box-shadow: 0 3px 12px rgba(42,31,31,.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gal-play svg { fill: #fff; margin-left: 3px; }

/* Pemutar / gambar besar di dalam modal */
.gal-stage { background: #1a1414; }
.gal-stage img, .gal-stage video, .gal-stage iframe {
  display: block;
  width: 100%;
  max-height: 74vh;
  border: 0;
  background: #1a1414;
}
.gal-stage iframe { aspect-ratio: 16 / 9; max-height: 74vh; }
.gal-stage-cap { padding: 11px 20px; font-size: 13.5px; color: var(--ink-soft); }

/* ------------------------------------------------------------ halaman masuk */
.auth-wrap {
  max-width: 400px;
  margin: 0 auto;
  padding: 48px 20px 60px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.auth-head {
  padding: 24px 24px 18px;
  text-align: center;
  background: linear-gradient(135deg, var(--red), var(--red-dk));
  color: #fff;
}
/* Lambang berwarna merah-emas nyaris hilang di atas latar marun. Diberi
   bantalan putih membulat supaya tetap terbaca, bukan diputihkan paksa
   (filter) yang justru menghapus warna khas Sapphire. */
.auth-head img {
  width: 54px; height: 54px;
  object-fit: contain;
  margin-bottom: 10px;
  padding: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
}
.auth-head h1 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.auth-head p { margin: 3px 0 0; font-size: 12.5px; color: rgba(255,255,255,.76); }
.auth-body { padding: 22px 24px 24px; }
.auth-body .btn { width: 100%; margin-top: 4px; }
.auth-remember { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-bottom: 14px; }
.auth-remember input { width: auto; min-height: 0; }
.auth-remember label { margin: 0; font-weight: 400; }

/* ---------------------------------------------------------------- admin ---- */
.admin-bar {
  background: var(--red-dk);
  color: #fff;
  font-size: 13px;
}
.admin-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 42px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.admin-bar a { color: var(--gold-lt); }
.admin-bar form { margin: 0; }
.admin-bar .btn { min-height: 30px; font-size: 12.5px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.panel-head h2 { margin: 0; font-size: 15.5px; letter-spacing: -.01em; color: var(--red-dk); }
.panel-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.panel-body { padding: 18px; }

.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { flex: 1 1 200px; margin-bottom: 0; }

/* petak media di halaman admin */
.adm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.adm-item {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.adm-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream);
  overflow: hidden;
}
.adm-thumb img, .adm-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-tag {
  position: absolute;
  top: 7px; left: 7px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(42,31,31,.76);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.adm-tag.cover { background: linear-gradient(135deg, var(--gold), #a07d10); color: #3a2a00; }
.adm-meta { padding: 9px 10px; font-size: 12.5px; color: var(--ink-soft); flex: 1 1 auto; }
.adm-act { display: flex; gap: 6px; padding: 0 10px 10px; }
.adm-act form { flex: 1 1 auto; margin: 0; }
.adm-act .btn { width: 100%; }

/* ------------------------------------------------------------- keadaan ---- */
.empty {
  padding: 52px 20px;
  margin-bottom: 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.empty h2 { margin: 0 0 6px; font-size: 17px; }
.empty p  { margin: 0 0 16px; color: var(--ink-soft); }

.pad { padding: 28px 20px; text-align: center; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

/* -------------------------------------------------------------- footer ---- */
.footer {
  flex: 0 0 auto;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.footer p { margin: 0; font-size: 12.5px; color: var(--ink-faint); }
/* Garis emas-merah tipis sebagai penutup, meniru aksen laporan si-proper. */
.footer-rule { height: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); }
