:root {
  --bg: #fff;
  --surface: #fff;
  --paper: #f4f5f3;
  --ink: #161d1f;
  --ink2: #5d696d;
  --line: #d9dedc;
  --line2: #ebeeec;
  --accent-base: #0b6e56;
  --accent: var(--accent-base);
  --accent-bg: var(--accent-base);
  --accent-ink: #fff;
  --edge: color-mix(in srgb, var(--accent-bg) 58%, #000);
  --tint: color-mix(in srgb, var(--accent) 9%, var(--surface));
  --sticker: #f6c945;
  --danger: #b3321f;
  --star: #c47f00;
  --warn-bg: #fdf3d6;
  --danger-bg: #fbe9e6;
  --cred-bg: #f1f4f2;
  --receipt-bg: #fbfcfb;
  --dash: #8a979c;
  --btn-line: #161d1f;
  --note-bg: #161d1f;
  --note-ink: #fff;
  --shadow: 22, 29, 31;
  --dot: rgba(22, 29, 31, .12);
  --pic-s: 34%;
  --pic-l: 93%;
  --pic-ink: 36%;
  --head: 'Familjen Grotesk', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e1315;
  --surface: #151c1f;
  --paper: #1c2528;
  --ink: #e8eeee;
  --ink2: #9aa8ac;
  --line: #2b373b;
  --line2: #222c2f;
  --accent: color-mix(in srgb, var(--accent-base) 70%, #fff); /* teks dan tautan: lebih terang agar terbaca */
  --accent-bg: color-mix(in srgb, var(--accent-base) 88%, #fff); /* latar tombol: tetap pekat agar teks putih terbaca */
  --tint: color-mix(in srgb, var(--accent) 16%, var(--surface));
  --danger: #ff8f7d;
  --star: #e3a52f;
  --warn-bg: #3a3118;
  --danger-bg: #3a1f1b;
  --cred-bg: #0d1315;
  --receipt-bg: #121a1d;
  --dash: #4d5d62;
  --btn-line: #4a5b60;
  --note-bg: #243135;
  --note-ink: #e8eeee;
  --shadow: 0, 0, 0;
  --dot: rgba(255, 255, 255, .08);
  --pic-s: 24%;
  --pic-l: 20%;
  --pic-ink: 74%;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink2); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- strip ---------- */
.note { background: var(--note-bg); color: var(--note-ink); font-size: 13.5px; padding: 8px 20px; text-align: center; }
.pending { background: var(--sticker); color: #161d1f; font-size: 14px; }
.pending .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.pending .link { color: #161d1f; white-space: nowrap; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background-color: var(--bg); background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 20px 20px;
}
.hero-in { display: grid; gap: 8px; padding-top: 26px; padding-bottom: 20px; }
.who { display: flex; align-items: center; gap: 16px; }
.who h1 { font: 700 clamp(27px, 5.4vw, 42px)/1.06 var(--head); letter-spacing: -.02em; }
.who p { margin-top: 5px; font-size: 14.5px; line-height: 1.4; color: var(--ink2); max-width: 36ch; }
.avatar {
  position: relative; flex: none; width: 76px; height: 76px; border-radius: 22px; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font: 700 26px var(--head);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line), 0 16px 22px -10px rgba(var(--shadow), .55);
  transform: perspective(500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s ease-out;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--surface); }
.bio { margin-top: 16px; font-size: 15px; color: var(--ink2); max-width: 52ch; }
.trust { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.contacts { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.contacts a { font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* panggung 3D: kartu produk melayang, bergerak mengikuti kursor */
.stage { position: relative; height: 188px; perspective: 900px; margin-top: 4px; }
.stack {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(var(--my, 0) * -9deg)) rotateY(calc(var(--mx, 0) * 13deg)); transition: transform .2s ease-out;
}
.sc {
  position: absolute; left: 50%; top: 50%; width: var(--w, 108px); padding: 5px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 26px 30px -22px rgba(var(--shadow), .55), 0 3px 0 var(--line2);
  transform-style: preserve-3d; transform: translate(var(--x), var(--y)) translateZ(var(--z)) rotateY(var(--r)) rotateX(6deg);
  animation: bob 6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.sc .pic { border-radius: 11px; aspect-ratio: 4 / 3; }
.sc .pic i { font-size: 30px; }
.sc-info { display: block; padding: 7px 4px 3px; line-height: 1.25; }
.sc-info b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-info small { font: 700 12px var(--head); color: var(--accent); }
.sc0 { --x: -58px; --y: -42px; --z: 80px; --r: -14deg; --w: 132px; }
.sc1 { --x: -164px; --y: -90px; --z: 0px; --r: -22deg; --d: -2s; }
.sc2 { --x: 46px; --y: -94px; --z: -50px; --r: -8deg; --d: -4s; }
.sc3 { --x: 62px; --y: 8px; --z: 30px; --r: -18deg; --w: 118px; --d: -3s; display: none; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (hover: none) { .stack { animation: sway 9s ease-in-out infinite; } }
@keyframes sway { 0%, 100% { transform: rotateY(-9deg) rotateX(3deg); } 50% { transform: rotateY(9deg) rotateX(-2deg); } }

@media (max-width: 899px) { .trust { display: none; } .hero-actions { margin-top: 16px; } }

@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding-top: 50px; padding-bottom: 58px; }
  .avatar { width: 92px; height: 92px; font-size: 32px; }
  .stage { height: 420px; margin: 0; }
  .sc { --w: 176px; padding: 8px; }
  .sc0 { --w: 212px; --x: -112px; --y: -76px; }
  .sc1 { --w: 176px; --x: -232px; --y: -196px; }
  .sc2 { --w: 176px; --x: 66px; --y: -206px; }
  .sc3 { display: block; --w: 160px; --x: 98px; --y: 6px; }
  .sc .pic i { font-size: 52px; }
  .sc-info b { font-size: 14px; }
}

/* ---------- pencarian & kategori ---------- */
.bar-row { display: flex; gap: 10px; padding: 18px 0 14px; }
.search { position: relative; flex: 1; display: block; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink2); pointer-events: none; }
.search input:not([type=radio]) { padding-left: 36px; }
#sort { width: auto; flex: none; }
.bar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 11px 0 9px; margin-bottom: -1px; color: var(--ink2); font-weight: 600; white-space: nowrap; transition: color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-current="true"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- kartu produk 3D ---------- */
.list { min-height: 40vh; padding-bottom: 12px; }
.group { margin-top: 34px; }
.group-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; font: 700 26px var(--head); letter-spacing: -.015em; }
.group-title small { font: 500 13px var(--body); color: var(--ink2); letter-spacing: 0; }
.group-title::after { content: ""; flex: 1; height: 0; border-top: 2px dotted var(--line); align-self: center; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cards li { display: flex; perspective: 1100px; }

.card {
  position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 1px 0 var(--line2), 0 14px 20px -18px rgba(var(--shadow), .4);
  transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s ease-out, box-shadow .2s;
}
.card:hover:not(:disabled) { box-shadow: 0 30px 34px -22px rgba(var(--shadow), .6); border-color: color-mix(in srgb, var(--line) 60%, var(--ink)); }
.card:disabled { cursor: not-allowed; }
.pic-wrap { position: relative; transform-style: preserve-3d; }
.pic {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  background: hsl(var(--h, 160) var(--pic-s) var(--pic-l)); border-radius: 17px 17px 0 0; transition: transform .25s ease-out;
}
.pic i { font: 700 clamp(40px, 9vw, 64px) var(--head); font-style: normal; color: hsl(var(--h, 160) 45% var(--pic-ink)); }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: hsl(var(--h, 160) var(--pic-s) var(--pic-l)); }
.pic-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 17px 17px 0 0; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .6), transparent 55%);
}
.card:hover:not(:disabled) .pic-wrap::after { opacity: 1; }
.card:hover:not(:disabled) .pic { transform: translateZ(30px) scale(.95); border-radius: 14px; }
.off, .tag, .ribbon { position: absolute; z-index: 2; font-weight: 700; border-radius: 6px; }
.off { left: 10px; top: 10px; padding: 2px 8px; font-size: 12px; background: var(--sticker); color: #161d1f; transform: translateZ(44px) rotate(-4deg); box-shadow: 0 4px 0 rgba(var(--shadow), .2); }
.tag { right: 10px; top: 10px; padding: 2px 8px; font-size: 11.5px; background: #161d1f; color: #fff; transform: translateZ(38px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.ribbon { left: 50%; top: 50%; padding: 4px 14px; background: #161d1f; color: #fff; font-size: 13px; transform: translate(-50%, -50%) rotate(-6deg) translateZ(20px); }
.c-body { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 13px 15px 15px; }
.c-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.c-desc { font-size: 12.5px; line-height: 1.4; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 10px; transform-style: preserve-3d; }
.c-price b { display: block; font: 700 18px var(--head); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.c-price s { font-size: 12px; color: var(--ink2); text-decoration-thickness: 1px; }
.c-go {
  padding: 7px 15px; border-radius: 9px; background: var(--accent-bg); color: var(--accent-ink); font-weight: 700; font-size: 13.5px;
  border: 1px solid var(--edge); box-shadow: 0 3px 0 var(--edge); transform: translateZ(28px); transition: transform .1s, box-shadow .1s;
}
.card:active:not(:disabled) .c-go { transform: translateZ(28px) translateY(3px); box-shadow: 0 0 0 var(--edge); }
.c-meta { font-size: 12px; color: var(--ink2); }
.c-meta.low { color: var(--danger); font-weight: 600; }
.card.out { background: var(--paper); }
.card.out .pic { filter: grayscale(1); opacity: .5; }
.card.out .c-go { background: var(--line2); border-color: var(--line); box-shadow: none; color: var(--ink2); }
.empty { padding: 56px 0; text-align: center; color: var(--ink2); }

@media (min-width: 620px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 560px) {
  .c-body { padding: 11px 12px 13px; }
  .c-name { font-size: 14px; }
  .c-price b { font-size: 16px; }
  .c-go { padding: 6px 12px; }
}

/* muncul pelan saat di-scroll (hanya jika gerak diizinkan) */
.fx .reveal { opacity: 0; transform: translateY(26px) rotateX(-8deg); transition: opacity .5s ease-out, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 45ms); }
.fx .reveal.in { opacity: 1; transform: none; }

/* ---------- ulasan & footer ---------- */
.reviews { margin-top: 50px; }
.rev-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.rev-head h2 { font: 700 26px var(--head); letter-spacing: -.015em; }
.rev-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rev { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 18px -16px rgba(var(--shadow), .4); }
.rev .st { color: var(--star); letter-spacing: 1px; font-size: 14px; }
.rev .st i { color: var(--line); font-style: normal; }
.rev p { margin: 6px 0 8px; }
.rev small { color: var(--ink2); font-size: 13px; }
.rev small b { color: var(--ink); }
.foot { margin-top: 56px; padding: 22px 0 48px; border-top: 1px solid var(--line); font-size: 13.5px; }
.foot p { margin-top: 3px; max-width: 52ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.foot-links button { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

/* ---------- form & tombol timbul ---------- */
label, legend { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; padding: 0; }
input:not([type=radio]), select, textarea { width: 100%; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; line-height: 1.4; }
input:not([type=radio]):focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { resize: vertical; }
.f { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.hint { font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.hint.good { color: var(--accent); font-weight: 600; }
.hint.bad { color: var(--danger); font-weight: 500; }
.err { color: var(--danger); font-size: 14px; font-weight: 500; margin: 0 0 12px; }
.fine { margin-top: 12px; font-size: 12.5px; color: var(--ink2); text-align: center; }
.fine .link { font-weight: 500; }
.vrow { display: flex; gap: 8px; margin-top: 8px; }

.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--btn-line); background: var(--surface); font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 3px 0 var(--btn-line); transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { background: var(--paper); transform: translateY(-1px); box-shadow: 0 4px 0 var(--btn-line); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--btn-line); }
.btn.primary { background: var(--accent-bg); border-color: var(--edge); color: var(--accent-ink); box-shadow: 0 3px 0 var(--edge); }
.btn.primary:hover { background: var(--accent-bg); filter: brightness(1.06); box-shadow: 0 4px 0 var(--edge); }
.btn.primary:active { box-shadow: 0 0 0 var(--edge); }
.btn.ghost, .btn.small { border-color: var(--line); box-shadow: 0 2px 0 var(--line); }
.btn.ghost:hover, .btn.small:hover { box-shadow: 0 3px 0 var(--line); }
.btn.ghost:active, .btn.small:active { box-shadow: none; transform: translateY(2px); }
.btn.block { width: 100%; padding: 14px 18px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn.small { padding: 5px 12px; font-size: 13px; border-radius: 8px; font-weight: 600; }

.pay { display: grid; gap: 8px; }
.pay legend { margin-bottom: 8px; }
.pm { display: flex; gap: 12px; align-items: center; padding: 10px 14px; margin: 0; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; }
.pm:has(input:checked) { border-color: var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); }
.pm input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; flex: none; }
.pm > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.pm.static { cursor: default; border-color: var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); }
.pm b { font-size: 14.5px; }
.pm small { color: var(--ink2); font-size: 12.5px; }

/* ---------- dialog ---------- */
dialog { border: 0; padding: 0; background: var(--surface); color: var(--ink); width: min(460px, calc(100% - 24px)); max-height: min(92vh, 880px); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(22, 29, 31, .55); }
dialog[open] { animation: pop .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: perspective(900px) rotateX(-10deg) translateY(22px) scale(.97); } }
@media (max-width: 560px) { dialog { margin: auto 0 0; width: 100%; max-width: none; border-radius: 18px 18px 0 0; max-height: 94vh; } }
.dh { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line2); }
.dh h2 { font: 700 18px var(--head); letter-spacing: -.01em; }
.x { background: none; border: 0; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink2); }
.x:hover { background: var(--paper); color: var(--ink); }
.db { padding: 20px; }

