/* handphone.id — tema glassmorphism: panel kaca buram di atas latar aurora lembut. */
:root {
  --base: #E9EFFB;
  --ink: #0D1424;
  --muted: #4A566E;
  --line: rgba(13, 20, 36, .09);
  --accent: #2242F5;
  --accent-soft: rgba(34, 66, 245, .16);
  --good: #3DDC97;
  --solid: #0D1424;
  --on-solid: #FFFFFF;
  --hover: rgba(255, 255, 255, .6);
  --hi: rgba(255, 255, 255, .9);
  --plate: radial-gradient(120% 80% at 50% 12%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 62%), linear-gradient(165deg, #F2F4FB 0%, #E3E8F5 55%, #D9DEF0 100%);
  --plate-glow: rgba(120, 140, 230, .22);
  --plate-hover: radial-gradient(120% 80% at 50% 12%, #FFFFFF, rgba(255, 255, 255, 0) 62%), linear-gradient(165deg, #F5F7FD 0%, #E6EBF8 55%, #DCE2F3 100%);
  --stage-plate: radial-gradient(90% 70% at 50% 40%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%), linear-gradient(165deg, #F2F4FB, #DDE3F2);
  --line-strong: rgba(13, 20, 36, .16);
  --tray: rgba(13, 20, 36, .72);
  --tray-th: rgba(19, 27, 46, .96);
  --sheet: rgba(255, 255, 255, .84);
  --modal: rgba(250, 251, 255, .86);
  --fallback: rgba(255, 255, 255, .9);
  --aurora:
    radial-gradient(42vw 42vw at 8% 4%, rgba(104, 146, 255, .62), transparent 68%),
    radial-gradient(38vw 38vw at 96% 10%, rgba(176, 148, 255, .58), transparent 68%),
    radial-gradient(44vw 40vw at 78% 96%, rgba(112, 226, 214, .50), transparent 70%),
    radial-gradient(36vw 34vw at 14% 92%, rgba(255, 176, 214, .42), transparent 70%),
    linear-gradient(160deg, #EAF0FC, #EEF0FB 55%, #E6F1F8);
  --glass: rgba(255, 255, 255, .46);
  --glass-strong: rgba(255, 255, 255, .68);
  --glass-edge: rgba(255, 255, 255, .78);
  --frost: blur(24px) saturate(165%);
  --glass-shadow: 0 14px 44px rgba(46, 64, 130, .14), inset 0 1px 0 rgba(255, 255, 255, .85);
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--base); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
/* Latar aurora: diam di tempat supaya kaca di atasnya punya warna untuk dibiaskan */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--aurora);
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 28px; }

/* Resep kaca yang dipakai semua panel besar */
.topbar, .rail, .main, .detail {
  background: var(--glass);
  -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost);
}
.rail, .main, .detail { border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }

/* ---------- Bar atas ---------- */
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--glass-edge); box-shadow: 0 6px 30px rgba(46, 64, 130, .08); }
.bar { height: 68px; display: flex; align-items: center; gap: 28px; }
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 600 18px/1 var(--display); letter-spacing: -.02em;
}
.logo-mark { width: 14px; height: 24px; border-radius: 4px; border: 2px solid var(--ink); position: relative; }
.logo-mark::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 2px; margin-left: -2px; border-radius: 2px; background: var(--accent); }
.search {
  flex: 1; min-width: 0; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px; background: var(--glass-strong); border: 1px solid var(--glass-edge); border-radius: 999px;
  box-shadow: inset 0 1px 0 var(--hi);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; }
.search input::placeholder { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--solid);
  background: var(--solid); color: var(--on-solid); font-weight: 500;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: var(--glass-strong); color: var(--ink); border-color: var(--glass-edge); }
.btn.ghost:hover { background: var(--plate-hover); border-color: var(--plate-hover); color: #0D1424; }
.btn.block { width: 100%; }
a.btn { text-decoration: none; }
.cmpico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--solid); color: var(--on-solid); font-size: 12px; font-weight: 600; text-align: center; }

