/* muzire motion — design tokens & komponen bersama.
   Primary #511FF4, Accent #ACF02D. Tema gelap hangat terinspirasi direktori tools modern. */
:root {
  color-scheme: dark;
  --primary: #511FF4;
  --primary-hi: #6a42ff;
  --primary-soft: rgba(81, 31, 244, .16);
  --primary-text: #a995ff;      /* varian terang untuk teks/link di atas latar gelap (kontras AA) */
  --accent: #ACF02D;
  --accent-ink: #12160a;        /* teks di atas aksen */
  --bg: #0f0e10;
  --grid: rgba(255, 255, 255, .032);
  --surface: #17161a;
  --surface-2: #1f1e23;
  --border: #2d2c32;
  --border-soft: #232227;
  --text: #e8e6de;
  --text-dim: #a5a299;
  --text-faint: #7c7a72;
  --danger: #ff7a7a;
  --warn: #ffc857;
  --ok: #ACF02D;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .28);
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --t: .16s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--text); background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 160px 160px;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
[x-cloak] { display: none !important; }
kbd { font-family: var(--mono); font-size: .8em; padding: 1px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); }
.icon { flex: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 8px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 48px 20px; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.gap { gap: 12px; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(15, 14, 16, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-logo { border-radius: 8px; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; }
.nav-link { color: var(--text-dim); padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left; transition: color var(--t), background var(--t); }
.nav-link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.nav-mobile-account { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-account { display: flex; gap: 6px; align-items: center; }
.cart-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text); border: 1px solid var(--border); background: var(--surface); transition: border-color var(--t); }
.cart-link:hover { border-color: var(--primary); text-decoration: none; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; place-items: center; }
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 36px 0; background: rgba(0, 0, 0, .25); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-weight: 700; margin-bottom: 6px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { color: var(--text-dim); font-size: .9rem; }

@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .header-account { display: none; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 14px; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .nav-open .nav { display: flex; }
  .nav-link { padding: 12px; }
  .nav-link[aria-current="page"] { box-shadow: none; color: var(--primary-text); }
  .nav-mobile-account { display: flex; flex-direction: column; border-top: 1px solid var(--border-soft); margin-top: 8px; padding-top: 8px; }
}

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; font: inherit; font-weight: 600; font-size: .95rem; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: background var(--t), border-color var(--t), transform var(--t), opacity var(--t); text-decoration: none; line-height: 1; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hi); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn-quiet { background: transparent; color: var(--text-dim); }
.btn-quiet:hover { color: var(--text); background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 122, 122, .45); }
.btn-danger:hover { background: rgba(255, 122, 122, .1); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #26bd62; }

/* ---------- badge ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); font-weight: 500; }
.badge-free { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.badge-premium { background: var(--primary-soft); border-color: var(--primary); color: #cfc4ff; }
.badge-demo { border-style: dashed; color: var(--warn); border-color: rgba(255, 200, 87, .5); }
.badge-ok { background: rgba(172, 240, 45, .12); border-color: rgba(172, 240, 45, .5); color: var(--accent); }
.badge-warn { background: rgba(255, 200, 87, .1); border-color: rgba(255, 200, 87, .5); color: var(--warn); }
.badge-bad { background: rgba(255, 122, 122, .1); border-color: rgba(255, 122, 122, .5); color: var(--danger); }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span, .field > label { font-size: .85rem; font-weight: 600; color: var(--text-dim); }
.field .hint { font-weight: 400; color: var(--text-faint); font-size: .8rem; }
input[type="text"], input[type="email"], input[type="number"], input[type="url"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--t), box-shadow var(--t);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; }
.field-err { color: var(--danger); font-size: .85rem; }

/* ---------- hero & katalog ---------- */
.hero { padding: 56px 20px 8px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 18px; }
.display { font-size: clamp(2.6rem, 9vw, 5.6rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.display .dot { color: var(--primary-hi); }
.h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.035em; }
.h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 700; letter-spacing: -.03em; }
.h3 { font-size: 1.15rem; font-weight: 700; }
.rule { width: 176px; height: 3px; background: var(--primary); margin: 22px 0 26px; border-radius: 2px; }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--text-dim); max-width: 46rem; line-height: 1.6; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.stat { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); background: var(--surface); }
.stat b { color: var(--accent); font-weight: 600; }

