/* Tampilan publik TaboMarket. Dasar: prototype/index.html (layout katalog aoshimarket versi terang + mode gelap).
   Semua warna lewat token di :root; mode gelap menimpa token di :root[data-theme="dark"]. */
:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --ink: #131a2a;
  --ink-2: #4b556b;
  --muted: #8a93a8;
  --line: #e2e6ee;
  --accent: #1f48d1;
  --accent-soft: #e9eefc;
  --sale: #e0384a;
  --sale-soft: #fde8ea;
  --wa: #16a34a;
  --wa-hover: #13893f;
  --booking: #a8650b;
  --booking-soft: #fff3dc;
  --ok-soft: #e5f6ec;
  --sold: #6b7280;
  --sold-soft: #eef0f3;
  --gold: #a26a0e;
  --gold-soft: #fbf1db;
  --header-bg: rgba(243, 245, 249, .92);
  --toast-bg: #131a2a;
  --toast-fg: #ffffff;
  --howto-line: #c9d5f7;
  --chip-line: #c9d5f7;
  --booking-line: #f2d49f;
  --ok-line: #b8e5c8;
  --overlay: rgba(19, 26, 42, .45);
  --t1: #0f766e; --t1-soft: #e3f5f3; --t1-line: #9fd8d1;
  --t2: #1f48d1; --t2-soft: #e9eefc; --t2-line: #b3c4f3;
  --t3: #6d3fd1; --t3-soft: #f0ebfd; --t3-line: #cbb8f2;
  --t4: #a26a0e; --t4-soft: #fbf1db; --t4-line: #e6c88e;
  --media-bg: #e6e9f0;
  --radius: 14px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Mode gelap (dipilih lewat tombol bulan/matahari, default tetap terang) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1320;
  --surface: #161d2d;
  --ink: #e8ecf4;
  --ink-2: #a9b2c6;
  --muted: #7c869c;
  --line: #263047;
  --accent: #7391ff;
  --accent-soft: #1c2850;
  --sale: #ff5a6a;
  --sale-soft: #3a1a22;
  --wa: #22a95a;
  --wa-hover: #1e9650;
  --booking: #f0b35a;
  --booking-soft: #33260f;
  --ok-soft: #12321f;
  --sold: #9aa3b5;
  --sold-soft: #222a3a;
  --gold: #e2b25a;
  --gold-soft: #3a2d14;
  --header-bg: rgba(14, 19, 32, .9);
  --toast-bg: #e8ecf4;
  --toast-fg: #131a2a;
  --howto-line: #2c3c70;
  --chip-line: #2c3c70;
  --booking-line: #6b4f1d;
  --ok-line: #1f5a36;
  --overlay: rgba(4, 7, 14, .65);
  --media-bg: #0b1020;
  --t1: #2dd4bf; --t1-soft: #0f2e2b; --t1-line: #1f5d56;
  --t2: #7c9bff; --t2-soft: #1c2850; --t2-line: #33467f;
  --t3: #b197fc; --t3-soft: #251d45; --t3-line: #4b3a80;
  --t4: #f0b35a; --t4-soft: #33260f; --t4-line: #6b5222;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* ruang scrollbar selalu disediakan: pindah ke halaman pendek (tanpa scrollbar) tidak menggeser isi & menu */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.2; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-line { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-booking { background: var(--booking-soft); color: var(--booking); border-color: var(--booking-line); }
.btn[disabled] { background: var(--sold-soft); color: var(--sold); border-color: var(--line); cursor: not-allowed; }

/* Header: bar tipis di HP, kapsul melayang di desktop */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top .wrap { padding-block: 10px; }
.navbar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 20px -14px rgba(19, 26, 42, .35); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.02em; font-size: 17px; flex: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; }
.brand b { color: var(--accent); }
.menu { display: none; flex: 1; justify-content: center; gap: 4px; }
.menu a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.menu a:hover { color: var(--ink); }
.menu a.active { background: var(--accent-soft); color: var(--accent); }
.theme-btn { margin-left: auto; flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; }
.theme-btn:hover { color: var(--ink); }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
/* WA di header hanya di layar besar; di HP tombol WA ada di bar bawah (jangan dobel) */
.nav-wa { display: none; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; }