/* ---------- Tata letak ---------- */
.layout {
  display: grid; grid-template-columns: 196px minmax(0, 1fr) 348px; gap: 22px;
  align-items: start; padding-top: 24px; padding-bottom: 140px;
}
.rail, .detail { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

/* ---------- Filter ---------- */
.rail { border-radius: 22px; padding: 20px 10px 6px; }
.rail h2 { margin: 0 0 8px 12px; font: 600 13px/1 var(--display); color: var(--muted); }
.navlist { display: grid; gap: 1px; margin-bottom: 22px; }
.navlist button {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  padding: 7px 12px; border: 0; border-radius: 10px; background: none; text-align: left; color: var(--ink);
}
.navlist button:hover { background: var(--hover); }
.navlist button.active { background: var(--solid); color: var(--on-solid); box-shadow: 0 6px 16px rgba(13, 20, 36, .22); }
.navlist small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.navlist button.active small { color: inherit; opacity: .65; }

/* ---------- Panel grid ---------- */
.main { border-radius: 26px; padding: 22px 26px 30px; min-width: 0; }
/* Bar filter: kapsul kaca yang ikut melayang saat digulir */
.gridhead {
  position: sticky; top: 82px; z-index: 6; display: flex; align-items: center; gap: 12px;
  margin: 0 0 26px; padding: 6px 8px 6px 6px; border-radius: 999px;
  background: var(--sheet); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost);
  border: 1px solid var(--glass-edge); box-shadow: 0 10px 30px rgba(30, 44, 90, .12), inset 0 1px 0 var(--hi);
}
.more { display: flex; justify-content: center; padding-top: 34px; }
.tabs { display: flex; gap: 2px; flex-wrap: nowrap; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 22px; }
.tab {
  flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none;
  color: var(--muted); font-weight: 500; white-space: nowrap; transition: background .15s, color .15s;
}
.tab:hover { color: var(--ink); background: var(--hover); }
.tab.active { background: var(--solid); color: var(--on-solid); }
.tab small { margin-left: 6px; font-size: 12px; font-weight: 400; opacity: .6; color: inherit; }
.total { display: none; }
.sort {
  flex: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px;
  border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; white-space: nowrap;
}
.sort select { border: 0; outline: 0; background: none; color: var(--ink); font-weight: 500; cursor: pointer; }