.search { display: flex; align-items: center; gap: 12px; padding: 0 16px; margin: 34px 0 20px; background: var(--surface); border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; transition: border-color var(--t); }
.search:focus-within { border-bottom-color: var(--primary); box-shadow: 0 2px 0 var(--primary); }
.search svg { color: var(--text-faint); }
.search input { border: 0; background: transparent; min-height: 56px; padding: 0; font-size: 1.1rem; box-shadow: none !important; border-radius: 0; }
.search input:focus { box-shadow: none; }
.search .clear { background: none; border: 0; color: var(--text-faint); cursor: pointer; padding: 6px; border-radius: 6px; display: grid; }
.search .clear:hover { color: var(--text); }

.tabs { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.tab { background: none; border: 0; color: var(--text-dim); font: inherit; font-size: 1.05rem; padding: 10px 4px; cursor: pointer; position: relative; transition: color var(--t); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--primary-text); font-weight: 600; }
.tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary); }
.tab-sep { color: var(--text-faint); padding: 0 14px; user-select: none; }
.tab .count { font-family: var(--mono); font-size: .72em; color: var(--text-faint); margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.chip { font: inherit; font-size: .875rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); cursor: pointer; transition: all var(--t); }
.chip:hover { border-color: var(--primary); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 8px 0 22px; }
.toolbar .filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar select { width: auto; min-height: 38px; padding: 6px 12px; font-size: .9rem; }
.result-count { font-family: var(--mono); font-size: 12px; color: var(--text-faint); letter-spacing: .06em; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color var(--t), transform var(--t), background var(--t); }
.card:hover { border-color: var(--primary); background: #1b1a1f; transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.card-top .arrow { color: var(--text-faint); transition: color var(--t), transform var(--t); }
.card:hover .card-top .arrow { color: var(--accent); transform: translate(2px, -2px); }
.card-thumb { margin: -24px -24px 18px; aspect-ratio: 16 / 7; background: var(--surface-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 10px; }
.card-title svg { color: var(--primary-text); }
.card-title a { color: var(--text); }
.card-title a:hover { text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-desc { color: var(--text-dim); font-size: .98rem; margin: 0 0 18px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.card-price { font-family: var(--mono); font-size: .9rem; color: var(--text); }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.card-cta { position: relative; z-index: 1; }

.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius-sm); border: 1px solid var(--border-soft); min-height: 230px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-dim); background: rgba(255, 255, 255, .015); }
.empty h3 { color: var(--text); margin-bottom: 8px; }

/* ---------- beranda ---------- */
.kind-tiles { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 760px) { .kind-tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: block; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); transition: border-color var(--t), transform var(--t); }
.tile:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.tile .tile-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); margin-bottom: 14px; }
.tile .tile-count { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.band { margin-top: 56px; padding: 36px; border: 1px solid var(--primary); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(81, 31, 244, .22), rgba(81, 31, 244, .05)); display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.band .h2 { margin-bottom: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 56px 0 18px; flex-wrap: wrap; }

/* ---------- detail produk ---------- */
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.crumbs a { color: var(--text-dim); }
.detail { display: grid; gap: 32px; grid-template-columns: 1fr; padding-top: 32px; }
@media (min-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .buybox { position: sticky; top: 88px; } }
.detail-cover { aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); margin: 22px 0; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.buybox { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.buybox .price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 4px; }
.buybox ul { padding-left: 18px; color: var(--text-dim); font-size: .92rem; }
.prose { color: var(--text); line-height: 1.7; word-wrap: break-word; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .5em; }
.prose h1 { font-size: 1.8rem; } .prose h2 { font-size: 1.45rem; } .prose h3 { font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose blockquote { margin: 1em 0; padding: .4em 1em; border-left: 3px solid var(--primary); color: var(--text-dim); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose pre { background: var(--surface-2); padding: 14px; border-radius: var(--radius-sm); overflow: auto; font-family: var(--mono); font-size: .9em; }
.panel { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel + .panel { margin-top: 16px; }
.panel h2, .panel h3 { margin-bottom: 10px; }
.notice { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); font-size: .95rem; margin-bottom: 16px; }
.notice-warn { border-color: rgba(255, 200, 87, .5); background: rgba(255, 200, 87, .07); }
.notice-ok { border-color: rgba(172, 240, 45, .5); background: rgba(172, 240, 45, .07); }
.notice-err { border-color: rgba(255, 122, 122, .5); background: rgba(255, 122, 122, .07); color: #ffd0d0; }
.notice-info { border-color: var(--primary); background: var(--primary-soft); }

/* ---------- keranjang & order ---------- */
.cart-layout { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.cart-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.cart-line .name { font-weight: 600; }
.cart-line .meta { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.cart-line .price { text-align: right; font-family: var(--mono); }
.summary { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); position: sticky; top: 88px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--text-dim); }
.summary-total { display: flex; justify-content: space-between; padding: 14px 0 18px; margin-top: 8px; border-top: 1px solid var(--border); font-size: 1.3rem; font-weight: 800; color: var(--text); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; background: var(--primary-soft); border: 1px solid var(--primary); color: #fff; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: .95rem; }
.kv dt { color: var(--text-faint); } .kv dd { margin: 0; word-break: break-word; }
/* Kotak nomor rekening: grid dua kolom (nomor | tombol salin). Nomor selalu satu baris horizontal. */
.copy-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; font-family: var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 8px 8px 14px; }
.copy-num { white-space: nowrap; overflow-x: auto; font-size: clamp(.95rem, 4.4vw, 1.15rem); letter-spacing: .04em; font-variant-numeric: tabular-nums; scrollbar-width: thin; padding: 4px 0; }
.pay-methods { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 8px 0 18px; }
@media (min-width: 760px) { .pay-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pay-total { grid-column: 1 / -1; } }
.pay-method { display: block; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.pay-kind { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.pay-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.pay-label { font-size: .8rem; color: var(--text-faint); margin-bottom: 2px; }
.pay-value { font-weight: 600; margin-bottom: 12px; word-break: break-word; }
.pay-total { display: block; padding: 14px 18px; border: 1px dashed var(--primary); border-radius: var(--radius); background: var(--primary-soft); }
.pay-total span { display: block; font-size: .85rem; color: var(--text-dim); }
.pay-total b { font-size: 1.5rem; letter-spacing: -.02em; }
.order-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 14px; }
.order-card .head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.order-no { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.items-list { list-style: none; padding: 0; margin: 12px 0 0; }
.items-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border-soft); font-size: .95rem; }

/* ---------- tool ---------- */
.tool-app { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tool-controls { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 720px) { .tool-controls { grid-template-columns: 1fr 1.3fr 1.2fr auto; } .tool-controls .field { margin-bottom: 0; } }
.swatches { display: grid; gap: 0; margin: 22px 0 8px; border-radius: var(--radius); overflow: hidden; grid-auto-flow: row; grid-template-columns: 1fr; border: 1px solid var(--border); }
@media (min-width: 720px) { .swatches { grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; } }
.swatch { min-height: 120px; padding: 14px; border: 0; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; font: inherit; text-align: left; transition: flex var(--t), filter var(--t); }
@media (min-width: 720px) { .swatch { min-height: 240px; } }
.swatch:hover { filter: brightness(1.08); }
.swatch-hex { font-family: var(--mono); font-weight: 600; font-size: 1rem; letter-spacing: .04em; }
.swatch-sub { font-family: var(--mono); font-size: 11px; opacity: .8; }
.tool-actions { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; flex-wrap: wrap; }
.code-out { margin: 0; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--mono); font-size: .9rem; overflow: auto; white-space: pre; color: var(--text); }
.gate { text-align: center; padding: 48px 24px; border: 1px dashed var(--primary); border-radius: var(--radius-lg); background: var(--primary-soft); }
.gate .lock { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; margin: 0 auto 16px; }

/* ---------- tabel ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; font-weight: 500; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: rgba(255, 255, 255, .03); }

/* ---------- toast ---------- */
.toast-host { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .92rem; display: flex; gap: 12px; align-items: center; animation: toast-in .2s ease; }
.toast a { font-weight: 600; white-space: nowrap; }
.toast.err { border-color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- auth ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; padding: 32px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.auth-card .sub { color: var(--text-dim); font-size: .95rem; margin-bottom: 24px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 600; margin-bottom: 14px; }
.google-btn:hover { border-color: var(--primary); text-decoration: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: .8rem; margin: 6px 0 16px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.msg { font-size: .9rem; margin-top: 14px; min-height: 1.2em; color: var(--text-dim); }
.msg.err { color: var(--danger); }

/* ---------- course learn ---------- */
.learn { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 900px) { .learn { grid-template-columns: 320px minmax(0, 1fr); align-items: start; } }
.outline { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.outline h3 { padding: 14px 16px; font-size: .8rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--border); }
.outline .mod { padding: 12px 16px 4px; font-weight: 700; font-size: .92rem; }
.outline button.les { display: flex; gap: 10px; width: 100%; align-items: center; text-align: left; padding: 10px 16px; border: 0; background: none; color: var(--text-dim); font: inherit; font-size: .92rem; cursor: pointer; border-left: 3px solid transparent; }
.outline button.les:hover { background: var(--surface-2); color: var(--text); }
.outline button.les[aria-current="true"] { border-left-color: var(--accent); color: var(--text); background: var(--surface-2); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; margin-bottom: 20px; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- pembatasan teks panjang ---------- */
.clamp-1, .clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
.badge { white-space: nowrap; }
.card-title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; min-width: 0; }
.card-title { min-width: 0; }
.card-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
.cart-line .name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.items-list li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.h1, .h2 { overflow-wrap: anywhere; }

/* ---------- perbaikan layout mobile ---------- */
.btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
input[type="file"] { font: inherit; font-size: .9rem; color: var(--text-dim); max-width: 100%; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; font-size: .85rem; margin-right: 12px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; transition: border-color var(--t); }
input[type="file"]::file-selector-button:hover { border-color: var(--primary); }
.btn-sm { padding-top: 7px; padding-bottom: 7px; }
.cart-line > div { min-width: 0; }
.cart-line .name { word-break: break-word; }
@media (max-width: 899px) { .summary { position: static; } }
@media (max-width: 600px) {
  .section { padding: 36px 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 36px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 12px; }
  .band { padding: 24px 20px; }
  .band .btn { width: 100%; }
  /* grid selalu 2 kolom: kartu dipadatkan supaya muat di layar sempit */
  .grid { gap: 10px; }
  .card { padding: 14px; min-height: 0; }
  .card-thumb { margin: -14px -14px 12px; }
  .card-top { margin-bottom: 10px; font-size: 10px; letter-spacing: .1em; }
  .card-title { font-size: 1rem; gap: 6px; margin-bottom: 8px; }
  .card-title svg { width: 18px; height: 18px; }
  .card-title a { -webkit-line-clamp: 3; }
  .card-desc { font-size: .82rem; margin-bottom: 12px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-cta { width: 100%; }
  .card-price { font-size: .8rem; }
  .buybox, .panel, .summary { padding: 18px; }
  .cart-line { grid-template-columns: 40px minmax(0, 1fr); }
  .cart-line .price { grid-column: 2; text-align: left; }
  .order-card .head { align-items: flex-start; }
  .toolbar .filters { width: 100%; }
  .toolbar .filters label { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ================= Aksesibilitas v1 (audit WCAG 2.2 AA) ================= */
/* 1.4.3: teks redup naik dari 4.2:1 ke >=5:1 di semua permukaan; 1.4.11: batas kolom input >=3:1 */
:root { --text-faint: #939188; --field-border: #77757d; }
/* 2.4.11: elemen berfokus tidak tertutup header/filter/bilah ekspor yang lengket */
html { scroll-padding-top: 140px; }
input, select, textarea, body .mzt input, body .mzt select, body .mzt textarea { border-color: var(--field-border); }
/* 2.4.7: cincin fokus jelas untuk kolom isian (sebelumnya hanya bayangan ungu tipis) */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body .mzt input:focus-visible, body .mzt select:focus-visible, body .mzt textarea:focus-visible { outline: 2px solid var(--lime, #ACF02D); outline-offset: 2px; }
/* teks 10-11px dinaikkan ke 12px (label huruf kapital mono) */
.badge, .footer-h, .need-n, .tool-switch .lbl, .cart-line .meta, .pay-kind, .table th, .swatch-sub { font-size: 12px; }
@media (max-width: 600px) { .card-top { font-size: 11px; } }

/* ================= Penyegaran UX v2: navigasi, katalog, beranda, halaman tool ================= */
h1, h2, h3 { text-wrap: balance; }
.lede, .card-desc { text-wrap: pretty; }
.link-btn { background: none; border: 0; padding: 6px 4px; min-height: 32px; font: inherit; font-size: .85rem; color: var(--primary-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: border-color var(--t); }
.icon-btn:hover { border-color: var(--primary); text-decoration: none; }
.chip { min-height: 36px; display: inline-flex; align-items: center; }

/* header: pencarian selalu terjangkau */
.header-search { display: none; position: relative; width: clamp(200px, 22vw, 300px); }
.header-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.header-search input { min-height: 38px; padding: 6px 38px 6px 36px; font-size: .9rem; border-radius: 999px; }
.header-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-faint); }
@media (min-width: 1000px) { .header-search { display: block; } .icon-btn.search-link { display: none; } }

/* footer */
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-col { display: flex; flex-direction: column; }
.footer-h { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 8px; font-weight: 500; }
.footer-col a { display: flex; align-items: center; min-height: 36px; color: var(--text-dim); font-size: .92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border-soft); }

/* beranda */
.hero { padding: 48px 20px 8px; }
.display { font-size: clamp(2.1rem, 6.2vw, 3.9rem); line-height: 1.04; max-width: 20ch; letter-spacing: -.035em; }
.hero .lede { margin-top: 18px; max-width: 40rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .search { margin-top: 28px; max-width: 680px; }
.section-head.tight { margin-top: 40px; }
.need-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .need-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .need-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 759px) { .need-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.need { display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 128px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); transition: border-color var(--t), transform var(--t), background var(--t); }
.need:hover { border-color: var(--accent); background: #1b1a1f; text-decoration: none; transform: translateY(-2px); }
.need b { font-size: 1.1rem; letter-spacing: -.02em; }
.need-n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.need-d { font-size: .85rem; color: var(--text-dim); line-height: 1.4; }

/* halaman daftar: judul ringkas + bilah filter */
.page-head { padding: 28px 20px 18px; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head .lede { font-size: 1rem; margin: 8px 0 0; max-width: 42rem; }
.filter-bar { background: rgba(15, 14, 16, .94); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border); padding: 12px 0 8px; margin-bottom: 20px; }
@media (min-width: 820px) { .filter-bar { position: sticky; top: 64px; z-index: 30; backdrop-filter: blur(10px); } }
.fb-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fb-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--t), box-shadow var(--t); }
.fb-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.fb-search svg { color: var(--text-faint); }
.fb-search input { border: 0; background: transparent; min-height: 42px; padding: 0; box-shadow: none !important; border-radius: 0; }
.fb-search .clear { background: none; border: 0; color: var(--text-faint); cursor: pointer; padding: 8px; border-radius: 6px; display: grid; }
.fb-search .clear:hover { color: var(--text); }
.fb-sort { width: auto; min-height: 44px; padding: 6px 12px; font-size: .9rem; }
.seg { display: inline-flex; gap: 2px; padding: 3px; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); scrollbar-width: none; }
.seg button { font: inherit; font-size: .88rem; font-weight: 600; padding: 0 12px; min-height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--text-dim); cursor: pointer; white-space: nowrap; transition: background var(--t), color var(--t); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.seg .count, .chip .count { font-family: var(--mono); font-size: .72em; opacity: .7; margin-left: 4px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 10px 0 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chips.scroll .chip { flex: none; }
.fb-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; padding-top: 4px; }
.band-compact { margin: 0 0 20px; padding: 20px 24px; }
.results { padding-bottom: 8px; }

/* kartu: 3 kolom di desktop */
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 601px) { .card { min-height: 200px; } }

/* halaman tool: alat langsung terlihat */
.tool-head { padding: 18px 20px 4px; }
.tool-head .crumbs { margin-bottom: 8px; text-transform: none; letter-spacing: .02em; font-size: 13px; }
.tool-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-title .h1 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); }
.about { margin-top: 4px; max-width: 54rem; }
.about summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; color: var(--text-dim); font-size: .88rem; list-style: none; }
.about summary::-webkit-details-marker { display: none; }
.about summary::before { content: '+'; font-family: var(--mono); color: var(--primary-text); }
.about[open] summary::before { content: '\2212'; }
.about p { margin: 2px 0 8px; color: var(--text-dim); font-size: .95rem; }
.tool-switch { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 6px 0 12px; scrollbar-width: thin; }
.tool-switch .lbl { flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.tool-switch a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); font-size: .875rem; transition: border-color var(--t), color var(--t); }
.tool-switch a:hover { border-color: var(--primary); color: var(--text); text-decoration: none; }