/* DitiData: satu sistem desain untuk sales page, masuk, dashboard member, dan analytics.
   Menggantikan diti-landing/add/theme/shell/lux.css (05-11-2026). Terang, bersih, satu warna aksen. */
:root {
  --bg: #fafafb;
  --surface: #ffffff;
  --soft: #f4f3f8;
  --ink: #17151f;
  --ink-2: #47435a;
  --mute: #6a6680;
  --line: #e8e6ef;
  --line-2: #d8d5e3;
  --accent: #7c3aed;
  --accent-dark: #6d28d9;
  --accent-soft: #f3eeff;
  --up: #12804a;
  --down: #cf3a2c;
  --warn: #a15c07;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(23, 21, 31, .05);
  --shadow-lg: 0 18px 50px -24px rgba(23, 21, 31, .22);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 76px; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--accent-dark); }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
::selection { background: rgba(124, 58, 237, .18); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a, button, summary, label { touch-action: manipulation; }
button, summary, .btn { -webkit-user-select: none; user-select: none; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-sm); background: none; font: 600 15px/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-sm { min-height: 38px; padding: 0 13px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-white { background: #fff; color: var(--accent-dark); }
.btn svg { width: 18px; height: 18px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); }
.link { min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent-dark); font: 600 14px/1 var(--font); white-space: nowrap; }
.eyebrow { display: block; color: var(--accent-dark); font: 600 14px/1.3 var(--font); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-dark); }
  .btn-ghost:hover { border-color: var(--ink-2); }
  .btn-white:hover { background: var(--accent-soft); }
  .link:hover { text-decoration: underline; }
}