.tile { position: relative; flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: hsl(var(--h, 160) 36% 34%); color: #fff; font: 700 16px var(--head); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.sum { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line2); }
.sum strong { display: block; line-height: 1.3; }
.sum small { color: var(--ink2); }

.receipt { margin: 4px 0 16px; padding: 14px 16px; border: 1px dashed var(--dash); border-radius: 6px; background: var(--receipt-bg); font-variant-numeric: tabular-nums; }
.receipt div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.receipt .cut { color: var(--accent); font-weight: 600; }
.receipt .total { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--dash); font: 700 18px var(--head); }

.pay-total { text-align: center; padding: 4px 0 14px; }
.pay-total small { display: block; color: var(--ink2); }
.pay-total b { display: block; font: 700 34px/1.15 var(--head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qr { width: 280px; max-width: 100%; margin: 0 auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; }
.qr img, .qr canvas { display: block; width: 260px; max-width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.qr-note { text-align: center; margin: 8px 0 0; }
.va { text-align: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.va small { color: var(--ink2); display: block; }
.va b { display: block; margin: 4px 0 10px; font: 600 24px var(--mono); letter-spacing: .02em; word-break: break-all; }
.clock { margin: 14px 0; text-align: center; font-size: 14px; color: var(--ink2); }
.clock b { color: var(--ink); font-variant-numeric: tabular-nums; }
.wait { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 500; padding: 11px; background: var(--tint); border-radius: 8px; }
.spin { width: 15px; height: 15px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { margin: 16px 0 0 18px; padding: 0; font-size: 13.5px; color: var(--ink2); }
.steps li { margin: 3px 0; list-style: decimal; }
.inv { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--dash); font-size: 13px; color: var(--ink2); }
.inv code { font: 500 13px var(--mono); color: var(--ink); word-break: break-all; }

.okmark { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 12px; box-shadow: 0 4px 0 var(--edge); }
.okmark svg { width: 22px; height: 22px; }
.done h3 { font: 700 22px var(--head); letter-spacing: -.01em; }
.cred-l { margin: 18px 0 6px; font-weight: 600; font-size: 13.5px; }
.cred { margin: 0; padding: 14px; background: var(--cred-bg); border: 1px solid var(--line); border-radius: 8px; font: 500 14px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; user-select: all; }
.cred-actions { display: flex; gap: 8px; margin-top: 10px; }
.callout { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--warn-bg); font-size: 14px; }
details { margin-top: 12px; border-top: 1px solid var(--line2); padding-top: 10px; }
summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details p { margin-top: 8px; font-size: 13.5px; color: var(--ink2); white-space: pre-line; }

.hist { margin-top: 16px; }
.hist li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line2); }
.hist small { display: block; color: var(--ink2); }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--paper); white-space: nowrap; }
.badge.completed { background: var(--tint); color: var(--accent); }
.badge.pending { background: var(--warn-bg); }
.badge.expired { color: var(--danger); background: var(--danger-bg); }