/* ---------- Kartu (kaca tipis tanpa blur, supaya ringan walau ratusan) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 30px 18px; }
.card { display: block; min-width: 0; cursor: pointer; }
.shotwrap { position: relative; }
.shot {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%;
  aspect-ratio: 4 / 5; padding: 14% 18%; border-radius: 18px; cursor: pointer;
  background: var(--plate);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 6px 20px rgba(46, 64, 130, .07), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.shot img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.shot img.cut, .stage img.cut, .mini img.cut { mix-blend-mode: normal; filter: drop-shadow(0 10px 14px rgba(10, 16, 40, .28)); }
.card:hover .shot { transform: translateY(-3px); background: var(--plate-hover); box-shadow: 0 16px 34px rgba(46, 64, 130, .16), inset 0 1px 0 #fff; }
.card.selected .shot { background: var(--plate-hover); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 14px 30px rgba(34, 66, 245, .16); }
/* Aksi cepat di sudut bawah foto: banding (kiri) dan spesifikasi lengkap (kanan) */
.acts { position: absolute; top: 34px; right: 10px; display: flex; flex-direction: column; gap: 8px; }
.act {
  position: relative; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .9); background: rgba(250, 247, 241, .92); color: #2A2420;
  box-shadow: 0 4px 12px rgba(30, 30, 50, .14);
  opacity: 0; transform: translateX(6px); transition: opacity .18s ease, transform .18s ease, background .15s, color .15s;
}
.act svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Muncul saat kartu disorot; yang aktif tetap terlihat */
.card:hover .act, .card:focus-within .act, .act.on { opacity: 1; transform: none; }
.act:nth-child(2) { transition-delay: .03s; } .act:nth-child(3) { transition-delay: .06s; }
.act:hover { background: #2A2420; color: #FAF7F1; border-color: #2A2420; }
.act.on { background: #2A2420; color: #FAF7F1; border-color: #2A2420; }
.act[data-fav].on { background: #FAF7F1; color: #D6456B; border-color: #fff; }
.act[data-fav].on svg { fill: currentColor; }
/* Keterangan singkat di kiri ikon */
.act::after {
  content: attr(data-tip); position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  padding: 4px 9px; border-radius: 8px; background: #2A2420; color: #FAF7F1; font: 500 11.5px/1.2 var(--body);
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s;
}
.act:hover::after, .act:focus-visible::after { opacity: 1; }
@media (hover: none) { .act { opacity: 1; transform: none; } .act::after { display: none; } }
.tagfeat { position: absolute; top: 10px; left: 12px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 10.5px/1.2 var(--display); }
.pagelink { display: block; margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.pagelink:hover { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.banner { position: relative; z-index: 21; padding: 9px 16px; text-align: center; font-size: 13.5px; background: var(--solid); color: var(--on-solid); }
.banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tag5g { position: absolute; top: 12px; right: 14px; font: 600 11px/1 var(--display); color: var(--accent); letter-spacing: .02em; }
.card .nm { display: block; margin-top: 12px; font: 600 14px/1.3 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.card .sub { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .pr { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.card .pr.na { color: var(--muted); font-weight: 400; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* HP tanpa foto: digambar dengan CSS */
.phone {
  --h: 215; position: relative; height: 100%; aspect-ratio: 9 / 18.5; border-radius: 14% / 7%;
  background: var(--ink); padding: 4%;
}
.phone .scr {
  height: 100%; border-radius: 11% / 5.5%; color: #fff;
  background: linear-gradient(165deg, hsl(var(--h) 80% 60%), hsl(calc(var(--h) + 35) 70% 36%));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12%;
}
.phone .b { font-size: 9px; opacity: .85; }
.phone .s { font: 700 15px/1.1 var(--display); }

/* ---------- Lembar spesifikasi ---------- */
.detail { background: var(--glass-strong); border-radius: 26px; padding: 24px; }
.detail .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.tags { display: flex; gap: 6px; }
.tagx { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--hover); font-size: 12px; color: var(--ink); }
.tagx.a { border-color: var(--accent); color: var(--accent); }
.detail h1 { margin: 6px 0 18px; font: 600 23px/1.2 var(--display); letter-spacing: -.02em; }
.stage {
  position: relative; height: 270px; border-radius: 20px; padding: 28px 28px 28px 54px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle, rgba(60, 84, 150, .28) 1px, transparent 1.2px) 0 0 / 14px 14px,
    var(--stage-plate);
  border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 #fff, inset 0 -20px 40px rgba(120, 150, 255, .08);
}
.stage img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 14px 18px rgba(30, 44, 90, .18)); }
.stage .phone { height: 100%; }
/* Garis ukur diagonal layar */
.rule { position: absolute; left: 26px; top: 34px; bottom: 34px; width: 1px; background: rgba(13, 20, 36, .5); }
.rule::before, .rule::after { content: ""; position: absolute; left: -4px; width: 9px; height: 1px; background: rgba(13, 20, 36, .5); }
.rule::before { top: 0; } .rule::after { bottom: 0; }
.rule span {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%) rotate(-90deg);
  padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(13, 20, 36, .09);
  white-space: nowrap; font: 500 11.5px/1 var(--display); color: #0D1424;
}
.price { margin: 20px 0 4px; font: 600 26px/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price.na { font-size: 17px; font-weight: 500; color: var(--muted); }
.pnote { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.specs { margin: 18px 0 22px; }
.specs div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 13.5px; flex: none; }
.specs dd { margin: 0; text-align: right; font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.close { display: none; }

/* ---------- Baki perbandingan: kaca gelap ---------- */
.tray {
  position: fixed; left: 50%; bottom: 22px; z-index: 30; transform: translateX(-50%);
  width: min(1120px, calc(100vw - 32px)); padding: 14px 16px 14px 22px;
  background: var(--tray); color: #fff; border-radius: 22px;
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 22px 60px rgba(13, 20, 36, .38), inset 0 1px 0 rgba(255, 255, 255, .14);
  animation: rise .22s ease-out;
}
@keyframes rise { from { transform: translate(-50%, 16px); } }
.trayhead { display: flex; align-items: center; gap: 14px; }
.trayhead b { font: 600 14px/1 var(--display); flex: none; }
.tchips { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tchip { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 5px 6px 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.x { border: 0; background: none; color: rgba(255, 255, 255, .6); font-size: 16px; line-height: 1; padding: 0 5px; border-radius: 6px; }
.x:hover { color: #fff; }
.tbtn { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: none; color: #fff; font-size: 13px; font-weight: 500; flex: none; }
.tbtn:hover { border-color: #fff; }
.tbtn.solid { background: #fff; color: #0D1424; border-color: #fff; }
.traybody { margin-top: 14px; max-height: 44vh; overflow: auto; border-top: 1px solid rgba(255, 255, 255, .14); }
.hint { margin: 0; padding: 18px 0 6px; color: rgba(255, 255, 255, .72); font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 11px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, .1); }
th { font-weight: 400; font-size: 12.5px; color: rgba(255, 255, 255, .62); position: sticky; top: 0; background: var(--tray-th); }
th:first-child, td:first-child { padding-left: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.best { color: var(--good); font-weight: 600; }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: rgba(255, 255, 255, .06); }

/* ---------- Tema gelap: kaca gelap di atas aurora malam ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --base: #070B16;
  --ink: #EEF2FB;
  --muted: #A3AEC6;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .20);
  --accent: #8EA2FF;
  --accent-soft: rgba(142, 162, 255, .26);
  --glass: rgba(20, 26, 46, .50);
  --glass-strong: rgba(24, 31, 54, .66);
  --glass-edge: rgba(255, 255, 255, .13);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .10);
  --solid: #EEF2FB;
  --on-solid: #0D1424;
  --hover: rgba(255, 255, 255, .09);
  --hi: rgba(255, 255, 255, .08);
  /* Foto produk berlatar putih, jadi ubin foto tetap terang seperti pelat pajang */
  --plate: radial-gradient(110% 75% at 50% 18%, rgba(132, 156, 255, .30), rgba(132, 156, 255, 0) 62%), linear-gradient(165deg, #1C2440 0%, #141A30 55%, #0E1324 100%);
  --plate-hover: radial-gradient(110% 75% at 50% 18%, rgba(150, 172, 255, .42), rgba(150, 172, 255, 0) 64%), linear-gradient(165deg, #222B4B 0%, #171E37 55%, #10162A 100%);
  --stage-plate: radial-gradient(85% 70% at 50% 42%, rgba(132, 156, 255, .34), rgba(132, 156, 255, 0) 70%), linear-gradient(165deg, #1C2440, #0E1324);
  --plate-glow: rgba(120, 140, 255, .35);
  --tray: rgba(34, 42, 70, .78);
  --tray-th: rgba(30, 38, 64, .97);
  --sheet: rgba(18, 24, 42, .90);
  --modal: rgba(16, 21, 38, .86);
  --fallback: rgba(18, 24, 42, .94);
  --aurora:
    radial-gradient(44vw 44vw at 6% 2%, rgba(52, 92, 255, .50), transparent 68%),
    radial-gradient(40vw 40vw at 98% 8%, rgba(140, 84, 255, .44), transparent 68%),
    radial-gradient(46vw 42vw at 80% 98%, rgba(20, 170, 170, .36), transparent 70%),
    radial-gradient(36vw 34vw at 10% 94%, rgba(214, 70, 150, .26), transparent 70%),
    linear-gradient(160deg, #070B16, #0A0F1F 55%, #071318);
}
html[data-theme="dark"] .topbar { box-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .shot { box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .card:hover .shot { box-shadow: 0 18px 36px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .card.selected .shot { box-shadow: 0 0 0 3px var(--accent-soft), 0 14px 30px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .tag5g { color: var(--accent); }
html[data-theme="dark"] .shot img.cut, html[data-theme="dark"] .stage img.cut { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); }
html[data-theme="dark"] .act { background: rgba(255, 255, 255, .12); color: #EEF2FB; border-color: rgba(255, 255, 255, .20); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html[data-theme="dark"] .act:hover, html[data-theme="dark"] .act.on { background: #EEF2FB; color: #0D1424; border-color: #EEF2FB; }
html[data-theme="dark"] .act[data-fav].on { background: rgba(255, 255, 255, .14); color: #FF7A9C; border-color: rgba(255, 255, 255, .22); }
html[data-theme="dark"] .stage { border-color: rgba(255, 255, 255, .10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
html[data-theme="dark"] .stage { background: radial-gradient(circle, rgba(170, 190, 255, .16) 1px, transparent 1.2px) 0 0 / 14px 14px, var(--stage-plate); }
html[data-theme="dark"] .rule { background: rgba(238, 242, 251, .5); }
html[data-theme="dark"] .rule::before, html[data-theme="dark"] .rule::after { background: rgba(238, 242, 251, .5); }
html[data-theme="dark"] .rule span { background: rgba(20, 26, 48, .92); border-color: rgba(255, 255, 255, .14); color: #EEF2FB; }
html[data-theme="dark"] .tray { border-color: rgba(255, 255, 255, .2); }

/* Tombol ganti tema */
.iconbtn {
  width: 42px; height: 42px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink);
}
.iconbtn:hover { background: var(--hover); }
.iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn .sun { display: none; }
html[data-theme="dark"] .iconbtn .sun { display: block; }
html[data-theme="dark"] .iconbtn .moon { display: none; }
.bar .iconbtn { margin-right: -16px; }
.detail .btn + .btn { margin-top: 10px; }

/* ---------- Lembar spesifikasi lengkap ---------- */
.sheet {
  width: min(1000px, calc(100vw - 32px)); max-height: min(88vh, 920px); padding: 0; overflow: hidden;
  color: var(--ink); background: var(--modal);
  -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost);
  border: 1px solid var(--glass-edge); border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35), inset 0 1px 0 var(--hi);
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(8, 12, 24, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheethead { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); flex: none; }
.mini { width: 58px; height: 74px; flex: none; padding: 8px; border-radius: 12px; background: var(--stage-plate); display: flex; align-items: center; justify-content: center; }
.mini img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sheethead h2 { margin: 0; font: 600 20px/1.2 var(--display); letter-spacing: -.02em; }
.sheethead p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.sheethead .sp { margin-left: auto; text-align: right; font: 600 17px/1.2 var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.xbtn { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--hover); color: var(--ink); font-size: 20px; line-height: 1; }
.xbtn:hover { border-color: var(--ink); }
.sheetbody { overflow-y: auto; padding: 6px 24px 28px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.groups { columns: 2; column-gap: 44px; }
.group { break-inside: avoid; padding-top: 20px; }
.group h3 { margin: 0 0 8px; font: 600 14px/1.2 var(--display); color: var(--accent); }
.group dl { margin: 0; }
.group dl div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.group dt { color: var(--muted); }
.group dd { margin: 0; overflow-wrap: anywhere; }
.sheetmsg { margin: 0; padding: 30px 0 10px; color: var(--muted); }
@media (max-width: 760px) {
  .groups { columns: 1; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 26px 26px 0 0; border-width: 1px 0 0; }
  .sheethead { padding: 16px; gap: 12px; }
  .sheethead .sp { display: none; }
  .sheetbody { padding: 4px 16px 24px; }
  .bar .iconbtn { margin-right: -4px; }
}

/* Browser tanpa backdrop-filter: kaca dibuat lebih pekat agar teks tetap terbaca */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar, .rail, .main, .detail, .sheet { background: var(--fallback); }
  .tray { background: var(--tray-th); }
}

/* ---------- Responsif ---------- */
@media (max-width: 1520px) and (min-width: 981px) {
}
@media (max-width: 1240px) {
  .layout { grid-template-columns: 176px minmax(0, 1fr) 316px; gap: 18px; }
  .wrap { padding: 0 20px; }
  .main { padding: 20px 20px 26px; }
}
@media (max-width: 980px) {
  .wrap { padding: 0 14px; }
  .bar { gap: 12px; }
  .layout { display: block; padding-top: 14px; }
  .rail {
    position: static; max-height: none; overflow: visible; margin-bottom: 14px; padding: 0;
    background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .rail h2 { display: none; }
  .navlist { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px 8px; padding: 0 14px; scrollbar-width: none; }
  .navlist button { width: auto; flex: none; border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--glass-strong); }
  .main { padding: 16px 14px 22px; border-radius: 22px; }
  .gridhead { top: 76px; margin-bottom: 18px; }
  .tab { padding: 0 12px; }
  .sort { padding-left: 10px; }
  .sort span { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 22px 12px; }
  .card:hover .shot { transform: none; }

  /* Lembar spesifikasi menjadi lembar bawah */
  .detail {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 40; max-height: 86vh;
    background: var(--sheet);
    border-radius: 26px 26px 0 0; border-width: 1px 0 0; box-shadow: 0 -18px 50px rgba(13, 20, 36, .22);
    transform: translateY(105%); transition: transform .24s ease-out; visibility: hidden;
  }
  .detail.open { transform: none; visibility: visible; }
  .close { display: block; position: sticky; top: 0; float: right; z-index: 1; width: 34px; height: 34px; margin: -8px -8px 0 8px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--fallback); color: var(--ink); font-size: 18px; line-height: 1; }
  .stage { height: 220px; }
  .tray { bottom: 10px; padding: 12px 12px 12px 16px; }
  .trayhead b { display: none; }
}
@media (max-width: 520px) {
  .logo { font-size: 0; gap: 0; }
  .btn.ghost { padding: 0 10px 0 12px; gap: 6px; }
  #openCompare .lbl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Halaman satu smartphone (phone.php) ---------- */
.pp { padding-top: 22px; padding-bottom: 80px; }
.pp-back { margin-left: auto; }
.pp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13.5px; color: var(--muted); }
.pp-crumbs a { color: var(--muted); text-decoration: none; } .pp-crumbs a:hover { color: var(--accent); }
.pp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.pp-stage.stage { height: auto; min-height: 460px; border-radius: 26px; padding: 40px 40px 40px 70px; }
.pp-stage .rule { left: 34px; top: 48px; bottom: 48px; }
.pp-info.detail { position: static; max-height: none; overflow: visible; }
.pp-info h1 { font-size: 30px; }
.pp-specs { margin-top: 24px; padding: 28px; border-radius: 26px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
.pp-specs h2 { margin: 0; font: 600 21px/1.2 var(--display); }
.pp-404 { padding: 80px 0; text-align: center; display: grid; gap: 14px; justify-items: center; }
@media (max-width: 860px) {
  .pp-hero { grid-template-columns: 1fr; }
  .pp-stage.stage { min-height: 300px; }
  .pp-info.detail { position: static; transform: none; visibility: visible; border-radius: 26px; border-width: 1px; box-shadow: var(--glass-shadow); max-height: none; inset: auto; }
  .pp-specs { padding: 18px; }
  .pp-back { display: none; }
}
.pp-stage img { height: min(360px, 100%); width: auto; max-width: 100%; }

/* ---------- Tombol beli ---------- */
.buys { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 16px 0 2px; }
.buy {
  display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 0 12px;
  border-radius: 12px; color: #fff; font-size: 13px; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); transition: filter .15s, transform .15s;
}
.buy b { font-weight: 600; }
.buy:hover { filter: brightness(1.08); transform: translateY(-1px); }
.buy.tokopedia { background: #03AC0E; }
.buy.shopee { background: #EE4D2D; }
.buys.compact { display: flex; gap: 6px; margin: 0; }
.buys.compact .buy { min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; }

/* ---------- Baki perbandingan bisa diseret ---------- */
.trayhead { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.grip { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 30px; margin-left: -8px; flex: none; color: rgba(255, 255, 255, .55); }
.grip svg { width: 16px; height: 16px; fill: currentColor; }
.trayhead:hover .grip { color: #fff; }
.tray.moved { transform: none; bottom: auto; animation: none; }
.tray.dragging { cursor: grabbing; box-shadow: 0 30px 80px rgba(13, 20, 36, .45); opacity: .96; }
.tray.dragging .trayhead { cursor: grabbing; }
.tray .tchips, .tray button { touch-action: manipulation; }
/* Tombol beli: satu per baris di panel sempit, berdampingan di halaman HP */
.buys { grid-template-columns: 1fr; }
.pp-info .buys { grid-template-columns: 1fr 1fr; }
.tray { width: min(1240px, calc(100vw - 32px)); }
.traybody th, .traybody td { padding: 10px 9px; }
.traybody td:first-child { white-space: normal; min-width: 150px; }
.traybody td:nth-child(2) { white-space: normal; min-width: 120px; }

/* Nama HP di kartu = tautan ke halaman HP */
.card a.nm { color: inherit; text-decoration: none; }
.card a.nm:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Tautan Artikel di bar atas katalog */
.toplink { padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
.toplink:hover { color: var(--ink); background: var(--hover); }
@media (max-width: 520px) { .toplink { padding: 8px 6px; } }

/* ---------- Penampil HP 3D (halaman HP) ---------- */
.p3d-wrap { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.p3d { --w: 170px; --ratio: 2.1; --depth: calc(var(--w) * .105); width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; user-select: none; -webkit-user-select: none; }
.p3d-scene { width: 100%; flex: 1; min-height: 360px; display: flex; align-items: center; justify-content: center; perspective: 1100px; cursor: grab; touch-action: none; position: relative; }
.p3d.grabbing .p3d-scene { cursor: grabbing; }
.p3d-scene::after { content: ""; position: absolute; left: 50%; bottom: 6%; width: calc(var(--w) * 1.1); height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 20, 36, .32), transparent); filter: blur(4px); pointer-events: none; }
.p3d-obj { position: relative; width: var(--w); height: calc(var(--w) * var(--ratio)); transform-style: preserve-3d; will-change: transform; }
.p3d-face, .p3d-layer { position: absolute; inset: 0; backface-visibility: hidden; }
.p3d-face { background-size: 100% 100%; background-repeat: no-repeat; }
.p3d-face.front { transform: translateZ(calc(var(--depth) / 2 + .5px)); }
.p3d-face.back { transform: rotateY(180deg) translateZ(calc(var(--depth) / 2 + .5px)); }
/* Kilap kaca yang bergeser saat diputar */
.p3d-face::after { content: ""; position: absolute; inset: 0; -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat;
  background: radial-gradient(60% 40% at var(--shine-x, 50%) 20%, rgba(255, 255, 255, calc(.28 * var(--sheen, .5))), transparent 70%); pointer-events: none; }
.p3d-layer { backface-visibility: visible; background: var(--edge);
  -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat;
  transform: translateZ(calc(var(--depth) * (var(--i) / var(--n) - .5)));
  filter: brightness(calc(.72 + .18 * var(--i) / var(--n))); }
.p3d-ctrl { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: 0 6px 18px rgba(30, 44, 90, .1); }
.p3d-ctrl button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink); font-size: 13px; font-weight: 500; }
.p3d-ctrl button:hover { background: var(--hover); }
.p3d-ctrl button[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); }
.p3d-hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.p3d-badge { position: absolute; top: 16px; right: 18px; padding: 4px 11px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 11.5px/1.2 var(--display); letter-spacing: .02em; }
.p3d-toggle { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); border: 0; background: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; z-index: 2; }
.pp-stage.has-3d { padding: 46px 24px 22px 70px; }
@media (max-width: 860px) { .p3d { --w: 140px; } .p3d-scene { min-height: 320px; } }
/* Model 3D dari AI (model-viewer) */
.mv { width: 100%; height: 100%; min-height: 420px; --poster-color: transparent; background: transparent; }
.mv-ar { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--solid); color: var(--on-solid); font-weight: 500; }

/* ---------- SEO: beranda, halaman daftar, tautan jelajah ---------- */
.home-seo { display: grid; gap: 22px; margin: 10px auto 140px; padding-top: 28px; border-top: 1px solid var(--line); }
.home-seo-text { max-width: 780px; }
.home-seo h2 { margin: 0 0 10px; font: 600 22px/1.25 var(--display); letter-spacing: -.01em; }
.home-seo p { margin: 0 0 10px; color: var(--muted); line-height: 1.65; }
.ls-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 22px 24px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
.ls-links h2 { margin: 0 0 10px; font: 600 15px/1.2 var(--display); }
.ls-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ls-links a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 13.5px; }
.ls-links a:hover, .ls-links a[aria-current] { border-color: var(--accent); color: var(--accent); }
.ls-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.ls-facts li { padding: 6px 14px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-edge); color: var(--muted); font-size: 14px; }
.ls-facts b { color: var(--ink); }
.ls-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.ls-card { position: relative; display: grid; gap: 6px; align-content: start; padding: 14px 14px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.ls-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; border-radius: 14px; background: var(--plate); padding: 14%; margin-bottom: 6px; }
.ls-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ls-img img.cut { mix-blend-mode: normal; filter: drop-shadow(0 10px 14px rgba(10, 16, 40, .25)); }
.ls-rank { position: absolute; top: 22px; left: 22px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--solid); color: var(--on-solid); font: 600 12.5px/28px var(--display); text-align: center; }
.ls-card h2 { margin: 0; font: 600 16px/1.3 var(--display); }
.ls-card h2 a { color: var(--ink); text-decoration: none; }
.ls-card h2 a:hover { color: var(--accent); }
.ls-price { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ls-spec { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 0; padding: 0; list-style: none; }
.ls-spec li { padding: 2px 8px; border-radius: 999px; background: var(--hover); color: var(--muted); font-size: 12px; }
.ls-faq { display: grid; gap: 8px; max-width: 860px; }
.ls-faq h2 { margin: 0 0 4px; font: 600 21px/1.25 var(--display); }
.ls-faq details { padding: 14px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-edge); }
.ls-faq summary { cursor: pointer; font: 600 15.5px/1.4 var(--display); }
.ls-faq p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.pp-faq { margin-top: 24px; padding: 0; }
.pp-also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0; }
.pp-also span { color: var(--muted); font-size: 14px; }
.pp-also a { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.pp .ls-links { margin-top: 8px; }
@media (max-width: 900px) { .ls-links { grid-template-columns: 1fr; } .ls-grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; } .home-seo { margin-bottom: 110px; } }

.b-list { grid-template-columns: minmax(0, 1fr); }
.ls-links > div { min-width: 0; }

/* Logo baru */
.logo { gap: 9px; }
.logo-img { height: 42px; width: auto; flex: none; display: block; }
.logo-on-dark { display: none; }
html[data-theme="dark"] .logo-on-light { display: none; }
html[data-theme="dark"] .logo-on-dark { display: block; }
@media (max-width: 520px) { .logo-img { height: 32px; } }
.logo-text b { color: var(--accent); font-weight: inherit; }
@media (max-width: 520px) { .logo-text { display: none; } }

/* ---------- Bayangan lantai di bawah foto HP ----------
   Dua lapis, berpusat tepat di tepi bawah HP (--fb = jarak tepi bawah HP dari dasar wadah, --fw = lebar HP).
   Terang: ::before bayangan sekitar yang lebar dan lembut, ::after bayangan kontak yang tegas.
   Gelap : ::before pantulan cahaya kebiruan di lantai (hitam tak terlihat di latar gelap), ::after bayangan kontak hitam. */
:root {
  --floor-amb: radial-gradient(closest-side, rgba(15, 20, 40, .34), rgba(15, 20, 40, 0));
  --floor-con: radial-gradient(closest-side, rgba(15, 20, 40, .62), rgba(15, 20, 40, 0));
  --img-shadow: drop-shadow(0 4px 6px rgba(15, 20, 40, .12));
}
html[data-theme="dark"] {
  --floor-amb: radial-gradient(closest-side, rgba(150, 170, 255, .40), rgba(150, 170, 255, 0));
  --floor-con: radial-gradient(closest-side, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
  --img-shadow: drop-shadow(0 4px 8px rgba(0, 0, 0, .30));
}
.shot { --fb: 16%; --fw: 64%; --fx: 0px; }
.ls-img { --fb: 11.6%; --fw: 72%; --fx: 0px; position: relative; }
.k-phone-img { --fb: 12px; --fw: calc(93% - 18px); --fx: 0px; position: relative; }
.stage { --fb: 28px; --fw: 160px; --fx: 13px; }
.pp-stage.stage { --fb: 40px; --fw: 280px; --fx: 15px; }
@media (max-width: 760px) { .stage { --fw: 123px; } .pp-stage.stage { --fw: 165px; } }
.shot::before, .shot::after, .ls-img::before, .ls-img::after,
.stage::before, .stage::after, .k-phone-img::before, .k-phone-img::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  left: calc(50% + var(--fx)); transform: translateX(-50%);
}
.shot::before, .ls-img::before, .stage::before, .k-phone-img::before {
  width: calc(var(--fw) * 1.15); height: 26px; bottom: calc(var(--fb) - 19px);
  background: var(--floor-amb); filter: blur(5px);
}
.shot::after, .ls-img::after, .stage::after, .k-phone-img::after {
  width: calc(var(--fw) * .74); height: 10px; bottom: calc(var(--fb) - 7px); right: auto;
  background: var(--floor-con); filter: blur(1.5px);
}
html[data-theme="dark"] .shot::before, html[data-theme="dark"] .ls-img::before,
html[data-theme="dark"] .stage::before, html[data-theme="dark"] .k-phone-img::before {
  width: calc(var(--fw) * 1.4); height: 40px; bottom: calc(var(--fb) - 30px); filter: blur(6px);
}
.shot img, .ls-img img, .stage img, .k-phone-img img { position: relative; z-index: 1; }
.shot img.cut, .stage img.cut, .ls-img img.cut, .k-phone-img img { filter: var(--img-shadow); }
/* Penampil 3D sudah punya bayangan sendiri */
.stage.has-3d::before, .stage.has-3d::after { display: none; }

/* ---------- Peringkat di kartu halaman daftar ---------- */
.card .rank { position: absolute; top: 10px; left: 12px; z-index: 2; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--solid); color: var(--on-solid); font: 600 12px/24px var(--display); text-align: center; font-variant-numeric: tabular-nums; }
a.shot { text-decoration: none; color: inherit; }
.ls-cards { margin-top: 8px; }
.ls-note { margin-top: 18px; }

/* ---------- Paginasi ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding-top: 34px; }
.pager:empty { display: none; }
.pg { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background .15s ease, border-color .15s ease; }
.pg:hover { border-color: var(--accent); }
.pg.on { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.pg.gap { border: 0; background: none; min-width: 20px; padding: 0; color: var(--muted); }
.pg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Kaki situs ---------- */
.site-foot { margin-top: 40px; padding: 34px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-foot-in { display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: center; }
.site-foot-logo { display: block; line-height: 0; }
.site-foot-logo img { height: 50px; width: auto; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot-copy { grid-column: 1 / -1; margin: 0; font-size: 13px; }
@media (max-width: 760px) { .site-foot-in { grid-template-columns: 1fr; } .site-foot nav { justify-content: flex-start; } .site-foot-logo img { height: 42px; } }
.home-seo { margin-bottom: 30px; }
.b-foot { display: none; }

/* ---------- Tombol kembali ke atas ---------- */
.totop { position: fixed; right: 18px; bottom: 22px; z-index: 29; width: 46px; height: 46px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--solid); color: var(--on-solid); border: 1px solid var(--glass-edge); box-shadow: 0 10px 26px rgba(13, 20, 36, .25);
  transition: transform .18s ease, opacity .18s ease; }
.totop[hidden] { display: none; }
.totop:hover { transform: translateY(-2px); }
.totop:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body:has(.tray:not([hidden]):not(.moved)) .totop { bottom: 100px; }
body:has(.tray .traybody) .totop { display: none; }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; } }
body:has(.tray:not([hidden]):not(.moved)) .site-foot { padding-bottom: 130px; }
.site-foot-copy { padding-right: 60px; }
