:root {
  /* RouteGen: monokrom hitam-putih */
  --bg: #000000;
  --surface: #0b0b0b;
  --surface-2: #151515;
  --border: #262626;
  --text: #f4f4f4;
  --muted: #8c8c8c;
  --accent: #ffffff;
  --accent-ink: #000000;
  --accent-soft: #1c1c1c;
  --danger: #ff4d3d;
  --danger-soft: #2a1210;
  --warn: #ff4d3d;
  --warn-soft: #2a1210;
  --ok: #f4f4f4;
  --ok-soft: #1a1a1a;
  --bar: #ffffff;
  --bar-2: #3a3a3a;
  --red: #ff4d3d;
  --radius: 8px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); }
button, input, select { font: inherit; color: inherit; }
a { color: var(--text); text-decoration-color: var(--border); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
.boot { padding: 48px; color: var(--muted); }

/* Layout */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--border); background: var(--surface); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { font-weight: 650; letter-spacing: -0.02em; padding: 0 10px 14px; display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; display: block; border-radius: 7px; }
.who { padding: 0 10px 14px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; word-break: break-all; }
.who strong { color: var(--text); display: block; font-size: 13px; }
.nav a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--text); text-decoration: none; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side .spacer { flex: 1; }
.main { padding: 28px 32px 60px; max-width: 1180px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
h1 { font-size: 24px; margin: 0; letter-spacing: -0.03em; font-weight: 600; }
h2 { font-size: 15px; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 2px 0 0; }

/* Cards & stats */
.grid { display: grid; gap: 14px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two { grid-template-columns: 1.6fr 1fr; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.stat .label { color: var(--muted); font-size: 12px; }
.stat .value { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .hint { color: var(--muted); font-size: 12px; margin-top: 2px; }
.section { margin-top: 14px; }

/* Charts */
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { fill: var(--muted); font-size: 10px; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .bar { fill: var(--bar); }
.chart .bar:hover { opacity: 0.8; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 22px 10px; text-align: center; }

/* Badges */
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--muted); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }

/* Controls */
.btn { border: 1px solid var(--border); background: var(--surface); padding: 7px 13px; border-radius: 8px; cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(0.88); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
input, select { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
input:focus, select:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field { margin-bottom: 12px; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pay-note { margin-top: 10px; }
.pay-note p { margin: 0 0 6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.check input { width: auto; }
.error { background: var(--danger-soft); color: var(--danger); padding: 8px 10px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { border: none; background: var(--surface); padding: 5px 11px; cursor: pointer; }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Auth screens */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.lp-user { position: relative; }
.lp-user .pill { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; cursor: pointer; font-family: inherit; }
.lp-user .pill .caret { font-size: 11px; opacity: .7; transition: transform .2s; }
.lp-user:hover .caret, .lp-user.open .caret { transform: rotate(180deg); }
.lp-menu { position: absolute; right: 0; top: 100%; padding-top: 8px; min-width: 190px; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s; z-index: 30; }
.lp-menu a { display: block; background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 12px; padding: 11px 14px; font-size: 14px; color: #f4f4f4; text-decoration: none; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.lp-menu a:hover { border-color: var(--red, #ff4d3d); }
.lp-user:hover .lp-menu, .lp-user:focus-within .lp-menu, .lp-user.open .lp-menu { opacity: 1; visibility: visible; transform: none; }
.auth-box { width: 100%; max-width: 380px; }
.auth-back { display: inline-block; margin: 0 0 12px 2px; font-size: 13px; color: var(--muted); text-decoration: none; }
.auth-back:hover { color: var(--text); }
.auth .card { width: 100%; max-width: 380px; padding: 28px; }
.auth h1 { margin-bottom: 4px; }
.auth .sub { margin-bottom: 20px; }
.secret-box { font-family: var(--mono); background: var(--surface-2); padding: 10px 12px; border-radius: 8px; word-break: break-all; font-size: 13px; margin: 8px 0 12px; user-select: all; }

/* Modal */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); display: grid; place-items: center; padding: 16px; z-index: 20; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; width: 100%; max-width: 440px; padding: 22px; max-height: 90vh; overflow: auto; }
.modal h2 { font-size: 17px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 30; }
#toast.show { opacity: 1; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 16px; gap: 2px; }
  .brand { padding: 0 8px 0 0; }
  .who, .side .spacer { display: none; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; width: 100%; }
  .nav a { padding: 5px 9px; font-size: 13px; }
  .main { padding: 18px 16px 48px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; }
}
.page-head select { width: auto; min-width: 150px; }
.page-head select, .page-head input[type=search] { width: auto; min-width: 200px; }
.btn.wide { width: 100%; display: block; text-align: center; text-decoration: none; padding: 9px 13px; }
a.btn { text-decoration: none; color: inherit; display: inline-block; }
a.btn.primary { color: var(--accent-ink); }
.or { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0; display: flex; align-items: center; gap: 10px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.links { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 0; font-size: 13px; }
.wide-seg { display: flex; }
.wide-seg button { flex: 1; padding: 7px; }
.small { font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.methods { display: grid; gap: 8px; }
.method { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; cursor: pointer; color: var(--text); font-size: 14px; margin: 0; }
.method input { width: auto; grid-row: span 2; }
.method .muted { font-size: 12px; }
.method.on { border-color: var(--accent); background: var(--accent-soft); }
.steps { margin: 0; padding-left: 18px; color: var(--muted); }
.steps li { margin-bottom: 8px; }
pre.code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); border-radius: 8px; padding: 12px 14px; overflow-x: auto; margin: 0; line-height: 1.55; }
.warn-card { border-color: var(--warn); background: var(--warn-soft); }
.warn-card .hint { color: var(--warn); }
.invoice { max-width: 760px; padding: 32px; }
.inv-head, .inv-meta { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.inv-head h1 { font-size: 26px; letter-spacing: 0.06em; }
.inv-meta .label { color: var(--muted); font-size: 12px; margin-top: 8px; }
.right { text-align: right; }
.inv-brand { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.inv-logo { display: flex; align-items: center; gap: 12px; font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.inv-logo img { border-radius: 14px; }
@media print { .inv-logo img { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.inv-total { display: flex; justify-content: flex-end; gap: 24px; font-size: 16px; padding: 14px 10px; border-top: 2px solid var(--text); margin-top: 6px; }
.stat .hint a { color: var(--text); text-decoration-color: var(--border); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
@media print {
  .side, .no-print, #toast { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  body, .card { background: #fff; color: #000; border: none; }
}

#lang { position: fixed; right: 14px; bottom: 14px; z-index: 20; }
#lang select { width: auto; min-width: 130px; padding: 6px 8px; font-size: 13px; background: var(--surface); border-radius: 999px; }
@media print { #lang { display: none !important; } }

.card.trial { border-color: var(--accent); margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.card.trial p { flex: 1 1 280px; margin: 0; }

.example { display: grid; gap: 8px; }
.example .ex-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.example .ex-row > .muted:first-child { min-width: 150px; }
.example .ex-label { margin-top: 6px; }
p.source { margin: 10px 2px 0; }

/* ================= Landing (RouteGen) ================= */
.lp { min-height: 100vh; background: #000; color: #f4f4f4; position: relative; overflow-x: hidden; }
.lp a { text-decoration: none; }
.lp-head { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 28px; height: 60px; background: rgba(0,0,0,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #1b1b1b; }
.lp-head .brand { padding: 0; font-size: 16px; }
.lp-tabs { display: flex; gap: 4px; }
.lp-tabs a { color: #8c8c8c; padding: 6px 14px; border-radius: 999px; font-size: 13px; letter-spacing: .02em; transition: color .15s, background .15s; }
.lp-tabs a:hover { color: #fff; }
.lp-tabs a.on { color: #000; background: #fff; font-weight: 600; }
.lp-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.lp-link { color: #bdbdbd; font-size: 13px; padding: 6px 10px; }
.lp-link:hover { color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 600; border: 1px solid #fff; background: #fff; color: #000; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.pill:hover { transform: translateY(-1px); }
.pill.ghost { background: transparent; color: #fff; border-color: #3a3a3a; }
.pill.ghost:hover { border-color: #fff; }
.pill.sm { padding: 6px 14px; font-size: 13px; }
.lp .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #8c8c8c; }
.lp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.hero { position: relative; padding: 11vh 0 0; }
.hero-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 78% 18%, rgba(255,255,255,.13), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255,255,255,.06), transparent 70%); }
.hero-art::before { content: ""; position: absolute; inset: -10%; opacity: .55;
  background: repeating-radial-gradient(circle at 78% 22%, transparent 0 46px, rgba(255,255,255,.09) 47px 48px);
  -webkit-mask-image: radial-gradient(circle at 78% 22%, #000 0, transparent 62%); mask-image: radial-gradient(circle at 78% 22%, #000 0, transparent 62%); }
.hero-art::after { content: ""; position: absolute; inset: 0; opacity: .09; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero .lp-wrap { position: relative; }
.hero h1 { font-size: clamp(44px, 8.4vw, 132px); line-height: .94; letter-spacing: -0.055em; font-weight: 600; margin: 22px 0 0; max-width: 13ch; }
.hero h1 em { font-style: normal; color: #6f6f6f; }
.hero-sub { max-width: 520px; color: #a6a6a6; font-size: 17px; line-height: 1.5; margin: 28px 0 32px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-meta { position: absolute; right: 28px; top: 4vh; text-align: right; }
.big-off { font-size: clamp(56px, 9vw, 140px); font-weight: 600; letter-spacing: -0.06em; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.hero-meta .kicker { margin-top: 8px; }


.sec { padding: 14vh 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sec h2 { font-size: clamp(30px, 4.6vw, 64px); letter-spacing: -0.045em; line-height: 1; margin: 12px 0 0; font-weight: 600; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #262626; }
.col { padding: 28px 28px 36px 0; border-right: 1px solid #262626; }
.col + .col { padding-left: 28px; }
.col:last-child { border-right: none; }
.col .num { font-family: var(--mono); font-size: 12px; color: #6f6f6f; }
.col h3 { font-size: 26px; letter-spacing: -0.035em; margin: 36px 0 10px; font-weight: 600; }
.col p { color: #9a9a9a; margin: 0; max-width: 30ch; font-size: 15px; }
.cta-band { margin-top: 14vh; border-top: 1px solid #262626; border-bottom: 1px solid #262626; padding: 9vh 0; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(34px, 6vw, 88px); letter-spacing: -0.055em; line-height: .98; margin: 0 auto 30px; max-width: 14ch; font-weight: 600; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 36px 0 90px; color: #6f6f6f; font-size: 12px; font-family: var(--mono); letter-spacing: .06em; }

.page { padding: 10vh 0 0; }
.lp-wrap.page { padding-left: 28px; padding-right: 28px; }   /* jangan menempel ke tepi layar saat lebar < 1240px */
.page h1 { font-size: clamp(40px, 7vw, 104px); letter-spacing: -0.055em; line-height: .96; margin: 16px 0 0; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #262626; margin-top: 8vh; }
.fact { padding: 24px 24px 28px 0; border-right: 1px solid #262626; }
.fact + .fact { padding-left: 24px; }
.fact:last-child { border-right: none; }
.fact b { display: block; font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.05em; font-weight: 600; line-height: 1; }
.fact span { color: #8c8c8c; font-size: 13px; display: block; margin-top: 10px; }
.ptable { width: 100%; border-collapse: collapse; margin-top: 8vh; }
.ptable th { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6f6f6f; font-weight: 400; padding: 12px 0; border-bottom: 1px solid #262626; }
.ptable td { padding: 26px 0; border-bottom: 1px solid #1d1d1d; font-size: 15px; white-space: normal; }
.ptable td:first-child { font-size: 22px; letter-spacing: -0.03em; font-weight: 600; }
.ptable td.num, .ptable th.num { text-align: right; }
.ptable s { color: #6f6f6f; margin-right: 10px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid #333; border-radius: 999px; padding: 2px 10px; color: #bdbdbd; }
.tag.off { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.note { color: #6f6f6f; font-size: 12px; margin-top: 18px; }

.mgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8vh; }
.mcard { border: 1px solid #222; border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 340px; position: relative; overflow: hidden; transition: border-color .2s; background: #050505; }
.mcard:hover { border-color: #fff; }
.mcard .art { position: absolute; inset: 0; opacity: .5; }
.mcard.k-image .art { background: radial-gradient(circle at 85% 0%, rgba(255,255,255,.22), transparent 55%); }
.mcard.k-video .art { background: conic-gradient(from 200deg at 90% 0%, transparent, rgba(255,255,255,.2), transparent 40%); }
.mcard > * { position: relative; }
.mcard .top { display: flex; justify-content: space-between; align-items: center; }
.mcard h3 { font-size: 34px; letter-spacing: -0.045em; margin: auto 0 0; font-weight: 600; line-height: 1; }
.mcard p { margin: 0; color: #9a9a9a; font-size: 14px; }
.mcard .quote { font-family: var(--mono); font-size: 12px; color: #bdbdbd; border-left: 1px solid #444; padding-left: 12px; }
.mcard .price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; border-top: 1px solid #222; padding-top: 14px; }
.mcard .price b { font-size: 22px; letter-spacing: -0.03em; }
.mcard .price s { color: #6f6f6f; }
.mcard .price span { color: #8c8c8c; font-size: 12px; }
.page .hero-cta { margin-top: 8vh; }
.lp-empty { color: #8c8c8c; padding: 40px 0; }

@media (max-width: 860px) {
  .lp-head { grid-template-columns: 1fr auto; padding: 0 16px; height: auto; min-height: 56px; row-gap: 0; }
  .lp-tabs { grid-column: 1 / -1; grid-row: 2; padding: 0 0 10px; overflow-x: auto; }
  .lp-actions .lp-link { display: none; }
  .lp-wrap { padding: 0 16px; }
  .lp-wrap.page { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 7vh; }
  .hero-meta { position: static; text-align: left; margin-top: 36px; }
  .cols3, .facts { grid-template-columns: 1fr; }
  .col, .fact { border-right: none; border-bottom: 1px solid #262626; padding: 24px 0 !important; }
  .mgrid { grid-template-columns: 1fr; }
  .ptable th:nth-child(2), .ptable td:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pill, .mcard { transition: none; } }

/* ================= Transisi halaman ================= */
.lp-head { view-transition-name: lp-head; }
.lp-tabs a.on { view-transition-name: lp-pill; }
.side { view-transition-name: side; }
::view-transition-group(lp-pill) { animation-duration: .4s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .46s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
/* Fallback tanpa View Transitions */
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
.no-vt .lp main, .no-vt .main, .no-vt .auth .card { animation: page-in .45s cubic-bezier(.2, .7, .2, 1) both; }
/* Elemen hero muncul berurutan saat pertama dimuat */
.hero h1, .hero-sub, .hero-cta, .hero-meta, .page h1 { animation: page-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-sub { animation-delay: .08s; } .hero-cta { animation-delay: .16s; } .hero-meta { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .hero h1, .hero-sub, .hero-cta, .hero-meta, .page h1, .no-vt .lp main, .no-vt .main { animation: none; }
}

/* ================= Dashboard: senada dengan landing ================= */
.shell { grid-template-columns: 240px 1fr; }
.side { background: #000; padding: 22px 14px; gap: 2px; border-right: 1px solid #1b1b1b; }
.side .brand { padding: 0 12px 22px; font-size: 16px; }
.who { border-bottom: 1px solid #1b1b1b; padding: 0 12px 18px; margin-bottom: 14px; }
.who strong { font-size: 14px; letter-spacing: -0.01em; }
.who { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.who strong { font-family: var(--sans); text-transform: none; letter-spacing: -0.01em; margin-bottom: 2px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: #8c8c8c; font-size: 14px; transition: color .15s, background .15s; }
.nav a:hover { background: transparent; color: #fff; }
.nav a.active { background: #fff; color: #000; font-weight: 600; }
.side .btn { border-radius: 999px; border-color: #2e2e2e; background: transparent; }
.side .btn:hover { border-color: #fff; background: transparent; }

.main { padding: 44px 48px 90px; max-width: 1280px; }
.page-head { margin-bottom: 36px; align-items: flex-end; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.05em; line-height: 1; font-weight: 600; }
.page-head .sub { margin-top: 12px; font-size: 14px; max-width: 56ch; }

/* kartu: tipis, tanpa bayangan */
.card { background: transparent; border: 1px solid #222; border-radius: 6px; padding: 22px 24px; }
.card h2 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: #8c8c8c; margin: 0 0 18px; }
.modal h2 { font-family: var(--sans); font-size: 20px; letter-spacing: -0.03em; text-transform: none; color: var(--text); font-weight: 600; }
.modal { background: #0b0b0b; border-color: #2a2a2a; border-radius: 8px; }
.backdrop { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(0,0,0,.6); }

/* statistik: angka besar, dipisah garis tipis seperti landing */
.grid.stats { gap: 0; border-top: 1px solid #262626; margin-bottom: 18px; }
.card.stat { background: transparent; border: 0; border-right: 1px solid #262626; border-radius: 0; padding: 22px 24px 26px; }
.card.stat:first-child { padding-left: 0; }
.card.stat:last-child { border-right: 0; }
.stat .label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8c8c8c; }
.stat .value { font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; letter-spacing: -0.05em; margin-top: 14px; line-height: 1; }
.stat .hint { margin-top: 10px; font-size: 13px; }
.card.stat.warn-card { border: 0; border-right: 1px solid #262626; background: transparent; }

/* tabel */
th { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #6f6f6f; padding: 12px 12px; border-bottom: 1px solid #262626; }
td { padding: 16px 12px; border-bottom: 1px solid #1a1a1a; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #0d0d0d; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }

/* kontrol */
.btn { border-radius: 999px; padding: 8px 18px; border-color: #333; background: transparent; transition: border-color .15s, transform .15s, background .15s; }
.btn:hover { background: transparent; border-color: #fff; }
.btn.primary { background: #fff; color: #000; border-color: #fff; }
.btn.primary:hover { background: #fff; transform: translateY(-1px); filter: none; }
.btn.small { padding: 4px 12px; }
.btn.danger:hover { border-color: var(--danger); }
input, select { background: #000; border-color: #2a2a2a; border-radius: 6px; padding: 10px 12px; }
input:focus, select:focus { outline: 1px solid #fff; outline-offset: 0; border-color: #fff; }
label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.check { font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid #333; background: transparent; color: #bdbdbd; padding: 2px 10px; }
.badge.ok { border-color: #5a5a5a; color: #f4f4f4; background: transparent; }
.badge.warn { border-color: var(--red); color: var(--red); background: transparent; }
.badge.danger { border-color: var(--red); color: var(--red); background: #2a1210; }
.badge.accent { border-color: #fff; background: #fff; color: #000; }
.seg { border-radius: 999px; border-color: #2a2a2a; padding: 2px; }
.seg button { background: transparent; border-radius: 999px; color: #8c8c8c; }
.seg button.on { background: #fff; color: #000; }
.chip { border-radius: 999px; border-color: #2a2a2a; background: transparent; }
.chip:hover { border-color: #fff; }
.chip.on { background: #fff; color: #000; border-color: #fff; }
.method { border-radius: 6px; border-color: #222; }
.method.on { border-color: #fff; background: #0d0d0d; }
pre.code { background: #080808; border: 1px solid #1f1f1f; border-radius: 6px; }
.secret-box { background: #080808; border: 1px solid #1f1f1f; }
.error { border: 1px solid #5a2a24; background: var(--danger-soft); }
.card.trial { border-color: #fff; background: #0a0a0a; }
.card.trial strong { font-size: 18px; letter-spacing: -0.03em; }
.chart .grid-line { stroke: #1f1f1f; }

/* login / daftar */
.auth { background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255,255,255,.08), transparent 70%); }
.auth .card { max-width: 400px; padding: 34px 32px; background: #050505; }
.auth h1 { font-size: 34px; letter-spacing: -0.05em; margin-top: 10px; }
.auth .brand { padding: 0; }
.auth .btn.wide { padding: 11px 18px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { background: #000; border-right: 0; border-bottom: 1px solid #1b1b1b; }
  .side .brand { padding: 0 8px 0 0; }
  .main { padding: 26px 16px 60px; }
  .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.stat { border-right: 0; border-bottom: 1px solid #262626; padding: 18px 0; }
  .nav a { padding: 5px 12px; font-size: 13px; }
}
@media print { .card.stat, .card { border: 0; } }
.method { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; }
.method .muted { font-size: 12px; }

/* ================= Aksen merah: bagian yang penting ================= */
.hl { color: var(--red); }
.prompt { color: var(--red); }
.mcard .quote { color: var(--red); border-left-color: var(--red); }
.big-off { -webkit-text-stroke-color: var(--red); }
.fact:first-child b { color: var(--red); }
kbd { font-family: var(--mono); font-size: 12px; border: 1px solid #333; border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px; background: #0b0b0b; color: #fff; }

/* Blok kode + salin */
.codebox { position: relative; margin: 14px 0; }
.codebox pre.code { padding: 18px 20px; padding-right: 84px; font-size: 13px; line-height: 1.7; border-radius: 6px; margin: 0; white-space: pre; overflow-x: auto; }
.codebox .copy { position: absolute; top: 10px; right: 10px; border: 1px solid #333; background: #000; color: #bdbdbd; border-radius: 999px; padding: 3px 12px; font-size: 12px; cursor: pointer; transition: border-color .15s, color .15s; }
.codebox .copy:hover { border-color: #fff; color: #fff; }
.codebox .copy.done { background: #fff; color: #000; border-color: #fff; }
.card .codebox { margin: 0; }

/* Docs publik */
.dswitch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6vh; }
.dsw { display: grid; gap: 6px; border: 1px solid #222; border-radius: 6px; padding: 22px 24px; color: #8c8c8c; transition: border-color .2s, background .2s, color .2s; }
.dsw .n { font-family: var(--mono); font-size: 12px; color: #6f6f6f; }
.dsw b { font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.045em; font-weight: 600; color: #fff; line-height: 1.05; margin-top: 18px; }
.dsw .s { font-size: 14px; }
.dsw:hover { border-color: #555; }
.dsw.on { border-color: #fff; background: #0b0b0b; color: #bdbdbd; }
.dsw.on .n { color: var(--red); }
.legend { margin-top: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8c8c8c; }
.dsteps { margin-top: 5vh; }
.dstep { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0 24px; padding: 38px 0 44px; border-top: 1px solid #262626; }
.dstep .num { font-family: var(--mono); font-size: 12px; color: #6f6f6f; padding-top: 8px; }
.dstep h3 { font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -0.045em; margin: 0 0 14px; font-weight: 600; line-height: 1.05; }
.dstep p { color: #a6a6a6; margin: 0 0 6px; max-width: 62ch; }
.dstep .seg { margin: 14px 0 4px; }
.dstep .os-body { max-width: 100%; }
.dnote { color: #8c8c8c; font-size: 13px; margin: 6px 0 0; }
.dnote code, .dstep p code, .dmodels code, .drow .v { font-family: var(--mono); font-size: 12.5px; }
.dstep table { margin-top: 6px; max-width: 760px; }
.dexpert { margin-top: 5vh; }
.dlabel { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6f6f6f; margin: 40px 0 10px; }
.dref { border-top: 1px solid #262626; }
.drow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid #1a1a1a; font-size: 14px; }
.dref-link { font-size: 12px; color: #8c8c8c; white-space: nowrap; }
.dref-link:hover { color: var(--red); }
.drow .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8c8c8c; padding-top: 2px; }
.drow .v { word-break: break-all; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs button { border: 1px solid #2a2a2a; background: transparent; color: #8c8c8c; border-radius: 999px; padding: 6px 16px; font-size: 13px; cursor: pointer; transition: border-color .15s, color .15s; }
.langs button:hover { border-color: #fff; color: #fff; }
.langs button.on { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.dmodels { display: flex; flex-wrap: wrap; gap: 8px; }
.dmodels code { border: 1px solid #2a2a2a; border-radius: 999px; padding: 4px 14px; color: #ddd; }
@media (max-width: 860px) {
  .dswitch { grid-template-columns: 1fr; }
  .dstep { grid-template-columns: 1fr; padding: 28px 0 34px; }
  .dstep .num { padding: 0 0 8px; }
  .drow { grid-template-columns: 1fr; gap: 4px; }
  .codebox pre.code { padding-right: 20px; padding-top: 44px; }
}
.dsteps .codebox pre.code { white-space: pre-wrap; word-break: break-word; }
.docs-body { animation: page-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .docs-body { animation: none; } }

/* Dashboard: aksen merah untuk hal penting */
.badge.hot { border-color: var(--red); color: var(--red); background: transparent; }
.secret-box { color: var(--red); border-color: #3a1612; background: #0d0605; }
.card.stat.warn-card .value, .card.stat.warn-card .hint { color: var(--red); }
.warn-card .hint { color: var(--red); }
.main .docs-page .dstep h3 { font-size: 26px; }
.main .docs-page .dstep { padding: 30px 0 36px; }
.steps.qs { color: var(--text); margin-bottom: 16px; }
.steps.qs li { color: #bdbdbd; }

/* ================= Galeri hasil ================= */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 12vh; padding-bottom: 14px; align-items: end; }
.tile { all: unset; box-sizing: border-box; position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; border: 1px solid #1f1f1f; cursor: pointer; background: #050505;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), border-color .25s; }
.tile:nth-child(odd) { margin-bottom: 36px; }
.tile:hover, .tile:focus-visible { transform: translateY(-8px); border-color: #fff; }
.tile:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.smedia, .smedia-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.tile:hover .smedia, .tile:hover .smedia-art { transform: scale(1.05); filter: brightness(.7); }
.a-pro { background: radial-gradient(circle at 30% 25%, #fff 0, #8a8a8a 12%, transparent 44%), linear-gradient(160deg, #2b2b2b, #050505 70%); }
.a-seedance { background: conic-gradient(from 210deg at 60% 55%, #000, #d9d9d9, #1a1a1a, #7a7a7a, #000); }
.a-lite { background: repeating-linear-gradient(115deg, #0a0a0a 0 14px, #1d1d1d 14px 15px), linear-gradient(200deg, #bcbcbc, #111 60%); background-blend-mode: multiply; }
.a-flash { background: radial-gradient(ellipse at 50% 120%, #fff 0, #5c5c5c 25%, transparent 60%), linear-gradient(#111, #000); }
.tkind { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 2px 10px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tile .play { position: absolute; top: 10px; right: 12px; width: 24px; height: 24px; border: 1px solid #fff; border-radius: 50%; background: rgba(0,0,0,.35); }
.tile .play::after { content: ""; position: absolute; left: 9px; top: 6px; border-left: 7px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.tinfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.88) 55%); display: flex; flex-direction: column; gap: 2px; }
.tinfo b { font-size: 17px; letter-spacing: -0.03em; font-weight: 600; color: #fff; }
.tsub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #a6a6a6; }
.more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.more-in { overflow: hidden; min-height: 0; }
.tile:hover .more, .tile:focus-visible .more { grid-template-rows: 1fr; opacity: 1; }
.tp-k { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8c8c8c; margin-top: 12px; }
.tp { margin: 4px 0 10px; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--red); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--mono); font-size: 11px; color: #e6e6e6; border-top: 1px solid rgba(255,255,255,.18); padding-top: 8px; }
/* Layar sentuh: tidak ada hover, jadi kartu hanya menampilkan judul; detail ada di lightbox saat kartu diketuk. */
@media (hover: none) { .more { display: none; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: lb-in .25s ease both; }
.lb.out { animation: lb-out .2s ease both; }
.lb-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); width: min(1180px, 100%); max-height: calc(100vh - 48px); background: #060606; border: 1px solid #2a2a2a; border-radius: 8px; overflow: hidden; animation: lb-pop .35s cubic-bezier(.2, .7, .2, 1) both; }
.lb-media { position: relative; background: #000; min-height: 320px; display: grid; place-items: center; }
.lb-media .smedia { position: static; width: 100%; height: 100%; max-height: calc(100vh - 50px); object-fit: contain; }
.lb-media .smedia-art { position: relative; aspect-ratio: 1; width: 100%; max-height: calc(100vh - 50px); }
.lb-info { padding: 28px 28px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid #1d1d1d; }
.lb-info h3 { font-size: 34px; letter-spacing: -0.05em; margin: 6px 0 8px; font-weight: 600; line-height: 1; }
.lb-tags { display: flex; gap: 8px; }
.lb-k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6f6f6f; }
.lb-prompt { margin: 0 0 8px; color: var(--red); font-family: var(--mono); font-size: 13px; line-height: 1.6; border-left: 1px solid var(--red); padding-left: 12px; }
.lb-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #1d1d1d; font-size: 14px; }
.lb-row .k { color: #8c8c8c; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }
.lb-row .v { text-align: right; }
.lb-row s { color: #6f6f6f; }
.lb-info .pill { margin-top: auto; align-self: flex-start; }
.lb-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #444; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; transition: border-color .15s; }
.lb-x:hover { border-color: #fff; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
@keyframes lb-pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@media (max-width: 860px) {
  .strip { grid-template-columns: repeat(2, 1fr); margin-top: 8vh; }
  .tile:nth-child(odd) { margin-bottom: 0; }
  .lb { padding: 0; align-items: end; }
  .lb-card { grid-template-columns: 1fr; max-height: 100vh; border-radius: 12px 12px 0 0; overflow-y: auto; }
  .lb-media { min-height: 0; }
  .lb-info { border-left: 0; border-top: 1px solid #1d1d1d; }
}
@media (prefers-reduced-motion: reduce) { .tile, .smedia, .smedia-art, .more, .lb, .lb-card { transition: none; animation: none; } }

.lb-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lb-price .usd b { font-size: 20px; letter-spacing: -0.03em; }
.lb-price .usd s { color: #6f6f6f; margin-left: 8px; font-size: 14px; }
.lb-price .cr { color: #8c8c8c; font-family: var(--mono); font-size: 12px; }
.tmeta .dim { color: #8c8c8c; }
.hero-sub strong { color: #fff; font-weight: 600; }

/* Kartu model (landing): logo ByteDance, deskripsi, tombol ke situs resmi */
.mcard { min-height: 300px; }
.mcard .mbody { margin-top: auto; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mcard .brand-logo { height: 18px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.mcard h3 { margin: 0; }
.mcard .mbody p { max-width: 38ch; }
.mcard .pill.sm { margin-top: 4px; }

/* Tombol masuk/daftar dengan Google */
.social-block { display: grid; gap: 10px; margin-bottom: 4px; }
.btn.social { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 18px; font-weight: 600; text-decoration: none; }
.btn.social.google { background: #fff; color: #000; border-color: #fff; }
.btn.social.google:hover { background: #fff; transform: translateY(-1px); }
.btn.social svg { flex: none; }
.social-block .or { margin: 6px 0 14px; }

/* Filter audit log */
.audit-filters { gap: 10px; }
.audit-filters label.inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.audit-filters input[type=date] { width: auto; padding: 6px 10px; color-scheme: dark; }

/* Banner credit menipis / habis */
.credit-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; border: 1px solid var(--danger); background: var(--danger-soft); color: var(--text, #fff); }
.credit-banner[hidden] { display: none; }
.credit-banner.out { background: var(--danger); color: #fff; }
.credit-banner.out .btn { background: #fff; color: #000; border-color: #fff; }


/* ================= Mobile (<= 860px) ================= */
@media (max-width: 860px) {
  /* bilah atas dashboard: logo + Keluar di baris pertama, menu bisa digeser di baris kedua */
  .side { position: sticky; top: 0; z-index: 15; background: #000; border-bottom: 1px solid #1b1b1b; padding: 10px 14px 6px; gap: 6px 8px; flex-wrap: wrap; }
  .side { align-content: flex-start; row-gap: 4px; }
  .side .brand { order: 1; padding: 0; font-size: 15px; margin-right: auto; }
  .side > .btn { order: 2; padding: 4px 12px; font-size: 12px; }
  .side .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px 6px; width: calc(100% + 28px); }
  .side .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; white-space: nowrap; }
  .main { padding: 20px 16px 76px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 24px; }
  .page-head h1 { font-size: clamp(28px, 8.5vw, 38px); }
  .page-head > .row { justify-content: flex-start; }
  .page-head select, .page-head input[type=search] { width: 100%; min-width: 0; }
  /* statistik 2 kolom dengan garis pemisah yang rapi */
  .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.stat, .card.stat.warn-card { border-right: 0; border-bottom: 1px solid #262626; padding: 16px 12px 18px 0; }
  .card.stat:nth-child(even) { border-left: 1px solid #262626; padding-left: 14px; padding-right: 0; }
  .stat .value { font-size: clamp(22px, 7vw, 30px); }
  .card { padding: 18px 16px; }
  .grid.two, .two { grid-template-columns: minmax(0, 1fr); }
  .credit-banner { flex-wrap: wrap; align-items: flex-start; }
  .credit-banner .btn { white-space: nowrap; }
  .card.trial { align-items: flex-start; }
  .pager { flex-direction: column; align-items: flex-start; gap: 8px; }
  .audit-filters, .row.audit-filters { align-items: stretch; }
  .audit-filters label.inline, .audit-filters select, .audit-filters input { width: 100%; }
  /* modal jadi lembar dari bawah supaya mudah dijangkau jempol */
  .backdrop { padding: 0; align-items: end; }
  .modal { max-width: none; border-radius: 14px 14px 0 0; max-height: 92vh; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .modal .actions { flex-wrap: wrap; }
  .modal .actions .btn { flex: 1 1 auto; }
  input, select, textarea { font-size: 16px; }   /* cegah iOS memperbesar halaman saat fokus */
  /* docs */
  .dstep { grid-template-columns: minmax(0, 1fr); }
  .dbody, .dstep > *, .dsteps, .os-body, .codebox { min-width: 0; max-width: 100%; }
  .main .docs-page .dstep h3, .docs-page .dstep h3 { font-size: 22px; }
  /* pemilih bahasa: kecil dan tidak menutupi konten */
  #lang { position: static; padding: 0 16px 28px; display: flex; justify-content: flex-end; }   /* di akhir halaman, tidak menutupi konten */
  #lang select { min-width: 0; font-size: 13px; padding: 6px 10px; }
  .auth { padding: 12px; align-items: start; padding-top: 6vh; }
  .auth .card { padding: 26px 20px; }
  .auth h1 { font-size: 30px; }
  /* landing */
  .lp-user .pill { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lp-menu { right: 0; }
}
@media (max-width: 420px) {
  .main { padding: 16px 14px 76px; }
  .stat .label { font-size: 10px; letter-spacing: .1em; }
  .page-head h1 { font-size: 28px; }
}

/* Tabel di layar kecil: tiap baris jadi kartu "label: nilai" (tanpa geser samping) */
@media (max-width: 640px) {
  .card:has(> .table-wrap) { border: 0; padding: 0; background: transparent; }
  .table-wrap { overflow-x: visible; }
  .table-wrap table, .table-wrap tbody { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { display: block; border: 1px solid #222; border-radius: 10px; padding: 6px 14px; margin-bottom: 10px; background: #060606; }
  .table-wrap tbody tr:hover { background: #060606; }
  .table-wrap td, .table-wrap td:first-child, .table-wrap td:last-child { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid #161616; white-space: normal; text-align: right; }
  .table-wrap tr td:last-child { border-bottom: 0; }
  .table-wrap td::before { content: attr(data-label); flex: 0 0 auto; max-width: 45%; text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8c8c8c; }
  .table-wrap td:not([data-label])::before { content: none; }
  .table-wrap td:not([data-label]) { justify-content: flex-end; }
  .table-wrap td.num { text-align: right; }
  .table-wrap td .row { justify-content: flex-end; }
}

/* Tabel harga landing di layar kecil: tiap model jadi satu blok */
@media (max-width: 640px) {
  .ptable, .ptable tbody { display: block; }
  .ptable thead { display: none; }
  .ptable tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 20px 0; border-bottom: 1px solid #1d1d1d; }
  .ptable td, .ptable td:first-child { padding: 0; border: 0; }
  .ptable td:first-child { font-size: 20px; }
  .ptable td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .ptable td:nth-child(4) { grid-column: 2; grid-row: 1; }
}

/* Support */
textarea { width: 100%; padding: 10px 12px; border: 1px solid #2a2a2a; border-radius: 6px; background: #000; color: inherit; font: inherit; line-height: 1.5; resize: vertical; min-height: 140px; }
textarea:focus { outline: 1px solid #fff; border-color: #fff; }
.support-card { max-width: 640px; margin-top: 28px; }
.lp-wrap .support-card { border: 1px solid #222; border-radius: 6px; padding: 24px; }
.support-form .row { margin: 14px 0 6px; }
.support-page .lead { color: #a6a6a6; margin: 10px 0 0; font-size: 17px; }
.small { font-size: 12.5px; }

/* Widget CAPTCHA AWS WAF: dirender di dalam kartu putih supaya teks/ikon bawaannya terbaca (tema gelap kita tidak ikut masuk) */
.captcha-box { background: #fff; color: #111; border-radius: 10px; padding: 12px; margin: 4px 0; overflow: hidden; }
.captcha-box * { color: inherit; letter-spacing: normal; text-transform: none; }
.captcha-box select, .captcha-box input { background: #fff; color: #111; border: 1px solid #8a8a8a; border-radius: 6px; padding: 6px 8px; width: auto; font-size: 14px; }
.captcha-box button { background: #f1f1f1; color: #111; border: 1px solid #8a8a8a; border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 14px; }
.captcha-box button:disabled { opacity: .6; cursor: default; }
.captcha-box img, .captcha-box canvas { max-width: 100%; height: auto; }

/* Umpan balik form: email + syarat password */
.fhint { font-size: 12.5px; margin-top: 6px; color: var(--muted); }
.fhint.bad { color: var(--red); }
.fhint.ok { color: #f4f4f4; }
input[aria-invalid="true"] { border-color: var(--red) !important; }
.rules { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 5px; font-size: 13px; }
.rules li { color: #8c8c8c; display: flex; gap: 8px; align-items: baseline; }
.rules li.ok { color: #f4f4f4; }
.rules li.bad { color: var(--red); }
.rules .mark { width: 14px; flex: 0 0 14px; text-align: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.foot-links a{color:#8c8c8c}.foot-links a:hover{color:#fff}
.check a{text-decoration:underline}
/* Kontak support + tautan kebijakan di footer setiap tata letak */
.support-line a, .side-foot a, .auth-foot a { color: #c9c9c9; text-decoration: underline; text-underline-offset: 2px; }
.support-line a:hover, .side-foot a:hover, .auth-foot a:hover { color: #fff; }
.side-foot { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; font-size: 11.5px; line-height: 1.5; color: var(--muted); border-top: 1px solid #1b1b1b; margin-top: 8px; overflow-wrap: anywhere; }
.side-foot .foot-links a { color: var(--muted); text-decoration: none; }
.auth-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.auth-foot .foot-links a { color: var(--muted); text-decoration: none; }
@media (max-width: 860px) {
  .side-foot { order: 10; width: 100%; flex-direction: row; flex-wrap: wrap; column-gap: 14px; padding: 8px 4px 0; margin-top: 4px; }
}

/* Pilihan koin/jaringan crypto + peringatan jaringan */
.coinrow { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.coinname { min-width: 64px; padding-top: 7px; font-weight: 600; }
.coinrow .chips { margin-bottom: 4px; }
.netwarn { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 10px; font-size: 14px; line-height: 1.5; }
.netwarn strong { color: var(--warn); }

/* Rincian harga per resolusi/ukuran di tabel harga */
.tiers { margin-top: 6px; }
.tier { font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }

/* Request ID (ADR 0012): klik untuk menyalin; kotak cari di halaman admin "Cari Request" */
.copyable { cursor: pointer; }
.copyable:hover { text-decoration: underline dotted; }
.rid-input { min-width: min(22rem, 100%); }

/* ================= API Reference (#/docs/reference, apiref.js) ================= */
.ref-head { margin-top: 4vh; }
.ref-crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6f6f6f; }
.ref-crumbs a { color: #8c8c8c; }
.ref-crumbs a:hover { color: #fff; }
.ref-head h1 { margin: 14px 0 8px; }
.ref-head .lead { color: #a6a6a6; max-width: 62ch; margin: 0; }
.ref { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; margin-top: 40px; align-items: start; }
.ref-side { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; padding-bottom: 24px; }
.ref-search { width: 100%; font-size: 13px; padding: 8px 12px; }
.ref-toc-btn { display: none; }
.ref-toc { margin-top: 10px; }
.ref-group { margin: 22px 0 0; }
.ref-group:first-child { margin-top: 6px; }
.ref-group-title { font-size: 13.5px; font-weight: 600; color: #ededed; padding: 0 10px 6px; letter-spacing: -0.01em; }
.ref-toc a, .ref-fold-btn { display: block; width: 100%; padding: 7px 10px; border-radius: 6px; color: #9a9a9a; font-size: 13.5px; line-height: 1.35; text-align: left; }
.ref-toc a:hover, .ref-fold-btn:hover { color: #fff; background: #0d0d0d; }
.ref-toc a.on { color: #fff; background: #1c1c1c; font-weight: 500; }
.ref-fold-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; background: transparent; font: inherit; font-size: 13.5px; cursor: pointer; }
.ref-fold-btn::after { content: ""; width: 6px; height: 6px; flex: 0 0 auto; margin-right: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.ref-fold.open > .ref-fold-btn::after { transform: translateY(1px) rotate(-135deg); }
.ref-fold-items { display: none; margin: 2px 0 4px 10px; padding-left: 8px; border-left: 1px solid #1f1f1f; }
.ref-fold.open > .ref-fold-items { display: block; }
.ref-toc [hidden] { display: none !important; }
.ref-empty { color: #6f6f6f; font-size: 13px; padding: 8px; }
.ref-method { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; border: 1px solid #333; border-radius: 4px; padding: 1px 5px; color: #bdbdbd; flex: 0 0 auto; }
.ref-method.post { color: var(--red); border-color: #5a2a24; }
.ref-method.delete { color: #ff8a7a; border-color: #5a2a24; }
.ref-body { min-width: 0; }
.ref-section { padding: 36px 0 44px; border-top: 1px solid #1f1f1f; scroll-margin-top: 84px; }
.ref-section:first-child { border-top: 0; padding-top: 0; }
.ref-section h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.04em; margin: 10px 0 10px; font-weight: 600; line-height: 1.1; }
.ref-anchor { color: #3a3a3a; margin-right: 10px; font-weight: 400; }
.ref-anchor:hover { color: var(--red); }
.ref-endpoint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ref-endpoint .ref-method { font-size: 11px; padding: 2px 7px; }
.ref-endpoint code { font-family: var(--mono); font-size: 14px; color: #fff; word-break: break-all; }
.ref-lead { color: #bdbdbd; font-size: 16px; max-width: 72ch; margin: 0 0 14px; }
.ref-body p { color: #a6a6a6; max-width: 72ch; }
.ref-body :not(pre) > code { font-family: var(--mono); font-size: 12.5px; background: #0e0e0e; border: 1px solid #222; border-radius: 4px; padding: 0 5px; color: #eaeaea; overflow-wrap: anywhere; }
.ref-body a { color: #fff; text-decoration: underline; text-decoration-color: #444; text-underline-offset: 3px; }
.ref-body a:hover { text-decoration-color: var(--red); }
.ref-body a.ref-anchor { text-decoration: none; color: #3a3a3a; }
.ref-h3 { font-size: 18px; letter-spacing: -0.02em; margin: 30px 0 8px; font-weight: 600; scroll-margin-top: 84px; }
.ref-list { color: #a6a6a6; padding-left: 20px; max-width: 72ch; margin: 8px 0; }
.ref-list li { margin: 6px 0; }
.ref-callout { border-left: 2px solid #444; background: #0a0a0a; padding: 12px 16px; margin: 18px 0; color: #bdbdbd; font-size: 14px; border-radius: 0 6px 6px 0; max-width: 76ch; }
.ref-callout.warn { border-left-color: var(--red); }
.ref-label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6f6f6f; margin: 26px 0 8px; }
.ref-status { font-size: 11px; border: 1px solid #333; border-radius: 4px; padding: 0 6px; margin-left: 6px; letter-spacing: .04em; }
.ref-status.ok { color: #f4f4f4; }
.ref-status.err { color: var(--red); border-color: #5a2a24; }
.ref-note { color: #8c8c8c; font-size: 13px; margin: 4px 0; }
.ref-response .codebox, .ref-samples .codebox { margin-top: 8px; }
.ref-params { margin: 10px 0; }
.ref-param { padding: 12px 0; border-bottom: 1px solid #161616; }
.ref-param:first-of-type { border-top: 1px solid #1f1f1f; }
.ref-pname { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.ref-body .ref-pname > code { background: none; border: 0; padding: 0; color: #fff; font-weight: 600; font-size: 13.5px; }
.ref-ptype { font-family: var(--mono); font-size: 12px; color: #6f6f6f; }
.ref-req { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.ref-pdef { font-size: 12px; color: #6f6f6f; }
.ref-pdesc { color: #a6a6a6; font-size: 14px; margin-top: 4px; max-width: 72ch; }
.ref-pmodels { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ref-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ref-tabs button { border: 1px solid #2a2a2a; background: transparent; color: #8c8c8c; border-radius: 999px; padding: 4px 14px; font-size: 12.5px; cursor: pointer; }
.ref-tabs button:hover { border-color: #fff; color: #fff; }
.ref-tabs button.on { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.ref-table { margin: 12px 0; }
.ref-table th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6f6f6f; font-weight: 400; }
.ref-table td { white-space: normal; font-size: 13.5px; color: #bdbdbd; vertical-align: top; padding: 11px 12px; }
.ref-table th { padding: 10px 12px; }
.ref-table td:first-child, .ref-table th:first-child { padding-left: 0; }
.main .ref { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
.main .ref-side { top: 20px; max-height: calc(100vh - 40px); }
.main .ref-section { scroll-margin-top: 20px; }
@media (max-width: 1100px) { .main .ref { grid-template-columns: minmax(0, 1fr); } .main .ref-side { position: static; max-height: none; } }
@media (max-width: 1100px) {
  .main .ref-toc-btn { display: block; width: 100%; margin-top: 8px; border: 1px solid #2a2a2a; background: transparent; color: #bdbdbd; border-radius: 6px; padding: 8px 12px; text-align: left; font-size: 13px; cursor: pointer; }
  .main .ref-toc { display: none; }
  .main .ref-side.open .ref-toc { display: block; }
}
@media (max-width: 860px) {
  .dswitch { grid-template-columns: 1fr; }
  .drow { grid-template-columns: 1fr; }
  .ref { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; }
  .ref-side { position: sticky; top: 56px; z-index: 5; background: #000; max-height: none; overflow: visible; padding: 10px 0; border-bottom: 1px solid #1f1f1f; }
  .main .ref-side { top: 0; }
  .ref-toc-btn { display: block; width: 100%; margin-top: 8px; border: 1px solid #2a2a2a; background: transparent; color: #bdbdbd; border-radius: 6px; padding: 8px 12px; text-align: left; font-size: 13px; cursor: pointer; }
  .ref-toc { display: none; max-height: 60vh; overflow-y: auto; }
  .ref-side.open .ref-toc { display: block; }
  .ref-section { scroll-margin-top: 150px; padding: 28px 0 32px; }
  .ref-h3 { scroll-margin-top: 150px; }
  .ref-table td:first-child { padding-left: 0; }
}
/* overflow-x: hidden pada .lp membuat scroll container sendiri sehingga sidebar sticky tidak menempel; clip tidak. */
.lp:has(.ref-page) { overflow-x: clip; overflow-y: visible; }
.ref-side { scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; }
.ref-table td code { white-space: nowrap; }
@media (max-width: 860px) {
  .ref-side { top: 91px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
  .ref-toc-btn { margin-top: 0; width: auto; }
  .ref-toc, .ref-empty { grid-column: 1 / -1; }
  .main .ref-side { top: 0; }
  .ref-section, .ref-h3 { scroll-margin-top: 160px; }
}
.dsw, .ref-toc a, .ref-crumbs a, .dref-link, .ref-anchor { text-decoration: none; }
/* API Reference: kartu harga (satu baris per hal yang ditagih) */
.ref-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.ref-price-grid.one { grid-template-columns: minmax(0, 520px); }
.ref-price-card { border: 1px solid #222; border-radius: 8px; padding: 14px 16px 10px; background: #070707; }
.ref-price-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.ref-body .ref-price-head code { background: none; border: 0; padding: 0; color: #fff; font-size: 13.5px; font-weight: 600; }
.ref-price-head span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6f6f6f; }
.ref-price-row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-top: 1px solid #151515; font-size: 13.5px; }
.ref-price-label { color: #d6d6d6; display: flex; flex-direction: column; }
.ref-price-label small { color: #7a7a7a; font-size: 12px; }
.ref-price-dots { flex: 1; border-bottom: 1px dotted #2e2e2e; transform: translateY(-4px); min-width: 12px; }
.ref-price-row strong { font-family: var(--mono); font-size: 13px; color: #fff; font-weight: 600; white-space: nowrap; }
@media (max-width: 1100px) { .ref-price-grid { grid-template-columns: minmax(0, 1fr); } }
.ref-price-grid { align-items: start; }

/* Landing: bagian pemakaian bertanggung jawab + disclaimer footer */
.responsible { padding: 56px 0 8px; }
.responsible h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; margin: 0 0 10px; }
.responsible p { max-width: 62ch; color: var(--muted, #a6a6a6); line-height: 1.6; margin: 0; }
.responsible a { color: inherit; text-decoration: underline; }
.disclaimer { margin: 14px 0 0; max-width: 78ch; font-size: 12.5px; line-height: 1.55; color: var(--muted, #8a8a8a); }
