/* ==========================================================================
   JasaWarga Glagah - tampilan mobile-first, ringan, tanpa framework
   Catatan performa: tidak ada animasi yang berjalan terus-menerus
   (hemat baterai & lancar di HP kelas menengah ke bawah).
   ========================================================================== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-Regular.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-Medium.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-Bold.woff') format('woff'); }

:root {
  --bg: #f3f6f2;
  --white: #fff;
  --ink: #12231a;
  --ink-2: #33443a;
  --muted: #5a6b61;
  --line: #e1e8e0;
  --brand: #0f7a45;
  --brand-dark: #0b5e35;
  --lime: #bef264;
  --brand-soft: #e5f4ea;
  --grad: linear-gradient(135deg, #0f7a45 0%, #16a34a 62%, #4d9f1d 135%);
  --hero: linear-gradient(135deg, #064e3b 0%, #0f766e 42%, #0f7a45 78%, #2f7d32 100%);
  --top: linear-gradient(150deg, #0a4d2e 0%, #0f6b3b 48%, #2f8a2c 100%);
  --wa: linear-gradient(135deg, #25c25f, #16a34a);
  --accent: #f59e0b; --accent-2: #fbbf24; --accent-ink: #2b1500; --accent-dark: #b45309;
  --orange: #c2410c; --orange-soft: #ffedd5;
  --blue: #1d4ed8; --blue-soft: #dbeafe;
  --red: #b91c1c; --red-soft: #fee2e2;
  --amber: #92400e; --amber-soft: #fef3c7;
  --r: 18px;
  --shadow-sm: 0 1px 2px rgba(18, 35, 26, .05), 0 2px 8px -2px rgba(18, 35, 26, .06);
  --shadow-md: 0 14px 30px -14px rgba(15, 80, 45, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-tap-highlight-color: transparent;
  overflow-wrap: anywhere;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid rgba(15, 122, 69, .45); outline-offset: 2px; }

.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 28px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { margin-left: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.header { background: rgba(255, 255, 255, .96); position: sticky; top: 0; z-index: 30;
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  box-shadow: 0 1px 0 var(--line); }
.header .container { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.header .btn-gray.btn-sm { background: #eef4ee; border-color: transparent; border-radius: 999px; color: var(--ink); font-weight: 600; box-shadow: none; }
.header b.spacer { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 12px; flex: none; box-shadow: 0 4px 10px -3px rgba(15, 122, 69, .55); }
.brand b { display: block; font-size: 1.05rem; line-height: 1.15; letter-spacing: -.01em; }
.brand b span { color: var(--brand); }
.brand small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.2; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 9px 18px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: .98rem; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--grad); color: #fff; box-shadow: 0 6px 14px -8px rgba(15, 122, 69, .8);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { cursor: not-allowed; }
.btn-outline { background: var(--white); color: var(--brand-dark); border-color: var(--brand); box-shadow: none; }
.btn-gray { background: var(--white); color: var(--ink); border-color: #d3ddd1; box-shadow: none; }
.btn-danger { background: var(--white); color: var(--red); border-color: #f3b4b4; box-shadow: none; }
.btn-wa { background: var(--wa); min-width: 0; white-space: nowrap; box-shadow: 0 8px 16px -10px rgba(22, 163, 74, .9); }
/* Tombol aksi utama (+ Pasang Iklan) */
.btn-cta { background: var(--grad); color: #fff; border-color: transparent;
  min-height: 44px; padding: 6px 18px; border-radius: 999px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 8px 16px -8px rgba(15, 122, 69, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-cta svg { flex: none; }
.btn-icon { width: 50px; min-height: 50px; padding: 0; flex: none; }
.btn-block { width: 100%; }
.header .btn:not(.btn-gray):not(.btn-outline):not(.btn-cta) { background: var(--brand); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 5px 14px; font-size: .9rem; border-radius: 10px; }
@media (hover: hover) {
  .btn:hover { filter: brightness(1.07); box-shadow: 0 10px 20px -10px rgba(15, 122, 69, .9); transform: translateY(-1px); }
  .btn-outline:hover, .btn-gray:hover, .btn-danger:hover { background: #f4f8f3; filter: none; box-shadow: var(--shadow-sm); }
}

/* ---------- Hero (statis, tanpa animasi berulang) ---------- */
.hero-band { position: relative; overflow: hidden; color: #fff; padding: 14px 0 42px; background: var(--top); border-radius: 0 0 26px 26px; }
.hero-band::before, .hero-band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero-band::before { width: 260px; height: 260px; right: -90px; top: -120px;
  background: radial-gradient(circle, rgba(190, 242, 100, .20), rgba(190, 242, 100, 0) 70%); }
.hero-band::after { width: 200px; height: 200px; left: -80px; bottom: -110px;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 70%); }
.hero-band .container { position: relative; z-index: 1; }
.eyebrow { display: none; }
.hero-band h1 { font-size: clamp(1.15rem, 5vw, 1.7rem); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.hero-band h1 span { display: block; color: var(--lime); }
.hero-band .lead { display: none; margin-top: 8px; color: rgba(255, 255, 255, .88); max-width: 520px; font-size: .92rem; line-height: 1.5; }
.hero-band.mini { padding: 16px 0 46px; }
.hero-band.mini h1 { font-size: clamp(1.15rem, 5vw, 1.55rem); margin-top: 0; }
.hero-band.mini p { margin-top: 6px; color: rgba(255, 255, 255, .9); font-size: .92rem; }

/* Bagian atas beranda: logo + judul + statistik dalam satu pita ramping */
.topband { position: relative; overflow: hidden; color: #fff; padding: 14px 0 46px; background: var(--top); border-radius: 0 0 28px 28px; }
.topband::before { content: ""; position: absolute; width: 280px; height: 280px; right: -100px; top: -130px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(190, 242, 100, .22), rgba(190, 242, 100, 0) 70%); }
.topband::after { content: ""; position: absolute; width: 220px; height: 220px; left: -90px; bottom: -120px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 70%); }
.topband .container { position: relative; z-index: 1; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topband .brand b { color: #fff; font-size: 1.02rem; font-weight: 700; }
.topband .brand small { margin-top: 1px; color: rgba(255, 255, 255, .8); font-size: .72rem; letter-spacing: .005em; }
.topband .brand img { width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); }
.top-loc { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; color: #fff;
  padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); }
.top-loc svg { color: var(--lime); }
.top-act { display: flex; align-items: center; gap: 8px; flex: none; }
.top-share { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; }
.topband .brand small { white-space: nowrap; }
.topband .brand > span { min-width: 0; }
@media (max-width: 420px) {
  .topband .brand small { font-size: .66rem; letter-spacing: -.005em; }
  .top-loc svg { display: none; }
  .top-act { gap: 6px; }
}
.top-share:active { background: rgba(255, 255, 255, .3); transform: scale(.95); }
.topband h1 { margin-top: 18px; font-size: clamp(1.2rem, 5.2vw, 1.8rem); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.topband h1 span { display: block; color: var(--lime); }
.topband .lead { display: none; margin-top: 8px; color: rgba(255, 255, 255, .88); max-width: 520px; font-size: .92rem; line-height: 1.5; }
.stats { display: flex; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: .8rem; color: rgba(255, 255, 255, .85); }
.stat { display: inline-flex; align-items: baseline; gap: 4px; }
.stat b { font-weight: 700; color: #fff; }
.stat + .stat::before { content: ""; align-self: center; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: var(--lime); }

/* Kotak pencarian menumpuk di batas hero */
.searchwrap { margin-top: -26px; position: relative; z-index: 5; }
.searchbox { display: flex; gap: 6px; background: var(--white); padding: 6px; border-radius: 18px;
  box-shadow: 0 16px 32px -18px rgba(6, 60, 40, .6); border: 1px solid rgba(225, 232, 224, .9); }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #7a8b81; pointer-events: none; }
.searchbox .field { border: 0; background: #f3f6f2; min-height: 44px; padding-left: 38px; padding-right: 8px; font-size: .9rem; text-overflow: ellipsis; border-radius: 13px; }
.searchbox .field:focus { background: #fff; }
.searchbox .btn { min-height: 44px; padding: 8px 18px; font-size: .9rem; border-radius: 13px; background: var(--grad); box-shadow: none; }

/* ---------- Form ---------- */
.field {
  width: 100%; min-height: 50px; padding: 11px 14px; border-radius: 14px;
  border: 1.5px solid #d5dfd3; background: var(--white); color: var(--ink); font: inherit; font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select.field { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235a6b61' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
textarea.field { min-height: 120px; line-height: 1.5; resize: vertical; }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22, 163, 74, .14); }
.field::placeholder { color: #8a988f; }
.label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink-2); margin-bottom: 6px; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.form-group { margin-top: 14px; }
.grid-2 { display: grid; gap: 0 14px; }
.step { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; letter-spacing: -.01em; margin-bottom: 4px; }
.step i { font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: .82rem; font-weight: 700; box-shadow: 0 4px 10px -4px rgba(15, 122, 69, .8); }
.btn-lg { min-height: 54px; font-size: 1rem; border-radius: 16px; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-note { margin-top: 12px; text-align: center; font-size: .78rem; line-height: 1.55; color: var(--muted); }
.form-note a { color: var(--brand-dark); font-weight: 600; }

/* ---------- Filter ---------- */
.filters { margin-top: 16px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; background: #e6eee5; border-radius: 999px; }
.segmented a { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; font-weight: 600; font-size: .82rem; padding: 8px 2px; white-space: nowrap;
  border-radius: 999px; color: #4a5d51; line-height: 1.2; min-height: 38px; transition: background .15s ease, color .15s ease; }
.segmented a.on { background: var(--white); color: var(--brand-dark); box-shadow: 0 1px 3px rgba(18, 35, 26, .12), 0 3px 8px -4px rgba(18, 35, 26, .18); }

/* Kategori: baris yang bisa digeser ke samping; tepi kanan memudar sebagai petunjuk */
.chips { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 4px 28px 8px 16px; margin: 8px -16px 0;
  scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px 0 5px;
  background: var(--white); border: 1px solid #dbe5d9; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.chip .ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); }
.chip .ico svg { display: block; }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 12px -8px rgba(15, 122, 69, .9); }
.chip.on .ico { background: rgba(255, 255, 255, .22); color: #fff; }
@media (hover: hover) { .chip:not(.on):hover { border-color: var(--brand); background: #f1faf4; } }

/* ---------- Daftar iklan ---------- */
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 18px; }
.list-head h2 { font-size: 1rem; font-weight: 750; letter-spacing: -.01em; }
.list-head a { font-size: .84rem; font-weight: 700; color: var(--brand-dark); padding: 8px 0; text-decoration: none; }
.cards { display: grid; gap: 10px; margin-top: 10px; }

.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 14px 14px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #cfd9cd; }
.card.t-lowongan::before { background: #f97316; }
.card.t-jasa::before { background: #3b82f6; }
.card:target { box-shadow: 0 0 0 3px rgba(15, 122, 69, .35); }
/* (1) badge jenis + kategori + waktu */
.card-top, .detail-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card-top .badge, .detail-top .badge { flex: none; }
.card-top .chip-cat, .detail-top .chip-cat { flex: 0 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
.card-time { margin-left: auto; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.chip-cat { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--ink-2);
  background: #f1f5ef; border-radius: 999px; padding: 3px 10px; min-width: 0; max-width: 100%; }
/* (2) identitas pembuat */
.card-who { display: flex; align-items: center; gap: 9px; margin-top: 10px; min-width: 0; }
.card-who .avatar { width: 34px; height: 34px; font-size: .9rem; }
.card-who .who b { font-size: .92rem; }
/* (3) judul + harga (+ thumbnail) */
.card-main { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; }
.card-main-text { flex: 1; min-width: 0; }
.card h2, .card h3 { font-size: 1.08rem; line-height: 1.3; margin-top: 0; letter-spacing: -.01em; }
.card-link { color: inherit; text-decoration: none; }
/* Tautan "stretched": seluruh card bisa diklik, tombol di atasnya tetap bisa ditekan sendiri */
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid rgba(15, 122, 69, .55); outline-offset: -3px; border-radius: var(--r); }
.card-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 7px; }
.loc { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; color: var(--muted); font-weight: 500; min-width: 0; }
.loc svg { flex: none; color: var(--brand); }
.card-thumb { position: relative; flex: none; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #e3eae1; border: 1px solid var(--line); }
.card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-count { position: absolute; right: 4px; bottom: 4px; font-size: .7rem; font-weight: 700; color: #fff; background: rgba(18, 35, 26, .72); border-radius: 999px; padding: 1px 7px; }
.card .info { margin-top: 6px; color: var(--muted); font-size: .9rem; }
/* (4) deskripsi singkat: maksimal 2 baris */
.card .desc { margin-top: 8px; color: var(--ink-2); font-size: .93rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .desc.full { display: block; -webkit-line-clamp: unset; white-space: pre-line; }
.price { font-weight: 800; font-size: .95rem; color: var(--brand-dark); background: #e8f5ec; border-radius: 9px; padding: 3px 10px; }
.price.none { font-weight: 600; font-size: .86rem; color: var(--muted); background: #f3f6f2; }
.report-link { margin-left: auto; flex: none; font-size: .84rem; color: var(--muted); text-decoration: underline; padding: 10px 4px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-top: 8px; border: 1.5px solid #d3ddd1; border-radius: 12px; background: #fff; cursor: pointer; }
.opt input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--brand); }
.opt:has(input:checked) { border-color: var(--brand); background: #f1faf4; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: #fff; background: var(--brand); }
.who { line-height: 1.25; min-width: 0; font-size: .93rem; }
.who b { display: block; }
.who small { display: block; color: var(--muted); font-size: .8rem; }
/* (5) tombol aksi: "Lihat detail" mengisi ruang, WhatsApp ringkas (tidak mendominasi) */
.card .actions { display: flex; gap: 8px; margin-top: 12px; position: relative; z-index: 2; }
.card .btn-detail { flex: 1; min-width: 0; min-height: 42px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.card .btn-wa { flex: none; min-height: 42px; padding: 6px 14px; font-size: .9rem; border-radius: 10px; box-shadow: none; }
@media (hover: hover) { .card { transition: box-shadow .2s ease, transform .2s ease; } .card[data-ad]:hover { box-shadow: 0 12px 26px -16px rgba(15, 80, 45, .45); transform: translateY(-2px); } }
.card > h2 { margin-top: 10px; }

/* ---------- Card ringkas di daftar (label jenis, nama jasa, nama, alamat) ---------- */
.card[data-ad] { flex-direction: row; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--white); border-color: #e3ebe2; }
.card[data-ad]::before { content: none; }
.card-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--brand);
  background: linear-gradient(145deg, #eaf7ee, #d9f0df); border: 1px solid #cfe8d6; }
.t-lowongan .card-ico { color: #c2410c; background: linear-gradient(145deg, #fff4e6, #ffe8cc); border-color: #fbd9ae; }
.card-ico svg { display: block; }
.card-body { flex: 1; min-width: 0; }
.card-badge { font-size: .66rem; font-weight: 700; letter-spacing: .02em; padding: 2px 9px; line-height: 1.5; }
.card[data-ad] h3 { margin-top: 4px; font-size: .96rem; line-height: 1.32; font-weight: 600; letter-spacing: -.012em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .79rem; line-height: 1.35; color: var(--muted); font-weight: 400; min-width: 0; }
.card-meta svg { flex: none; color: #8a9a90; }
.card-meta span { min-width: 0; }
.card-meta .m-name, .card-meta .m-loc { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.card-meta .m-name { flex: none; max-width: 48%; font-weight: 500; color: var(--ink-2); }
.card-meta .m-loc { flex: 1 1 auto; }
.card-meta .m-name > span, .card-meta .m-loc > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.m-dot { flex: none; width: 3px; height: 3px; border-radius: 50%; background: #b3c1b8; }
.card-go { flex: none; color: #a6b6ac; }
@media (hover: hover) { .card[data-ad]:hover .card-go { color: var(--brand); transform: translateX(2px); } .card-go { transition: transform .2s ease, color .2s ease; } }

.badge { display: inline-block; font-size: .76rem; font-weight: 800; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.badge-lowongan { background: #ffedd5; color: #b45309; }
.badge-jasa { background: #dcfce7; color: #166534; }
.badge-pending { background: var(--amber-soft); color: var(--amber); }
.badge-approved { background: var(--brand-soft); color: var(--brand-dark); }
.badge-rejected { background: var(--red-soft); color: var(--red); }

.empty { background: var(--white); border: 2px dashed #cdd8cb; border-radius: var(--r); padding: 34px 16px; text-align: center; margin-top: 12px; }
.empty .big { font-size: 2.6rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.notice { margin-top: 26px; background: var(--amber-soft); border: 1px solid #f3d98a; color: #5a3b05; border-radius: 14px; padding: 12px 14px; font-size: .9rem; }

/* Bilah bawah (HP) */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.bottom-bar .btn { width: 100%; max-width: 600px; margin: 0 auto; display: flex; min-height: 52px; }

/* ---------- Pesan & panel ---------- */
.alert { border-radius: 14px; padding: 12px 14px; margin-top: 14px; font-size: .88rem; line-height: 1.55; }
.alert-error { background: #fef2f2; border: 1px solid #fbcaca; color: #7f1d1d; }
.alert-ok { background: var(--brand-soft); border: 1px solid #a7d8b4; color: var(--brand-dark); }
.alert-info { background: #f1f7f3; border: 1px solid #d3e5da; color: #24493a; margin-top: 14px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.panel { background: var(--white); border: 1px solid #e3ebe2; border-radius: 20px; padding: 18px; margin-top: 14px; box-shadow: var(--shadow-sm); }
.panel ul li { margin-top: 6px; line-height: 1.55; }
.panel ul li::marker { color: var(--brand); }
.panel-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.form-wrap { margin-top: -22px; position: relative; z-index: 5; }
.form-wrap .panel:first-child { margin-top: 0; }
.form-wrap.no-hero { margin-top: 0; padding-top: 16px; }

/* Halaman status (sukses, tidak ditemukan, dihapus) */
.state-ico { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; margin: 6px 0 12px; }
.state-ico.ok { background: var(--grad); color: #fff; box-shadow: 0 14px 26px -14px rgba(15, 122, 69, .9); }
.state-ico.mute { background: #eef3ec; color: #5a6b61; }
.state-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.manage-box { text-align: left; }
.manage-box .field { font-size: .8rem; }
.manage-title { font-size: 1.1rem; font-weight: 650; line-height: 1.3; margin-top: 10px; }
.clock-line { display: flex; align-items: center; gap: 6px; }

/* Pilihan jenis iklan: pakai input:checked + sibling (jalan di semua HP, termasuk Android lama) */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.rc { position: relative; display: block; cursor: pointer; }
.rc input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rc-box { position: relative; display: block; height: 100%; text-align: center; padding: 16px 8px 14px; border-radius: 18px; background: var(--white);
  border: 1.5px solid #d9e3d7; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.rc-ico { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); transition: background .15s ease, color .15s ease; }
.rc input:checked + .rc-box { border-color: var(--brand); background: #f3fbf5; box-shadow: 0 0 0 3px rgba(22, 163, 74, .12); }
.rc input:checked + .rc-box .rc-ico { background: var(--grad); color: #fff; }
.rc input:checked + .rc-box::after { content: ""; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2316a34a'/%3E%3Cpath d='M5.5 10.3l3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.rc input:focus-visible + .rc-box { outline: 3px solid rgba(15, 122, 69, .45); outline-offset: 2px; }
.rc b { display: block; font-size: .95rem; font-weight: 700; }
.rc small { color: var(--muted); font-size: .78rem; }
.opt { border: 1.5px solid #d9e3d7; border-radius: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #12231a; color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 60;
  max-width: calc(100% - 32px); text-align: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }

/* ---------- Admin ---------- */
.adm-logo { flex: none; border-radius: 11px; background: #fff; border: 1px solid var(--line); }
.adm-title { line-height: 1.2; min-width: 0; }
.adm-title b { display: block; font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.adm-title small { display: block; color: var(--muted); font-size: .76rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.stat-box { position: relative; background: var(--white); border: 1px solid #e3ebe2; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.stat-box span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.stat-box span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9db0a4; }
.stat-box b { display: block; margin-top: 2px; font-size: 1.65rem; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.s-pending span::before { background: #f59e0b; } .s-approved span::before { background: #16a34a; }
.s-rejected span::before { background: #ef4444; } .s-users span::before { background: #3b82f6; }
.stat-box.hot { border-color: #f6d58a; background: linear-gradient(180deg, #fffaf0, #fff); }

.tabs { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding: 2px 24px 4px 0;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; white-space: nowrap; text-decoration: none; font-size: .85rem; font-weight: 600;
  color: var(--ink-2); border-radius: 999px; background: var(--white); border: 1px solid #dbe5d9; }
.tabs a svg { flex: none; color: #7a8b81; }
.tabs a.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 16px -10px rgba(15, 122, 69, .9); }
.tabs a.on svg { color: #fff; }
.cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-style: normal; font-size: .72rem; font-weight: 700; background: #f59e0b; color: #3b2300; }
.tabs a.on .cnt { background: rgba(255, 255, 255, .3); color: #fff; }
.tabs.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 3px; margin-top: 12px; background: #e6eee5; border-radius: 999px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.tabs.seg a { justify-content: center; min-height: 36px; padding: 0 4px; font-size: .8rem; background: transparent; border: 0; box-shadow: none; color: #4a5d51; }
.tabs.seg a.on { background: var(--white); color: var(--brand-dark); box-shadow: 0 1px 3px rgba(18, 35, 26, .12), 0 3px 8px -4px rgba(18, 35, 26, .18); }

.adm-cards { grid-template-columns: 1fr; }
.card.adm-card { padding: 16px; border-radius: 18px; border-color: #e3ebe2; }
.card.adm-card::before { content: none; }
.adm-top { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-name { font-size: 1.02rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; margin-top: 10px; }
.adm-sub { margin-top: 2px; font-size: .78rem; color: var(--muted); }
.adm-desc { margin-top: 8px; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.adm-meta { list-style: none; display: grid; gap: 7px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed #dbe5d9; }
.adm-meta li { display: flex; align-items: flex-start; gap: 8px; font-size: .84rem; line-height: 1.45; color: var(--ink-2); }
.adm-meta svg { flex: none; margin-top: 2px; color: #7a8b81; }
.adm-meta a { margin-left: 4px; color: var(--brand-dark); font-weight: 600; }
.adm-meta .warn, .adm-meta .warn svg { color: #b45309; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.adm-actions form.inline { display: block; }
.adm-actions .btn { min-height: 40px; padding: 0 13px; font-size: .82rem; border-radius: 12px; }

.tbl-wrap { overflow-x: auto; background: var(--white); border: 1px solid #e3ebe2; border-radius: 18px; margin-top: 14px; box-shadow: var(--shadow-sm); }
.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th { text-align: left; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 11px 14px; background: #f4f8f3; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; font-size: .9rem; }
.tbl td a { color: var(--brand-dark); font-weight: 600; }
.tbl td.acts form.inline + form.inline { margin-left: 2px; }
@media (max-width: 719px) {
  .tbl.stack { min-width: 0; }
  .tbl.stack, .tbl.stack tbody { display: block; }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { display: block; padding: 12px 14px; border-top: 1px solid var(--line); }
  .tbl.stack tr:first-child { border-top: 0; }
  .tbl.stack td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; font-size: .88rem; }
  .tbl.stack td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: .76rem; font-weight: 600; }
  .tbl.stack td:first-child { display: block; padding-bottom: 6px; font-size: .95rem; }
  .tbl.stack td:first-child::before { content: none; }
  .tbl.stack td.acts { justify-content: flex-start; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
  .tbl.stack td.acts::before { content: none; }
}
form.inline { display: inline; }
.admin-post { white-space: pre-line; }

/* Login admin */
.auth-bg { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--top); }
.auth-bg::before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -120px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(190, 242, 100, .22), rgba(190, 242, 100, 0) 70%); }
.auth-bg .panel { position: relative; padding: 26px 22px; border-radius: 24px; box-shadow: 0 28px 56px -24px rgba(0, 40, 20, .6); border: 0; }
.auth-bg .container { padding-top: 24px; padding-bottom: 24px; }
.auth-logo { display: block; margin: 0 auto; width: 68px; height: 68px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 24px -12px rgba(15, 122, 69, .7); }
.auth-title { margin-top: 12px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.back-link { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- Pembaruan langsung (tanpa reload) ---------- */
#live { transition: opacity .15s ease; }
#live.loading { opacity: .45; pointer-events: none; }
.topbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; opacity: 0; z-index: 100; pointer-events: none;
  background: linear-gradient(90deg, #facc15, #0f7a45); }

/* ---------- Animasi masuk (sekali saja, ringan) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.js .reveal.in { opacity: 1; transform: none; }


/* ---------- Modal detail iklan (bottom-sheet di HP, dialog di layar lebar) ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 80; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 25, 17, .55); animation: jw-fade .2s ease-out; }
.modal-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--white); border-radius: 22px 22px 0 0; overflow: hidden; outline: none; box-shadow: 0 -12px 40px -12px rgba(0, 0, 0, .35);
  animation: jw-sheet .24s ease-out; }
.modal-bar { position: relative; flex: none; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 56px 6px;
  border-bottom: 1px solid var(--line); background: var(--white); }
.modal-bar b { font-size: .95rem; }
.modal-grip { position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: #d3ddd1; }
.modal-close { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #eef3ec; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.modal-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px 16px 0; }
@keyframes jw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jw-sheet { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes jw-pop { from { transform: translate(-50%, -48%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }

/* ---------- Detail iklan ---------- */
.detail-title { font-size: 1.35rem; line-height: 1.28; letter-spacing: -.015em; margin-top: 12px; }
.detail .card-sub { margin-top: 10px; }
.detail .price { font-size: 1.05rem; padding: 5px 12px; border-radius: 10px; }
.detail .loc { font-size: .92rem; }
.detail-who { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; background: #f5f8f4; border: 1px solid var(--line); border-radius: 14px; }
.avatar.lg { width: 46px; height: 46px; font-size: 1.15rem; }
.detail-sub { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.detail-desc { margin-top: 6px; white-space: pre-line; color: var(--ink-2); line-height: 1.65; }
.detail-date { margin-top: 12px; }
.detail-meta { list-style: none; display: grid; gap: 6px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.detail-meta li { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.detail-meta svg { flex: none; color: #7d8d83; }
.detail-meta .live { color: var(--brand-dark); font-weight: 600; }
.detail-meta .dot { flex: none; width: 8px; height: 8px; margin: 0 3.5px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.safe-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; background: #fffbeb; border: 1px solid #f6e3a6; border-radius: 12px; color: #78350f; }
.safe-note svg { flex: none; margin-top: 1px; color: #b45309; }
.safe-note b { display: block; font-size: .86rem; }
.safe-note span { display: block; font-size: .84rem; line-height: 1.45; }
.report-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 40px; padding: 0 12px; font-size: .84rem; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.report-btn:hover { color: var(--red); border-color: #f3b4b4; }
.similar { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.similar h3 { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sim-item { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 11px 12px; text-align: left; font: inherit; color: inherit; background: #f8faf7; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.sim-item:active { background: #eef4ec; }
.sim-text { flex: 1; min-width: 0; display: block; }
.sim-text b { display: block; font-size: .92rem; line-height: 1.3; font-weight: 650; }
.sim-text small { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }
.sim-price { flex: none; font-size: .8rem; font-weight: 700; color: var(--brand-dark); }
.sim-go { flex: none; color: #9aa9a0; }
.detail-actions { display: flex; gap: 8px; margin-top: 16px; }
.detail-page .detail-actions { margin-bottom: 4px; }
.detail-actions .btn-wa { flex: 1; min-height: 52px; font-size: 1rem; }
.detail-actions .btn-icon { width: 52px; min-height: 52px; }
.detail-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 10px 0 18px; }
.detail-foot .report-link { margin-left: 0; padding: 8px 0; }
.modal .detail-actions { position: sticky; bottom: 0; margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); z-index: 2; }
.detail-page .gallery { margin-top: 0; }

/* ---------- Galeri foto (geser ke samping; tombol & thumbnail membantu di layar lebar) ---------- */
.gallery { margin: 0 0 14px; }
.g-stage { position: relative; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  border-radius: 14px; background: #0f1a14; aspect-ratio: 4 / 3; max-height: 62vh; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; }
.g-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.g-nav { position: absolute; top: 50%; margin-top: -19px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.5rem; line-height: 1;
  background: rgba(255, 255, 255, .88); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); display: none; place-items: center; padding: 0 0 3px; }
.g-prev { left: 8px; } .g-next { right: 8px; }
@media (hover: hover) and (pointer: fine) { .g-nav { display: grid; } }
.g-count { position: absolute; right: 10px; top: 10px; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(18, 35, 26, .7); border-radius: 999px; padding: 2px 10px; }
.g-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.g-thumbs::-webkit-scrollbar { display: none; }
.g-thumb { flex: none; width: 56px; height: 56px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #e3eae1; cursor: pointer; opacity: .65; }
.g-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-thumb.on { border-color: var(--brand); opacity: 1; }

/* ---------- Unggah foto (form pasang iklan & kelola iklan) ---------- */
.photo-picker { margin-top: 12px; }
.photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.photo-add { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 14px; cursor: pointer;
  border: 2px dashed #9fc2aa; border-radius: 14px; background: #f4faf6; color: var(--brand-dark); font-weight: 700; }
.photo-add[hidden] { display: none; }
.photo-input:focus-visible + .photo-grid + .photo-add { outline: 3px solid rgba(15, 122, 69, .45); outline-offset: 2px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-bottom: 8px; }
.photo-grid:empty { display: none; }
.pg-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e3eae1; border: 1px solid var(--line); }
.pg-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-del { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(18, 35, 26, .78); color: #fff; font-size: 1.1rem; line-height: 1; display: grid; place-items: center; padding: 0; }
.pg-first { position: absolute; left: 4px; bottom: 4px; font-size: .68rem; font-weight: 700; color: #fff; background: rgba(15, 122, 69, .9); border-radius: 999px; padding: 1px 8px; }
.pg-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .7); font-size: .75rem; font-weight: 700; color: var(--brand-dark); }
.photo-existing { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 8px; }
.pe { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; }
.pe img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pe-del { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; font-size: .84rem; font-weight: 600; color: var(--red); }
.pe-del input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.pe:has(input:checked) { border-color: #f3b4b4; background: var(--red-soft); }
.pe:has(input:checked) img { opacity: .4; }

/* Foto di dasbor admin */
.admin-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.admin-photos .ap { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.admin-photos img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }


/* ---------- Navbar bawah (melayang, hanya di HP) ---------- */
.bnav { display: none; }
#filters { scroll-margin-top: 76px; }
@media (max-width: 719px) {
  body.has-bnav { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }   /* konten tidak tertutup navbar */
  .bnav { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: 60px; padding: 0 4px;
    max-width: 520px; margin: 0 auto;
    background: rgba(255, 255, 255, .98); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 30px -12px rgba(8, 50, 30, .45), 0 2px 6px rgba(8, 50, 30, .06); }
  .bnav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    height: 100%; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600; line-height: 1.2; letter-spacing: .005em; }
  .bnav-ico { position: relative; display: grid; place-items: center; width: 48px; height: 30px; border-radius: 15px; transition: background .15s ease; }
  .bnav-ico svg { display: block; }
  .bnav-item.on { color: var(--brand-dark); font-weight: 700; }
  .bnav-item.on .bnav-ico { background: var(--brand-soft); }
  .bnav-item:active .bnav-ico { background: #eef3ec; }
  /* "Pasang": ukuran & ikon sama dengan menu lain, hanya diberi warna hijau penuh */
  .bnav-cta { color: var(--brand-dark); font-weight: 700; }
  .bnav-cta .bnav-ico, .bnav-cta.on .bnav-ico, .bnav-cta:active .bnav-ico { color: #fff;
    background: var(--grad); box-shadow: 0 6px 12px -6px rgba(15, 122, 69, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
  .bnav-ext img { display: block; width: 28px; height: 28px; object-fit: contain; }
  .bnav-ext { color: var(--ink-2); }
  .bnav-ext .bnav-label { font-size: .66rem; letter-spacing: -.01em; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ---------- Bantuan & Iklan Saya ---------- */
.help-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.help-steps li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.help-steps li > i { font-style: normal; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: .85rem; font-weight: 700; box-shadow: 0 4px 10px -4px rgba(15, 122, 69, .8); }
.help-steps li > div { min-width: 0; }
.help-steps li > div > b { display: block; font-size: .98rem; }
.help-steps li > div > span { display: block; margin-top: 2px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.help-steps li > div > span b { display: inline; color: var(--ink); font-weight: 700; }
.help-steps a, .panel p a, .panel li a { color: var(--brand-dark); font-weight: 700; }
.help-sub { margin: 16px 0 4px; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.help-sub:first-of-type { margin-top: 10px; }
#aman, #aturan { scroll-margin-top: 72px; }

.mine-title { margin-top: 8px; font-size: 1.05rem; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.mine-meta { margin-top: 4px; }
.mine-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mine-actions .btn { flex: 1 1 auto; min-width: 0; }
.mine-view { display: inline-block; margin-top: 12px; font-size: .86rem; font-weight: 600; color: var(--brand-dark); }
.mine-add summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--brand-dark); }
.mine-add-row { display: flex; gap: 8px; margin-top: 10px; }
.mine-add-row .field { flex: 1; min-width: 0; }
#mine-flash { margin: 0 0 12px; }
.mine-clicks { margin-top: 6px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 7px; font-size: .86rem; line-height: 1.4; }
.card-price { font-weight: 700; color: var(--brand-dark); }
.card-price.none { font-weight: 500; color: var(--muted); }
.card-age { color: var(--muted); }
.card-age::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 8px 2px 0; border-radius: 50%; background: currentColor; opacity: .55; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 4px; font-size: .9rem; }
.adm-search { display: flex; gap: 8px; margin: 0 0 12px; }
.adm-search .field { flex: 1; min-width: 0; }
.mine-left { display: inline-block; margin-top: 8px; }
.mine-note { margin-top: 10px; }
.mine-view + .mine-view { margin-left: 16px; }
.reject-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.reject-form .field { min-height: 40px; width: 240px; max-width: 100%; padding: 6px 10px; font-size: .88rem; }

/* ---------- Footer ---------- */
.footer { margin: 22px 0 8px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.foot-card { position: relative; overflow: hidden; color: #fff; padding: 20px 18px 8px; border-radius: 22px; background: var(--top);
  box-shadow: 0 18px 36px -22px rgba(6, 60, 40, .7); }
.foot-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -110px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(190, 242, 100, .18), rgba(190, 242, 100, 0) 70%); }
.foot-card > * { position: relative; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 44px; height: 44px; flex: none; border-radius: 13px; background: #fff; box-shadow: 0 4px 10px -3px rgba(0, 0, 0, .35); }
.foot-brand b { display: block; font-size: 1.05rem; line-height: 1.2; letter-spacing: -.01em; }
.foot-brand small { display: block; margin-top: 1px; font-size: .76rem; color: var(--lime); }
.foot-about { margin-top: 14px; font-size: .86rem; line-height: 1.65; color: rgba(255, 255, 255, .86); }
.foot-about b { display: block; margin-bottom: 2px; color: #fff; font-size: .9rem; }
.foot-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.foot-points li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 10px 11px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.foot-points svg { color: var(--lime); margin-bottom: 4px; }
.foot-points b { font-size: .8rem; line-height: 1.25; }
.foot-points span { font-size: .7rem; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.foot-install { margin-top: 14px; width: 100%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: #fff; box-shadow: none; }
.footer .foot-install[data-install]:not(.hidden) { display: inline-flex; }
.footer-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 12px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: #fff; font-size: .84rem; font-weight: 600; text-decoration: none; opacity: .92; }
.footer-links a:hover { text-decoration: underline; }
.footer-links a + a { border-left: 1px solid rgba(255, 255, 255, .22); }
.credit { display: block; max-width: 24em; margin: 14px auto 0; text-align: center; font-size: .78rem; text-wrap: balance; }
.credit b { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
@media (min-width: 720px) { .footer { margin-bottom: 36px; } .foot-card { padding: 26px 28px 10px; } .foot-about { max-width: 640px; font-size: .92rem; } .foot-points { max-width: 640px; } .foot-install { width: auto; } }

/* ---------- Layar lebar ---------- */
@media (min-width: 720px) {
  body { font-size: 17px; }
  .hero-band .lead { display: block; }
  .hero-band { padding: 40px 0 72px; border-radius: 0 0 36px 36px; }
  .topband { padding: 18px 0 64px; border-radius: 0 0 36px 36px; }
  .topband h1 { margin-top: 26px; }
  .topband .lead { display: block; }
  .hero-band.mini { padding: 32px 0 66px; }
  .searchwrap { margin-top: -34px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .chips { flex-wrap: wrap; overflow: visible; padding: 4px 0; margin: 10px 0 0; -webkit-mask-image: none; mask-image: none; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .bottom-bar { display: none; }
  .toast { bottom: 24px; }
  .card .desc.full { font-size: 1.02rem; }
  .modal-panel { left: 50%; right: auto; top: 50%; bottom: auto; width: min(620px, calc(100% - 32px)); max-height: 88vh; border-radius: 22px;
    transform: translate(-50%, -50%); animation: jw-pop .2s ease-out; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); }
  .modal-grip { display: none; }
  .modal-scroll { padding: 16px 20px 0; }
  .modal .detail-actions { margin: 16px -20px 0; padding-left: 20px; padding-right: 20px; }
  .detail-title { font-size: 1.5rem; }
}
@media (max-width: 719px) { .hide-sm { display: none !important; } }
@media (max-width: 359px) {
  .container { padding: 0 12px; }
  .chips { padding-left: 12px; padding-right: 12px; margin-left: -12px; margin-right: -12px; scroll-padding: 0 12px; }
  .brand small { font-size: .68rem; }
  .chips { padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