/* Bar navigasi bawah (HP) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); border-radius: 10px; }
.tabbar a.active { color: var(--accent); }
.tabbar a.wa { color: var(--wa); }
body.on-detail .tabbar { display: none; }

/* Kotak cara membeli */
.crumb { display: inline-flex; align-items: center; gap: 6px; padding-block: 6px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.howto { position: relative; overflow: hidden; background: var(--surface); border: 1.5px solid var(--howto-line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; }
.howto h2 { font-size: 14px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.howto ol { margin: 0; padding-left: 20px; display: grid; gap: 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); position: relative; z-index: 1; }
.howto .ask { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; position: relative; z-index: 1; }
.howto .ask a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--wa); color: #fff; font-size: 12px; }
.howto .art { position: absolute; right: -10px; bottom: -14px; width: 84px; height: 84px; color: var(--accent); opacity: .08; }
#faq { scroll-margin-top: 84px; }

/* Pencarian */
.search { position: relative; display: block; margin-top: 12px; }
.search input { width: 100%; height: 46px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 0 14px 0 42px; outline: none; font-size: 16px; }
.search input:focus { border-color: var(--accent); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* Tile tier */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tier { --c: var(--accent); --c-soft: var(--accent-soft); position: relative; overflow: hidden; border: 1.5px solid var(--c-line, var(--line)); background: var(--surface); border-radius: 12px; padding: 8px; text-align: left; line-height: 1.2; min-height: 58px; display: grid; align-content: center; gap: 2px; min-width: 0; transition: background .15s, border-color .15s; }
.tier strong { font-size: clamp(11.5px, 3.4vw, 13px); font-weight: 800; letter-spacing: .03em; color: var(--c); position: relative; z-index: 1; }
.tier small { font-size: clamp(10.5px, 3vw, 12px); font-weight: 700; color: var(--ink); white-space: nowrap; position: relative; z-index: 1; }
.tier svg { position: absolute; right: -5px; bottom: -5px; color: var(--c); opacity: .2; width: 30px; height: 30px; }
.tier[aria-pressed="true"] { border-color: var(--c); background: var(--c-soft); }
.tier.starter { --c: var(--t1); --c-soft: var(--t1-soft); --c-line: var(--t1-line); }
.tier.pro { --c: var(--t2); --c-soft: var(--t2-soft); --c-line: var(--t2-line); }
.tier.prime { --c: var(--t3); --c-soft: var(--t3-soft); --c-line: var(--t3-line); }
.tier.supreme { --c: var(--t4); --c-soft: var(--t4-soft); --c-line: var(--t4-line); }

/* Baris jumlah + filter */
.listbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block: 14px 12px; }
.listbar .count { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.filter-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; }
.filter-btn .dotc { min-width: 18px; height: 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }

/* Grid + kartu */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:active { transform: scale(.985); }
.card .media { position: relative; background: var(--sold-soft); }
/* Seperti aoshimarket: kotak 4:5 (rasio poster), gambar tampil utuh; rasio lain diberi latar netral, tidak dipotong */
.shot { width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: var(--media-bg); }
.card .body { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.chip-game { align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--chip-line); border-radius: 6px; padding: 1px 6px; }
.card h3 { font-size: 13.5px; font-weight: 800; line-height: 1.3; text-transform: uppercase; letter-spacing: .01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pricebox { margin-top: auto; padding-top: 6px; display: grid; gap: 2px; }
.was { display: flex; align-items: center; gap: 6px; font-size: 12px; min-height: 18px; }
.was .off { background: var(--sale); color: #fff; font-weight: 800; font-size: 10.5px; border-radius: 5px; padding: 1px 5px; }
.was s { color: var(--sale); opacity: .8; }
.pricebox strong { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.badge { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 7px; font-size: 11px; font-weight: 700; padding: 3px 8px; line-height: 1.4; border: 1px solid transparent; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.badge.tersedia { background: var(--ok-soft); color: var(--wa); border-color: var(--ok-line); }
.badge.booking { background: var(--booking-soft); color: var(--booking); border-color: var(--booking-line); }
.badge.terjual { background: var(--sold-soft); color: var(--sold); border-color: var(--line); }
.card.sold .shot { filter: grayscale(1); opacity: .55; }
.sold-mark { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.sold-mark span { background: var(--surface); color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .12em; padding: 6px 12px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.cover { aspect-ratio: 4 / 5; width: 100%; color: #fff; display: flex; align-items: center; padding: 12px; background: linear-gradient(155deg, hsl(var(--h) 72% 46%), hsl(calc(var(--h) + 38) 70% 30%)); font-weight: 800; font-size: 16px; line-height: 1.2; }
.empty { grid-column: 1 / -1; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* FAQ bernomor (seperti stok.gg) */
.faq { margin: 14px auto 0; display: grid; gap: 10px; max-width: 760px; width: 100%; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; box-shadow: 0 10px 24px -22px rgba(19, 26, 42, .45); }
.faq summary { cursor: pointer; padding-block: 12px; list-style: none; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .n { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 800; color: var(--ink-2); }
.faq summary b { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; line-height: 1.3; text-transform: uppercase; }
.faq summary svg { flex: none; color: var(--muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq p { margin: 0 0 14px 50px; color: var(--ink-2); font-size: 14px; }
footer { border-top: 1px solid var(--line); background: var(--surface); }
footer .wrap { padding-block: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
footer b { color: var(--ink); }

/* Panel Filter & Urutkan: modal di tengah layar seperti aoshimarket (HP & desktop), versi terang */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { position: relative; width: 100%; max-width: 530px; max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); box-shadow: 0 24px 60px -24px rgba(19, 26, 42, .45); }
.modal header { flex: none; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px 0 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.modal header b { font-size: 16px; font-weight: 600; }
.modal .x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); display: grid; place-items: center; }
.modal .x:hover { background: var(--line); color: var(--ink); }
.modal-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 17px 18px; display: grid; gap: 16px; align-content: start; }
.modal .grp { display: grid; gap: 8px; }
.modal .grp > span { font-size: 15px; font-weight: 600; color: var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--chip-line); background: var(--accent-soft); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s; }
.opt:hover { border-color: var(--accent); }
.opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.modal input:not([type="checkbox"]) { width: 100%; min-width: 0; height: 48px; border-radius: 10px; border: 1px solid var(--chip-line); background: var(--accent-soft); padding: 0 12px; font-size: 16px; color: var(--ink); outline: none; }
.modal input::placeholder { color: var(--muted); }
.modal input:focus { border-color: var(--accent); background: var(--surface); }
.modal .range { display: flex; align-items: center; gap: 6px; }
.modal .range i { flex: none; width: 16px; height: 3px; border-radius: 2px; background: var(--ink-2); }
.modal .switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; padding-top: 2px; }
.modal .switch input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.modal footer { flex: none; display: flex; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.btn-apply, .btn-reset { height: 48px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.btn-apply { flex: 1; border: 0; background: var(--accent); color: #fff; }
.btn-apply:disabled { background: transparent; color: var(--muted); outline: 1px solid var(--chip-line); outline-offset: -1px; cursor: default; }
.btn-reset { flex: none; padding: 0 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.btn-reset:hover { color: var(--ink); border-color: var(--ink-2); }

/* Detail */
.detail { display: grid; gap: 16px; padding-bottom: 8px; }
.gallery { display: grid; gap: 8px; min-width: 0; }
.slides-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: #0f1524; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; }
.slide .shot, .slide .cover { aspect-ratio: 4 / 5; max-height: 60vh; max-height: 60svh; }
.slide .shot { object-fit: contain; background: #0f1524; }
.counter { position: absolute; right: 10px; bottom: 10px; background: rgba(15, 21, 36, .72); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs .shot, .thumbs .cover { aspect-ratio: 4 / 5; padding: 0; font-size: 0; }
/* Panah galeri (seperti aoshimarket) */
.nav-img { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(15, 21, 36, .6); color: #fff; display: grid; place-items: center; }
.nav-img:hover { background: rgba(15, 21, 36, .82); }
.nav-img:disabled { opacity: 0; pointer-events: none; }
.nav-img.prev { left: 10px; } .nav-img.next { right: 10px; }
.info { display: grid; gap: 14px; min-width: 0; }
.info-head { display: grid; gap: 6px; }
.info-head .tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.info-head .badge { position: static; box-shadow: none; }
.kode { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.copy { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; height: 30px; padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.info h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.bigprice { display: grid; gap: 2px; }
.bigprice strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { background: var(--surface); padding: 10px 12px; display: grid; gap: 1px; min-width: 0; }
.specs dt { font-size: 12px; color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.specs dd.rank { color: var(--gold); }
.label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cta { display: none; }
.notice { border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.notice.booking { background: var(--booking-soft); color: var(--booking); }
.notice.terjual { background: var(--sold-soft); color: var(--sold); }
.assure { list-style: none; margin: 0; display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.assure li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); }
.assure li b { color: var(--ink); display: block; }
.assure svg { color: var(--wa); margin-top: 2px; }
.desc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; white-space: pre-line; color: var(--ink-2); font-size: 14px; }
.related { padding-block: 20px 8px; }
.related h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.related .grid { padding-bottom: 0; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; align-items: center; box-shadow: 0 -8px 24px -16px rgba(19, 26, 42, .35); }
.sticky-cta .p { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.sticky-cta .p small { color: var(--muted); font-size: 11px; }
.sticky-cta .p strong { font-size: 16px; font-weight: 800; white-space: nowrap; }
.sticky-cta .btn { height: 46px; padding: 0 14px; }

.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--toast-bg); color: var(--toast-fg); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 60; white-space: nowrap; }

@media (max-width: 360px) {
  .grid { gap: 8px; }
  .card .body { padding: 8px; }
  .pricebox strong { font-size: 15px; }
  .sticky-cta .btn { padding: 0 12px; font-size: 14px; }
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .tier { padding: 12px 14px; min-height: 64px; }
  .tier strong { font-size: 13px; }
  .tier small { font-size: 13px; }
  .tier svg { width: 30px; height: 30px; right: 10px; bottom: 8px; opacity: .55; }
  .howto { padding: 16px 20px; }
  .howto .art { right: 14px; bottom: 10px; width: 96px; height: 96px; opacity: .14; }
  .howto ol { font-size: 13.5px; }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slides-wrap { border: 1px solid var(--line); }
}
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top .wrap { padding-block: 18px 6px; }
  #view-catalog, #view-help, #view-detail { padding-top: 12px; }
  .navbar { height: 60px; padding: 0 10px 0 20px; }
  .menu { display: flex; }
  .nav-wa { display: inline-flex; }
  .tabbar { display: none; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(19, 26, 42, .4); }
  .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
  .gallery { position: sticky; top: 100px; }
  /* desktop: tinggi tetap seperti aoshimarket (±600px), gambar utuh */
  .slide .shot, .slide .cover { aspect-ratio: auto; width: 100%; height: min(600px, 72vh); max-height: none; }
  .info h1 { font-size: 28px; }
  .bigprice strong { font-size: 30px; }
  .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cta .btn:only-child { grid-column: 1 / -1; }
  .sticky-cta { display: none; }
  .related .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== Tambahan versi produksi (data dari API) ===== */
:root {
  --r-supreme: #c0265a; --r-grand: #c2410c; --r-exquisite: #a26a0e;
  --r-deluxe: #6d3fd1; --r-exceptional: #1f48d1; --r-common: #8a93a8;
}
:root[data-theme="dark"] {
  --r-supreme: #ff6b97; --r-grand: #ff8a4c; --r-exquisite: #f0b35a;
  --r-deluxe: #b197fc; --r-exceptional: #7c9bff; --r-common: #7c869c;
}
.brand-logo { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; }
.grid.loading { opacity: .55; transition: opacity .15s; }
.card.skel .shot { animation: pulse 1.2s ease-in-out infinite alternate; }
.card.skel .body i { display: block; height: 12px; border-radius: 6px; background: var(--sold-soft); }
.card.skel .body i:nth-child(2) { width: 70%; }
@keyframes pulse { from { opacity: 1; } to { opacity: .55; } }
.more { display: flex; justify-content: center; padding-bottom: 24px; }
.more .btn { min-width: 220px; }
.notice.preview { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.hl { display: flex; flex-wrap: wrap; gap: 6px; }
.hl span { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--wa); border: 1px solid var(--ok-line); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.rarity { display: grid; gap: 9px; }
.rarity .row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 72px; align-items: center; gap: 10px; font-size: 13px; }
.rarity .row b { font-weight: 700; color: var(--rc); }
.rarity .row span { text-align: right; color: var(--ink-2); font-weight: 600; }
.rarity .bar { height: 8px; border-radius: 999px; background: var(--sold-soft); overflow: hidden; }
.rarity .bar i { display: block; height: 100%; border-radius: inherit; background: var(--rc); }
.r-Supreme { --rc: var(--r-supreme); } .r-Grand { --rc: var(--r-grand); } .r-Exquisite { --rc: var(--r-exquisite); }
.r-Deluxe { --rc: var(--r-deluxe); } .r-Exceptional { --rc: var(--r-exceptional); } .r-Common { --rc: var(--r-common); }
.skins { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.skins li { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.link-btn { margin-top: 10px; border: 0; background: none; padding: 6px 0; color: var(--accent); font-weight: 700; font-size: 14px; }
.notfound { text-align: center; padding: 56px 16px 72px; display: grid; gap: 12px; justify-items: center; }
.notfound h1 { font-size: 22px; font-weight: 800; }
.notfound p { margin: 0; color: var(--ink-2); max-width: 420px; }
#jam:not(:empty)::before { content: " · "; }

/* ===== Latar "aurora lembut": semburat cahaya biru–ungu–cyan yang blur di pojok-pojok, tanpa garis/motif.
   Satu lapisan tetap di belakang konten; kartu & kotak tetap putih polos supaya teks terbaca. */
:root {
  --aura-1: rgba(79, 123, 232, .30); --aura-2: rgba(139, 92, 246, .24);
  --aura-3: rgba(34, 211, 238, .18); --aura-4: rgba(139, 92, 246, .16);
}
:root[data-theme="dark"] {
  --aura-1: rgba(79, 123, 232, .26); --aura-2: rgba(139, 92, 246, .22);
  --aura-3: rgba(34, 211, 238, .10); --aura-4: rgba(139, 92, 246, .12);
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 32% at 8% 4%, var(--aura-1), transparent 70%),
    radial-gradient(42% 30% at 96% 22%, var(--aura-2), transparent 70%),
    radial-gradient(52% 32% at 85% 82%, var(--aura-3), transparent 70%),
    radial-gradient(46% 30% at 4% 62%, var(--aura-4), transparent 70%);
}
@media print { body::before { display: none; } }

/* ===== Detail: tab Ringkasan / Daftar Skin / Battle Stats / Spesifikasi (tahap 5) ===== */
.dtabs { display: grid; gap: 14px; min-width: 0; margin-top: 4px; }
.tabs { display: flex; gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.tabs button .num { font-size: 12px; font-weight: 700; color: var(--muted); }
.tabs button:hover { color: var(--ink); background: var(--accent-soft); }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.tabs button[aria-selected="true"] .num { color: rgba(255, 255, 255, .8); }
.tab-panel { display: grid; gap: 16px; min-width: 0; }
/* kotak angka */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); gap: 8px; }
.tiles > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 1px; min-width: 0; }
.tiles b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--rc, var(--ink)); }
.tiles span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tiles.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.big b { font-size: 24px; }
.tiles .wr b { color: var(--wa); }
.specs.ach .wide { grid-column: 1 / -1; }
/* sel terakhir melebar supaya tidak ada kotak kosong di grid */
.specs:not(.ach) > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Pencapaian: baris pertama (gelar) sudah penuh, jadi hitungan bergeser satu */
.specs.ach > div:last-child:nth-child(even) { grid-column: 1 / -1; }
.specs dd small { font-size: 12px; font-weight: 600; color: var(--muted); }
.specs dd.region { display: flex; align-items: center; gap: 8px; }
.specs dd .flag, .flag { width: 24px; height: 16px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.gelar { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.gelar::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gc) 22%, transparent); }
/* battle stats */
.modes .opt { height: 36px; padding: 0 12px; font-weight: 600; }
.modes .opt .num { font-size: 12px; opacity: .7; }
.heroes { display: grid; gap: 0; padding: 4px 14px; }
.hrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "no hn hp" "no hm hw"; gap: 2px 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.hrow:last-child { border-bottom: 0; }
.hrow .no { grid-area: no; color: var(--muted); font-weight: 700; }
.hrow .hn { grid-area: hn; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.hrow .hn b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .hn small { color: var(--muted); font-size: 12px; }
.hrow .hm { grid-area: hm; color: var(--ink-2); font-size: 12px; }
.hrow .hw { grid-area: hw; width: 90px; height: 6px; border-radius: 999px; background: var(--sold-soft); overflow: hidden; justify-self: end; }
.hrow .hw i { display: block; height: 100%; border-radius: inherit; background: var(--wa); }
.hrow .hp { grid-area: hp; font-weight: 700; justify-self: end; }
/* daftar skin */
.sb { display: grid; gap: 12px; min-width: 0; }
.sb-tools { display: grid; gap: 10px; }
.sb-search { position: relative; display: block; }
.sb-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.sb-search input, .sb-sel select { width: 100%; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid var(--chip-line); background: var(--surface); padding: 0 12px; font-size: 15px; color: var(--ink); outline: none; }
.sb-search input { padding-left: 38px; }
.sb-search input:focus, .sb-sel select:focus { border-color: var(--accent); }
.sb-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sb-sel select { appearance: none; padding-right: 30px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a93a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; }
.sb-rar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sb-rar::-webkit-scrollbar { display: none; }
.sb-rar .opt { flex: none; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sb-rar .opt i { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); }
.sb-rar .opt .num { font-size: 12px; opacity: .7; }
.sb-count { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.skc { display: grid; gap: 2px; min-width: 0; }
.skc .ph { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--rc, var(--muted)) 14%, var(--media-bg)); border: 2px solid color-mix(in srgb, var(--rc, var(--line)) 75%, transparent); }
.skc .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.skc .noimg { display: grid; place-items: center; width: 100%; height: 100%; padding: 6px; text-align: center; font-size: 12px; font-weight: 800; color: var(--rc, var(--ink-2)); text-transform: uppercase; }
.skc .rt { position: absolute; left: 5px; top: 5px; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 6px; background: var(--rc); color: #fff; }
.skc b { margin-top: 4px; font-size: 12.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skc small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-more { display: flex; justify-content: center; }
.sb-more .link-btn { margin-top: 0; }
.sb-empty { margin: 0; grid-column: 1 / -1; padding: 24px 0; text-align: center; color: var(--muted); }
/* halaman semua skin */
.skinpage { display: grid; gap: 16px; }
.sp-head { display: grid; gap: 12px; }
.sp-head .tags { display: flex; align-items: center; gap: 8px; }
.sp-head .badge { position: static; box-shadow: none; }
.sp-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-top: 6px; }
.sp-head h1 .num { color: var(--accent); }
.sp-head p { margin: 2px 0 0; color: var(--ink-2); font-weight: 600; text-transform: uppercase; font-size: 14px; }
.sp-buy { display: grid; gap: 10px; }
@media (min-width: 720px) {
  .tiles.big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .specs:not(.ach) > div:last-child:nth-child(odd), .specs.ach > div:last-child:nth-child(even) { grid-column: auto; }
  .specs:not(.ach) > div:last-child:nth-child(3n+1), .specs.ach > div:last-child:nth-child(3n+2) { grid-column: 1 / -1; }
  .specs:not(.ach) > div:last-child:nth-child(3n+2), .specs.ach > div:last-child:nth-child(3n) { grid-column: span 2; }
  .sb-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "s f" "r r"; }
  .sb-search { grid-area: s; }
  .sb-sel { grid-area: f; }
  .sb-rar { grid-area: r; flex-wrap: wrap; }
  .skin-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .hrow { grid-template-columns: 22px minmax(0, 1fr) 90px 100px 56px; grid-template-areas: "no hn hm hw hp"; }
}
@media (min-width: 1000px) {
  .sp-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .sp-buy { justify-items: end; }
  .sp-buy .cta { min-width: 340px; }
  .skinpage .skin-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
}

/* ===== Beranda ("/") — susunan stok.gg + tile & testimoni aoshimarket ===== */
/* aksen kedua = ungu (senada latar aurora; pink khas stok.gg tidak dipakai) */
:root { --hl: #7c3aed; --hl-soft: #f1eafe; --grad: linear-gradient(100deg, #2448d8, #7c3aed); }
:root[data-theme="dark"] { --hl: #a78bfa; --hl-soft: #2a1f4d; --grad: linear-gradient(100deg, #4a6cff, #9b7bff); }
.home { padding-bottom: 8px; }
.home-in { display: grid; gap: 16px; padding-top: 16px; }
.home-in > * { min-width: 0; }
.home .search, .home .tiers { margin-top: 0; }
/* Banner 3:1 bergeser, slide samping mengintip & mengecil (stok.gg) */
.banner { max-width: 1200px; margin: 0 auto; padding-top: 4px; }
/* slide = selebar isi track; padding kiri-kanan = bagian slide tetangga yang mengintip, jadi slide aktif selalu di tengah */
.banner-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-inline: 7%; }
.banner-track::-webkit-scrollbar { display: none; }
.bslide { position: relative; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 3 / 1; border-radius: 14px; overflow: hidden; background: var(--media-bg); transform: scale(.93); opacity: .7; transition: transform .35s, opacity .35s; box-shadow: 0 12px 26px -18px rgba(19, 26, 42, .55); }
.bslide.on { transform: none; opacity: 1; }
.bslide a, .bslide img { display: block; width: 100%; height: 100%; }
.bslide img { object-fit: cover; }
.banner.single .banner-track { padding-inline: 16px; }
.banner.single .bslide { transform: none; opacity: 1; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots:empty { display: none; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); transition: width .25s, background .25s; }
.dots button[aria-current="true"] { width: 24px; background: var(--accent); }
/* banner teks bawaan (sebelum admin mengunggah banner) */
.bslide.def { display: flex; align-items: center; color: #fff; background: linear-gradient(115deg, #1f3fc4 0%, #4b5ee8 48%, #7c3aed 100%); }
.def-in { position: relative; z-index: 1; display: grid; gap: 3px; padding-inline: 6%; max-width: 70%; }
.def-k { font-size: clamp(9px, 2.5vw, 14px); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.def-b { font-size: clamp(26px, 8.4vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.def-b em { font-style: normal; color: #ddd0ff; }
.def-t { font-size: clamp(10px, 2.9vw, 18px); font-weight: 600; opacity: .92; }
.bslide.def svg { position: absolute; color: #fff; opacity: .2; }
.bslide.def svg:nth-of-type(1) { right: 3%; top: 50%; width: 34%; height: auto; transform: translateY(-50%) rotate(-10deg); }
.bslide.def svg:nth-of-type(2) { right: 33%; bottom: 6%; width: 13%; height: auto; transform: rotate(14deg); opacity: .14; }
/* Teks berjalan */
.marquee { margin-top: 14px; overflow: hidden; padding-block: 9px; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.marquee-in { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee span { white-space: nowrap; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.marquee i { flex: none; align-self: center; width: 6px; height: 6px; margin-inline: 16px; border-radius: 50%; background: var(--hl); }
@keyframes marquee { to { transform: translateX(-50%); } }
/* Etalase akun: bergulir sendiri, kartu berikutnya mengintip */
.rail-box { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 10px) / 2.2); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin-inline: -16px; padding: 2px 16px 8px; scroll-padding-inline: 16px; }
.rail::-webkit-scrollbar { display: none; }
.rail > .card { scroll-snap-align: start; }
.rail:has(> .empty) { grid-auto-columns: 100%; }
.rail-nav { display: none; }
.see-all { display: flex; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 26px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; box-shadow: 0 10px 24px -16px rgba(19, 26, 42, .35); transition: border-color .15s, color .15s; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
/* Tombol tautan: tile berwarna ala aoshimarket */
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lt { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 9px; min-height: 62px; padding: 10px 10px 10px 11px; border-radius: 14px; color: #fff; background: var(--g); box-shadow: 0 10px 20px -14px var(--sh), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s, box-shadow .15s; }
.lt:active { transform: scale(.97); }
.lt-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.lt-ic svg { width: 20px; height: 20px; }
.lt-tx { display: grid; gap: 1px; min-width: 0; }
.lt b { font-size: 13.5px; font-weight: 800; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.lt small { font-size: 11px; font-weight: 600; letter-spacing: -.01em; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-bg { position: absolute; z-index: -1; right: -12px; bottom: -16px; width: 66px; height: 66px; opacity: .18; transform: rotate(-12deg); }
.lt-bg svg { width: 100%; height: 100%; }
.lt.ig { --g: linear-gradient(135deg, #f9a03f 0%, #e8366f 50%, #8a3ab9 100%); --sh: rgba(232, 54, 111, .75); }
.lt.ch { --g: linear-gradient(135deg, #2ad46e 0%, #109e6b 100%); --sh: rgba(16, 158, 107, .75); }
.lt.tp { --g: linear-gradient(135deg, #3d6bf5 0%, #09b2e6 100%); --sh: rgba(61, 107, 245, .75); }
.lt.sm { --g: linear-gradient(135deg, #ff8a3d 0%, #f43f7a 100%); --sh: rgba(244, 63, 122, .7); }
.links > .lt:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Judul besar ala stok.gg */
.block { display: grid; gap: 8px; padding-top: 22px; }
.big { font-size: clamp(22px, 6.6vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-transform: uppercase; text-align: center; }
.big em { font-style: normal; color: var(--hl); }
.lead { margin: 0 auto; max-width: 46ch; text-align: center; color: var(--ink-2); font-size: 14px; }
/* Empat langkah mudah */
.four { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.four li { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; }
.four .ic { position: relative; width: 66px; height: 66px; margin-bottom: 8px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); box-shadow: 0 12px 24px -16px rgba(19, 26, 42, .4); }
.four li:nth-child(even) .ic { color: var(--hl); }
.four .ic i { position: absolute; top: -8px; right: -8px; min-width: 25px; height: 25px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--grad); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; }
.four b { font-size: 15px; font-weight: 800; text-transform: uppercase; }
.four p { margin: 0; max-width: 24ch; font-size: 13px; color: var(--ink-2); }
/* Testimoni: kartu 2 kolom ala aoshimarket */
.testi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.tcard { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--chip-line); }
.tcard figcaption { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tcard .av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tcard figcaption > span:last-child { display: grid; gap: 1px; min-width: 0; }
.tcard figcaption b { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stars { display: flex; gap: 1px; color: #f5a524; }
.stars svg { width: 11px; height: 11px; }
.tcard blockquote { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tcard small { margin-top: auto; font-size: 11px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Kenapa beli: kartu ikon ala "Aman, cepat, terpercaya" stok.gg */
.why-cards { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.why-cards li { display: grid; align-content: start; gap: 8px; padding: 16px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 26px -22px rgba(19, 26, 42, .45); }
.why-cards .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.why-cards li:nth-child(even) .ic { background: var(--hl-soft); color: var(--hl); }
.why-cards b { font-size: 15px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.why-cards p { margin: 0; font-size: 13px; color: var(--ink-2); }
.why-cards li:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Ajakan belanja */
.cta-band { display: grid; justify-items: center; gap: 16px; padding: 34px 8px 4px; text-align: center; }
.btn-grad { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 30px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 14px 30px -14px rgba(124, 58, 237, .6); transition: transform .15s; }
.btn-grad:hover { transform: translateY(-1px); }

/* ===== Cara Beli ("/cara-beli") ===== */
.help { display: grid; gap: 18px; max-width: 760px; padding-bottom: 28px; }
.page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.015em; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.help h2 { font-size: 15px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 10px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-weight: 700; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.ask-box { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--ok-soft); border: 1px solid var(--ok-line); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.ask-box .btn { height: 40px; padding: 0 14px; font-size: 14px; text-transform: none; letter-spacing: 0; }
.help .faq { margin: 0; }
.help-go { justify-self: stretch; height: 50px; }

@media (min-width: 720px) {
  .home-in { gap: 20px; }
  .banner-track { padding-inline: 11%; }
  .rail { grid-auto-columns: calc((100% - 32px) / 3.3); gap: 16px; }
  .four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .testi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .why-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-cards li:last-child:nth-child(odd) { grid-column: auto; }
  .block { padding-top: 34px; gap: 10px; }
}
@media (min-width: 1000px) {
  .banner-track { padding-inline: 15%; gap: 16px; }
  .bslide { border-radius: 18px; }
  .rail { grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .rail-nav { display: grid; place-items: center; position: absolute; top: 38%; z-index: 3; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(19, 26, 42, .45); }
  .rail-nav:hover { color: var(--accent); border-color: var(--accent); }
  .rail-nav.prev { left: -21px; }
  .rail-nav.next { right: -21px; }
  .links { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .links > .lt:last-child:nth-child(odd) { grid-column: auto; }
  .lt { min-height: 78px; padding: 12px 16px; gap: 14px; }
  .lt:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -14px var(--sh), inset 0 1px 0 rgba(255, 255, 255, .25); }
  .lt-ic { width: 46px; height: 46px; border-radius: 13px; }
  .lt-ic svg { width: 26px; height: 26px; }
  .lt b { font-size: 16px; }
  .lt small { font-size: 12.5px; }
  .lt-bg { width: 84px; height: 84px; }
  .testi { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .marquee-in { animation: none; } }
