/* =====================================================================
   BIO PAGE – Public Styles v2.0
   Aesthetic: Clean editorial · Warm neutral · Mobile-first
   ===================================================================== */

/* ---- Google Fonts sudah di-load di <head> (Plus Jakarta Sans) ---- */

:root {
  --accent:       #e07a2f;
  --accent-dark:  #c2631f;
  --accent-soft:  rgba(224,122,47,.10);
  --accent-glow:  rgba(224,122,47,.18);

  /* Backgrounds */
  --bg:           #f5f0eb;
  --bg-2:         #efe8df;
  --surface:      #ffffff;
  --surface-2:    #faf7f4;

  /* Text */
  --text:         #1e1a17;
  --text-2:       #4a403a;
  --muted:        #8c7e75;

  /* UI */
  --border:       #e8dfd5;
  --border-2:     #d9cdc3;
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    22px;
  --radius-xl:    28px;

  /* Shadows */
  --shadow-sm:    0 1px 4px rgba(30,26,23,.06), 0 2px 8px rgba(30,26,23,.04);
  --shadow:       0 4px 16px rgba(30,26,23,.08), 0 1px 4px rgba(30,26,23,.04);
  --shadow-lg:    0 8px 32px rgba(30,26,23,.12), 0 2px 8px rgba(30,26,23,.06);

  /* Transitions */
  --ease:         cubic-bezier(.22,1,.36,1);
  --ease-in:      cubic-bezier(.4,0,1,1);
  --ease-out:     cubic-bezier(0,0,.2,1);
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ================================================================
   PAGE LAYOUT
   ================================================================ */
.page {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

/* ================================================================
   HERO – COVER + AVATAR
   ================================================================ */
.hero {
  position: relative;
  margin-bottom: 72px;
}
.cover {
  height: 190px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 55%, #9d4d16 100%);
  overflow: hidden;
  position: relative;
}
.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(30,26,23,.25));
  pointer-events: none;
}
.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.avatar {
  position: absolute;
  left: 50%;
  bottom: -58px;
  transform: translateX(-50%);
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.avatar:hover { transform: translateX(-50%) scale(1.03); box-shadow: 0 12px 40px rgba(30,26,23,.16); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

/* ================================================================
   PROFILE
   ================================================================ */
.profile { text-align: center; padding-top: 4px; }
.profile h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--text);
}
.profile .handle {
  color: var(--accent);
  font-weight: 600;
  font-size: .92rem;
  margin-top: 3px;
  letter-spacing: -.01em;
}
.profile .bio {
  color: var(--text-2);
  margin: 10px auto 0;
  max-width: 400px;
  font-size: .94rem;
  line-height: 1.65;
}

/* Donate button */
.btn-donate-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 26px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: background .15s, transform .15s var(--ease), box-shadow .15s;
  letter-spacing: -.01em;
}
.btn-donate-main:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--accent-glow);
}
.btn-donate-main:active { transform: scale(.98); }

/* ================================================================
   BADGE STRIP  (lencana horizontal di atas tombol traktir)
   ================================================================ */
/* ================================================================
   BADGE STRIP  — lencana horizontal di atas tombol Traktir
   ================================================================ */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px auto 0;
  padding: 0 8px;
  max-width: 380px;
}

/* Sembunyikan badge-extra secara default */
.badge-extra { display: none !important; }
.badge-extra.badge-visible { display: inline-flex !important; }

