:root {
  --primary: #0e9f6e;
  --primary-dark: #057a55;
  --primary-soft: #e3f4ec;
  --primary-tint: #f1faf5;
  --ink: #0f1b2d;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e8ecf1;
  --bg: #f4f6f9;
  --card: #ffffff;
  --warning: #b7791f;
  --warning-soft: #fdf6e3;
  --danger: #e02424;
  --danger-soft: #fdecec;
  --info: #1c64f2;
  --info-soft: #ebf2fe;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
  --shadow: 0 8px 30px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 27, 45, 0.12);
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.01em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 940px; margin: 0 auto; padding: 0 18px; }

.app-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.app-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 18px; }
.brand .brand-logo { height: 64px; width: auto; max-width: 260px; object-fit: contain; display: block; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px;
  box-shadow: 0 4px 12px rgba(14, 159, 110, 0.35);
}
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.header-link {
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
}
.header-link:hover { border-color: var(--primary); color: var(--primary-dark); }
.header-icon-link {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 2px solid var(--primary); background: #fff; color: var(--primary-dark);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.header-icon-link svg { width: 22px; height: 22px; }
.header-icon-link:hover { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(14, 159, 110, 0.3); }

main { padding: 18px 0 80px; }

.page-title { font-size: 24px; font-weight: 800; margin: 6px 0 4px; }
.page-subtitle { color: var(--muted); margin: 0 0 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #0b8f63 0%, #057a55 55%, #035c41 100%);
  color: #fff; border-radius: 26px; padding: 40px 28px; margin: 8px 0 20px;
  box-shadow: 0 18px 40px -16px rgba(5, 122, 85, 0.55);
}
/* Lapisan dekoratif background */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.2px, transparent 1.2px);
  background-size: 22px 22px; opacity: 0.4;
  mask-image: linear-gradient(to bottom right, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 70%);
}
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.9; }
.hero-bg .blob-1 {
  width: 230px; height: 230px; right: -70px; top: -80px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 70%);
  animation: heroFloat 9s ease-in-out infinite;
}
.hero-bg .blob-2 {
  width: 160px; height: 160px; left: -50px; bottom: -60px;
  background: radial-gradient(circle at 50% 50%, rgba(120, 255, 200, 0.4), rgba(120, 255, 200, 0) 70%);
  animation: heroFloat 11s ease-in-out infinite reverse;
}
.hero-bg .blob-3 {
  width: 120px; height: 120px; right: 28%; bottom: -40px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 233, 150, 0.32), rgba(255, 233, 150, 0) 70%);
  animation: heroFloat 13s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-14px, 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg .blob { animation: none; }
}
.hero-inner { position: relative; }
.hero-photo { position: relative; }
.hero-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55); border: 3px solid rgba(255, 255, 255, 0.35);
}
.hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.2px;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hero h1 {
  margin: 0 0 12px; font-size: 28px; line-height: 1.2; font-weight: 800;
  letter-spacing: -0.4px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.hero p { margin: 0; opacity: 0.96; font-size: 15px; line-height: 1.6; max-width: 540px; }
.hero-photo { margin-top: 24px; }
.hero-photo img { max-height: 230px; }

@media (min-width: 760px) {
  .hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 32px; }
  .hero-text { min-width: 0; }
  .hero-photo { margin-top: 0; }
  .hero-photo img { max-height: 280px; }
}

@media (min-width: 600px) {
  .hero { padding: 52px 40px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
}

/* ---------- Category chips ---------- */
.cat-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 6px; -webkit-overflow-scrolling: touch; }
.cat-row::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; white-space: nowrap;
}
.cat.active, .cat:hover { background: var(--primary-soft); color: var(--primary-dark); border-color: transparent; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.card-body { padding: 18px; }

.cmp-card { display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cmp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cmp-cover { position: relative; }
.cmp-cover img, .cmp-cover .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--primary-soft); }
.cmp-pct {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(15, 27, 45, 0.78); color: #fff; backdrop-filter: blur(4px);
  font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px;
}
.cmp-status { position: absolute; right: 12px; top: 12px; }
.cmp-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cmp-title {
  font-size: 16px; font-weight: 800; margin: 0; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Progress ---------- */
.progress { height: 8px; background: var(--primary-soft); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); border-radius: 999px; transition: width 0.5s ease; }