.stars { display: flex; gap: 2px; }
.stars button { background: none; border: 0; padding: 2px; font-size: 28px; line-height: 1; color: var(--line); }
.stars button.on { color: var(--star); }
.prose { font-size: 14.5px; white-space: pre-line; }

#toast { position: fixed; inset: auto auto 24px 50%; transform: translateX(-50%); margin: 0; border: 0; background: var(--note-bg); color: var(--note-ink); padding: 10px 16px; border-radius: 8px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
#toast:empty { display: none; }
body:has(dialog[open]) { overflow: hidden; }

/* ---------- kerangka atas yang dipakai juga oleh admin ---------- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--head); letter-spacing: -.01em; }

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

/* ---------- detail layanan & akun ---------- */
.det-pic .pic { aspect-ratio: 16 / 10; border-radius: 14px; }
.det-pic .pic i { font-size: 72px; }
.det-head { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.det-head h3 { font: 700 24px/1.15 var(--head); letter-spacing: -.01em; }
.det-tag, .det-off { background: var(--sticker); color: #161d1f; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.det-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
.det-price b { font: 700 32px var(--head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.det-price s { color: var(--ink2); }
.det-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.det-chips span { font-size: 12.5px; font-weight: 600; padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink2); }
.acct-note { margin-top: 14px; padding: 11px 14px; border-radius: 10px; background: var(--tint); font-size: 13.5px; line-height: 1.45; }
.acct-note:empty { display: none; }
.sum + .acct-note { margin: -4px 0 16px; }
.det-h { font: 700 15px var(--head); margin: 20px 0 8px; }
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.4; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-bg); }
.checks li::after { content: ""; position: absolute; left: 5.5px; top: 5px; width: 9px; height: 5px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg); }
.steps.big { margin-left: 20px; font-size: 14.5px; color: var(--ink); }
.steps.big li { margin: 5px 0; }
.det-foot { position: sticky; bottom: 0; padding: 14px 20px; background: var(--surface); border-top: 1px solid var(--line2); }
.prof { display: flex; align-items: center; gap: 14px; }
.prof small { display: block; color: var(--ink2); }
.avatar-sm { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 700 20px var(--head); }
.avatar-sm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rowbtn { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 0; }
.hist li:has(.rowbtn) { padding: 0; }
.hist .rowbtn { padding: 11px 6px; border-radius: 8px; }
.hist .rowbtn:hover { background: var(--paper); }
.acct-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.link.danger { color: var(--danger); }
.g-btn { display: flex; justify-content: center; margin: 18px 0 6px; min-height: 44px; }

/* ---------- tombol tema terang/gelap ---------- */
.theme-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 2px 0 var(--line); padding: 0; transition: transform .08s, box-shadow .08s; }
.theme-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--line); }
.theme-btn:active { transform: translateY(2px); box-shadow: none; }
.theme-btn svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.hero-in { position: relative; }
.hero .theme-btn { position: absolute; top: 14px; right: 20px; z-index: 5; }