/* Badge pill */
.bio-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
  background: var(--surface, #f0ebe4);
  border: 1px solid var(--border, #e2d9cf);
  color: var(--text-2);
  font-size: .73rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: default;
  transition: background .15s, border-color .15s, transform .12s, color .15s;
}
a.bio-badge {
  cursor: pointer;
}
a.bio-badge:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
a.bio-badge:hover .bio-badge-label { color: inherit; }

/* Icon wrapper — bulat kecil dengan bg accent-soft */
.bio-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  flex-shrink: 0;
  overflow: hidden;
}
/* FA icon di dalam badge */
.bio-badge-icon i {
  font-size: .72rem;
  color: var(--accent);
  line-height: 1;
}
/* Custom image icon — isi penuh container bulat */
.bio-badge-icon .ico-img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Label teks */
.bio-badge-label {
  color: var(--text-2);
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Tombol "lihat lainnya" */
.badge-more-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px dashed var(--border, #e2d9cf);
  background: transparent;
  color: var(--text-2);
  font-size: .71rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.badge-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ================================================================
   SEARCH BAR
   ================================================================ */
.searchbar {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 26px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px 4px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.searchbar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm);
}
.searchbar .search-ico {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); flex: 0 0 auto;
  transition: color .2s;
}
.searchbar:focus-within .search-ico { color: var(--accent); }
.searchbar input {
  flex: 1; min-width: 0;
  border: none; background: transparent;
  font: inherit; font-size: .93rem;
  color: var(--text); padding: 10px 10px;
  outline: none;
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear {
  flex: 0 0 34px; width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: var(--bg-2); color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.search-clear:hover { background: var(--border-2); color: var(--text); }

.search-empty {
  text-align: center; color: var(--muted);
  padding: 40px 20px; margin-top: 18px;
}
.search-empty svg { color: var(--border-2); margin: 0 auto 12px; display: block; }
.search-empty p { font-size: .93rem; }
.search-empty span { color: var(--text); font-weight: 700; }

/* ----------------------------------------------------------------
   EXTRA SEARCH RESULTS (item di luar batas tampil beranda)
   ---------------------------------------------------------------- */
.search-extra-results {
  margin: 10px 16px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.sec-extra-header {
  font-size: .78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 4px 0 2px;
}
.search-extra-card {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border, #e8dfd5);
  border-left: 3px solid var(--accent, #e07a2f);
  border-radius: 12px; padding: 10px 14px;
  text-decoration: none; color: var(--text, #1e1a17);
  transition: background .15s;
}
.search-extra-card:hover { background: #faf7f4; }
.sec-badge {
  font-size: .75rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  color: var(--muted, #8c7e75);
}
.sec-title {
  font-weight: 600; font-size: .93rem; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text, #1e1a17);
}
.sec-sub {
  font-size: .8rem; color: var(--muted, #8c7e75); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 140px; flex-shrink: 0;
}
.sec-price {
  font-size: .88rem; font-weight: 700; color: var(--accent, #e07a2f);
  white-space: nowrap; flex-shrink: 0;
}

/* ================================================================
   FILTER / SHOW-ALL HELPERS
   ================================================================ */
.js-item.is-hidden,
.js-item.search-hide { display: none !important; }
[data-section].search-hide { display: none !important; }

.btn-show-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  border: 1.5px dashed var(--border-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: .85rem;
  padding: 12px 18px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  letter-spacing: -.01em;
}
.btn-show-all:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-show-all:active { transform: scale(.99); }
.btn-show-all .bsa-chevron { transition: transform .25s var(--ease); flex: 0 0 auto; }
.btn-show-all.expanded .bsa-chevron { transform: rotate(180deg); }

.inline-content-list { display: block; }

/* ================================================================
   SECTION HEADER
   ================================================================ */
.section { margin-top: 32px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0 2px;
}
.section-title {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  flex: 1;
}
/* Compat: jika tidak pakai section-header wrapper */
.section > .section-title:first-child { margin-bottom: 14px; padding-left: 2px; }
.section-sub { color: var(--muted); font-size: .88rem; margin: -8px 0 14px; padding-left: 2px; }

/* Divider accent */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 60%, transparent 100%);
  border-radius: 2px;
  margin-bottom: 16px;
  width: 40px;
}

/* ================================================================
   LINK LIST
   ================================================================ */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.link-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  font-weight: 600;
  font-size: .93rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s, background .15s;
  position: relative;
  overflow: hidden;
}
.link-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.link-item:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
  background: var(--surface);
}
.link-item:hover::before { opacity: 1; }
.link-item:active { transform: scale(.99); }
.link-item .ico {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--accent);
  transition: background .18s, transform .18s var(--ease);
}
.link-item:hover .ico { background: var(--accent); color: #fff; transform: scale(1.08); }
.link-item .ico svg,
.link-item .ico i { width: 19px; height: 19px; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.link-item .ico .ico-img { width: 24px; height: 24px; object-fit: contain; display: block; }
.link-item .label { flex: 1; letter-spacing: -.01em; }
.link-item .arrow {
  color: var(--border-2);
  transition: color .15s, transform .18s var(--ease);
  flex: 0 0 auto;
}
.link-item:hover .arrow { color: var(--accent); transform: translateX(2px); }

/* ================================================================
   CONTENT CARDS (halaman / blog)
   ================================================================ */
.content-cards { display: flex; flex-direction: column; gap: 10px; }
.content-card {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), border-color .18s;
}
.content-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.content-card:active { transform: scale(.99); }
.content-card .cc-thumb {
  flex: 0 0 90px;
  width: 90px;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-2));
  overflow: hidden;
}
.content-card .cc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-card .cc-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); opacity: .5;
}
.content-card .cc-thumb-fallback svg { width: 26px; height: 26px; }
.content-card .cc-body {
  flex: 1; min-width: 0;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-card .cc-title {
  font-weight: 700; font-size: .95rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-card .cc-excerpt {
  color: var(--muted); font-size: .83rem;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.content-card .cc-more {
  color: var(--accent); font-weight: 600; font-size: .8rem;
  margin-top: 7px;
  display: inline-flex; align-items: center; gap: 3px;
}

/* ================================================================
   INLINE CONTENT BLOCKS
   ================================================================ */
.content-block {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.content-block:last-child { margin-bottom: 0; }
.content-block h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -.01em;
}
.content-block p { color: var(--text-2); white-space: pre-line; font-size: .93rem; line-height: 1.65; }
.content-block.image-block { padding: 0; overflow: hidden; }
.content-block.image-block img { width: 100%; }
.content-block.image-block .cap {
  padding: 10px 14px;
  font-size: .86rem; color: var(--muted);
  background: var(--surface-2);
}

/* ================================================================
   PRODUK DIGITAL
   ================================================================ */
.section-sub { color: var(--muted); font-size: .88rem; margin: -6px 0 14px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  position: relative;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px var(--accent);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.product-card:hover::after { opacity: 1; }
.product-card:active { transform: translateY(-2px) scale(.99); }

.pc-thumb {
  position: relative;
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-2) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.product-card:hover .pc-thumb img { transform: scale(1.04); }
.pc-thumb-fallback { color: var(--accent); opacity: .45; }
.pc-thumb-fallback svg { width: 42px; height: 42px; }
.pc-tag {
  position: absolute;
  top: 9px; left: 9px;
  background: rgba(30,26,23,.6);
  color: #fff;
  font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px) saturate(1.5);
  -webkit-backdrop-filter: blur(8px) saturate(1.5);
}

.pc-body {
  padding: 12px 13px 13px;
  display: flex; flex-direction: column; flex: 1;
}
.pc-name {
  font-weight: 700; font-size: .9rem;
  line-height: 1.3; letter-spacing: -.01em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-desc {
  color: var(--muted); font-size: .78rem;
  margin-top: 4px; line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.pc-price { color: var(--accent); font-weight: 800; font-size: .93rem; letter-spacing: -.02em; }
.pc-buy {
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700; font-size: .8rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .12s var(--ease);
  white-space: nowrap;
  letter-spacing: -.01em;
}
.pc-buy:hover { background: var(--accent-dark); transform: translateY(-1px); }
.pc-buy:active { transform: scale(.96); }
.pc-buy:disabled { background: var(--border-2); opacity: .8; cursor: not-allowed; color: var(--muted); }

.prod-secure-note {
  display: flex; align-items: center; gap: 6px;
  justify-content: center;
  color: var(--muted); font-size: .76rem; margin-top: 12px;
}
.prod-secure-note svg { color: var(--accent); flex: 0 0 auto; }

/* ================================================================
   DONATION / GIFT MODAL
   ================================================================ */
.donation-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

/* ---- TikTok-style gift picker (kompak, banyak item, scroll vertikal) ---- */
.gift-grid--tiktok {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.gift-grid--tiktok .gift-card {
  padding: 10px 4px 8px;
  border-width: 1.5px;
  border-radius: 14px;
  background: var(--surface-2);
  position: relative;
  min-height: 108px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
}
.gift-grid--tiktok .gift-card .gift-img,
.gift-grid--tiktok .gift-card .gift-emoji {
  width: 48px; height: 48px; margin: 2px auto 4px; line-height: 48px;
}
.gift-grid--tiktok .gift-card .gift-emoji { font-size: 36px; }
.gift-grid--tiktok .gift-card .gift-name {
  font-size: .72rem; line-height: 1.15;
  font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden;
  width: 100%; max-width: 100%; padding: 0 2px;
}
.gift-grid--tiktok .gift-card .gift-price {
  margin-top: auto; padding-top: 4px;
  font-size: .72rem; font-weight: 700;
}
.gift-grid--tiktok .gift-card:hover { transform: translateY(-1px); }
.gift-grid--tiktok .gift-card.selected {
  /* di langkah PICK kita tidak menonjolkan terpilih, klik langsung pindah ke detail */
  border-color: var(--border);
  background: var(--surface-2);
  box-shadow: none;
}
.gift-grid--tiktok .gift-card:active {
  transform: scale(.96);
  background: var(--accent-soft);
  border-color: var(--accent);
}
.gift-grid--tiktok .gift-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 14px;
  background: var(--accent-soft); opacity: 0; pointer-events: none;
  transition: opacity .15s var(--ease);
}
.gift-grid--tiktok .gift-card:hover::after { opacity: .35; }

.gift-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 6px 10px;
  cursor: pointer;
  background: var(--bg);
  transition: all .18s var(--ease);
  text-align: center;
}
.gift-card:hover { transform: translateY(-2px); border-color: var(--border-2); }
.gift-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.gift-card .gift-img { width: 52px; height: 52px; margin: 0 auto 6px; object-fit: contain; }
.gift-card .gift-emoji { font-size: 40px; line-height: 52px; }
.gift-card .gift-name { font-weight: 700; font-size: .8rem; }
.gift-card .gift-price { color: var(--accent); font-weight: 700; font-size: .76rem; margin-top: 2px; }

/* Quantity */
.qty-row {
  display: flex; align-items: center;
  justify-content: center; gap: 16px;
  margin-top: 18px;
}
.qty-row .qty-label { font-weight: 600; color: var(--muted); font-size: .9rem; }
.qty-control {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 5px 7px;
}
.qty-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--accent); color: #fff;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: background .12s;
}
.qty-btn:hover { background: var(--accent-dark); }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-value { min-width: 26px; text-align: center; font-weight: 800; font-size: 1.05rem; }

/* Form fields */
.field { margin-top: 14px; text-align: left; }
.field label { display: block; font-weight: 600; font-size: .83rem; margin-bottom: 5px; color: var(--text-2); }
.field input, .field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font: inherit; font-size: .92rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 68px; }

/* Pay button */
.btn-pay {
  width: 100%; margin-top: 18px;
  border: none; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-weight: 800; font-size: 1rem;
  padding: 15px; cursor: pointer;
  transition: background .15s, transform .1s;
  font-family: inherit; letter-spacing: -.01em;
}
.btn-pay:hover { background: var(--accent-dark); }
.btn-pay:active { transform: scale(.99); }
.btn-pay:disabled { opacity: .6; cursor: not-allowed; }

.total-line {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700;
  border-top: 1.5px dashed var(--border);
  padding-top: 14px;
}
.total-line .total-amt { color: var(--accent); font-size: 1.2rem; font-weight: 800; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30,26,23,.5);
  backdrop-filter: blur(4px) saturate(1.3);
  -webkit-backdrop-filter: blur(4px) saturate(1.3);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
  z-index: 1000;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  width: 100%; max-width: 540px; max-height: 92vh;
  overflow-y: auto; overflow-x: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transform: translateY(100%);
  transition: transform .32s var(--ease);
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.open .modal { transform: translateY(0); }
/* Pull handle */
.modal::before {
  content: '';
  display: block;
  width: 36px; height: 4px;
  background: var(--border-2);
  border-radius: 2px;
  margin: 10px auto 0;
}
.modal-head {
  position: sticky; top: 0;
  background: var(--surface);
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border);
  z-index: 2;
}
.modal-head h2 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.modal-head .sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.modal-close {
  flex: 0 0 34px; width: 34px; height: 34px;
  border-radius: 50%; border: none;
  background: var(--bg-2); color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; line-height: 1;
  transition: background .12s, color .12s;
}
.modal-close:hover { background: var(--border-2); color: var(--text); }
.modal-body { padding: 16px 20px 24px; }

@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: var(--radius-xl); transform: translateY(16px) scale(.97); max-height: 88vh; }
  .modal-overlay.open .modal { transform: translateY(0) scale(1); }
  .modal::before { display: none; }
}