.collected-label { font-size: 11px; color: var(--muted); margin-bottom: 1px; }
.collected-amt { font-size: 17px; font-weight: 800; color: var(--ink); }
.collected-amt small { font-size: 12px; font-weight: 600; color: var(--muted); }
.cmp-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 999px; letter-spacing: 0.02em; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.active { background: var(--primary-soft); color: var(--primary-dark); }
.badge.completed { background: var(--info-soft); color: var(--info); }
.badge.closed { background: #eef1f5; color: var(--muted); }
.badge.pending { background: var(--warning-soft); color: var(--warning); }
.badge.verified { background: var(--primary-soft); color: var(--primary-dark); }
.badge.rejected { background: var(--danger-soft); color: var(--danger); }
.badge.solid { background: rgba(255,255,255,0.92); color: var(--primary-dark); }
.badge.solid.completed { color: var(--info); }
.badge.solid.closed { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: none; border-radius: var(--r-md); padding: 14px 18px;
  font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: transform 0.05s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(14, 159, 110, 0.3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary-dark); border: 1.5px solid var(--primary); }
.btn-danger { background: #fff; color: var(--danger); border: 1.5px solid var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-ghost { background: #eef1f5; color: var(--ink-2); }
.btn-ghost:hover { background: #e3e8ef; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn.auto { width: auto; padding: 10px 18px; font-size: 14px; }
.btn-row { display: flex; gap: 10px; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 15;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 12px 0;
  box-shadow: 0 -6px 24px rgba(15, 27, 45, 0.08);
}
.sticky-cta .container { display: flex; align-items: center; gap: 14px; }
.sticky-cta .sc-info { flex: 1; min-width: 0; }
.sticky-cta .sc-info .collected-amt { font-size: 15px; }
.sticky-cta .btn { width: auto; flex: 0 0 auto; padding: 14px 26px; }
@media (max-width: 520px) { .sticky-cta .sc-info { display: none; } .sticky-cta .btn { width: 100%; } }

/* ---------- Stats strip (detail) ---------- */
.stat-strip { display: flex; gap: 8px; }
.stat-strip .ss { flex: 1; text-align: center; padding: 12px 6px; background: var(--primary-tint); border-radius: var(--r-md); }
.stat-strip .ss .n { font-size: 17px; font-weight: 800; color: var(--ink); }
.stat-strip .ss .l { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input, .textarea, .select {
  width: 100%; padding: 13px 15px; font-family: inherit; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.textarea { resize: vertical; min-height: 84px; }
.input-prefix { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.input-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.input-prefix span { padding: 13px 14px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; }
.input-prefix input { border: none; flex: 1; padding: 13px 15px; font-family: inherit; font-size: 18px; font-weight: 700; }
.input-prefix input:focus { outline: none; }
.error-text { color: var(--danger); font-size: 13px; margin-top: 6px; font-weight: 600; }

.field .hint { display: block; }
.check-row { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; cursor: pointer; margin-bottom: 0; }
.check-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.check-row span { font-weight: 600; }
input[type="file"].input { padding: 10px 12px; font-size: 14px; cursor: pointer; }
.banner-preview { margin-bottom: 10px; border-radius: var(--r-md); overflow: hidden; border: 1.5px solid var(--line); background: #f4f6f8; aspect-ratio: 16 / 9; }
.banner-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-preview.hidden { display: none; }

.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 15px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.chip:hover, .chip.active { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-tint); }

.method-options { display: grid; gap: 10px; }
.method { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 15px; cursor: pointer; display: flex; align-items: center; gap: 13px; transition: border-color 0.15s ease, background 0.15s ease; }
.method:hover { border-color: var(--primary); }
.method.selected { border-color: var(--primary); background: var(--primary-tint); }
.method input { width: 20px; height: 20px; accent-color: var(--primary); }
.method .m-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-size: 19px; flex: 0 0 auto; }

.pay-block { border: 1.5px dashed var(--primary); background: var(--primary-tint); border-radius: var(--r-md); padding: 16px; margin-top: 12px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed rgba(14, 159, 110, 0.25); }
.pay-row:last-of-type { border-bottom: none; }
.pay-row b { font-weight: 800; }
.copy-btn { border: none; background: var(--primary); color: #fff; border-radius: 10px; padding: 13px 26px; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.copy-btn:hover { background: var(--primary-dark); }
.qris-img { max-width: 240px; margin: 14px auto 0; border-radius: var(--r-md); border: 4px solid #fff; box-shadow: var(--shadow); }
.qris-download { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 16px; border: none; background: var(--primary); color: #fff; border-radius: 12px; padding: 15px 22px; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px rgba(14, 159, 110, 0.3); transition: background 0.2s ease, transform 0.05s ease; }
.qris-download:hover { background: var(--primary-dark); }
.qris-download:active { transform: translateY(1px); }
.qris-download svg { width: 19px; height: 19px; }

/* ---------- Step indicator ---------- */
.steps { display: flex; align-items: center; gap: 6px; margin: 4px 0 18px; }
.steps .stp { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.steps .dot { width: 26px; height: 26px; border-radius: 50%; background: #eef1f5; color: var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.steps .stp.done .dot { background: var(--primary-soft); color: var(--primary-dark); }
.steps .stp.active .dot { background: var(--primary); color: #fff; }
.steps .stp.active { color: var(--ink); }
.steps .bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.steps .bar.done { background: var(--primary); }

/* ---------- States ---------- */
.state { text-align: center; padding: 52px 16px; color: var(--muted); }
.spinner { width: 36px; height: 36px; border: 3px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 14px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-ico { font-size: 42px; margin-bottom: 8px; }

/* ---------- Notice ---------- */
.notice { border-radius: var(--r-md); padding: 13px 15px; font-size: 14px; margin-bottom: 16px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.notice.ok { background: var(--primary-soft); color: var(--primary-dark); }
.notice.err { background: var(--danger-soft); color: var(--danger); }
.notice.info { background: var(--info-soft); color: var(--info); }

/* ---------- Success ---------- */
.success { text-align: center; padding: 36px 20px; }
.success .check {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: grid; place-items: center; font-size: 42px; margin: 0 auto 18px;
  box-shadow: 0 12px 28px rgba(14, 159, 110, 0.4);
}

/* ---------- Admin ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 13px;
  position: relative; overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(15, 27, 45, 0.35); }
.stat .stat-ico {
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark);
}
.stat .stat-ico svg { width: 23px; height: 23px; }
.stat .stat-text { min-width: 0; }
.stat .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 21px; font-weight: 800; margin-top: 3px; line-height: 1.15; }
.stat.warn .stat-ico { background: var(--warning-soft); color: var(--warning); }
.stat.info .stat-ico { background: var(--info-soft); color: var(--info); }
.stat.ok .stat-ico { background: var(--primary-soft); color: var(--primary-dark); }
.stat.accent { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: transparent; box-shadow: 0 12px 26px -14px rgba(14, 159, 110, 0.7); }
.stat.accent .label, .stat.accent .value { color: #fff; }
.stat.accent .label { opacity: 0.9; }
.stat.accent .stat-ico { background: rgba(255, 255, 255, 0.22); color: #fff; }

.don-row { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--warning); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.don-row:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(15, 27, 45, 0.3); }
.don-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.don-name { font-weight: 800; font-size: 15px; }
.don-meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.don-amount { font-size: 19px; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.don-proof { margin: 12px 0; max-height: 240px; border-radius: var(--r-md); border: 1px solid var(--line); }

/* ---------- Misc ---------- */
.back-link { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.back-link:hover { color: var(--primary-dark); }
.section-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 20px 0 10px; font-weight: 800; }
.hidden { display: none !important; }
.center { text-align: center; }
.mt-12 { margin-top: 12px; }
.card-pad { padding: 18px; }
.desc { white-space: pre-wrap; font-size: 14.5px; color: var(--ink-2); margin: 0; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 28px 0; }
.footer a { font-weight: 700; }

/* ============================ Admin extras ============================ */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 12px; }
.section-head .page-title { margin: 0; font-size: 20px; }
.section-head .page-subtitle { margin: 3px 0 0; }
.tab-head { margin-bottom: 18px; }
.tab-head .page-title { margin-bottom: 2px; }
.tab-head .page-subtitle { margin-bottom: 0; }

/* Bottom navigation (mobile-app style) */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(15, 27, 45, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  flex: 1; border: none; background: none; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 11px 4px 9px; font-family: inherit; font-size: 11px; font-weight: 700;
  color: var(--muted); transition: color 0.15s ease;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--primary-dark); }
.nav-item.active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 3px; border-radius: 0 0 4px 4px; background: var(--primary);
}
.nav-item.active svg { filter: drop-shadow(0 3px 6px rgba(14, 159, 110, 0.35)); }
.nav-item.danger { color: var(--danger); }
.app-with-nav { padding-bottom: 88px; }

/* List rows for campaigns / admins */
.list-row {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.list-row:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 12px 26px -14px rgba(14, 159, 110, 0.4); }
.list-row .lr-thumb { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; background: var(--primary-soft); flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(15, 27, 45, 0.06); }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-weight: 800; font-size: 14.5px; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .lr-sub { font-size: 12px; color: var(--muted); font-weight: 600; }
.list-row .lr-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
@media (max-width: 480px) {
  .list-row { flex-wrap: wrap; }
  .list-row .lr-actions { width: 100%; }
  .list-row .lr-actions .icon-btn { flex: 1; }
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(15, 27, 45, 0.5);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
@media (min-width: 600px) { .modal-overlay { align-items: center; padding: 20px; } }
.modal {
  background: #fff; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  animation: sheet-up 0.22s ease;
}
@media (min-width: 600px) { .modal { border-radius: 22px; } }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  position: sticky; top: 0; background: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 12px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.modal-x { border: none; background: #eef1f5; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.modal-body { padding: 18px 20px 22px; }

/* ---------- Login Admin ---------- */
.login-wrap { display: flex; justify-content: center; padding: 24px 0 40px; }
.login-card {
  width: 100%; max-width: 420px; background: var(--card);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 34px 28px; box-shadow: 0 20px 50px -22px rgba(5, 122, 85, 0.4);
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}
.login-head { text-align: center; margin-bottom: 24px; }
.login-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 22px -8px rgba(14, 159, 110, 0.6);
}
.login-icon svg { width: 30px; height: 30px; }
.login-head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.login-head p { margin: 0; font-size: 14px; color: var(--muted); }
.login-card .field label { font-size: 14px; }
.login-card .input {
  border-width: 2px; border-color: var(--ink-2);
}
.login-card .input::placeholder { color: var(--muted); font-weight: 500; }
.login-card .input:focus { border-color: var(--primary); }
.btn-lg { padding: 16px 18px; font-size: 16px; margin-top: 6px; }