/* ---------- Header sales page ---------- */
.top { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.top nav { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
@media (hover: hover) { .nav-link:hover { background: var(--soft); color: var(--ink); } }

/* ---------- Hero ---------- */
.hero { padding-block: 72px 56px; background: var(--surface); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin-top: 14px; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.lede { margin-top: 18px; max-width: 34em; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note { margin-top: 14px; color: var(--mute); font-size: 14px; }

.window { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.window-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
.window-tag { margin-left: auto; padding: 3px 8px; border-radius: 6px; background: var(--soft); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.preview-head, .preview-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px 62px 54px; gap: 8px; align-items: center; padding-inline: 16px; }
.preview-head { padding-block: 9px; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--mute); font-size: 12.5px; font-weight: 600; }
.preview-head span:not(:first-child), .pv-score, .pv-creators, .pv-change { text-align: right; }
.preview-row { padding-block: 10px; border-bottom: 1px solid var(--line); }
.preview-row:last-child { border-bottom: 0; }
.pv-product { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pv-product img { width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--soft); object-fit: cover; }
.pv-product > div { min-width: 0; }
.pv-product b { display: block; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.pv-product span { display: block; overflow: hidden; color: var(--mute); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.pv-score, .pv-creators { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.pv-change { color: var(--mute); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-change.up { color: var(--up); }
.preview-loading { padding: 48px 16px; color: var(--mute); font-size: 14px; text-align: center; }
.window-foot { display: flex; justify-content: space-between; gap: 8px; padding: 11px 16px; border-top: 1px solid var(--line); background: var(--bg); color: var(--mute); font-size: 13px; }
.window-foot b { color: var(--ink-2); font-weight: 600; }

/* ---------- Trust ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.trust-list li { display: grid; gap: 2px; padding: 20px 16px; }
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.trust-list span { color: var(--mute); font-size: 14px; line-height: 1.35; }

/* ---------- Blok konten ---------- */
.block { padding-block: 80px; scroll-margin-top: 64px; }
.block.tint { background: var(--surface); border-block: 1px solid var(--line); }
.head { display: grid; gap: 10px; }
.head.center { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.head p { color: var(--ink-2); font-size: 17px; }
.head p .btn { margin-top: 8px; }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.pain-list { border-top: 1px solid var(--line-2); }
.pain-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line-2); }
.pain-list b { font-size: 16px; font-weight: 600; }
.pain-list span { color: var(--ink-2); font-size: 15.5px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio article, .features article, .steps li { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.block.tint .trio article, .block.tint .steps li { background: var(--bg); }
.trio h3, .steps h3, .features h3 { font-size: 17px; font-weight: 700; }
.trio p, .steps p, .features p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }
.trio .num, .steps .num { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); font-size: 14px; font-weight: 700; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.features article svg { margin-bottom: 10px; color: var(--accent-dark); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* ---------- Harga ---------- */
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 44px; max-width: 880px; margin: 0 auto; padding: 32px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.plan-main h3 { font-size: 18px; }
.amount { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.amount b { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.amount span { color: var(--mute); font-size: 16px; }
.plan-note { margin: 8px 0 22px; color: var(--ink-2); font-size: 15px; }
.plan-main .btn { width: 100%; }
.incl { display: grid; gap: 11px; align-content: start; }
.incl li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; line-height: 1.4; }
.incl svg { margin-top: 1px; color: var(--up); stroke-width: 2.2; }
.incl span { flex: 1; min-width: 0; }
.incl b { font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-pay { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.plan-pay > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plan-pay span:first-child { color: var(--mute); flex: none; }
.plan-pay b { font-weight: 500; text-align: right; }

/* ---------- Form ---------- */
.form-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.form-card form { display: grid; gap: 14px; }
.form-card label { display: grid; gap: 6px; }
.form-card label > span { color: var(--ink); font-size: 14px; font-weight: 600; }
.form-card input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.form-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 58, 237, .14); outline: none; }
.form-card .btn { width: 100%; }
.form-foot { margin-top: 14px; color: var(--mute); font-size: 14px; text-align: center; }
.test-msg { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.test-msg:empty { display: none; }
.test-msg.err { color: var(--down); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding-block: 12px; font-size: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 16px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Penutup & footer ---------- */
.closing { padding-block: 0 80px; }
.closing-box { padding: 48px 32px; border-radius: var(--r-lg); background: var(--ink); color: #fff; text-align: center; }
.closing h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.closing p { margin: 10px 0 22px; color: #cfcbdd; font-size: 17px; }
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 26px; }
.foot .wrap > div { display: grid; gap: 2px; min-width: 0; }
.foot span { color: var(--mute); font-size: 14px; }
.mobile-cta { display: none; }

/* ---------- Modal bayar ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; overflow-y: auto; background: rgba(23, 21, 31, .55); }
.modal.open { display: grid; }
body.modal-open { overflow: hidden; }
.modal-card { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border-radius: var(--r-lg); background: var(--surface); }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal-card h3 { margin-top: 4px; font-size: 20px; }
.pay-amount { margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.pay-promo { display: block; margin-top: 2px; color: var(--accent-dark); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.pay-amount span { margin-left: 6px; color: var(--mute); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.pay-qr { display: grid; justify-items: center; gap: 6px; margin-top: 14px; }
#payQris { width: min(240px, 72vw); height: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.pay-note { color: var(--mute); font-size: 13px; text-align: center; }
.pay-note:empty { display: none; }
.pay-steps { display: grid; gap: 8px; margin: 16px 0; padding: 0; counter-reset: s; }
.pay-steps li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15px; line-height: 1.45; counter-increment: s; }
.pay-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12.5px; font-weight: 700; }
.pay-steps strong { color: var(--ink); font-weight: 600; }
.modal-card > div > .btn { width: 100%; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 200; max-width: min(92vw, 440px); padding: 11px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 14.5px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Halaman masuk ---------- */
.auth { display: grid; place-items: start center; min-height: calc(100dvh - 65px); padding: 48px 20px; }
.auth .form-card { width: min(420px, 100%); }
.auth h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.auth-sub { margin: 6px 0 16px; color: var(--ink-2); font-size: 15px; }
.auth-tabs { width: 100%; margin-bottom: 16px; }
.auth-tabs button { flex: 1; }

/* ---------- Dashboard ---------- */
body.dash-mode { background: var(--bg); }
body.dash-mode .top, body.dash-mode .foot, body.dash-mode .mobile-cta { display: none !important; }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; height: 100dvh; padding: 16px 12px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; border-right: 1px solid var(--line); background: var(--surface); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding-inline: 8px; }
.side-close { display: none; }
.side-nav { display: grid; gap: 2px; flex: none; }
.side-label { display: block; padding: 12px 10px 5px; color: var(--mute); font-size: 13px; font-weight: 600; }
.side-link, .diti-tab { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font: 500 15px/1.2 var(--font); text-align: left; transition: background .12s, color .12s; }
.side-link svg, .diti-tab svg { width: 18px; height: 18px; color: var(--mute); }
.diti-tab span { flex: 1; }
.diti-tab[data-n]::after { content: attr(data-n); color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.side-link.on, .diti-tab.on { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.side-link.on svg, .diti-tab.on svg { color: var(--accent-dark); }
.diti-tabs { display: grid; gap: 2px; }
.side-cats { display: flex; flex: 1 0 240px; flex-direction: column; min-height: 240px; }
.diti-cats { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.diti-cat { display: flex; justify-content: space-between; gap: 10px; width: 100%; min-height: 34px; padding: 5px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font: 500 14px/1.3 var(--font); text-align: left; }
.diti-cat span { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.diti-cat.on { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.side-foot { display: grid; flex: none; gap: 1px; padding: 12px 10px 2px; border-top: 1px solid var(--line); }
.side-foot span, .side-foot small { color: var(--mute); font-size: 12.5px; line-height: 1.4; }
.side-foot b { font-size: 14px; font-weight: 600; }
@media (hover: hover) {
  .side-link:not(.on):hover, .diti-tab:not(.on):hover, .diti-cat:not(.on):hover { background: var(--soft); color: var(--ink); }
}

.main { min-width: 0; padding: 0 28px 48px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; margin-inline: -28px; padding: 12px 28px; border-bottom: 1px solid var(--line); background: rgba(250, 250, 251, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.search { position: relative; display: flex; align-items: center; flex: 1; max-width: 520px; min-width: 0; }
.search svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--mute); pointer-events: none; }
.search input { width: 100%; min-height: 42px; padding: 0 12px 0 38px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.search input::placeholder { color: var(--mute); }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 58, 237, .14); outline: none; }
.topbar-user { display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 0; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who b { overflow: hidden; max-width: 160px; font-size: 14.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.badge.ok { background: #e7f6ee; color: var(--up); }

.market-bar { padding-top: 16px; }
.market-seg { display: flex; width: min(100%, 320px); }
.market-seg button { flex: 1; min-height: 40px; }
.sp-only { display: none !important; }
body.mk-shopee .sp-only { display: flex !important; }
body.mk-shopee .tt-only { display: none !important; }
.view { padding-top: 24px; }
.market-bar ~ .view { padding-top: 16px; }
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; }
.page-head p { margin-top: 3px; color: var(--ink-2); font-size: 15px; }
.panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; min-height: 28px; }
.panel-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.panel-head .link { min-height: 44px; margin-block: -8px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.stat { display: grid; gap: 2px; min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); text-align: left; transition: border-color .15s; }
.stat > span { color: var(--mute); font-size: 14px; font-weight: 500; }
.stat b { overflow: hidden; font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
#dashUpdated { font-size: 21px; line-height: 1.55; }
.stat small { overflow: hidden; color: var(--mute); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { button.stat:hover { border-color: var(--line-2); } }
.lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.mini-list { display: grid; }
.mini { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 6px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.mini:first-child { border-top: 0; }
.mini img { width: 40px; height: 40px; border-radius: 8px; background: #fff; object-fit: contain; box-shadow: inset 0 0 0 1px var(--line); }
.mini-name { display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 500; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mini-metric { color: var(--ink-2); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-metric em { font-style: normal; }
.mini-metric .up, .up { color: var(--up); }
.down { color: var(--down); }
@media (hover: hover) { .mini:hover .mini-name { color: var(--accent-dark); } }

.sync { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 13px; font-weight: 500; white-space: nowrap; }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sync.is-ok { color: var(--up); }
.sync.is-run { color: var(--accent-dark); }
.sync.is-error { color: var(--down); }
.sale-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 6px 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.sale { display: grid; gap: 1px; min-width: 0; padding: 11px 13px; }
.sale + .sale { border-left: 1px solid var(--line); }
.sale > span { color: var(--mute); font-size: 13px; }
.sale b { overflow: hidden; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.sale small { overflow: hidden; color: var(--mute); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
#salesGrowth.up { color: var(--up); }
#salesGrowth.down { color: var(--down); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--soft); }
.seg button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font: 500 14px/1 var(--font); white-space: nowrap; transition: background .12s, color .12s; }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 14px; }
.chart-head b { font-weight: 600; }
.chart-head span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart-box { margin-top: 6px; }
.diti-chart { display: block; width: 100%; height: auto; max-height: 190px; overflow: visible; stroke: none; }
.diti-bar { fill: var(--accent); }
.diti-bar.down { fill: var(--down); }
.diti-axis { fill: var(--mute); font: 500 11px var(--font); }
.diti-zero { stroke: var(--line); stroke-width: 1; }
.diti-chart-empty { display: grid; place-items: center; min-height: 96px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); color: var(--mute); font-size: 14px; text-align: center; }
.note { margin-top: 8px; color: var(--mute); font-size: 13.5px; line-height: 1.5; }

/* ---------- Daftar produk ---------- */
.tabs-slot { display: none; }
.toolbar { margin-bottom: 10px; }
.sp-tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.sp-tools .field { display: block; min-width: 0; }
.sp-tools select { width: 100%; min-width: 0; }
.sp-tools .check { position: relative; justify-content: center; min-width: 0; padding: 0 8px; white-space: nowrap; cursor: pointer; }
.sp-tools .check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sp-tools .check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.filter-btn { display: none; }
.count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field { display: inline-flex; align-items: center; gap: 8px; }
.field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.filters select, .sp-tools select { min-height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236a6680' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center / 10px 7px; font-size: 14.5px; appearance: none; cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); font-size: 14.5px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.sheet-head, .sheet-done { display: none; }
.summary { display: flex; align-items: center; gap: 12px; margin: 12px 0 10px; }
.info { flex: 1; min-width: 0; color: var(--mute); font-size: 14px; }
.view-toggle { flex: none; }
.more { display: flex; justify-content: center; margin-top: 20px; }
.state { display: grid; justify-items: center; gap: 6px; padding: 44px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); text-align: center; }
.state b { font-size: 16px; font-weight: 600; }
.state p { color: var(--mute); font-size: 14.5px; }
.state .btn { margin-top: 6px; }
.state.small { padding: 20px 10px; border: 0; }
.skeleton { display: grid; gap: 8px; }
.skeleton span { height: 44px; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--soft) 25%, #fbfafd 50%, var(--soft) 75%); background-size: 300% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton span { animation: none; } }

.diti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.diti-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s; }
.diti-card > img { width: 100%; aspect-ratio: 1; padding: 4px; border-radius: var(--r-sm); background: #fff; object-fit: contain; box-shadow: inset 0 0 0 1px var(--line); }
.diti-card > img.fallback { padding: 26px; }
.diti-rank { position: absolute; top: 15px; left: 15px; z-index: 1; padding: 2px 7px; border-radius: 6px; background: rgba(23, 21, 31, .82); color: #fff; font-size: 12.5px; font-weight: 600; }
.diti-card .body { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 3px 2px; }
.diti-card .cat { overflow: hidden; color: var(--mute); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.diti-card .name { display: -webkit-box; overflow: hidden; min-height: 2.7em; font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.diti-card .price { margin-top: 3px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.diti-card .comm { color: var(--ink-2); font-size: 14px; }
.diti-card-sales, .diti-sales-mini { display: grid; gap: 2px; color: var(--mute); font-size: 13.5px; line-height: 1.4; }
.diti-card .diti-card-sales { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.diti-card-sales > span, .diti-sales-mini > span { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.diti-card-sales b, .diti-sales-mini b { margin-left: auto; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.diti-trend em { margin-left: 4px; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.diti-trend em.up, .diti-trend b.up, .diti-card-sales .up, .diti-sales-mini .up { color: var(--up); }
.diti-trend em.down, .diti-trend b.down, .diti-card-sales .down, .diti-sales-mini .down { color: var(--down); }
.diti-sale-badge { margin-top: 2px; padding: 1px 6px; border-radius: 5px; background: var(--soft); color: var(--ink-2); font-size: 12px; font-style: normal; font-weight: 600; justify-self: start; }
.diti-meta, .diti-sold { display: flex; flex-wrap: wrap; gap: 6px; color: var(--mute); font-size: 13.5px; }
.diti-meta { margin-top: 4px; }
.diti-meta b { color: var(--ink-2); font-weight: 600; }
.diti-card-analytics { width: 100%; min-height: 40px; margin-top: auto; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--font); }
.sp-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.diti-card .sp-sales { margin-bottom: 10px; }
.diti-card .diti-sold + .diti-card-analytics, .diti-card .diti-meta + .diti-card-analytics { margin-top: 10px; }
.diti-card .body { justify-content: flex-start; }
.diti-card .body > :last-child { margin-top: auto; }
@media (hover: hover) { .diti-card:hover { border-color: var(--line-2); } .diti-card-analytics:hover, .diti-row-analytics:hover { border-color: var(--ink-2); } }

.diti-tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); scrollbar-width: thin; }
.diti-table { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.diti-table th { position: sticky; top: 0; z-index: 2; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--mute); font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; }
.diti-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.diti-table tbody tr:last-child td { border-bottom: 0; }
.diti-table tbody tr { cursor: pointer; transition: background .12s; }
.diti-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.diti-table td.num { color: var(--ink-2); }
.diti-table .up { color: var(--up); font-weight: 600; }
.diti-table .down { color: var(--down); font-weight: 600; }
.diti-t-prod { display: flex; align-items: center; gap: 10px; width: 280px; min-width: 0; }
.diti-t-prod > div { min-width: 0; }
.diti-t-prod img { width: 44px; height: 44px; flex: none; border-radius: 8px; background: #fff; object-fit: contain; box-shadow: inset 0 0 0 1px var(--line); }
.diti-t-prod img.fallback { padding: 6px; }
.diti-t-prod b { display: block; overflow: hidden; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.diti-t-prod span { display: block; overflow: hidden; color: var(--mute); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.diti-sales-col { min-width: 150px; font-size: 13px; }
.diti-row-analytics { min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 600 13.5px/1 var(--font); white-space: nowrap; }
.diti-tablehint { display: none; }
@media (hover: hover) { .diti-table tbody tr:hover { background: var(--bg); } }

/* ---------- Keanggotaan ---------- */
.member { max-width: 640px; padding: 22px; }
.member-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.member-top > div { display: grid; gap: 3px; min-width: 0; }
.label { color: var(--mute); font-size: 13.5px; }
.member-top b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.member-bar { margin-top: 20px; }
.member-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; }
.bar { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: var(--soft); }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.member-list { margin-top: 18px; border-top: 1px solid var(--line); }
.member-list > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 15px; }
.member-list dt { color: var(--mute); flex: none; }
.member-list dd { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.member-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bottom-nav { display: none; }
.backdrop { position: fixed; inset: 0; z-index: 75; background: rgba(23, 21, 31, .45); }
.sheet-backdrop { z-index: 55; }
body.diti-sheet-open, body.diti-drawer-open { overflow: hidden; }

/* ---------- Analytics produk ---------- */
.product-page { min-height: 100dvh; padding: 0 20px 48px; background: var(--bg); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 920px; min-height: 64px; margin: 0 auto; }
.product-top-actions { display: flex; align-items: center; gap: 12px; }
.product-buyer { color: var(--mute); font-size: 14px; }
.analytics { max-width: 920px; margin: 0 auto; }
.diti-detail-head { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.diti-detail-head img { width: 88px; height: 88px; flex: none; padding: 3px; border-radius: var(--r-sm); background: #fff; object-fit: contain; box-shadow: inset 0 0 0 1px var(--line); }
.diti-detail-head img.fallback { padding: 14px; }
.diti-detail-id { min-width: 0; }
.diti-detail-id h3 { display: -webkit-box; overflow: hidden; font-size: 20px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.diti-detail-id .sub { margin-top: 3px; color: var(--ink-2); font-size: 15px; }
.diti-detail-badges { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--mute); font-size: 14px; }
.diti-detail-badges:empty { display: none; }
.diti-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.diti-kpi { display: grid; gap: 2px; min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.diti-kpi span { color: var(--mute); font-size: 14px; }
.diti-kpi b { overflow: hidden; font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.diti-kpi small { color: var(--mute); font-size: 13px; }
.diti-kpi small.up { color: var(--up); font-weight: 600; }
.diti-kpi small.down { color: var(--down); font-weight: 600; }
.diti-dchart { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.diti-trendchart { margin-top: 12px; }
.diti-dchart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 15px; }
.diti-dchart-head b { font-weight: 600; }
.diti-dchart-head span { color: var(--mute); font-size: 13.5px; }
.diti-asec { margin-top: 24px; }
.diti-asec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.diti-asec-head h4 { font-size: 18px; }
.diti-rangebar { display: inline-flex; gap: 2px; max-width: 100%; padding: 3px; overflow-x: auto; border-radius: var(--r-sm); background: var(--soft); scrollbar-width: none; }
.diti-rangebar::-webkit-scrollbar { display: none; }
.diti-range { flex: none; min-height: 36px; padding: 0 11px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font: 500 14px/1 var(--font); }
.diti-range.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.diti-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.diti-custom label { display: grid; gap: 4px; color: var(--mute); font-size: 13.5px; }
.diti-custom input { min-height: 42px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 14.5px; }
.diti-apply { background: var(--accent); color: #fff; }
.diti-dstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.diti-dstat { display: grid; gap: 1px; min-width: 0; padding: 12px 14px; }
.diti-dstat + .diti-dstat { border-left: 1px solid var(--line); }
.diti-dstat span { color: var(--mute); font-size: 13.5px; }
.diti-dstat b { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.diti-dstat-small { color: var(--mute); font-size: 12.5px; }
.diti-dchart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.diti-asoft { margin-top: 12px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); font-size: 14.5px; text-align: center; }
.diti-amore { margin-top: 16px; border-block: 1px solid var(--line); }
.diti-amore summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 15px; font-weight: 600; list-style: none; cursor: pointer; }
.diti-amore summary::-webkit-details-marker { display: none; }
.diti-amore summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .15s; }
.diti-amore[open] summary::after { transform: rotate(-135deg); }
.diti-amore[open] { padding-bottom: 14px; }
.diti-change-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.diti-change-cols h4, .diti-history-head h4 { margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.diti-change { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-bottom: 1px solid var(--line); font-size: 14px; }
.diti-change span { color: var(--mute); }
.diti-change b { font-weight: 500; text-align: right; }
.diti-change-empty { color: var(--mute); font-size: 14px; }
.diti-history-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 16px; }
.diti-history-head span { color: var(--mute); font-size: 13.5px; }
.diti-history-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.diti-history { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.diti-history th { padding: 9px 11px; background: var(--bg); color: var(--mute); font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; }
.diti-history td { padding: 9px 11px; border-top: 1px solid var(--line); white-space: nowrap; }
.diti-history .num { text-align: right; font-variant-numeric: tabular-nums; }
.diti-history .up { color: var(--up); font-weight: 600; }
.diti-history .down { color: var(--down); font-weight: 600; }
.diti-detail-link { width: 100%; min-height: 50px; margin-top: 16px; background: var(--accent); color: #fff; }
.diti-detail-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 240px; color: var(--mute); font-size: 15px; }
.diti-spinner { width: 20px; height: 20px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Layar lebar ---------- */
@media (min-width: 1600px) {
  .app { grid-template-columns: 264px minmax(0, 1fr); }
  .main { padding-inline: 36px; }
  .topbar { margin-inline: -36px; padding-inline: 36px; }
}

/* ---------- Laptop kecil ---------- */
@media (max-width: 1279px) {
  .sale-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sale:nth-child(4) { border-left: 0; }
  .sale:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 1099px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .window { max-width: 640px; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-list li:nth-child(4) { border-left: 0; }
  .trust-list li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lists .panel:last-child { grid-column: 1 / -1; }
}

/* ---------- Tablet & HP: bilah sisi jadi drawer, menu bawah ---------- */
@media (max-width: 1023px) {
  .app { display: block; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 80; width: min(84vw, 320px); height: 100dvh; padding: max(14px, env(safe-area-inset-top)) 12px 14px; border-right: 1px solid var(--line); transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  .side.open { transform: none; visibility: visible; }
  .side-close { display: grid; }
  .side-nav { display: none; }
  .diti-cat { min-height: 44px; font-size: 15px; }
  .main { padding: 0 16px calc(84px + env(safe-area-inset-bottom)); }
  .topbar { margin-inline: -16px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; }
  .topbar-user { display: none; }
  .search { max-width: none; }
  .search input { min-height: 44px; font-size: 16px; }
  .view { padding-top: 18px; }
  .tabs-slot { display: block; margin: 0 -16px 10px; }
  .tabs-slot .diti-tabs { display: flex; gap: 6px; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; }
  .tabs-slot .diti-tabs::-webkit-scrollbar { display: none; }
  .tabs-slot .diti-tab { flex: none; gap: 6px; width: auto; min-height: 42px; padding: 0 13px; border: 1px solid var(--line-2); background: var(--surface); }
  .tabs-slot .diti-tab svg { display: none; }
  .tabs-slot .diti-tab.on { border-color: var(--accent); background: var(--accent-soft); }
  .toolbar { margin-bottom: 0; }
  .filter-btn { display: inline-flex; width: 100%; }
  .filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; gap: 10px; max-height: 84dvh; overflow: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface); transform: translateY(105%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  .filters.open { transform: none; visibility: visible; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; }
  .sheet-head b { font-size: 18px; font-weight: 700; }
  .sheet-done { display: inline-flex; width: 100%; min-height: 48px; }
  .field { display: grid; gap: 5px; }
  .field > span { position: static; width: auto; height: auto; clip-path: none; color: var(--ink-2); font-size: 14px; font-weight: 600; }
  .filters select, .sp-tools select { width: 100%; min-height: 48px; font-size: 16px; }
  .sp-tools { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sp-tools .field { grid-column: span 3; }
  .sp-tools .field > span { display: none; }
  .sp-tools .check { grid-column: span 2; padding: 0 4px; font-size: 14px; }
  .check { min-height: 48px; font-size: 15px; }
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
  .bottom-nav button { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 60px; padding: 6px 2px; border: 0; background: none; color: var(--mute); font: 500 12.5px/1.2 var(--font); }
  .bottom-nav button.on { color: var(--accent-dark); font-weight: 600; }
  body.mk-shopee .bottom-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bottom-nav svg { width: 22px; height: 22px; }
  body.product-mode .bottom-nav { display: none; }
  .diti-tablewrap { margin-inline: -16px; border-inline: 0; border-radius: 0; }
  .diti-table th:first-child, .diti-table td:first-child { position: sticky; left: 0; background: var(--surface); }
  .diti-table th:first-child { z-index: 3; background: var(--bg); }
  .diti-t-prod { width: 190px; }
}

/* ---------- HP ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 68px; }
  .nav-link { display: none; }
  .top .wrap { min-height: 58px; }
  .hero { padding-block: 40px 40px; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 40px); }
  .lede { font-size: 16.5px; }
  .cta-row .btn { flex: 1 1 100%; }
  .preview-head, .preview-row { grid-template-columns: minmax(0, 1fr) 44px 54px; padding-inline: 12px; }
  .pv-col, .pv-creators { display: none; }
  .window-foot { padding-inline: 12px; }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list li { padding: 14px 12px; }
  .trust-list li:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-list li:nth-child(even) { border-left: 1px solid var(--line); }
  .trust-list li:first-child { grid-column: 1 / -1; border-top: 0; }
  .trust-list li:nth-child(2), .trust-list li:nth-child(4) { border-left: 0; }
  .trust-list li:nth-child(3), .trust-list li:nth-child(5) { border-left: 1px solid var(--line); }
  .block { padding-block: 52px; }
  .head.center { margin-bottom: 26px; }
  .head p { font-size: 16px; }
  .pain-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 13px; }
  .trio, .steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .trio article, .steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; padding: 16px; }
  .trio .num, .steps .num { grid-row: span 2; margin: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .features article { padding: 14px; }
  .features h3 { font-size: 15.5px; }
  .features p { font-size: 14.5px; line-height: 1.45; }
  .plan { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px 18px; }
  .plan-pay { margin-top: 0; }
  .plan-pay > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .plan-pay b { text-align: left; }
  .form-card { padding: 20px 18px; }
  .closing { padding-bottom: 52px; }
  .closing-box { padding: 36px 20px; }
  .closing .btn { width: 100%; }
  .foot .wrap { padding-bottom: 92px; }
  .foot .btn { width: 100%; }
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
  .mobile-cta > div { display: flex; align-items: baseline; gap: 5px; }
  .mobile-cta b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
  .mobile-cta span { color: var(--mute); font-size: 14px; }
  .page-head h1 { font-size: 23px; }
  .page-head p { font-size: 14.5px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px 13px; }
  .stat b { font-size: 23px; }
  #dashUpdated { font-size: 18px; line-height: 1.6; }
  .lists { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .panel { padding: 14px; }
  .sale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sale { padding: 10px 11px; }
  .sale:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .sale:nth-child(-n+2) { border-top: 0; }
  .sale:nth-child(even) { border-left: 1px solid var(--line); }
  .sale b { font-size: 18px; }
  #salesRanges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  #salesRanges button { min-height: 40px; padding: 0 4px; }
  .summary { flex-wrap: wrap; }
  .diti-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .diti-card { padding: 7px; }
  .diti-rank { top: 11px; left: 11px; }
  .diti-card .cat, .diti-card .diti-sold { display: none; }
  .diti-card .name { font-size: 14px; }
  .diti-card .price { font-size: 16px; }
  .diti-card .comm { font-size: 13.5px; }
  .diti-card-sales { font-size: 13px; }
  .diti-card-analytics { min-height: 44px; font-size: 13.5px; }
  .member-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-actions .btn { flex: 1 1 100%; }
  .product-page { padding-inline: 14px; }
  .product-buyer { display: none; }
  .diti-detail-head { gap: 12px; padding: 14px; }
  .diti-detail-head img { width: 72px; height: 72px; }
  .diti-detail-id h3 { font-size: 16.5px; -webkit-line-clamp: 3; }
  .diti-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .diti-kpi { padding: 12px 13px; }
  .diti-kpi b { font-size: 23px; }
  .diti-dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diti-dstat:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .diti-dstat:nth-child(-n+2) { border-top: 0; }
  .diti-dstat:nth-child(even) { border-left: 1px solid var(--line); }
  .diti-dchart-grid, .diti-change-cols { grid-template-columns: minmax(0, 1fr); }
  .diti-chart { max-height: 170px; }
}
@media (max-width: 380px) {
  .btn-sm { padding: 0 11px; }
  .brand b { font-size: 16px; }
  .features article { padding: 12px; }
}

/* Melonjak Kemarin & data penjualan terlipat */
.surge { margin-bottom: 12px; }
.panel-sub { color: var(--mute); font-size: 13.5px; }
.surge-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.surge-list .mini { border-top: 1px solid var(--line); }
.surge-list .mini:nth-child(-n+2) { border-top: 0; }
.surge-list .skeleton, .surge-list .state { grid-column: 1 / -1; }
.surge .mini-metric { display: grid; justify-items: end; gap: 1px; }
.surge .mini-metric em { font-size: 15px; font-weight: 700; }
.surge .mini-metric small { color: var(--mute); font-size: 12.5px; font-weight: 500; }
.sales-fold summary { margin-bottom: 0; list-style: none; cursor: pointer; }
.sales-fold summary::-webkit-details-marker { display: none; }
.sales-fold summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .15s; }
.sales-fold[open] summary::after { transform: rotate(-135deg); }
.sales-fold summary .sync { margin-left: auto; }
.sales-fold .note:first-of-type { margin: 6px 0 10px; }
@media (max-width: 767px) {
  .surge-list { grid-template-columns: minmax(0, 1fr); }
  .surge-list .mini:nth-child(2) { border-top: 1px solid var(--line); }
}

/* Video demo sales page: PC horizontal, HP vertikal. */
.demo-video { display: block; width: 100%; margin: 0 auto; border-radius: var(--r-lg); background: #0b0813; box-shadow: var(--shadow-lg); }
.demo-h { max-width: 960px; aspect-ratio: 16 / 9; }
.demo-v { display: none; max-width: 340px; aspect-ratio: 9 / 16; }
@media (max-width: 767px) {
  .demo-h { display: none; }
  .demo-v { display: block; }
}

/* Panel admin /panel */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.adm-app .side { display: flex; }
.adm-top { justify-content: space-between; }
.adm-title { font-size: 15px; font-weight: 700; }
.adm-user { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.adm-gap { margin-bottom: 14px; }
.adm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.adm-list { display: grid; }
.adm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.adm-row:first-child { padding-top: 2px; border-top: 0; }
.adm-row:last-child { padding-bottom: 2px; }
.adm-row-main { display: grid; gap: 2px; min-width: 0; }
.adm-row-main b { overflow: hidden; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.adm-row-main span { color: var(--mute); font-size: 13.5px; }
.adm-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.adm-st { padding: 2px 8px; border-radius: 6px; background: var(--soft); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.adm-st.aktif { background: #e7f6ee; color: var(--up); }
.adm-st.menunggu { background: var(--accent-soft); color: var(--accent-dark); }
.adm-st.habis, .adm-st.nonaktif { background: #fdecec; color: var(--down); }
.adm-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 12px; }
.adm-search input, .adm-form input, .adm-form textarea, .adm-form-row input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 400 15px/1.4 var(--font); }
.adm-search input:focus, .adm-form input:focus, .adm-form textarea:focus, .adm-form-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 58, 237, .14); outline: none; }
.adm-form { display: grid; gap: 14px; }
.adm-form label, .adm-form-row label { display: grid; gap: 6px; min-width: 0; }
.adm-form label > span, .adm-form-row label > span { color: var(--ink); font-size: 14px; font-weight: 600; }
.adm-form .btn, .adm-form-row .btn { justify-content: center; }
.adm-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.adm-form label.adm-toggle { display: flex; align-items: center; gap: 10px; }
.adm-toggle input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.adm-toggle span { font-weight: 500 !important; }
.adm-qris { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.adm-qris img { width: 150px; height: 150px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; object-fit: contain; }
.adm-qris-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-file { position: relative; cursor: pointer; }
.adm-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adm-audit { display: grid; gap: 8px; }
.adm-audit-row { display: grid; grid-template-columns: 120px 110px minmax(0, 1fr); gap: 10px; color: var(--mute); font-size: 13.5px; }
.adm-audit-row b { color: var(--ink); font-weight: 600; }
.adm-audit-row span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-note { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.adm-code { padding: 12px; border-radius: var(--r-sm); background: var(--soft); font: 700 18px/1.3 ui-monospace, monospace; text-align: center; overflow-wrap: anywhere; }
.adm-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-dlg { margin-top: 12px; }
@media (max-width: 1023px) {
  .adm-app .side { display: none; }
  .adm-bottom { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .adm-row { grid-template-columns: minmax(0, 1fr) auto; }
  .adm-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .adm-tools { grid-template-columns: minmax(0, 1fr); }
  .adm-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .adm-form-row { grid-template-columns: minmax(0, 1fr); }
  .adm-audit-row { grid-template-columns: 96px minmax(0, 1fr); }
  .adm-audit-row span:last-child { grid-column: 1 / -1; }
  .adm-user span { display: none; }
}

/* Pengingat perpanjangan dan simpan produk */
.renew { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: var(--r); background: var(--accent-soft); }
.renew > div { display: grid; gap: 1px; min-width: 0; }
.renew b { color: var(--accent-dark); font-size: 15px; font-weight: 700; }
.renew span { color: var(--ink-2); font-size: 13.5px; }
.renew .btn { flex: none; }
.diti-save { position: absolute; top: 15px; right: 15px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink-2); cursor: pointer; }
.diti-save svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.diti-save.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.diti-save.on svg { fill: currentColor; }
.diti-analytics-col .diti-save { position: static; display: inline-grid; margin-right: 6px; vertical-align: middle; }
.diti-gone { display: grid; gap: 4px; min-height: 120px; align-content: center; padding: 12px; border-radius: var(--r-sm); background: var(--soft); }
.diti-gone b { font-size: 14.5px; font-weight: 600; }
.diti-gone span { color: var(--mute); font-size: 13.5px; }
.badge.warn { background: #fdecec; color: var(--down); }
@media (hover: hover) { .diti-save:hover { border-color: var(--accent); color: var(--accent-dark); } .diti-save.on:hover { color: #fff; } }
@media (max-width: 640px) {
  .renew { flex-direction: column; align-items: stretch; }
  .renew .btn { justify-content: center; }
  .diti-save { top: 11px; right: 11px; }
}

/* Halaman masuk eksklusif: /panel dan /akses/masuk. */
.lux { background: radial-gradient(90% 60% at 50% 0, #ece3ff 0, rgba(250, 250, 251, 0) 70%), var(--bg); }
main.lux { min-height: 100dvh; align-items: center; }
.lux .form-card { border-color: #d9ccfb; box-shadow: 0 24px 60px -30px rgba(91, 33, 182, .35); }
.lux .btn-primary { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; font-weight: 700; }
.lux .seg button.on { color: #fff; background: #7c3aed; }
.lux-mark { display: block; width: 52px; height: 52px; margin-bottom: 16px; }
.lux-eyebrow { display: block; margin-bottom: 8px; color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* Laptop dan layar pendek: menu dipadatkan supaya daftar kategori langsung terlihat. */
@media (min-width: 1024px) and (max-height: 780px) {
  .side { gap: 8px; }
  .side-nav .side-label, .side-foot { display: none; }
  .side-link, .diti-tab { min-height: 34px; }
}