/* ================================================================
   GIFT MODAL — TikTok-style 2-step (pick → detail)
   ================================================================ */
.modal-gift .modal-head {
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px;
}
.modal-gift .modal-head-text { flex: 1 1 auto; min-width: 0; text-align: left; }
.modal-gift .modal-head-text h2 { font-size: 1.05rem; }
.modal-gift .modal-head-text .sub { font-size: .8rem; }

.gift-back {
  flex: 0 0 34px; width: 34px; height: 34px;
  border-radius: 50%; border: none; cursor: pointer;
  background: var(--bg-2); color: var(--text-2);
  display: none; align-items: center; justify-content: center;
  transition: background .12s, transform .12s, color .12s;
}
.gift-back:hover { background: var(--border-2); color: var(--text); transform: translateX(-2px); }
.modal-gift.is-detail .gift-back { display: inline-flex; }

/* Step container + transitions */
.gift-steps {
  position: relative;
  padding: 12px 16px 18px;
  overflow: hidden;
}
.gift-step {
  transition: opacity .25s var(--ease), transform .3s var(--ease);
  will-change: opacity, transform;
}
.gift-step--detail {
  position: absolute; inset: 12px 16px 18px;
  opacity: 0; transform: translateX(18px);
  pointer-events: none; visibility: hidden;
}
.modal-gift.is-detail .gift-step--pick {
  opacity: 0; transform: translateX(-14px);
  pointer-events: none; height: 0; overflow: hidden;
  visibility: hidden;
}
.modal-gift.is-detail .gift-step--detail {
  position: static;
  opacity: 1; transform: translateX(0);
  pointer-events: auto; visibility: visible;
}

