/*
 * FINNBLOX — sistem desain "bata".
 * Warna utama & aksen diambil dari panel admin (GET /api/site → theme) dan disuntikkan ke --primary / --accent.
 * Elemen kunci (tombol, kartu layanan, panel penting) punya bayangan keras yang "tertekan" saat diklik.
 */
:root {
  --primary: #2b54f0;
  --accent: #ffc531;
  --primary-dark: color-mix(in srgb, var(--primary) 80%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 12%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 25%, #fff);
  --sky: #eef3ff;
  --ink: #151a3d;
  --ink-soft: #4a5078;
  --ink-faint: #8a90b2;
  --line: #d4ddf2;
  --white: #fff;
  --red: #d93a33;
  --red-soft: #fde6e4;
  --green: #12925a;
  --green-soft: #ddf5e9;
  --amber-soft: #fff3d1;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --r: 10px;
  --r-lg: 18px;
  --press: 5px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m0 { margin: 0; } .mt-s { margin-top: 10px; } .mt-m { margin-top: 20px; } .mt-l { margin-top: 32px; } .mb-m { margin-bottom: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.pre { white-space: pre-wrap; word-break: break-word; }

/* ---------- Pengumuman & header ---------- */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: .88rem; font-weight: 600; padding: 8px 16px; }
.site-header { background: var(--white); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo img { height: 38px; width: auto; }
.logo-mark { width: 38px; height: 38px; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .68rem; color: var(--ink-soft); margin-top: 3px; }
.nav { display: flex; gap: 2px; align-items: center; margin-left: auto; }
.nav a { position: relative; text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 13px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--sky); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.nav .count { position: absolute; top: 0; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--ink); border: 2px solid var(--ink); font-size: .7rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.nav .avatar-link { display: flex; align-items: center; gap: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); background: var(--primary-soft); display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: var(--ink); overflow: hidden; flex: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: var(--r); padding: 6px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--ink); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; display: none; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .count { top: 10px; right: auto; left: 120px; }
}

/* ---------- Tombol bata ---------- */
.btn {
  --bg: var(--primary); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; line-height: 1.2; padding: 12px 22px; min-height: 48px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--ink); border-radius: var(--r);
  box-shadow: 0 var(--press) 0 var(--ink); margin-bottom: var(--press);
  cursor: pointer; text-decoration: none; transition: transform .06s ease, box-shadow .06s ease;
}
.btn:hover { color: var(--fg); filter: brightness(1.07); }
.btn:active:not(:disabled) { transform: translateY(calc(var(--press) - 1px)); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-accent { --bg: var(--accent); --fg: var(--ink); }
.btn-white { --bg: #fff; --fg: var(--ink); }
.btn-danger { --bg: #fff; --fg: var(--red); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; min-height: 36px; font-size: .9rem; --press: 3px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn.danger { color: var(--red); }

/* ---------- Hero & banner ---------- */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 48ch; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.hero-points svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; } .hero { padding: 32px 0 40px; } }

.banner-slider { position: relative; border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; background: var(--primary); box-shadow: 0 8px 0 var(--ink); aspect-ratio: 16 / 10; }
.banner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; opacity: 0; transition: opacity .5s ease; background-size: cover; background-position: center; }
.banner.active { opacity: 1; z-index: 1; }
.banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 14, 40, .75), rgba(10, 14, 40, 0) 60%); }
.banner > * { position: relative; }
.banner h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0 0 4px; }
.banner p { margin: 0 0 12px; opacity: .92; }
.banner-dots { position: absolute; z-index: 2; top: 14px; right: 14px; display: flex; gap: 6px; }
.banner-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.banner-dots button[aria-current="true"] { background: #fff; }
/* Panel bertekstur stud (dipakai bila belum ada banner) */
.studs-panel { border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 8px 0 var(--ink); }
.studs { height: 56px; background-color: var(--primary); background-image: radial-gradient(circle, rgba(255,255,255,.28) 0 8px, rgba(0,0,0,.18) 9px, transparent 10px); background-size: 34px 34px; background-position: 6px 11px; border-bottom: 2px solid var(--ink); }
.studs-body { padding: 22px; }

/* ---------- Seksi ---------- */
.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head p { margin: 0; max-width: 58ch; }

/* Kartu layanan — 3 metode top up */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.service { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 0 6px 0 var(--ink); margin-bottom: 6px; transition: transform .06s ease, box-shadow .06s ease; text-align: left; font: inherit; cursor: pointer; }
.service:hover { color: var(--ink); background: #f8faff; }
.service:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.service[aria-pressed="true"] { background: var(--primary-soft); }
.service-img { width: 56px; height: 56px; border-radius: 14px; border: 2px solid var(--ink); background: var(--sky); display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-img svg { width: 32px; height: 32px; }
.service-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; }
.service-tagline { color: var(--ink-soft); font-size: .93rem; }
.service-price { margin-top: auto; padding-top: 10px; font-weight: 800; }
.badge { position: absolute; top: -13px; right: 16px; background: var(--accent); border: 2px solid var(--ink); border-radius: 999px; font-size: .76rem; font-weight: 800; padding: 2px 11px; color: var(--ink); }

/* Ubin produk */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px; background: #fff; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); margin-bottom: 5px; transition: transform .06s ease, box-shadow .06s ease; }
.tile:hover { color: var(--ink); background: #f8faff; }
.tile:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.tile.disabled { opacity: .55; pointer-events: none; }
.tile-img { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; margin-bottom: 8px; background: var(--sky); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-amount { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; display: flex; align-items: center; gap: 6px; }
.tile-amount svg { width: 22px; height: 22px; flex: none; }
.tile-sub { font-weight: 600; font-size: .86rem; color: var(--ink-soft); }
.tile-price { margin-top: 10px; font-weight: 800; font-size: 1.08rem; }
.tile-orig { font-size: .82rem; color: var(--ink-faint); text-decoration: line-through; }
.tile-custom { background: var(--ink); color: #fff; }
.tile-custom:hover { background: #1f2654; color: #fff; }
.tile-custom .tile-sub { color: #c4c9ea; }
.tile .badge { top: -12px; right: 10px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; font-family: var(--font-display); font-weight: 800; background: var(--accent); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink); }
.steps p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.review { margin: 0; padding: 20px; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; flex: 1; }
.review figcaption { display: grid; }
.stars { color: #e0a100; letter-spacing: 2px; }

/* ---------- Panel, form ---------- */
.page { padding: 36px 0 72px; min-height: 60vh; }
.panel { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.25rem; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.sticky { position: sticky; top: 90px; }
@media (max-width: 920px) { .layout-2 { grid-template-columns: 1fr; } .sticky { position: static; } }
.narrow { max-width: 560px; margin: 0 auto; }

.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.input { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 11px 13px; min-height: 46px; }
.input:hover { border-color: #b3c3e8; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input[aria-invalid="true"] { border-color: var(--red); }
textarea.input { min-height: 100px; resize: vertical; }
select.input { appearance: auto; }
.field-error { color: var(--red); font-size: .86rem; font-weight: 600; margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }

.options { display: grid; gap: 10px; }
.option { position: relative; display: flex; gap: 12px; align-items: center; padding: 13px 15px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.option:hover { border-color: #b3c3e8; }
.option input { position: absolute; opacity: 0; }
.option .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink-faint); }
.option:has(input:checked) { border-color: var(--ink); background: var(--primary-soft); }
.option:has(input:checked) .dot { border: 6px solid var(--primary); }
.option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.option:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.option strong { display: block; }
.group-label { font-weight: 800; font-size: .82rem; color: var(--ink-soft); margin: 14px 0 6px; }

.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 16px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .grand { display: flex; align-items: center; border-top: 2px dashed var(--line); padding-top: 12px; margin-top: 4px; }
.summary dd.grand { justify-content: flex-end; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; }

.notice { border-radius: 12px; padding: 13px 15px; font-size: .93rem; border: 2px solid; }
.notice strong { display: block; margin-bottom: 2px; }
.notice p:last-child { margin: 0; }
.notice-info { background: var(--sky); border-color: #d6e2ff; }
.notice-warn { background: var(--amber-soft); border-color: #f2d98c; }
.notice-error { background: var(--red-soft); border-color: #f4b6b1; color: #8b1b15; }
.notice-ok { background: var(--green-soft); border-color: #a3e0c0; color: #0b5e3a; }

/* ---------- Keranjang & pesanan ---------- */
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-title { font-weight: 800; }
.line-meta { font-size: .88rem; color: var(--ink-soft); }
.line-price { text-align: right; font-weight: 800; }
.line-actions { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: var(--sky); font: inherit; font-weight: 800; cursor: pointer; color: var(--ink); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }

.status-pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; padding: 5px 13px; border-radius: 999px; border: 2px solid var(--ink); font-size: .88rem; white-space: nowrap; }
.status-pill::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.s-pending_payment, .s-waiting, .s-open { background: var(--amber-soft); color: #7a4f00; }
.s-paid, .s-processing, .s-queued, .s-answered { background: var(--primary-soft); color: var(--primary-dark); }
.s-completed, .s-delivered { background: var(--green-soft); color: var(--green); }
.s-failed { background: var(--red-soft); color: var(--red); }
.s-cancelled, .s-expired, .s-refunded, .s-closed { background: #eceef6; color: var(--ink-soft); }
.order-no { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .01em; word-break: break-all; }
.pay-amount { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1.1; }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; margin: 8px 0; }
.copy-row .val { font-weight: 800; font-size: 1.08rem; word-break: break-all; }
.code-box { font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; font-weight: 700; background: var(--green-soft); border: 2px dashed var(--green); border-radius: 10px; padding: 10px 14px; word-break: break-all; }
.qr { width: 240px; max-width: 100%; border: 2px solid var(--ink); border-radius: 12px; background: #fff; padding: 8px; margin: 10px 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 12px; height: 12px; border-radius: 3px; background: var(--ink); }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li:last-child::before { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.timeline time { display: block; font-size: .8rem; color: var(--ink-faint); }

/* Tab */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { font: inherit; font-weight: 700; padding: 9px 17px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }

/* FAQ */
.faq details { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-soft); padding-bottom: 16px; margin: 0; white-space: pre-wrap; }

/* Chat CS */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.msg.me { align-self: flex-end; background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, #fff); }
.msg.system { align-self: center; background: transparent; border: 0; font-size: .85rem; color: var(--ink-faint); }
.msg .who { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4c9ea; padding: 40px 0 26px; font-size: .92rem; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 30px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #2c3366; padding-top: 18px; font-size: .8rem; color: #8a90b2; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
@media (max-width: 880px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }

.float-wa { position: fixed; right: 16px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 800; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px 8px 10px; box-shadow: 0 4px 0 var(--ink); }
.float-wa svg { width: 26px; height: 26px; }
.float-wa:hover { color: var(--ink); background: var(--accent-soft); }
@media (max-width: 520px) { .float-wa span { display: none; } .float-wa { padding: 10px; } }

/* ---------- Umpan balik ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 100; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.skeleton { background: linear-gradient(90deg, #e3ebfb 0%, #f3f7ff 50%, #e3ebfb 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: 14px; min-height: 110px; }
.skeleton.tall { min-height: 320px; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-soft); }
.maintenance { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }

/* Halaman legal */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose li { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.h-form { font-size: 1.8rem; }

/* Pemisah "atau" di formulir masuk */
.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--ink-faint); font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }

/* Flash sale */
.badge-flash { background: var(--red); color: #fff; }
.tile-flash { border-color: var(--red); }
.tile-timer { color: var(--red); font-weight: 700; }
.flash-tag { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 99px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.flash-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--red-soft); margin-bottom: 16px; }
.flash-bar strong { color: var(--red); }
.flash-bar .num { font-weight: 800; }

/* Pembelian terbaru */
.recent-strip { border-block: 2px solid var(--ink); background: var(--accent-soft); overflow: hidden; }
.recent-strip .recent-inner { max-width: var(--wrap); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; font-size: .92rem; min-height: 44px; }
.recent-strip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 3px var(--green-soft); }
.recent-strip .recent-text { transition: opacity .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-strip .recent-text.fade { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .recent-strip .recent-text { transition: none; } }

/* Kalkulator */
.calc { display: grid; gap: 14px; }
.calc .calc-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.calc .calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc .calc-result > div { border: 2px solid var(--ink); border-radius: var(--r); padding: 12px; background: var(--sky); }
.calc .calc-result .k { font-size: .8rem; color: var(--ink-soft); }
.calc .calc-result .v { font-size: 1.25rem; font-weight: 800; }
@media (max-width: 520px) { .calc .calc-result { grid-template-columns: 1fr; } }
.section-flash { background: var(--red-soft); }
.stack { display: grid; gap: 16px; }
.text-ok { color: var(--green); }
