:root {
  --bg1: #ffd9e8;
  --bg2: #fff5f9;
  --pink: #ec5f94;
  --pink-l: #f7799f;
  --pink-soft: #ffe3ee;
  --line: #f8c4d8;
  --plum: #6b1f43;
  --plum-soft: #a2587d;
  --green: #06240f;
  --gold: #d9b24c;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--plum);
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 38%, #ffeaf3 100%) fixed;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: 34px 18px 40px; }

.decor span { position: fixed; z-index: 0; font-size: 22px; color: #f7a8c6; opacity: .55; pointer-events: none; }

/* Profil */
.profile { text-align: center; margin-bottom: 22px; }
.avatar .ring {
  width: 156px; height: 156px; margin: 0 auto; border-radius: 50%;
  padding: 6px; background: #fff; border: 5px solid var(--pink-l);
  box-shadow: 0 10px 30px rgba(236, 95, 148, .28);
  overflow: hidden;
}
.avatar .ring img, .avatar .ring .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .ph { display: grid; place-items: center; background: var(--pink-soft); font-size: 48px; font-weight: 800; color: var(--pink); }
.avatar.sm .ring { width: 46px; height: 46px; border-width: 3px; padding: 2px; margin: 0; box-shadow: none; }
.avatar.sm .ph { font-size: 18px; }
.name { font-family: "Playfair Display", serif; font-style: italic; font-weight: 700; font-size: 44px; line-height: 1.05; margin: 22px 0 4px; }
.user { margin: 0 0 14px; color: var(--pink); font-weight: 600; font-size: 17px; }
.tag { margin: 0; color: var(--plum-soft); font-size: 16px; font-weight: 500; }
.sub { margin: 6px 0 0; font-family: "Playfair Display", serif; font-style: italic; color: var(--pink); font-size: 19px; }

.landing { margin: 0 0 18px; }
.landing img { border-radius: 18px; }

/* Navigasi 4 halaman di Home */
.navgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.nav {
  display: flex; flex-direction: column; gap: 3px; padding: 16px 14px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, var(--pink-l), var(--pink));
  box-shadow: 0 8px 18px rgba(236, 95, 148, .3);
  transition: transform .15s;
}
.nav:active { transform: scale(.97); }
.nav .em { font-size: 24px; }
.nav b { font-size: 16px; line-height: 1.2; }
.nav small { font-size: 12px; opacity: .9; line-height: 1.3; }

/* Header halaman dalam */
.mini { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mini .back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-size: 18px; font-weight: 700; }
.mini small { display: block; color: var(--pink); font-weight: 600; font-size: 13px; }
.ptitle { font-family: "Playfair Display", serif; font-style: italic; font-size: 34px; margin: 6px 0 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--line); font-size: 13px; font-weight: 600; }
.chip.on { background: var(--pink); border-color: var(--pink); color: #fff; }

/* Item */
.items { display: flex; flex-direction: column; gap: 12px; }
.items.v-grid { display: grid; grid-template-columns: 1fr 1fr; }
.items.v-grid > .btn, .items.v-grid > .htmlblock { grid-column: 1 / -1; }

.btn {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 26px; color: #fff;
  background: linear-gradient(135deg, var(--pink-l), var(--pink));
  box-shadow: 0 8px 18px rgba(236, 95, 148, .28);
}
.btn .em { width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .25); border-radius: 50%; }
.btn .tx { flex: 1; min-width: 0; }
.btn b { display: block; font-size: 17px; line-height: 1.25; }
.btn small { display: block; font-size: 13px; opacity: .92; margin-top: 2px; line-height: 1.35; }
.btn i { font-style: normal; font-size: 18px; opacity: .9; }
.btn.st-dark { background: var(--green); color: #f1e3a8; border: 1px solid var(--gold); box-shadow: 0 8px 18px rgba(6, 36, 15, .3); }
.btn.st-white { background: #fff; color: var(--plum); border: 2px solid var(--line); box-shadow: none; }
.btn.st-white .em { background: var(--pink-soft); }

.card { position: relative; display: flex; background: #fff; border: 2px solid var(--line); border-radius: 22px; overflow: hidden; }
.card .cover { background: var(--pink-soft); overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .cover .ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 28px; }
.card h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.price { margin-top: 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price b { color: var(--pink); font-size: 15px; }
.price s { color: #b38aa0; font-size: 12px; }
.arrow { color: var(--pink-l); font-size: 16px; }

/* Tampilan list: satu kolom, kecil */
.v-list .card { flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; }
.v-list .cover { width: 72px; height: 72px; flex: none; border-radius: 16px; }
.v-list .meta { flex: 1; min-width: 0; }

/* Tampilan grid: 2 kolom */
.v-grid .card { flex-direction: column; border-radius: 18px; }
.v-grid .cover { aspect-ratio: 1 / 1; }
.v-grid .meta { padding: 12px 12px 14px; }
.v-grid .card h3 { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.v-grid .arrow { display: none; }

/* Tampilan large: 1 kolom, cover penuh */
.v-large .card { flex-direction: column; border-radius: 24px; }
.v-large .cover img { height: auto; }
.v-large .meta { padding: 14px 16px 18px; }
.v-large .card h3 { font-size: 17px; }
.v-large .price b { font-size: 18px; }
.v-large .arrow { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255, 255, 255, .9); border-radius: 50%; }

.htmlblock { overflow-wrap: anywhere; }
.htmlblock img { border-radius: 16px; }
.empty { text-align: center; color: var(--plum-soft); padding: 30px 0; }
.warn { background: #fff3cd; color: #7a5b00; border-radius: 14px; padding: 10px 14px; font-size: 13px; }
.foot { text-align: center; margin-top: 34px; color: var(--plum-soft); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