/* Gift terpilih (header preview di step detail) */
.gift-selected {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 6px;
}
.gift-selected-media {
  flex: 0 0 64px; width: 64px; height: 64px;
  border-radius: 14px; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px var(--accent-glow);
  overflow: hidden;
}
.gift-selected-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.gift-selected-media .gift-emoji { font-size: 42px; line-height: 1; }
.gift-selected-info { flex: 1 1 auto; min-width: 0; }
.gift-selected-name {
  font-weight: 800; font-size: 1rem; color: var(--text);
  letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden;
}
.gift-selected-price {
  color: var(--accent); font-weight: 800;
  font-size: 1.05rem; margin-top: 2px;
}
.gift-change {
  flex: 0 0 auto;
  background: var(--surface); color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 7px 14px; font-size: .82rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s, transform .12s;
}
.gift-change:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* Bottom pay bar (mirip TikTok) */
.gift-pay-bar {
  position: sticky; bottom: 0;
  margin-top: 18px;
  padding: 12px 0 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--surface) 30%);
}
.gift-pay-bar .total-line { margin-top: 0; }
.gift-pay-bar .btn-pay { margin-top: 12px; }

/* Mobile tweaks: kompakkan grid TikTok */
@media (max-width: 480px) {
  .gift-grid--tiktok { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .gift-grid--tiktok .gift-card { min-height: 100px; padding: 8px 3px 7px; border-radius: 12px; }
  .gift-grid--tiktok .gift-card .gift-img,
  .gift-grid--tiktok .gift-card .gift-emoji { width: 42px; height: 42px; line-height: 42px; }
  .gift-grid--tiktok .gift-card .gift-emoji { font-size: 32px; }
  .gift-grid--tiktok .gift-card .gift-name { font-size: .68rem; }
  .gift-grid--tiktok .gift-card .gift-price { font-size: .68rem; }

  .gift-selected { padding: 10px 12px; gap: 10px; }
  .gift-selected-media { flex: 0 0 56px; width: 56px; height: 56px; }
  .gift-selected-name { font-size: .95rem; }
  .gift-selected-price { font-size: 1rem; }
  .gift-change { padding: 6px 12px; font-size: .78rem; }
}
@media (min-width: 600px) {
  .gift-grid--tiktok { grid-template-columns: repeat(5, 1fr); }
}

/* ================================================================
   RECENT SUPPORTERS
   ================================================================ */
.supporters { display: flex; flex-direction: column; gap: 8px; }
.supporter {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  transition: border-color .18s;
}
.supporter:hover { border-color: var(--border-2); }
.supporter .s-ico {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.supporter .s-body { flex: 1; min-width: 0; }
.supporter .s-name { font-weight: 700; font-size: .88rem; letter-spacing: -.01em; }
.supporter .s-name span { color: var(--accent); font-weight: 600; }
.supporter .s-msg { color: var(--muted); font-size: .84rem; margin-top: 2px; word-break: break-word; }
.supporter .s-time { color: var(--muted); font-size: .7rem; white-space: nowrap; flex: 0 0 auto; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  text-align: center;
  margin-top: 48px;
  color: var(--muted);
  font-size: .78rem;
}
.footer a { color: var(--accent); font-weight: 600; }
.footer p {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 5px;
}
.footer-heart { width: 14px; height: 14px; color: var(--accent); vertical-align: middle; flex: 0 0 auto; }

/* ================================================================
   TOAST
   ================================================================ */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  opacity: 0; visibility: hidden;
  background: var(--text); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .88rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: all .28s var(--ease);
  max-width: 90%; text-align: center;
  letter-spacing: -.01em;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty { text-align: center; color: var(--muted); padding: 20px; font-size: .9rem; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (min-width: 600px) {
  .cover { height: 220px; }
  .page { padding: 0 20px 80px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 360px) {
  .gift-grid { gap: 7px; }
  .gift-card { padding: 9px 4px 8px; }
  .gift-card .gift-img { width: 42px; height: 42px; }
  .profile h1 { font-size: 1.4rem; }
}

/* ================================================================
   ARTICLE (page.php) – tetap dipertahankan
   ================================================================ */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 22px 0 18px;
  color: var(--muted); font-weight: 600; font-size: .9rem;
}
.back-link:hover { color: var(--accent); }

.article {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow);
}
.article-cover img { width: 100%; max-height: 320px; object-fit: cover; }
.article-head { padding: 22px 22px 0; }
.article-head h1 {
  font-size: 1.55rem; font-weight: 800;
  letter-spacing: -.03em; line-height: 1.25;
}
.article-meta { color: var(--muted); font-size: .82rem; margin-top: 8px; }
.article-body { padding: 18px 22px 26px; color: var(--text); }
.article-body p { margin: 0 0 14px; }
.article-body h1,.article-body h2,.article-body h3 {
  margin: 22px 0 10px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3;
}
.article-body h1 { font-size: 1.4rem; }
.article-body h2 { font-size: 1.2rem; }
.article-body h3 { font-size: 1.05rem; }
.article-body ul,.article-body ol { margin: 0 0 14px; padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.article-body img { border-radius: var(--radius-sm); margin: 12px 0; }
.article-body blockquote {
  margin: 16px 0; padding: 10px 16px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body pre {
  background: var(--text); color: #fff;
  padding: 14px 16px; border-radius: var(--radius-sm);
  overflow-x: auto; font-size: .85rem; margin: 0 0 14px;
}
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.article-notfound { text-align: center; padding: 50px 20px; }
.article-notfound .nf-emoji { font-size: 48px; }
.article-notfound h1 { font-size: 1.4rem; margin: 12px 0 6px; }
.article-notfound p { color: var(--muted); margin-bottom: 20px; }

/* ================================================================
   ACCESS / DOWNLOAD PAGE
   ================================================================ */
.access-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: 30px 24px;
  text-align: center; margin-top: 12px;
  box-shadow: var(--shadow);
}
.access-status {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.access-status.ok { background: rgba(34,160,90,.12); color: #22a05a; }
.access-status.pending { background: var(--accent-soft); color: var(--accent); }
.access-card h1 { font-size: 1.3rem; margin-bottom: 8px; }
.access-card > p { color: var(--muted); font-size: .93rem; max-width: 420px; margin: 0 auto 18px; }
.access-delivery { text-align: left; margin-top: 8px; }
.access-delivery .btn-pay { text-decoration: none; display: block; text-align: center; }
.delivery-note { color: var(--muted); font-size: .8rem; margin-top: 8px; text-align: center; }
.delivery-item {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin-top: 14px;
}
.di-label { font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.di-link { color: var(--accent); word-break: break-all; font-size: .9rem; }
.di-text {
  white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85rem; color: var(--text);
  background: var(--surface); border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm); padding: 12px; margin: 0;
}
.alert-box.warn {
  background: #fff3cd; color: #8a6d00;
  border: 1px solid #ffe69c;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: .88rem;
}
.access-meta { margin-top: 18px; color: var(--muted); font-size: .78rem; }
.access-meta code { background: var(--bg); padding: 2px 7px; border-radius: 6px; }

/* ================================================================
   VOUCHER
   ================================================================ */
.voucher-row { display: flex; gap: 8px; }
.voucher-row input { flex: 1; }
.voucher-apply {
  border: none; background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 700; font-size: .85rem; padding: 0 16px;
  border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.voucher-apply:hover { background: var(--accent); color: #fff; }
.voucher-apply:disabled { opacity: .6; cursor: default; }
.voucher-msg { font-size: .8rem; margin-top: 6px; font-weight: 600; }
.voucher-msg.ok { color: #22a05a; }
.voucher-msg.err { color: #d64545; }
.discount-line .discount-amt { color: #22a05a; font-weight: 700; }

/* ================================================================
   PRODUCT DETAIL PAGE
   ================================================================ */
.product-detail {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden; margin-top: 12px;
  box-shadow: var(--shadow);
}
.pd-cover {
  position: relative; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-2));
  display: flex; align-items: center; justify-content: center;
}
.pd-cover img { width: 100%; height: 100%; object-fit: cover; }
.pd-cover-fallback { color: var(--accent); opacity: .5; }
.pd-cover-fallback svg { width: 64px; height: 64px; }
.pd-cover .pc-tag { top: 14px; left: 14px; }

/* ---- Product Detail Carousel (auto-play + dots) ---- */
.pd-carousel {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-2));
  outline: none; isolation: isolate;
}
.pd-carousel-track {
  display: flex; width: 100%; height: 100%;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.pd-carousel-slide {
  flex: 0 0 100%; min-width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.pd-carousel-slide img {
  width: 100%; height: 100%; object-fit: cover; user-select: none;
  -webkit-user-drag: none; pointer-events: none;
}
.pd-carousel .pc-tag { position: absolute; top: 14px; left: 14px; z-index: 3; }
.pd-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; z-index: 3;
  background: rgba(30,26,23,.42); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s var(--ease), transform .18s var(--ease), background .18s;
}
.pd-carousel-nav:hover { background: rgba(30,26,23,.62); transform: translateY(-50%) scale(1.06); }
.pd-carousel-nav.prev { left: 12px; }
.pd-carousel-nav.next { right: 12px; }
.pd-carousel:hover .pd-carousel-nav,
.pd-carousel:focus-within .pd-carousel-nav { opacity: 1; }
.pd-carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px; z-index: 3;
  padding: 0 16px;
}
.pd-carousel-dot {
  width: 8px; height: 8px; border-radius: 999px;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.55);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: width .25s var(--ease), background .2s, transform .15s;
}
.pd-carousel-dot:hover { background: rgba(255,255,255,.85); transform: scale(1.15); }
.pd-carousel-dot.is-active {
  width: 22px; background: #fff;
}
@media (max-width: 480px) {
  .pd-carousel-nav { width: 34px; height: 34px; opacity: 1; background: rgba(30,26,23,.32); }
}
@media (prefers-reduced-motion: reduce) {
  .pd-carousel-track { transition: none; }
}

/* ---- Admin: Gallery preview grid ---- */
.gallery-grid {
  display: grid; gap: 10px; margin: 8px 0 12px;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}
.gallery-item {
  position: relative; display: block;
  border-radius: 12px; overflow: hidden;
  border: 1.5px solid var(--border, #e8dfd5);
  background: #fafafa; aspect-ratio: 1/1;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-remove {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; font-size: 12px; font-weight: 600;
  color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,0));
}
.gallery-remove input { width: 16px; height: 16px; accent-color: #e3563a; }
.gallery-item:has(input:checked) { outline: 3px solid #e3563a; outline-offset: -3px; }
.gallery-item:has(input:checked) img { opacity: .55; filter: grayscale(.4); }
.pd-head { padding: 22px 22px 0; }
.pd-head h1 { font-size: 1.5rem; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.pd-price { color: var(--accent); font-weight: 800; font-size: 1.5rem; margin-top: 8px; }
.pd-sub { color: var(--muted); margin-top: 10px; font-size: .93rem; }
.pd-actions { padding: 18px 22px 0; }
.pd-actions .btn-pay { text-decoration: none; }
.pd-share {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 16px 22px; border-bottom: 1px solid var(--border); margin-top: 18px;
}
.pd-share-label { font-size: .85rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.share-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: transform .12s var(--ease), background .15s, color .15s, border-color .15s;
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn.wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-btn.tg:hover { background: #29a9eb; color: #fff; border-color: #29a9eb; }
.share-btn.fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.copy:hover, #shareNative:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pd-body { padding: 4px 22px 8px; }
.pd-trust {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 14px 22px 22px; color: var(--muted); font-size: .83rem;
}
.pd-trust div { display: flex; align-items: center; gap: 7px; }
.pd-trust svg { color: var(--accent); flex: 0 0 auto; }

/* ================================================================
   ENTRANCE ANIMATIONS
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero, .profile, .searchbar { animation: fadeSlideUp .45s var(--ease) both; }
  .profile { animation-delay: .08s; }
  .searchbar { animation-delay: .14s; }
  .section { animation: fadeSlideUp .4s var(--ease) both; }
  .section:nth-child(3) { animation-delay: .04s; }
  .section:nth-child(4) { animation-delay: .08s; }
  .section:nth-child(5) { animation-delay: .12s; }
  .section:nth-child(6) { animation-delay: .16s; }

  @keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ===================================================================
   "Lihat semua" pill (di bio utama) → linkkan ke halaman dedikasi
   =================================================================== */
.btn-see-all {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px auto 0;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-weight: 700; font-size: .92rem;
  text-decoration: none;
  letter-spacing: -.005em;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: background .18s var(--ease, ease), color .18s var(--ease, ease), transform .12s var(--ease, ease), box-shadow .18s var(--ease, ease);
}
.btn-see-all:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-soft);
}
.btn-see-all svg { width: 16px; height: 16px; transition: transform .15s var(--ease, ease); }
.btn-see-all:hover svg { transform: translateX(3px); }
.section { display: flex; flex-direction: column; }
.section .btn-see-all { align-self: center; }

/* ===================================================================
   LISTING PAGES (/produk, /links, /konten) — Mobile-first, theme-aware
   =================================================================== */
.listing-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 380px at 50% -120px, var(--accent-soft) 0%, transparent 70%),
    var(--bg, #fbf6ef);
  color: var(--text, #1e1a17);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Hero (mini profile + judul) */
.listing-hero {
  position: relative;
  padding: max(64px, calc(env(safe-area-inset-top) + 50px)) 18px 18px;
  text-align: center;
  z-index: 2;
}
.listing-back {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px 8px 10px;
  background: rgba(255,255,255,.92);
  color: var(--text, #1e1a17);
  border: 1px solid var(--border, #e8dfd5);
  border-radius: 999px;
  font-size: .82rem; font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(30,26,23,.12);
  transition: background .18s, color .18s, border-color .18s;
  z-index: 9999;
}
.listing-back i { font-size: 11px; transition: transform .15s; }
.listing-back:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.listing-back:hover i { transform: translateX(-3px); }
.listing-back .lb-text { display: inline; }
@media (max-width: 380px) {
  .listing-back .lb-text { display: none; }
  .listing-back { padding: 8px 10px; }
}

.listing-owner {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  padding: 4px 12px 4px 4px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border, #e8dfd5);
  border-radius: 999px;
  font-size: .78rem; color: var(--text-2, #6e6157);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.listing-owner img,
.listing-owner .lo-fallback {
  width: 26px; height: 26px; border-radius: 50%;
  object-fit: cover; flex: 0 0 26px;
  background: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 800; font-size: .78rem;
}
.listing-owner .lo-name { font-weight: 700; color: var(--text, #1e1a17); }
.listing-owner .lo-handle { color: var(--text-2, #6e6157); }

.listing-title {
  font-size: clamp(1.6rem, 5vw + .4rem, 2.4rem);
  font-weight: 800; letter-spacing: -.025em;
  margin: 0 0 6px;
  background: linear-gradient(135deg, var(--text, #1e1a17), var(--accent) 130%);
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.listing-sub {
  color: var(--text-2, #6e6157);
  font-size: .94rem; margin: 0 0 18px;
  max-width: 480px; margin-inline: auto;
  padding: 0 6px 14px;
}

/* Search bar — sticky, theme-aware */
.listing-search {
  position: sticky; top: 8px; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 0 auto;
  background: rgba(255,255,255,.92);
  border: 1.5px solid var(--border, #e8dfd5);
  border-radius: 16px;
  padding: 11px 14px;
  box-shadow: 0 4px 16px rgba(30,26,23,.06), 0 1px 0 rgba(255,255,255,.4) inset;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: border-color .18s, box-shadow .18s, transform .12s;
}
.listing-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 4px 16px rgba(30,26,23,.06);
}
.listing-search > i { color: var(--accent); font-size: 15px; flex: 0 0 auto; }
.listing-search input {
  flex: 1 1 auto; min-width: 0;
  border: none; outline: none; background: transparent;
  font: inherit; font-size: .96rem;
  color: var(--text, #1e1a17);
  -webkit-appearance: none;
}
.listing-search input::placeholder { color: var(--text-2, #8c7e75); opacity: .85; }
.listing-count {
  flex: 0 0 auto;
  font-size: .76rem; font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 11px; border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .01em;
}
.listing-clear {
  width: 22px; height: 22px; padding: 0; flex: 0 0 22px;
  border: none; cursor: pointer; background: var(--bg-2, #f1ece6);
  color: var(--text-2, #6e6157);
  border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1;
  transition: background .15s, color .15s, transform .12s;
}
.listing-clear:hover { background: var(--accent); color: #fff; transform: scale(1.08); }
.listing-search.has-query .listing-clear { display: inline-flex; }

/* Section wrap */
.section--listing { padding: 20px 14px 60px; max-width: 1200px; margin: 0 auto; }

/* Grid produk responsif: 2/3/4 kolom + spacing yang nyaman */
.product-grid--full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 560px) { .product-grid--full { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 820px) { .product-grid--full { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

/* Card lift dengan glow tema */
.section--listing .product-card,
.section--listing .content-card,
.section--listing .link-item {
  transition: transform .2s var(--ease, ease), box-shadow .25s var(--ease, ease), border-color .2s;
  animation: listFadeIn .42s var(--ease, ease) both;
}
.section--listing .product-card:hover,
.section--listing .content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px var(--accent-soft), 0 6px 16px rgba(30,26,23,.06);
}
.section--listing .link-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px var(--accent-soft);
}
@keyframes listFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .section--listing .product-card,
  .section--listing .content-card,
  .section--listing .link-item { animation: none; transition: none; }
}

/* Link list di listing: ratakan lebar + padding sentuh nyaman */
.section--listing .link-list { gap: 10px; }
.section--listing .link-item { padding: 14px 16px; min-height: 64px; }

/* Pc-buy → versi "Lihat" link untuk listing */
.pc-buy.is-disabled,
.pc-buy[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Empty state */
.listing-empty {
  text-align: center; padding: 64px 24px 80px;
  color: var(--text-2, #8c7e75);
  max-width: 420px; margin: 0 auto;
}
.listing-empty-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 14px;
}
.listing-empty h3 {
  font-size: 1.05rem; font-weight: 800;
  color: var(--text, #1e1a17);
  margin: 0 0 4px;
}
.listing-empty p { margin: 0; font-size: .9rem; line-height: 1.5; }

/* FAB "kembali ke bio" — muncul di mobile saat scroll */
.fab-home {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0));
  width: 52px; height: 52px;
  border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 10px 28px -6px var(--accent), 0 4px 14px rgba(30,26,23,.18);
  z-index: 12;
  opacity: 0; transform: translateY(20px) scale(.9);
  transition: opacity .22s var(--ease, ease), transform .22s var(--ease, ease), background .15s;
  text-decoration: none;
}
.fab-home.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.fab-home:hover { background: var(--accent-dark); }
.fab-home:active { transform: translateY(0) scale(.94); }
@media (max-width: 600px) { .fab-home { display: inline-flex; } }
@media (min-width: 601px) { .fab-home { display: none; } }

/* iOS / Android: 44pt minimum touch target */
.section--listing a, .section--listing button { -webkit-tap-highlight-color: transparent; }
