/* Greeny's app shell (pivot sosmed 2026-09-28): feed ala Threads/X + lapak.
   Mandiri (tanpa Tailwind). Tema gelap via html.dark (localStorage greeny-theme, sama spt page lama). */
:root {
  --bg: #f6f8f4; --surface: #ffffff; --surface-2: #eef2ea; --line: #dfe5d9;
  --text: #1c261d; --muted: #5c6b5d; --faint: #8a978b;
  --brand: #166534; --brand-ink: #ffffff; --brand-soft: #dcefdf; --brand-text: #14532d;
  --danger: #b42318; --like: #e0245e; --warn-bg: #fff4d6; --warn-text: #7a4d00;
  --radius: 16px; --shadow: 0 8px 30px rgba(20, 40, 25, .12);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Plus Jakarta Sans', var(--font);
  color-scheme: light;
}
html.dark {
  --bg: #0e1410; --surface: #151d17; --surface-2: #1d2820; --line: #2a372d;
  --text: #e7eee6; --muted: #a2b1a3; --faint: #75857a;
  --brand: #4ade80; --brand-ink: #062b13; --brand-soft: #1e3a26; --brand-text: #a7f3c0;
  --danger: #f97066; --like: #f75f8f; --warn-bg: #3a2e12; --warn-text: #f5d38a;
  --shadow: 0 8px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; display: block; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

/* ---------- Latar hutan + daun jatuh (dari tema lama page-hero) ---------- */
body[data-app] {
  background-image:
    linear-gradient(160deg, rgba(34, 84, 52, .38) 0%, rgba(18, 52, 32, .55) 100%),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?q=80&w=1600&auto=format&fit=crop");
  background-size: auto, auto, cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed;
}
html.dark body[data-app] {
  background-image:
    radial-gradient(90% 130% at 88% 0%, rgba(92, 116, 96, .30), transparent 55%),
    linear-gradient(150deg, rgba(20, 30, 23, .74) 0%, rgba(14, 22, 17, .8) 100%),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?q=80&w=1600&auto=format&fit=crop");
}
.bg-leaves { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-leaves span { position: absolute; top: -8vh; animation: leafFall linear infinite; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
@keyframes leafFall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); }
  25%  { transform: translateY(30vh) translateX(3vw) rotate(90deg); }
  50%  { transform: translateY(58vh) translateX(-2vw) rotate(180deg); }
  75%  { transform: translateY(86vh) translateX(2vw) rotate(270deg); }
  100% { transform: translateY(116vh) translateX(-1vw) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) { .bg-leaves { display: none; } }
.shell, .tabbar { position: relative; z-index: 1; }
.tabbar { position: fixed; }
.side .card { background: color-mix(in srgb, var(--surface) 78%, transparent) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.side .search-box { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px); }

/* ---------- Shell: full lebar layar, menu kiri = drawer hamburger ---------- */
.shell { display: flex; justify-content: center; min-height: 100vh; }
.main { flex: 1 1 auto; max-width: 720px; min-width: 0; min-height: 100vh; padding-bottom: 76px;
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.side { display: none; }
@media (min-width: 720px) {
  .main { padding-bottom: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .tabbar { display: none !important; }
}
@media (min-width: 1100px) {
  .side { display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto; width: 360px; padding: 16px 20px; flex: none; }
}
/* drawer menu (☰) */
.rail { position: fixed; top: 0; left: 0; bottom: 0; z-index: 55; width: 280px; max-width: 86vw; display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; background: var(--surface); box-shadow: var(--shadow); overflow-y: auto;
  transform: translateX(-105%); transition: transform .22s ease; visibility: hidden; }
.rail.open { transform: none; visibility: visible; }
.drawer-bg { position: fixed; inset: 0; z-index: 54; background: rgba(8, 14, 10, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.burger { margin-left: -8px; }
/* tombol posting melayang (desktop; HP pakai + di tabbar) */
.fab { display: none; }
@media (min-width: 720px) {
  .fab { display: grid; place-items: center; position: fixed; right: 28px; bottom: 28px; z-index: 30; width: 60px; height: 60px; border-radius: 50%;
    background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
  .fab:hover { filter: brightness(1.08); transform: scale(1.04); }
  .fab svg.i { width: 28px; height: 28px; stroke-width: 2.4; }
}
.logo { display: flex; align-items: center; gap: 8px; font: 800 20px/1 var(--font-head); color: var(--brand-text); padding: 10px 12px 18px; }
html:not(.dark) .logo { color: var(--brand); }
.logo .leaf { font-size: 22px; }
.nav-item { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 999px; font-weight: 600; font-size: 17px; position: relative; color: var(--text); }
.nav-item:hover { background: var(--surface-2); }
.nav-item.on { font-weight: 800; }
.nav-item.on svg.i { stroke-width: 2.6; }
.badge { position: absolute; top: 6px; left: 26px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font: 700 11px/18px var(--font); text-align: center; }
.rail .btn-post { margin-top: 14px; width: 100%; justify-content: center; padding: 14px; }
.rail .rail-foot { margin-top: auto; }
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; }
.topbar h1 { font: 800 19px/1.2 var(--font-head); margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .back { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; margin-left: -8px; }
.topbar .back:hover { background: var(--surface-2); }
.tb-actions { display: flex; gap: 4px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; position: relative; color: var(--text); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .badge { top: 2px; left: 22px; }

.tabs { display: flex; }
.tab { flex: 1; text-align: center; padding: 14px 8px; font-weight: 600; color: var(--muted); position: relative; }
.tab:hover { background: var(--surface-2); }
.tab.on { color: var(--text); font-weight: 800; }
.tab.on::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 4px; background: var(--brand); }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; display: grid; place-items: center; padding: 8px 0; color: var(--muted); position: relative; }
.tabbar a.on { color: var(--text); }
.tabbar a.on svg.i { stroke-width: 2.6; }
.tabbar .plus { width: 46px; height: 38px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--text); }
.tabbar .badge { top: 2px; left: calc(50% + 4px); }

/* ---------- Buttons / form ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--text); white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand); filter: brightness(1.08); }
.btn-dark { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn-dark:hover { background: var(--text); opacity: .9; }
.btn-danger { color: var(--danger); }
.btn-sm { padding: 6px 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-wa:hover { background: #22c35e; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { resize: vertical; min-height: 110px; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 999px; padding: 10px 16px; border: 1px solid transparent; }
.search-box:focus-within { border-color: var(--brand); background: var(--surface); }
.search-box input { border: 0; outline: 0; background: none; width: 100%; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--muted); }
.chip.on { background: var(--text); color: var(--surface); border-color: var(--text); }

/* ---------- Avatar ---------- */
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font-weight: 800; font-size: 15px; overflow: hidden; }
.av-sm { width: 32px; height: 32px; font-size: 12px; }
.av-lg { width: 84px; height: 84px; font-size: 28px; }

/* ---------- Composer ---------- */
.composer { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.composer .c-body { flex: 1; min-width: 0; }
.composer .c-name { font-weight: 700; }
.composer textarea { width: 100%; border: 0; outline: 0; resize: none; background: none; min-height: 28px; font-size: 16px; padding: 4px 0; overflow: hidden; }
.composer textarea::placeholder { color: var(--faint); }
.c-tools { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.c-tools .icon-btn { color: var(--brand); width: 34px; height: 34px; }
.c-count { margin-left: auto; font-size: 13px; color: var(--faint); }
.c-count.over { color: var(--danger); font-weight: 700; }
.c-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.c-thumbs .t { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.c-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.c-thumbs .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; font-size: 15px; line-height: 1; }
.guest-cta { padding: 20px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--brand-soft); }
.guest-cta p { margin: 0; font-weight: 600; color: var(--brand-text); }

/* ---------- Post ---------- */
.post { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.post:hover { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.post.focus { cursor: default; flex-direction: column; }
.post.focus:hover { background: none; }
.post .p-left { display: flex; flex-direction: column; align-items: center; }
.post .p-body { flex: 1; min-width: 0; }
.p-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.p-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-name:hover { text-decoration: underline; }
.p-time { color: var(--faint); font-size: 14px; white-space: nowrap; }
.p-more { margin-left: auto; width: 32px; height: 32px; margin-top: -6px; margin-right: -8px; color: var(--faint); }
.p-topic { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-text); background: var(--brand-soft); padding: 1px 8px; border-radius: 999px; }
.p-title { font-weight: 800; margin: 2px 0 2px; font-size: 16px; }
.p-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0 0; }
.p-text.clamp { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.post.focus .p-text { font-size: 17px; }
.p-text a { color: var(--brand-text); font-weight: 600; }
html:not(.dark) .p-text a { color: var(--brand); }
.p-media { display: grid; gap: 4px; margin-top: 10px; max-width: 640px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.p-media.n2, .p-media.n4 { grid-template-columns: 1fr 1fr; }
.p-media.n3 { grid-template-columns: 1fr 1fr; }
.p-media.n3 img:first-child { grid-row: span 2; }
.p-media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; background: var(--surface-2); cursor: zoom-in; }
.p-media.n1 img { max-height: 560px; }
.p-media.n2 img, .p-media.n3 img, .p-media.n4 img { aspect-ratio: 1; }
.p-actions { display: flex; gap: 4px; margin: 8px 0 -6px -10px; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; }
.act:hover { background: var(--surface-2); color: var(--text); }
.act.liked { color: var(--like); }
.act.liked svg.i { fill: currentColor; }
.act .lbl:empty { display: none; }
.act.saved { background: var(--brand-soft); color: var(--brand-text); }
html:not(.dark) .act.saved { color: var(--brand); }
.act.pop svg.i { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
.act.reposted { color: var(--brand); }
.act.reposted svg.i { stroke-width: 2.6; }
.act.saved { color: var(--brand); }
.post.has-rp { flex-wrap: wrap; }
.p-repost { flex-basis: 100%; display: flex; align-items: center; gap: 8px; margin: -4px 0 2px 28px; font-size: 13px; font-weight: 700; color: var(--muted); }
.p-repost svg.i { width: 15px; height: 15px; }
.p-repost:hover { text-decoration: underline; }
.quote { display: block; max-width: 640px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
a.quote:hover { background: var(--surface-2); }
.quote .p-head { gap: 6px; margin-bottom: 2px; }
.quote .q-row { display: flex; gap: 10px; }
.quote .q-row img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.q-clamp { flex: 1; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.av-xs { width: 20px; height: 20px; font-size: 9px; }
.act.saved svg.i { fill: currentColor; }
.act .n:empty { display: none; }
.thread-line { width: 2px; flex: 1; background: var(--line); margin-top: 6px; border-radius: 2px; }

/* ---------- Menu / modal / toast ---------- */
.menu { position: absolute; z-index: 40; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--surface-2); }
.menu .danger { color: var(--danger); }
.modal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(8, 14, 10, .55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px 12px; overflow-y: auto; }
.modal { width: 100%; max-width: 600px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font: 800 17px var(--font-head); flex: 1; }
.modal-body { padding: 16px; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; border-radius: 8px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 80; background: var(--text); color: var(--surface); padding: 10px 20px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); animation: tin .2s ease; max-width: calc(100vw - 32px); }
@media (min-width: 720px) { .toast { bottom: 28px; } }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- States ---------- */
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty b { display: block; font: 800 20px var(--font-head); color: var(--text); margin-bottom: 6px; }
.loading { padding: 32px; display: grid; place-items: center; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.more { display: block; width: 100%; padding: 16px; color: var(--brand-text); font-weight: 700; }
html:not(.dark) .more { color: var(--brand); }
.note { margin: 12px 16px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-text); font-size: 14px; }
.sec-title { font: 800 19px var(--font-head); margin: 0 0 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.side .card { background: var(--surface-2); border: 0; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Profile ---------- */
.reply-box { background: color-mix(in srgb, var(--brand-soft) 35%, transparent); animation: fadein .18s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } }
.reply-box.inline { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.av-edit { position: relative; border-radius: 50%; }
.av-edit:hover .av { filter: brightness(.8); }
.av-cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); border: 3px solid var(--surface); }
.av-cam svg.i { width: 15px; height: 15px; }
.prof { padding: 18px 16px 8px; }
.prof-top { display: flex; align-items: flex-start; gap: 16px; }
.prof h2 { font: 800 24px/1.2 var(--font-head); margin: 0; }
.prof .bio { white-space: pre-wrap; margin: 12px 0; }
.prof-stats { display: flex; gap: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.prof-stats b { color: var(--text); }
.prof-btns { display: flex; gap: 8px; margin: 14px 0 6px; max-width: 520px; }
.prof-btns .btn { flex: 1; justify-content: center; }

/* ---------- Lapak ---------- */
.grid-l { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px 16px 16px; }
@media (min-width: 560px) { .grid-l { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.lcard { display: block; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); position: relative; }
.lcard:hover { box-shadow: var(--shadow); }
.lcard .img { aspect-ratio: 1; background: var(--surface-2); }
.lcard .img img { width: 100%; height: 100%; object-fit: cover; }
.lcard .b { padding: 10px 12px 12px; }
.lcard .price { font: 800 16px var(--font-head); }
.lcard .name { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.lcard .loc { font-size: 12px; color: var(--faint); margin-top: 4px; }
.tag-sold { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.lcard.sold .img { filter: grayscale(.7); opacity: .75; }
.gallery { max-width: 720px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--surface-2); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 100%; flex: none; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; }
.dots { max-width: 720px; display: flex; justify-content: center; gap: 6px; padding: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--brand); }
.l-info { padding: 16px; }

.l-price { font: 800 26px var(--font-head); }
.l-name { font-size: 18px; font-weight: 700; margin: 2px 0 8px; }
.l-meta { display: flex; gap: 14px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.l-desc { white-space: pre-wrap; margin-top: 14px; overflow-wrap: anywhere; }
.l-cta { display: flex; gap: 10px; padding: 12px 16px; position: sticky; bottom: 66px; background: var(--surface); border-top: 1px solid var(--line); }
@media (min-width: 720px) { .l-cta { bottom: 0; } }
.l-cta .btn { flex: 1; justify-content: center; padding: 12px; }
.seller-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.photo-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-pick .t, .photo-pick label { aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; background: var(--surface-2); }
.photo-pick label { display: grid; place-items: center; border: 2px dashed var(--line); color: var(--muted); cursor: pointer; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; }
.photo-pick .cover { position: absolute; left: 4px; bottom: 4px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }

/* ---------- List rows (notif, dm, user) ---------- */
.li { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
a.li:hover { background: var(--surface-2); }
.li.unread { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.li .t { font-weight: 700; }
.li .s { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.li .time { color: var(--faint); font-size: 13px; white-space: nowrap; }
.dot-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 55px - 76px); }
@media (min-width: 720px) { .chat { height: calc(100vh - 55px); } }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 78%; padding: 9px 14px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }
.bubble.them { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.me { background: var(--brand); color: var(--brand-ink); align-self: flex-end; border-bottom-right-radius: 6px; }
.bubble img { border-radius: 12px; max-height: 280px; margin: 2px 0; }
.bubble .bt { font-size: 11px; opacity: .7; margin-top: 2px; text-align: right; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; background: var(--surface); }
.chat-form textarea { flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px; resize: none; max-height: 120px; outline: 0; background: var(--surface); }
.chat-form textarea:focus { border-color: var(--brand); }
.listing-ref { display: flex; gap: 10px; align-items: center; margin: 10px 16px 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.listing-ref img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

/* ---------- Admin ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px; }
@media (min-width: 560px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.kpi b { display: block; font: 800 22px var(--font-head); }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.alert b { color: var(--danger); }
.pill { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill.red { background: #fde2e1; color: #9a1b12; }
.pill.green { background: var(--brand-soft); color: var(--brand-text); }
html.dark .pill.red { background: #4a1d1a; color: #ffb4ab; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Tipografi & jarak (biar teks lega, tidak berdempetan) ---------- */
body { line-height: 1.6; }
.post { gap: 14px; padding: 16px 20px; }
.p-head { margin-bottom: 4px; }
.p-topic { margin: 2px 0 8px; }
.p-title { margin: 4px 0 8px; line-height: 1.45; }
.p-text { line-height: 1.7; }
.post.focus .p-text { line-height: 1.75; }
.p-media, .quote { margin-top: 14px; }
.p-actions { margin-top: 12px; }
.p-repost { margin-bottom: 6px; }
.q-clamp { line-height: 1.6; }
.li { padding: 16px 20px; gap: 14px; }
.li .s { line-height: 1.55; margin-top: 3px; }
.side .li .s { margin-top: 1px; }
.side .card { padding: 18px; margin-bottom: 18px; }
.side > p { line-height: 1.6; }
.sec-title { margin-bottom: 14px; line-height: 1.3; }
.field { margin-bottom: 20px; }
.field > span { margin-bottom: 8px; }
.field small { margin-top: 6px; line-height: 1.5; }
.note { line-height: 1.6; padding: 14px 16px; }
.empty { line-height: 1.7; }
.empty b { margin-bottom: 8px; }
.prof h2 { margin-bottom: 4px; }
.prof .bio { line-height: 1.65; }
.prof-stats { gap: 20px; margin-top: 12px; }
.l-price { margin-bottom: 4px; }
.l-name { line-height: 1.4; margin: 4px 0 12px; }
.l-meta { gap: 8px 18px; }
.l-desc { line-height: 1.75; margin-top: 18px; }
.lcard .b { padding: 12px 14px 14px; }
.lcard .name { line-height: 1.45; margin-top: 2px; }
.bubble { line-height: 1.55; }
.menu button, .menu a { padding: 11px 14px; }
.modal-body { padding: 20px; }
.composer { gap: 14px; padding: 18px 20px; }
.chips { gap: 10px; padding: 14px 20px; }
@media (max-width: 719px) {
  .post, .li { padding-left: 16px; padding-right: 16px; }
}
/* ---------- panel notifikasi melayang ---------- */
.notif-pop { position: fixed; z-index: 65; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; animation: fadein .15s ease; }
.np-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.np-head a { font-size: 14px; font-weight: 700; color: var(--brand-text); }
html:not(.dark) .np-head a { color: var(--brand); }
.np-list { overflow-y: auto; }
.np-list .li { padding: 12px 18px; }
.np-list .li .s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* ---------- header lebih lega + tombol Posting di header ---------- */
.topbar-row { min-height: 66px; padding: 0 20px; gap: 14px; }
.topbar h1 { font-size: 22px; }
.topbar .icon-btn { width: 44px; height: 44px; }
.topbar .icon-btn svg.i { width: 24px; height: 24px; }
.tb-actions { gap: 8px; align-items: center; }
.tb-post { padding: 10px 18px; font-size: 15px; margin-right: 4px; }
.tab { padding: 16px 8px; font-size: 16px; }
@media (max-width: 719px) {
  .tb-post { display: none; } /* HP: posting lewat + di tabbar bawah */
  .topbar-row { min-height: 60px; padding: 0 14px; }
  .topbar h1 { font-size: 20px; }
}/* ---------- tombol proporsional: ikon ikut ukuran teks, tinggi seragam ---------- */
.btn { line-height: 1.2; }
.btn svg.i { width: 1.2em; height: 1.2em; stroke-width: 2.2; margin-left: -2px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; gap: 6px; }
.tb-post { height: 40px; padding: 0 18px; }
/* ---------- pilih topik di composer ---------- */
.c-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.c-topics .chip { padding: 5px 12px; font-size: 13px; cursor: pointer; }
.c-topic-in { flex-basis: 100%; padding: 8px 12px; font-size: 14px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 14px; font-weight: 600; }
.ht { color: var(--brand-text); font-weight: 600; }
html:not(.dark) .ht { color: var(--brand); }
/* ---------- Neumorphism (2026-09-29): latar solid = warna permukaan, kedalaman dari bayangan terang+gelap ---------- */
:root {
  --bg: #e3eae2; --surface: #e3eae2; --surface-2: #d9e1d8; --line: #cdd7cc;
  --text: #17231a; --muted: #46574a; --faint: #66776a;
  --nm-hi: #ffffff; --nm-lo: #b7c4b6;
}
html.dark {
  --bg: #1b231d; --surface: #1b231d; --surface-2: #222c24; --line: #2c3a2f;
  --muted: #a9b8aa; --faint: #82927f;
  --nm-hi: #26322a; --nm-lo: #111713;
}
:root, html.dark {
  --raise: 7px 7px 16px var(--nm-lo), -7px -7px 16px var(--nm-hi);
  --raise-sm: 3px 3px 8px var(--nm-lo), -3px -3px 8px var(--nm-hi);
  --inset: inset 3px 3px 7px var(--nm-lo), inset -3px -3px 7px var(--nm-hi);
  --shadow: var(--raise);
}
body[data-app], html.dark body[data-app] { background: var(--bg); }
.bg-leaves span { opacity: .5; }
.main, html:not(.dark) .main { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar, html:not(.dark) .topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 0; box-shadow: 0 6px 12px -8px var(--nm-lo); }
.tabbar { background: var(--bg); border-top: 0; box-shadow: 0 -4px 14px var(--nm-lo); }
.rail, .menu, .modal, .notif-pop { background: var(--bg); border: 0; box-shadow: var(--raise); }
.modal-head, .np-head { border-bottom: 0; }
/* kartu timbul */
.post { margin: 16px; border: 0; border-radius: 24px; background: var(--surface); box-shadow: var(--raise); transition: transform .15s ease; }
.post:hover { background: var(--surface); transform: translateY(-1px); }
.post.focus:hover { transform: none; }
.side .card, html:not(.dark) .side .card, .card, .lcard, .guest-cta, .kpi, .quote, .listing-ref { background: var(--surface) !important; border: 0; box-shadow: var(--raise); backdrop-filter: none; }
.side .card, .card { border-radius: 22px; }
.lcard { border-radius: 20px; }
.lcard:hover { box-shadow: var(--raise-sm); }
.lcard .img { margin: 8px 8px 0; border-radius: 14px; overflow: hidden; }
.guest-cta { margin: 16px; border-radius: 22px; }
.guest-cta p { color: var(--text); }
.quote, .listing-ref { box-shadow: var(--inset); }
a.quote:hover { background: var(--surface); }
.note { margin: 16px; border-radius: 18px; box-shadow: var(--raise-sm); }
.p-media { border: 0; box-shadow: var(--raise-sm); }
.side > p, html:not(.dark) .side > p, html:not(.dark) .side > p a { color: var(--muted); text-shadow: none; }
/* cekung: kolom isian */
.search-box, .side .search-box, html:not(.dark) .side .search-box, .input, .chat-form textarea { background: var(--surface); border: 0; box-shadow: var(--inset); backdrop-filter: none; }
.search-box:focus-within, .input:focus, .chat-form textarea:focus { background: var(--surface); box-shadow: var(--inset), 0 0 0 2px var(--brand); }
/* tombol & chip: timbul, ditekan = cekung */
.btn { border: 0; background: var(--surface); box-shadow: var(--raise-sm); }
.btn:hover { background: var(--surface); filter: brightness(1.03); }
.btn:active, .chip:active, .icon-btn:active, .act:active { box-shadow: var(--inset); }
.btn-primary, .btn-primary:hover { background: var(--brand); }
.btn-dark, .btn-dark:hover { background: var(--brand); color: var(--brand-ink); }
.btn-wa, .btn-wa:hover { background: #25d366; }
.chip { border: 0; background: var(--surface); box-shadow: var(--raise-sm); color: var(--muted); }
.chip.on { background: var(--surface); color: var(--brand); box-shadow: var(--inset); }
html.dark .chip.on { color: var(--brand-text); }
.icon-btn:hover, .topbar .back:hover, .nav-item:hover, .act:hover, .tab:hover { background: transparent; box-shadow: var(--raise-sm); }
.nav-item.on { box-shadow: var(--inset); color: var(--brand); }
html.dark .nav-item.on { color: var(--brand-text); }
.tabbar .plus { background: var(--brand); color: var(--brand-ink); box-shadow: var(--raise-sm); }
.tabbar a.on { color: var(--brand); }
.fab { box-shadow: var(--raise); }
.p-topic { background: var(--surface); box-shadow: var(--raise-sm); padding: 2px 10px; color: var(--brand); }
html.dark .p-topic { color: var(--brand-text); }
.act.saved { background: transparent; box-shadow: var(--inset); }
.av { box-shadow: var(--raise-sm); }
.li { border-bottom-color: var(--line); }
.li.unread { background: transparent; box-shadow: var(--inset); border-radius: 16px; }
@media (max-width: 719px) { .post { margin: 12px 10px; } }
/* tombol utama: gradasi lembut + timbul, ditekan = masuk */
.btn-primary, .btn-primary:hover { background: linear-gradient(145deg, #238a4c, #14572f); color: #fff; box-shadow: var(--raise-sm), inset 0 1px 0 rgba(255, 255, 255, .18); letter-spacing: .01em; transition: transform .12s ease, box-shadow .12s ease; }
html.dark .btn-primary, html.dark .btn-primary:hover { background: linear-gradient(145deg, #3fcf7a, #1f9d55); color: #05230f; }
.btn-primary:hover { transform: translateY(-1px); filter: none; }
.btn-primary:active { transform: none; box-shadow: inset 3px 3px 7px rgba(0, 0, 0, .28), inset -2px -2px 5px rgba(255, 255, 255, .12); }
.tb-post, .btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
/* topik bisa diklik -> jelajah per topik */
a.p-topic:hover { box-shadow: var(--inset); }
/* ---------- chat neumorphism ---------- */
.chat-log { gap: 12px; padding: 20px 16px; }
.bubble { padding: 10px 16px; border-radius: 22px; }
.bubble.them { background: var(--surface); box-shadow: var(--raise-sm); border-bottom-left-radius: 8px; }
.bubble.me { background: linear-gradient(145deg, #238a4c, #14572f); color: #fff; box-shadow: var(--raise-sm); border-bottom-right-radius: 8px; }
html.dark .bubble.me { background: linear-gradient(145deg, #3fcf7a, #1f9d55); color: #05230f; }
.bubble img { border-radius: 14px; }
.bubble .bt { opacity: .75; }
.chat-form { background: transparent; border-top: 0; padding: 12px 16px 16px; gap: 12px; align-items: center; }
.chat-form textarea { border-radius: 999px; padding: 11px 18px; }
.chat-form .icon-btn { box-shadow: var(--raise-sm); color: var(--brand); flex: none; }
html.dark .chat-form .icon-btn { color: var(--brand-text); }
/* ---------- galeri Lapak: bingkai timbul + thumbnail, klik = popup ---------- */
.l-media .gallery { margin: 16px; border-radius: 24px; box-shadow: var(--raise); background: var(--surface); max-width: none; }
.l-media .gallery img { aspect-ratio: 4 / 3; max-height: 480px; cursor: zoom-in; }
.thumbs { display: flex; gap: 10px; padding: 0 16px 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; padding: 3px; background: var(--surface); box-shadow: var(--raise-sm); }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; opacity: .6; }
.thumbs button.on { box-shadow: var(--inset); }
.thumbs button.on img { opacity: 1; }
/* popup foto */
.lightbox { cursor: default; background: rgba(6, 12, 8, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein .15s ease; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(1100px, 100%); }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #fff; font-weight: 700; background: rgba(255, 255, 255, .12); padding: 6px 16px; border-radius: 999px; text-align: center; }
.lb-x, .lb-nav { position: fixed; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14); }
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .26); }
.lb-x { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }
.lb-nav.next svg.i { transform: rotate(180deg); }
/* ---------- latar pilihan user ---------- */
.bg-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 460px; }
.bg-opts button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border-radius: 18px; font-weight: 700; font-size: 14px; background: var(--surface); box-shadow: var(--raise-sm); }
.bg-opts button.on { box-shadow: var(--inset); color: var(--brand); }
html.dark .bg-opts button.on { color: var(--brand-text); }
.bg-prev { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; display: grid; place-items: center; background: var(--bg) center / cover; box-shadow: var(--inset); color: var(--muted); }
.prev-forest { background-image: url("https://images.unsplash.com/photo-1448375240586-882707db888b?q=60&w=400&auto=format&fit=crop"); }
.prev-custom.has svg { display: none; }
/* mode foto: latar foto + panel kaca buram (neumorphism tak jalan di atas foto) */
html.bg-photo body[data-app] { background: linear-gradient(rgba(6, 30, 14, .45), rgba(6, 30, 14, .45)), var(--user-bg) center / cover fixed no-repeat, var(--bg); }
html.bg-photo:not(.dark) body[data-app] { background: linear-gradient(rgba(22, 90, 45, .22), rgba(22, 90, 45, .22)), var(--user-bg) center / cover fixed no-repeat, var(--bg); }
html.bg-photo .post, html.bg-photo .side .card, html.bg-photo .card, html.bg-photo .lcard, html.bg-photo .guest-cta,
html.bg-photo .topbar, html.bg-photo .search-box, html.bg-photo .side .search-box, html.bg-photo .chips .chip, html.bg-photo .tabbar,
html.bg-photo .main > #content > section, html.bg-photo #content > form {
  background: color-mix(in srgb, var(--surface) 84%, transparent) !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22) !important; border: 1px solid color-mix(in srgb, var(--surface) 40%, transparent);
}
html.bg-photo .input { background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: none; border: 1px solid var(--line); }
html.bg-photo .side > p, html.bg-photo .side > p a { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
/* ---------- tab = segmented control (cekung, yang aktif timbul) ---------- */
.tabs { margin: 8px 16px 12px; padding: 5px; gap: 4px; border-radius: 999px; background: var(--surface); box-shadow: var(--inset); border: 0 !important; }
.topbar .tabs { margin: 0 16px 12px; }
.tab { padding: 9px 8px; border-radius: 999px; font-size: 15px; transition: color .15s, box-shadow .15s; }
.tab:hover { box-shadow: none; color: var(--text); }
.tab.on { background: var(--surface); box-shadow: var(--raise-sm); color: var(--brand); }
html.dark .tab.on { color: var(--brand-text); }
.tab.on::after { display: none; }
/* ---------- profil: kartu dgn cover, avatar menumpang, statistik tile ---------- */
.prof { margin: 16px; padding: 0; border-radius: 26px; background: var(--surface); box-shadow: var(--raise); overflow: hidden; }
.prof-cover { height: 130px; background:
  radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, .22), transparent 55%),
  linear-gradient(135deg, #2f9e5c 0%, #166534 55%, #0f3d22 100%); position: relative; }
.prof-cover::after { content: '🌿'; position: absolute; right: 22px; bottom: 10px; font-size: 44px; opacity: .35; transform: rotate(-12deg); }
.prof-body { padding: 0 20px 20px; }
.prof-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -46px; position: relative; z-index: 1; }
.prof .av-lg { width: 96px; height: 96px; font-size: 32px; border: 4px solid var(--surface); box-shadow: var(--raise-sm); }
.prof-btns { display: flex; gap: 8px; margin: 0 0 4px; max-width: none; }
.prof-btns .btn { flex: none; }
.prof h2 { margin: 12px 0 2px; }
.prof-joined { font-size: 14px; }
.prof .bio { margin: 12px 0 0; }
.prof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.prof-stats .st { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 16px; background: var(--surface); box-shadow: var(--raise-sm); color: var(--muted); font-size: 13px; }
.prof-stats button.st:hover { box-shadow: var(--inset); }
.prof-stats .st b { font: 800 19px/1.3 var(--font-head); color: var(--text); }
@media (max-width: 719px) { .prof { margin: 12px 10px; } .prof-body { padding: 0 16px 16px; } .prof-stats { gap: 8px; } }
html.bg-photo .prof { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); box-shadow: 0 8px 28px rgba(0, 0, 0, .22); }
html.bg-photo .tabs { background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: none; backdrop-filter: blur(14px); }
/* ---------- komentar: kartu kecil, balasan bertingkat pakai garis utas ---------- */
.cmt-title { padding: 8px 20px 0; margin: 8px 0 0; display: flex; align-items: center; gap: 8px; }
.post.cmt { cursor: default; margin: 12px 16px; padding: 14px 16px; border-radius: 20px; box-shadow: var(--raise-sm); }
.post.cmt:hover { transform: none; }
.post.cmt .p-text { font-size: 15px; }
.post.cmt .p-actions { margin-top: 6px; }
.post.cmt.nested { margin: 12px 0 0; padding: 4px 0 0 14px; background: transparent; box-shadow: none; border-radius: 0; border-left: 2px solid var(--line); }
html.bg-photo .post.cmt.nested { background: transparent !important; box-shadow: none !important; border: 0; border-left: 2px solid var(--line); backdrop-filter: none; }
.reply-box { margin: 12px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--inset); border: 0; }
.reply-box.inline { margin: 12px 0 0; border: 0; }
@media (max-width: 719px) { .post.cmt { margin: 10px; } }
/* ---------- daftar (notifikasi, pesan, hasil cari orang): kartu timbul ---------- */
.main .li { margin: 10px 16px; padding: 14px 16px; border: 0; border-radius: 20px; background: var(--surface); box-shadow: var(--raise-sm); align-items: center; }
.main a.li:hover { background: var(--surface); box-shadow: var(--raise); }
.main .li.unread { box-shadow: var(--raise-sm), inset 4px 0 0 var(--brand); }
.main .li .time { align-self: flex-start; }
html.bg-photo .main .li { background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(14px); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
@media (max-width: 719px) { .main .li { margin: 8px 10px; } }
.ni { box-shadow: var(--raise-sm); background: var(--surface) !important; }
.ni-heart { color: var(--like); } .ni-reply { color: #2f80ed; } .ni-repeat { color: var(--brand); } .ni-user { color: #9b51e0; } .ni-mail, .ni-bell { color: var(--brand); }
html.dark .ni-reply { color: #6fa8ff; } html.dark .ni-user { color: #c39bff; } html.dark .ni-repeat, html.dark .ni-mail, html.dark .ni-bell { color: var(--brand-text); }
.np-list .li { border-bottom: 1px solid var(--line); }
/* ---------- skeleton loading ---------- */
.sk-wrap { display: block; padding: 0; }
.skel { display: flex; gap: 14px; margin: 16px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: var(--raise); }
.sk-av { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.sk-lines i { height: 12px; border-radius: 6px; }
.sk-lines i:first-child { width: 35%; }
.sk-lines i.short { width: 60%; }
.skel i { display: block; background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skel i { animation: none; } }
html.bg-photo .skel { background: color-mix(in srgb, var(--surface) 84%, transparent); box-shadow: 0 8px 28px rgba(0, 0, 0, .22); }
/* ---------- header melayang membulat (bukan kotak nempel) ---------- */
.topbar, html:not(.dark) .topbar { top: 10px; margin: 10px 16px 0; border-radius: 24px; box-shadow: var(--raise-sm); background: color-mix(in srgb, var(--bg) 94%, transparent); }
html.bg-photo .topbar { border-radius: 24px !important; }
.topbar-row { min-height: 60px; }
.topbar .tabs { margin: 0 12px 12px; }
@media (max-width: 719px) { .topbar, html:not(.dark) .topbar { top: 8px; margin: 8px 10px 0; border-radius: 20px; } .topbar-row { min-height: 56px; padding: 0 12px; } }
/* ---------- banner profil ---------- */
.prof-cover { background-size: cover; background-position: center; }
.prof-cover.has-img::after { display: none; }
.cover-edit { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cover-edit:hover { background: rgba(0, 0, 0, .6); }
.cover-edit svg.i { width: 16px; height: 16px; }
@media (max-width: 480px) { .cover-edit span { display: none; } }
/* mode foto: teks lepas (judul bagian, pesan kosong) dikasih kapsul kaca biar kebaca */
html.bg-photo .cmt-title, html.bg-photo #content > .sec-title, html.bg-photo #content > div > .sec-title, html.bg-photo .main .empty, html.bg-photo #content > div > p.muted, html.bg-photo #content > .row {
  width: fit-content; max-width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; padding: 8px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}
html.bg-photo .main .empty { width: auto; padding: 28px 20px; }
html.bg-photo .cmt-title { margin-bottom: 10px; }
.adm-banner { display: block; margin-top: 8px; max-width: 320px; border-radius: 12px; overflow: hidden; box-shadow: var(--raise-sm); }
.adm-banner img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
/* mode foto: detail barang (info, penjual, tombol chat) jadi panel kaca */
html.bg-photo .l-info, html.bg-photo .seller-row, html.bg-photo .l-cta {
  margin: 12px 16px; border: 0; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}
html.bg-photo .l-cta { bottom: 76px; }
@media (min-width: 720px) { html.bg-photo .l-cta { bottom: 12px; } }
/* ---------- popup konfirmasi ---------- */
.modal-ask { align-items: center; padding-top: 12px; }
.modal-ask .modal { max-width: 420px; }
.ask p { margin: 0 0 20px; font-size: 16px; line-height: 1.55; }
.btn-danger-solid, .btn-danger-solid:hover { background: linear-gradient(145deg, #d64534, #a8261a); color: #fff; box-shadow: var(--raise-sm); }
html.dark .btn-danger-solid, html.dark .btn-danger-solid:hover { background: linear-gradient(145deg, #f26b5b, #c93a2c); }
/* ---------- editor posisi foto ---------- */
.crop-frame { position: relative; width: 100%; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #111; cursor: grab; touch-action: none; user-select: none; box-shadow: var(--inset); }
.crop-frame:active { cursor: grabbing; }
.crop-frame img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }

.crop-frame.round::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .5); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; color: var(--muted); }
.crop-zoom input { flex: 1; accent-color: var(--brand); }
.crop-hint { font-size: 13px; margin: 0 0 16px; }
/* tombol di thumbnail foto (composer & form Lapak): Atur posisi, Jadikan sampul */
.c-thumbs .t .ed, .photo-pick .t .ed { position: absolute; left: 4px; bottom: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; font-weight: 700; }
.photo-pick .t .ed { left: auto; right: 4px; }
.photo-pick .t .mk { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #ffd54a; display: grid; place-items: center; font-size: 13px; }
.c-thumbs .t .ed:hover, .photo-pick .t .ed:hover, .photo-pick .t .mk:hover { background: rgba(0, 0, 0, .85); }
.crop-ar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.crop-ar .chip { padding: 5px 12px; font-size: 13px; }
