/* =========================================================================
   Mari Berbagi — tema "Modern Orange Putih"
   Mobile-first: aplikasi tampil seperti app HP (app bar + tab bar bawah),
   panel admin memakai sidebar.
   ========================================================================= */

:root {
  --oranye-50:  #FFF7ED;
  --oranye-100: #FFEDD5;
  --oranye-200: #FED7AA;
  --oranye-300: #FDBA74;
  --oranye-400: #FB923C;
  --oranye-500: #F97316;
  --oranye-600: #EA580C;
  --oranye-700: #C2410C;
  --ink:      #1C1917;
  --ink-2:    #3F3A36;
  --muted:    #78716C;
  --muted-2:  #A8A29E;
  --line:     #F1E7DF;
  --putih:    #FFFFFF;
  --bg:       #FFFBF7;
  --hijau:    #15803D;
  --hijau-bg: #DCFCE7;
  --biru:     #1D4ED8;
  --biru-bg:  #DBEAFE;
  --ungu:     #6D28D9;
  --ungu-bg:  #EDE9FE;
  --kuning:   #B45309;
  --kuning-bg: #FEF3C7;
  --merah:    #B91C1C;
  --merah-bg: #FEE2E2;
  --radius:   18px;
  --radius-sm: 12px;
  --shadow:   0 10px 30px rgba(234, 88, 12, .09);
  --shadow-2: 0 16px 40px rgba(28, 25, 23, .10);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(58% 38% at 8% -4%, rgba(251, 146, 60, .28), transparent 62%),
    radial-gradient(48% 32% at 104% 2%, rgba(253, 186, 116, .30), transparent 60%),
    radial-gradient(60% 40% at 50% 108%, rgba(254, 215, 170, .34), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 15px;
}

a { color: var(--oranye-600); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .35em; line-height: 1.28; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .8em; }
img { max-width: 100%; display: block; }
small { font-size: .8rem; }
.muted { color: var(--muted); }
.kecil { font-size: .82rem; }
.tebal { font-weight: 650; }
.tengah { text-align: center; }
.kanan { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 32px; }
.wrap { flex-wrap: wrap; }
.ico { flex: 0 0 auto; vertical-align: -3px; }

/* ------------------------------------------------------------ shell publik */

.app-shell {
  max-width: 620px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px calc(104px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.app-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 251, 247, .82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .65);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand strong { display: block; font-size: 1rem; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.2; }

/* blok identitas brand (halaman profil lembaga) */
.brand-blok { display: flex; align-items: center; gap: 14px; }
.brand-blok strong { display: block; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.15; }
.brand-induk { display: block; color: var(--muted); font-size: .8rem; }
.brand-tagline {
  display: block; margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic; font-weight: 600;
  color: var(--marun, #9A2A20); font-size: .82rem;
}
.bar-aksi { display: flex; align-items: center; gap: 8px; }
.ikon-tombol {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .68);
  color: var(--ink-2);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, .07);
}
.ikon-tombol:hover { background: #fff; color: var(--oranye-600); }
.titik {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--oranye-600); color: #fff;
  font-size: .66rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.app-main { flex: 1 1 auto; padding-top: 16px; }

.tabbar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 100%; max-width: 620px;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(241, 231, 223, .9);
  box-shadow: 0 -8px 26px rgba(28, 25, 23, .06);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 2px;
  border-radius: 12px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 550;
}
.tab.aktif { color: var(--oranye-600); background: var(--oranye-50); }
.tab.aktif .ico { stroke-width: 2.1; }

.fab-wa {
  position: fixed;
  right: max(16px, calc(50% - 310px + 16px));
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #34D399, #15803D);
  color: #fff; font-weight: 650; font-size: .84rem;
  box-shadow: 0 12px 26px rgba(21, 128, 61, .34);
}
.fab-wa:hover { color: #fff; filter: brightness(1.05); }

/* ------------------------------------------------------------ kartu & blok */

.kartu {
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.kartu > :last-child { margin-bottom: 0; }
.kartu-judul {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.kartu-judul h2, .kartu-judul h3 { margin: 0; }
.kartu-judul .icon-bullet {
  width: 34px; height: 34px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--oranye-50); color: var(--oranye-600);
}
.seksi { margin-bottom: 32px; }
.seksi-judul { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.seksi-judul h2 { margin: 0; font-size: 1.12rem; }
.seksi-judul a { font-size: .84rem; font-weight: 600; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px 22px;
  margin-bottom: 24px;
  color: #fff;
  background: linear-gradient(135deg, #FB923C 0%, #F97316 48%, #EA580C 100%);
  box-shadow: 0 18px 40px rgba(234, 88, 12, .30);
}
.hero h1 { color: #fff; font-size: 1.5rem; }
.hero p { color: rgba(255, 255, 255, .93); margin-bottom: 16px; }
.hero::after {
  content: "";
  position: absolute; right: -40px; top: -60px;
  width: 190px; height: 190px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.hero-mini { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-pil {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 12px; padding: 8px 12px; font-size: .78rem;
}
.hero-pil b { display: block; font-size: .98rem; }

.grid { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.grid-program { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.stat {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}
.stat-ikon {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--oranye-50); color: var(--oranye-600);
}
.stat-label { display: block; color: var(--muted); font-size: .76rem; }
.stat-nilai { display: block; font-size: 1.18rem; letter-spacing: -.02em; }
.stat small { color: var(--muted-2); }
.stat.emas .stat-ikon { background: #FEF3C7; color: #B45309; }
.stat.hijau .stat-ikon { background: var(--hijau-bg); color: var(--hijau); }
.stat.biru .stat-ikon { background: var(--biru-bg); color: var(--biru); }

/* ------------------------------------------------------------ tombol */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 13px;
  border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: .9rem;
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #FB923C, #EA580C);
  color: #fff;
  box-shadow: 0 10px 22px rgba(234, 88, 12, .28);
}
.btn-primary:hover { color: #fff; filter: brightness(1.04); }
.btn-outline { background: #fff; border-color: var(--oranye-200); color: var(--oranye-700); }
.btn-outline:hover { background: var(--oranye-50); }
.btn-ghost { background: rgba(255, 255, 255, .7); border-color: var(--line); color: var(--ink-2); }
.btn-wa { background: linear-gradient(135deg, #34D399, #15803D); color: #fff; }
.btn-wa:hover { color: #fff; }
.btn-danger { background: var(--merah-bg); color: var(--merah); border-color: #FECACA; }
.btn-sm { padding: 8px 12px; font-size: .8rem; border-radius: 10px; }
.btn-blok { width: 100%; }
.btn-baris { display: flex; gap: 10px; flex-wrap: wrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* nominal cepat */
.pilih-nominal { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; }
.pilih-nominal label {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 8px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--oranye-100);
  background: #fff; font-weight: 650; font-size: .88rem; color: var(--ink-2);
}
.pilih-nominal input { position: absolute; opacity: 0; pointer-events: none; }
.pilih-nominal input:checked + span { color: var(--oranye-700); }
.pilih-nominal label:has(input:checked) {
  border-color: var(--oranye-500);
  background: var(--oranye-50);
  box-shadow: 0 6px 16px rgba(249, 115, 22, .14);
}

/* ------------------------------------------------------------ formulir */

.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: 6px; color: var(--ink-2); }
.field .bantuan { display: block; color: var(--muted); font-size: .76rem; margin-top: 5px; }
input[type=text], input[type=number], input[type=password], input[type=date], input[type=month],
input[type=email], input[type=tel], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--oranye-400);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, .16);
}
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--oranye-600); }
.form-baris { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 16px; }
.form-aksi { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }

/* ------------------------------------------------------------ badge, chip, alert */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 650; white-space: nowrap;
}
.badge-ok { background: var(--hijau-bg); color: var(--hijau); }
.badge-warn { background: var(--kuning-bg); color: var(--kuning); }
.badge-danger { background: var(--merah-bg); color: var(--merah); }
.badge-info { background: var(--biru-bg); color: var(--biru); }
.badge-abu { background: #F5F5F4; color: var(--muted); }
.badge-oranye { background: var(--oranye-100); color: var(--oranye-700); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--oranye-700); font-size: .7rem; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .7);
}
.chip-selesai { position: absolute; right: 10px; bottom: 10px; background: #fff; color: var(--hijau); }

.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 15px; border-radius: 14px;
  margin-bottom: 18px; font-size: .88rem;
  border: 1px solid transparent;
}
.alert-success { background: var(--hijau-bg); color: #14532D; border-color: #BBF7D0; }
.alert-warning { background: var(--kuning-bg); color: #78350F; border-color: #FDE68A; }
.alert-danger { background: var(--merah-bg); color: #7F1D1D; border-color: #FECACA; }
.alert-info { background: var(--biru-bg); color: #1E3A8A; border-color: #BFDBFE; }

.kotak-info {
  background: var(--oranye-50);
  border: 1px dashed var(--oranye-200);
  border-radius: 14px; padding: 14px 16px;
  font-size: .88rem; color: var(--ink-2);
}
.kotak-info strong { color: var(--oranye-700); }
.kotak-salin {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  margin-bottom: 10px;
}
.kotak-salin b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; }

/* ------------------------------------------------------------ program */

.program-kartu {
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .2s ease;
}
.program-kartu:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.program-thumb {
  position: relative;
  height: 116px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.program-thumb img { width: 100%; height: 100%; object-fit: cover; }
.program-thumb.jenis-oranye { background: linear-gradient(135deg, #FDBA74, #EA580C); }
.program-thumb.jenis-hijau { background: linear-gradient(135deg, #6EE7B7, #15803D); }
.program-thumb.jenis-biru { background: linear-gradient(135deg, #93C5FD, #1D4ED8); }
.program-thumb.jenis-ungu { background: linear-gradient(135deg, #C4B5FD, #6D28D9); }
.program-thumb.jenis-abu { background: linear-gradient(135deg, #D6D3D1, #57534E); }
.program-thumb .chip-jenis { position: absolute; left: 10px; top: 10px; }
.program-isi { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.program-isi h3 { margin: 0; font-size: 1rem; }
.program-isi p { margin: 0; color: var(--muted); font-size: .84rem; }
.program-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; gap: 10px; }
.program-meta b { color: var(--oranye-700); }
.program-meta .target { color: var(--muted); }
.program-kaki {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: .76rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto;
}
.program-kaki span { display: inline-flex; align-items: center; gap: 5px; }

.progress {
  height: 9px; border-radius: 999px; background: var(--oranye-100);
  overflow: hidden;
}
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #FB923C, #EA580C);
  border-radius: 999px;
}
.progress.besar { height: 13px; }

.filter-baris { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.filter-baris::-webkit-scrollbar { display: none; }
.pil {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .86); border: 1px solid var(--line);
  color: var(--muted); font-size: .82rem; font-weight: 600;
}
.pil.aktif { background: var(--oranye-600); border-color: var(--oranye-600); color: #fff; }

.detail-hero {
  border-radius: 20px; overflow: hidden; margin-bottom: 20px;
  min-height: 150px; display: flex; align-items: flex-end; padding: 18px;
  color: #fff; position: relative;
}
.detail-hero h1 { color: #fff; margin: 0; font-size: 1.3rem; }
.detail-hero .chip { background: rgba(0, 0, 0, .22); color: #fff; border: none; }

.ringkas-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 14px; }
.ringkas-info > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ringkas-info span { display: block; color: var(--muted); font-size: .74rem; }
.ringkas-info b { font-size: .96rem; }

.donasi-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.donasi-item:last-child { border-bottom: none; }
.avatar {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--oranye-50); color: var(--oranye-600); font-weight: 700; font-size: .86rem;
}
.donasi-isi { flex: 1 1 auto; min-width: 0; }
.donasi-isi b { display: block; font-size: .9rem; }
.donasi-isi span { color: var(--muted); font-size: .76rem; }
.donasi-nominal { font-weight: 700; color: var(--oranye-700); white-space: nowrap; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--oranye-200), rgba(254, 215, 170, .2));
}
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -22px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--oranye-500); border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px var(--oranye-100);
}
.timeline-item.rencana::before { background: var(--biru); box-shadow: 0 0 0 2px var(--biru-bg); }
.timeline-kepala { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.timeline-item h4 { margin: 0; font-size: .94rem; }
.timeline-item p { margin: 4px 0 0; font-size: .84rem; color: var(--ink-2); }
.timeline-item .meta { color: var(--muted); font-size: .76rem; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ------------------------------------------------------------ tabel */

.table-wrap {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
table.data { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .86rem; }
table.data th {
  text-align: left; padding: 12px 14px; background: var(--oranye-50);
  color: var(--oranye-700); font-size: .76rem; font-weight: 700; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: rgba(255, 247, 237, .7); }
table.data td.angka, table.data th.angka { text-align: right; white-space: nowrap; }
table.data tfoot td { font-weight: 700; background: rgba(255, 247, 237, .8); }

/* ------------------------------------------------------------ admin */

.app-admin { background: #FBF8F5; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 262px; flex: 0 0 262px;
  background: linear-gradient(180deg, #1C1917, #292524);
  color: #E7E5E4;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  padding: 18px 14px;
  overflow-y: auto;   /* bila layar pendek, seluruh sidebar dapat digulir */
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; }
.admin-brand strong { display: block; color: #fff; font-size: .96rem; }
.admin-brand small { color: #A8A29E; font-size: .72rem; }
.admin-nav {
  display: flex; flex-direction: column; gap: 3px;
  flex: 1 1 auto;
  min-height: 0;      /* tanpa ini flex item menolak menyusut -> menu bawah terpotong */
  overflow-y: auto;
}
.nav-grup {
  display: block; margin: 14px 10px 6px; font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: #78716C; font-weight: 700;
}
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 11px;
  color: #D6D3D1; font-size: .87rem; font-weight: 550;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav a.aktif {
  background: linear-gradient(135deg, #FB923C, #EA580C);
  color: #fff; box-shadow: 0 8px 18px rgba(234, 88, 12, .32);
}
.admin-side-foot { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.admin-side-foot a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #A8A29E; font-size: .84rem; }
.admin-side-foot a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-side-foot a.keluar:hover { background: rgba(248, 113, 113, .2); color: #FCA5A5; }

.admin-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.admin-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.admin-bar h1 { font-size: 1.12rem; margin: 0; flex: 1 1 auto; }
.admin-user { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; }
.admin-main { padding: 24px 22px 40px; max-width: 1180px; width: 100%; }
.admin-foot { padding: 18px 22px 30px; color: var(--muted-2); font-size: .78rem; }
.admin-bar .ikon-tombol { display: none; }

.aksi-baris { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.panel-filter {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius); padding: 16px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.panel-filter .field { margin-bottom: 0; min-width: 150px; }
.panel-filter .field.cari { flex: 1 1 220px; }

.kartu-angka { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }

/* ------------------------------------------------------------ grafik & ring */

.chart { width: 100%; height: auto; display: block; }
.ring { display: block; margin: 0 auto; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* ------------------------------------------------------------ kosong */

.kosong {
  text-align: center; padding: 34px 20px; color: var(--muted);
  border: 1px dashed var(--oranye-200); border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
}
.kosong .stat-ikon { margin: 0 auto 12px; }

/* ------------------------------------------------------------ login */

.halaman-sempit { max-width: 440px; margin: 0 auto; }
.tengah-layar { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 20px 40px; }

/* ------------------------------------------------------------ cetak / PDF */

.print-head { display: none; }

@media print {
  .app-bar, .tabbar, .fab-wa, .btn, .admin-side, .admin-bar, .admin-foot, .panel-filter, .no-print { display: none !important; }
  body { background: #fff; font-size: 11.5pt; }
  .app-shell, .admin-main { max-width: none; padding: 0; }
  .kartu, .table-wrap, .stat { box-shadow: none; border: 1px solid #ddd; background: #fff; break-inside: avoid; }
  .print-head { display: block; text-align: center; border-bottom: 2.5px solid #EA580C; padding-bottom: 12px; margin-bottom: 18px; }
  .print-head strong { font-size: 15pt; display: block; }
  table.data { min-width: 0; font-size: 9.5pt; }
  table.data th { background: #FFEDD5; color: #7C2D12; }
  .cetak-blok { display: none; }
  .cetak-blok.tampil { display: block; }
}

/* ------------------------------------------------------------ responsif */

@media (max-width: 900px) {
  .admin-side {
    position: fixed; z-index: 60; left: 0; top: 0;
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, .35);
  }
  .admin-side.terbuka { transform: translateX(0); }
  .admin-bar .ikon-tombol { display: inline-flex; }
  .admin-main { padding: 18px 16px 40px; }
  .admin-bar { padding: 12px 14px; }
  .admin-user span { display: none; }
}

@media (min-width: 901px) {
  #sideToggle { display: none; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.28rem; }
  .tab span { font-size: .64rem; }
  .fab-wa span { display: none; }
  .fab-wa { padding: 13px; }
}

/* ------------------------------------------------------------ QRIS / rekening */

.rekening-kartu {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 16px;
}
.rekening-kartu.nonaktif { opacity: .62; background: #FAFAF9; }
.rekening-grid { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 18px; align-items: start; }
.rekening-grid > * { min-width: 0; }
.rekening-qris { display: flex; flex-direction: column; }
.qris-pratinjau {
  width: 100%; max-width: 232px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; padding: 6px;
}
.qris-kosong {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 120px; padding: 14px; text-align: center;
  border: 1px dashed var(--oranye-200); border-radius: 12px;
  background: var(--oranye-50); color: var(--muted);
}
.qris-mini {
  width: 46px; height: 46px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 3px;
}
.qris-blok {
  margin-top: 14px; text-align: center;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; background: #fff;
}
.qris-blok img {
  width: 100%; max-width: 300px; margin: 10px auto;
  border-radius: 12px; border: 1px solid var(--line); padding: 6px; background: #fff;
}

@media (max-width: 760px) {
  .rekening-grid { grid-template-columns: minmax(0, 1fr); }
  .qris-pratinjau { max-width: 100%; }
}
