:root {
  --blue: #2563eb;
  --blue-700: #1d4ed8;
  --blue-200: #dbeafe;
  --blue-100: #eff6ff;
  --blue-50: #f8fafc;
  --ink: #121826;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e6eaf2;
  --bg: #f4f6f8;
  --card: #fff;
  --ok: #067647;
  --ok-bg: #e7f6ee;
  --warn: #b54708;
  --warn-bg: #fff4e8;
  --bad: #b42318;
  --bad-bg: #fdecec;
  --info: #175cd3;
  --info-bg: #e8f1ff;
  --side: 228px;
  --side-mini: 68px;
  --top: 56px;
  --bar: #0e2748;
  --kpi: #123a6b;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --shadow: 0 1px 2px rgba(18, 24, 38, .05);
  --accent: #5B6EF5;
  --accent-hover: #4558E0;
  --accent-soft: #EEF0FF;
  --accent-ring: rgba(91, 110, 245, 0.18);
  --radius-card: 20px;
  --radius-ctrl: 12px;
  --page-max: 1040px;
}
/* Seller — kombinasi warna seperti mockup Pengaturan */
body.seller, body.admin {
  --blue: #5B6EF5;
  --blue-700: #4558E0;
  --blue-200: #DDE1FF;
  --blue-100: #EEF0FF;
  --blue-50: #F8FAFC;
  --accent: #5B6EF5;
  --accent-hover: #4558E0;
  --accent-soft: #EEF0FF;
  --accent-ring: rgba(91, 110, 245, 0.18);
  --ink: #0F172A;
  --ink-2: #1E293B;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #F8FAFC;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .05);
  --bar: #0F172A;
  --kpi: #5B6EF5;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.45; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; color: inherit; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.04em; font-size: 18px; color: var(--ink); }
.brand img { width: 42px; height: 42px; display: block; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.auth-side .brand, .auth-side .brand small { color: #fff; }
.only-narrow { display: none; }
.shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.topbar { height: var(--top); display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; background: var(--bar); color: #fff; position: sticky; top: 0; z-index: 40; }
.icon-btn { width: 34px; height: 34px; border: 0; background: transparent; color: #fff; border-radius: 8px; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover, .user-btn:hover { background: rgba(255,255,255,.12); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; margin-right: 6px; min-width: 0; }
.logo img { width: 34px; height: 34px; display: block; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.logo-text b { font-size: 15px; font-weight: 800; letter-spacing: -0.04em; }
.logo-text em { font-style: normal; font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; opacity: .85; }
.logo-text small { font-weight: 550; font-size: 10px; letter-spacing: 0; text-transform: none; opacity: .8; margin-top: 2px; }
.shop-pill { display: flex; align-items: center; gap: 8px; max-width: 220px; height: 34px; padding: 0 10px 0 4px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 650; }
.shop-pill span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .mark { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 750; flex: none; }
.topbar .search { margin-left: auto; position: relative; display: flex; align-items: center; }
.topbar .search svg { position: absolute; left: 10px; width: 15px; height: 15px; color: rgba(255,255,255,.7); pointer-events: none; }
.topbar .search input { width: min(280px, 28vw); height: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 0 10px 0 32px; background: rgba(255,255,255,.1); color: #fff; }
.topbar .search input::placeholder { color: rgba(255,255,255,.62); }
.user-btn { display: flex; align-items: center; gap: 8px; height: 34px; border: 0; background: transparent; color: #fff; border-radius: 8px; padding: 0 8px 0 4px; cursor: pointer; font-weight: 650; }
.user-btn .uname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pop-wrap { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 6px); width: 240px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16,24,40,.12); padding: 12px; z-index: 50; }
.pop b { display: block; font-size: 13px; }
.pop p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.pop .who { margin-bottom: 10px; }
.pop .who span { color: var(--muted); font-size: 12px; }
.pop[hidden] { display: none; }

.body { display: flex; flex: 1; min-height: 0; align-items: stretch; }
.side { width: var(--side); background: #fff; border-right: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; position: sticky; top: var(--top); height: calc(100vh - var(--top)); transition: width .18s ease; flex: none; overflow: visible; }
.side nav { overflow: auto; padding-right: 2px; }
.nav-sec { position: relative; margin-bottom: 2px; }
.sec-toggle { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #98a2b3; font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; padding: 10px 10px 4px; cursor: pointer; text-align: left; }
.sec-toggle svg { width: 14px; height: 14px; }
.nav-sec.shut .sec-links { display: none; }
.nav { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); margin-bottom: 1px; }
.nav span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav b { min-width: 18px; text-align: center; font-size: 11px; font-weight: 700; color: #98a2b3; background: #f2f4f7; border-radius: 999px; padding: 1px 6px; }
.nav b.hot { color: var(--warn); background: var(--warn-bg); }
.nav.on { background: var(--blue-100); color: var(--blue); font-weight: 650; }
.nav.on b { color: var(--blue); background: #fff; }
.nav:hover { background: #f4f6f8; }
.nav.on:hover { background: var(--blue-100); }
.shell.is-collapsed .side { width: var(--side-mini); padding: 8px 6px; z-index: 36; }
.shell.is-collapsed .sec-toggle { justify-content: center; padding: 8px 0; letter-spacing: 0; color: var(--ink-2); }
.shell.is-collapsed .sec-toggle svg { width: 18px; height: 18px; }
.shell.is-collapsed .side, .shell.is-collapsed .side nav { overflow: visible; }
.shell.is-collapsed .sec-toggle span,
.shell.is-collapsed .nav span,
.shell.is-collapsed .nav b { display: none; }
.shell.is-collapsed .sec-links { display: none; position: absolute; left: calc(100% + 8px); top: 0; min-width: 196px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16,24,40,.12); padding: 6px; z-index: 30; }
.shell.is-collapsed .nav-sec:hover .sec-links,
.shell.is-collapsed .nav-sec:focus-within .sec-links { display: block; }
.shell.is-collapsed .nav span { display: block; }
.backdrop { display: none; }

.main { flex: 1; min-width: 0; }
.topbar .search input:focus, input:focus, select:focus, textarea:focus { outline: 3px solid var(--blue-200); border-color: var(--blue); }
.topbar .search input:focus { outline-color: rgba(255,255,255,.35); border-color: rgba(255,255,255,.45); }
.content { padding: 16px 18px 28px; }
h1 { font-size: 20px; margin: 0; letter-spacing: -0.03em; font-weight: 750; line-height: 1.2; }
.sub { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
.card .k { color: var(--muted); font-size: 12px; font-weight: 600; }
.card .v { font-size: 22px; font-weight: 750; margin-top: 4px; letter-spacing: -0.03em; }
.card .hint { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* Seller + webmaster — kontainer & komponen halaman (satu desain) */
body.seller .shell.seller-topnav .content,
body.admin .shell.seller-topnav .content {
  background: var(--bg);
  padding: 40px 32px 72px;
}
body.seller .shell.seller-topnav .content > *,
body.admin .shell.seller-topnav .content > * {
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
}
body.seller .shell.seller-topnav .content:has(#prod-form) > *,
body.seller .shell.seller-topnav .content:has(.oo-wrap) > *,
body.admin .shell.seller-topnav .content:has(#prod-form) > *,
body.admin .shell.seller-topnav .content:has(.oo-wrap) > * {
  max-width: 1180px;
}
body.seller .shell.seller-topnav .content:has(.settings-page),
body.admin .shell.seller-topnav .content:has(.settings-page) {
  padding: 0;
  background: var(--bg);
}
body.seller .shell.seller-topnav .content:has(.settings-page) > *,
body.admin .shell.seller-topnav .content:has(.settings-page) > * {
  max-width: none;
}
body.seller .page-head,
body.admin .page-head {
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}
body.seller .page-head h1,
body.seller .content > h1,
body.admin .page-head h1,
body.admin .content > h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
body.seller .page-head .sub,
body.seller .content > .sub,
body.admin .page-head .sub,
body.admin .content > .sub {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 48rem;
}
body.seller .card,
body.admin .card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
body.seller .card > h2,
body.admin .card > h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
body.seller .card > .tiny,
body.seller .card > .sub,
body.admin .card > .tiny,
body.admin .card > .sub {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 14px;
}
body.seller .cards,
body.admin .cards { gap: 16px; margin-bottom: 20px; }
body.seller .cards .card,
body.admin .cards .card { margin-bottom: 0; padding: 20px 22px; }
body.seller .btn,
body.admin .btn {
  min-height: 46px;
  border-radius: var(--radius-ctrl);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  border-color: #D5DCE8;
}
body.seller .btn.primary,
body.admin .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(91, 110, 245, .28);
}
body.seller .btn.primary:hover,
body.admin .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
body.seller .btn:focus-visible,
body.seller input:focus-visible,
body.seller select:focus-visible,
body.seller textarea:focus-visible,
body.admin .btn:focus-visible,
body.admin input:focus-visible,
body.admin select:focus-visible,
body.admin textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
body.seller label.f > span,
body.admin label.f > span {
  font-size: 13px;
  font-weight: 600;
  color: #1F2937;
}
body.seller label.f input,
body.seller label.f select,
body.seller label.f textarea,
body.seller .card input:not([type="checkbox"]):not([type="radio"]),
body.seller .card select,
body.seller .card textarea,
body.admin label.f input,
body.admin label.f select,
body.admin label.f textarea,
body.admin .card input:not([type="checkbox"]):not([type="radio"]),
body.admin .card select,
body.admin .card textarea {
  min-height: 48px;
  border-radius: var(--radius-ctrl);
  border-color: #D5DCE8;
  font-size: 15px;
  padding: 0 14px;
}
body.seller .card textarea,
body.admin .card textarea { padding: 12px 14px; min-height: 96px; }
body.seller .card table,
body.admin .card table { width: 100%; border-collapse: collapse; }
body.seller .card th,
body.admin .card th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid #EEF1F6;
}
body.seller .card td,
body.admin .card td {
  padding: 14px 12px;
  border-bottom: 1px solid #F1F4F9;
  font-size: 14px;
  vertical-align: middle;
}
body.seller .card tr:last-child td,
body.admin .card tr:last-child td { border-bottom: 0; }
body.seller .flash,
body.seller .err,
body.admin .flash,
body.admin .err {
  border-radius: 12px;
  max-width: var(--page-max);
}
body.seller .empty,
body.admin .empty {
  color: var(--muted);
  font-size: 14px;
  padding: 28px 12px;
  text-align: center;
}
@media (max-width: 700px) {
  body.seller .shell.seller-topnav .content,
  body.admin .shell.seller-topnav .content { padding: 28px 16px 56px; }
  body.seller .page-head h1,
  body.seller .content > h1,
  body.admin .page-head h1,
  body.admin .content > h1 { font-size: 28px; }
  body.seller .card,
  body.admin .card { padding: 20px; border-radius: 16px; }
}
.kpi { background: var(--kpi); color: #fff; border-color: transparent; position: relative; overflow: hidden; }
.kpi .k, .kpi .hint { color: rgba(255,255,255,.72); }
.kpi .v { color: #fff; }
.kpi::after { content: ""; position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; background: rgba(255,255,255,.8); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 20h2V10H4v10zm7 0h2V4h-2v16zm7 0h2v-7h-2v7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 20h2V10H4v10zm7 0h2V4h-2v16zm7 0h2v-7h-2v7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.content > form.row { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; }
.content > form.row label.f { margin: 0; min-width: 160px; }
.content > form.row label.f span { margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .check { grid-column: 1 / -1; }
.kpi .v { font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: 1.45fr .85fr; gap: 12px; }
.work { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
/* Product editor — OrderOnline-like density */
.content:has(#prod-form) {
  background: #f0f2f5;
  padding-bottom: 28px;
}
.oo-wrap { max-width: 1180px; margin: 0 auto; }
.oo-wrap > .page-head { margin-bottom: 6px; }
.oo-wrap > .page-head h1 { letter-spacing: -0.03em; font-size: 22px; }
.oo-wrap > .page-head .sub { max-width: 42rem; }
.oo-hint {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 14px; padding: 14px 16px;
  border-radius: 12px; border: 0;
  background: #fff; color: #1e3a5f;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.oo-hint b { display: block; font-size: 14px; margin-bottom: 3px; color: var(--ink); }
.oo-hint span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.oo-hint .oo-hint-n {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center; background: #2563eb; color: #fff;
  font-weight: 800; font-size: 14px;
}
.oo-stepper {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch; gap: 0; margin: 0 0 18px; padding: 4px;
  background: #fff; border: 0; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16,24,40,.05);
}
.oo-step {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  color: var(--muted); font-weight: 650; font-size: 13px;
  background: transparent; border: 0; cursor: pointer;
  padding: 14px 16px; font: inherit; border-radius: 12px; text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.oo-step:hover { background: #f8fafc; color: var(--ink-2); }
.oo-step .n {
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  background: #eef2f7; color: #667085; font-weight: 800; font-size: 14px; flex: 0 0 auto;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.oo-step .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oo-step .t strong { font-size: 14px; font-weight: 750; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oo-step .t small { font-size: 12px; font-weight: 500; color: #98a2b3; }
.oo-step.on { background: #eff6ff; color: #1d4ed8; }
.oo-step.on .n { background: #2563eb; color: #fff; box-shadow: 0 6px 14px rgba(37,99,235,.28); }
.oo-step.on .t small { color: #64748b; }
.oo-step.done .n { background: #dbeafe; color: #1d4ed8; }
.oo-step-line { width: 12px; height: 2px; background: #e4e7ec; border-radius: 99px; align-self: center; }
.oo-step-line.on { background: #93c5fd; }
.oo-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 20px; align-items: start; }
.oo-left { display: grid; gap: 12px; min-width: 0; }
.oo-pane { display: none; gap: 12px; animation: ooIn .2s ease; }
.oo-pane.on { display: grid; }
@keyframes ooIn { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.acc {
  background: #fff; border: 0; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: box-shadow .18s ease;
}
.acc.open { box-shadow: 0 8px 24px rgba(16,24,40,.08); }
.acc-h {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; background: #fff; border: 0; cursor: pointer; font: inherit; text-align: left; color: var(--ink);
}
.acc:not(.open) .acc-h { padding: 16px 20px; }
.acc-h:hover { background: #fafbfe; }
.acc.open .acc-h { background: #fff; border-bottom: 1px solid #f1f4f9; }
.acc-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acc-title { font-size: 15px; font-weight: 750; letter-spacing: -0.015em; }
.acc-sub { font-size: 12px; font-weight: 500; color: var(--muted); }
.acc-h .chev { width: 18px; height: 18px; color: #98a2b3; transition: transform .2s ease; flex: 0 0 auto; }
.acc.open .acc-h .chev { transform: rotate(180deg); color: #2563eb; }
.acc-b { display: none; padding: 0 20px 20px; }
.acc.open .acc-b { display: block; padding-top: 18px; }
.acc-b > .f, .acc-b > .split, .acc-b > .split3, .acc-b > .row, .acc-b > .check, .acc-b > .choice-grid { margin-bottom: 14px; }
.acc-b > .f:last-child, .acc-b > .check:last-child { margin-bottom: 0; }
.acc-b .lead, .acc-b > .tiny { margin: 0 0 14px; }
.oo-wrap .f > span { font-size: 13px; font-weight: 650; color: #344054; margin-bottom: 7px; }
.oo-wrap input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),
.oo-wrap select, .oo-wrap textarea {
  border-radius: 10px; border: 1px solid #d0d5dd; background: #fff;
  min-height: 44px; padding: 10px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.oo-wrap textarea { min-height: 96px; }
.oo-wrap input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):focus,
.oo-wrap select:focus, .oo-wrap textarea:focus {
  background: #fff; outline: none; border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.oo-wrap .photo-pick {
  max-width: none; min-height: 180px; border: 1.5px dashed #c7d2e0; border-radius: 14px;
  background: #f8fafc; display: grid; place-items: center; overflow: hidden;
  transition: border-color .15s ease, background .15s ease;
}
.oo-wrap .photo-pick:hover { border-color: #2563eb; background: #f5f9ff; }
.oo-wrap .photo-pick .photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 0; }
.oo-wrap .photo-empty { color: #667085; font-weight: 650; font-size: 14px; }
.oo-wrap .photo-empty::before { content: "＋ "; font-weight: 800; color: #2563eb; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px;
  border: 1px solid #e4e7ec; border-radius: 12px; background: #fff; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.choice:hover { border-color: #b6c9f0; }
.choice:has(input:checked) {
  border-color: #2563eb; background: #f5f9ff; box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.choice input { margin-top: 3px; accent-color: #2563eb; }
.choice b { display: block; font-size: 13px; font-weight: 750; }
.choice small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.seg {
  display: inline-flex; border: 0; border-radius: 12px; overflow: hidden;
  background: #f2f4f7; padding: 4px; gap: 4px;
}
.seg label {
  padding: 10px 16px; font-size: 13px; font-weight: 650; cursor: pointer; color: #667085;
  border: 0; border-radius: 9px; transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg label:last-child { border-right: 0; }
.seg input { display: none; }
.seg label:has(input:checked) { background: #fff; color: #1d4ed8; box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.seg label span { pointer-events: none; }
.linkish { background: none; border: 0; color: #2563eb; font-weight: 650; cursor: pointer; padding: 0; font: inherit; font-size: 13px; }
.oo-more {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-radius: 12px; background: #fff; color: var(--muted); font-size: 13px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.oo-more b { color: var(--ink-2); font-weight: 700; }
.oo-foot {
  position: sticky; bottom: 10px; z-index: 5; display: flex; justify-content: space-between; gap: 10px; align-items: center;
  margin-top: 4px; padding: 14px 16px; background: #fff;
  border: 0; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16,24,40,.12);
}
.oo-foot .btn { min-height: 42px; padding: 10px 18px; border-radius: 10px; }
.oo-foot .btn.primary { min-width: 140px; }
.oo-foot .row { gap: 8px; }
.oo-right { position: sticky; top: 10px; }
.oo-prev-card {
  background: #fff; border: 0; border-radius: 16px; padding: 16px;
  box-shadow: 0 8px 28px rgba(16,24,40,.08);
}
.oo-prev-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.oo-prev-top .k { font-size: 12px; font-weight: 750; color: #475467; }
.oo-prev-top .tiny { margin: 0; }
.btn.tiny { padding: 5px 11px; font-size: 12px; border-radius: 999px; }
.btn.tiny.on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.oo-device {
  background: #e8edf5;
  border-radius: 16px; padding: 18px; transition: padding .2s ease;
}
.oo-device.mob { max-width: 300px; margin: 0 auto; padding: 20px 14px; border-radius: 28px; background: #dde5f0; }
.oo-screen {
  background: #fff; border-radius: 12px; padding: 18px; min-height: 500px;
  box-shadow: 0 14px 36px rgba(16,24,40,.14); color: #101828;
  transition: border-radius .2s ease, transform .2s ease;
}
.oo-device.mob .oo-screen { border-radius: 22px; }
.oo-seal { font-size: 11px; font-weight: 750; color: #039855; margin-bottom: 8px; }
.oo-headrow { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.oo-headrow h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.oo-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #e4e7ec; flex: 0 0 auto; box-shadow: 0 2px 8px rgba(16,24,40,.08); }
.oo-bullets { margin: 0 0 12px; padding-left: 18px; font-size: 13px; color: #344054; }
.oo-bullets b { display: block; margin: 0 0 4px -18px; font-size: 13px; }
.oo-box { border: 1px solid #eef2f7; border-radius: 12px; padding: 11px 12px; margin-bottom: 10px; background: #f8fafc; }
.oo-box .ttl { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #667085; margin-bottom: 6px; }
.oo-box .rowp { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.oo-box .strike { text-decoration: line-through; color: #98a2b3; font-size: 12px; }
.oo-box .sale { color: #d92d20; font-weight: 800; }
.oo-coupon { border: 1px dashed #bfd0f5; border-radius: 10px; padding: 9px 11px; font-size: 12px; color: #667085; margin-bottom: 10px; background: #f8fafc; }
.oo-fake { display: grid; gap: 8px; margin: 10px 0 12px; }
.oo-fake i { display: block; height: 36px; border-radius: 9px; background: linear-gradient(90deg,#f2f4f7,#eef2f7); border: 1px solid #eef2f7; }
.oo-fake i:nth-child(4) { height: 64px; }
.oo-buy {
  width: 100%; border: 0; border-radius: 12px; padding: 13px; color: #fff; font-weight: 800;
  background: linear-gradient(180deg, #fdb022, #f79009); cursor: default; font-size: 14px;
  box-shadow: 0 6px 14px rgba(247,144,9,.28);
}
.oo-powered { text-align: center; margin: 12px 0 0; font-size: 11px; color: #98a2b3; }
.oo-success .oo-oktitle { font-size: 20px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -0.02em; }
.oo-success .oo-okhead { color: #667085; margin-bottom: 12px; }
.oo-url {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #f8fafc;
  border: 1px solid #eef2f7; font-size: 12px; color: #475467; word-break: break-all;
}
@media (max-width: 980px) {
  .oo-layout { grid-template-columns: 1fr; }
  .oo-right { position: static; }
  .oo-stepper { grid-template-columns: 1fr; gap: 4px; }
  .oo-step-line { display: none; }
  .choice-grid { grid-template-columns: 1fr; }
}
.rail { position: sticky; top: 76px; display: grid; gap: 12px; }
.rail .line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f2f4f7; font-size: 13px; }
.rail .line span { color: var(--muted); }
.rail .line b { text-align: right; font-weight: 650; max-width: 58%; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; padding: 8px 8px; border-bottom: 1px solid var(--line); background: #fafbfc; }
td { padding: 9px 8px; border-bottom: 1px solid #f2f4f7; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfe; }
.who b { display: block; }
.who span, .tiny { color: var(--muted); font-size: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 650; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset; }
.btn.primary:hover { background: var(--blue-700); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.sm { padding: 6px 10px; border-radius: 8px; font-size: 12px; }
.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 650; background: #f2f4f7; color: #344054; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--info); }
.flash { background: var(--blue-50); color: #1d3ea8; border: 1px solid var(--blue-200); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.err { background: var(--bad-bg); color: var(--bad); border: 1px solid #f7c9c6; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }

label.f { display: block; margin-bottom: 12px; }
label.f[hidden], .f[hidden] { display: none !important; }
label.f span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 650; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input:not([type]), textarea, select {
  width: 100%; border: 1px solid #d0d5dd; border-radius: 10px; padding: 10px 12px; background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
input[data-stock][readonly] { background: #eef1f6; color: #8b93a7; }
.steps { display: grid; gap: 12px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.step h2 { font-size: 14px; margin: 0 0 4px; }
.step .lead { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--blue-100); color: var(--blue); font-size: 12px; font-weight: 750; margin-right: 6px; }
.pick, .src { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff; cursor: pointer; }
.pick:has(input:checked), .src:has(input:checked) { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 0 0 3px var(--blue-100); }
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.src { margin: 0; display: block; }
.src b { display: block; }
.src em { display: block; color: var(--muted); font-style: normal; font-size: 12px; margin-top: 2px; }
.mono { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.linkrow { display: flex; gap: 8px; align-items: center; justify-content: space-between; }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 148px; padding-top: 8px; }
.bars i { display: block; flex: 1; background: var(--blue); border-radius: 4px 4px 2px 2px; min-height: 3px; opacity: .9; }
.bars i:hover { opacity: 1; }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.funnel .cell { background: #f8fafc; border-radius: 12px; padding: 12px; }
.funnel .cell b { display: block; font-size: 22px; letter-spacing: -0.03em; margin: 4px 0 10px; }
.meter { height: 8px; background: #e7ebf5; border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.srcrow { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--blue); }
.dot.whatsapp { background: #12b76a; }
.dot.tiktok { background: #111; }
.dot.google { background: #f79009; }
.dot.organik, .dot.langsung { background: #98a2b3; }
.dot.linkbio { background: #7a5af8; }
.attn { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f2f4f7; }
.attn:last-child { border-bottom: 0; }
.feed { padding: 8px 0; border-bottom: 1px solid #f2f4f7; }
.feed:last-child { border-bottom: 0; }

.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
body.admin .auth { grid-template-columns: 1fr; background: var(--bg); }
.auth-side { background: #0e2748; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { font-size: 40px; letter-spacing: -0.045em; line-height: 1.05; margin: 16px 0; font-weight: 750; max-width: 12ch; }
.auth-side p { color: #dbe4ff; max-width: 36ch; }
.auth-form { display: grid; place-items: center; padding: 32px; }
.auth-form .card { width: min(420px, 100%); box-shadow: none; border: 0; padding: 8px; }
body.admin .auth-form .card {
  box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px 32px; background: #fff;
}
body.admin .auth-form h1 { font-size: 28px; margin: 18px 0 0; }
body.admin .flash { background: var(--accent-soft); color: #312E81; border-color: var(--blue-200); }
/* Etalase publik: lihat /static/storefront.css */
.buyer { min-height: 100vh; display: grid; place-items: center; padding: 28px 12px 40px; background: radial-gradient(circle at top, #fff, #e8edf6 55%); }
.phone { width: min(430px, 100%); background: #fff; border-radius: 22px; border: 1px solid var(--line); padding: 18px 18px 22px; box-shadow: 0 20px 50px rgba(18, 24, 38, .08); }
.thanks-order {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 14px 0 0; padding: 12px 14px; border: 1px solid #e4e8f0; border-radius: 14px;
  background: linear-gradient(180deg, #fbfcfe, #f5f7fb);
}
.thanks-order-meta { display: grid; gap: 2px; min-width: 0; }
.thanks-order-meta b { font-size: 16px; letter-spacing: .02em; word-break: break-all; }
.thanks-copy { flex: none; white-space: nowrap; }
.thanks-copy.on { background: #ecfdf3; border-color: #abefc6; color: #027a48; }
.thanks-bank { display: grid; gap: 8px; margin: 0 0 12px; }
.thanks-bank:last-of-type { margin-bottom: 8px; }
.thanks-bank .thanks-copy { justify-self: start; }
.thanks-confirm-form { margin-top: 14px; display: grid; gap: 10px; }
.thanks-confirm-form .f { margin: 0; }
.thanks-confirm-form input[type="file"] {
  width: 100%; font-size: 13px; padding: 8px 0;
}
.thanks-confirm-done {
  margin: 0; padding: 0; border-radius: 0;
  background: transparent; color: #027a48; font-size: 13px; font-weight: 650;
}
.thanks-confirm-done-box { margin-top: 14px; }
.thanks-proof { margin-top: 12px; }
.thanks-flash { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.thanks-flash.ok { background: #ecfdf3; color: #027a48; }
.thanks-flash.err { background: #fef3f2; color: #b42318; }
.pay-proof-box { margin-top: 12px; }
.pay-proof-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border-radius: 12px;
  border: 1px solid #e4e8f0; background: #fbfcfe;
  text-decoration: none; color: #344054; font-size: 13px; font-weight: 650;
  max-width: 100%;
}
.pay-proof-link:hover { border-color: #aeb8fe; background: #fff; color: #4338ca; }
.pay-proof-link img {
  display: block; width: 56px; height: 56px; object-fit: cover;
  border-radius: 8px; background: #f1f5f9; flex: none;
  border: 1px solid #e8ecf2;
}
.pay-proof-link span { white-space: nowrap; }
.pay-proof-link span::after { content: " ↗"; font-weight: 700; opacity: .7; }
.co-body { background: #f3f5f9; }
.buyer.co-wrap {
  width: 100%;
  max-width: none;
  justify-items: center;
  align-items: start;
  padding-top: 32px;
}
.co-form.phone {
  display: grid; gap: 16px; padding: 20px; box-sizing: border-box;
  justify-self: center; margin-left: auto; margin-right: auto;
}
.co-form.layout-right {
  grid-template-columns: 1.25fr .75fr;
  width: min(920px, 100%);
  max-width: 920px;
}
.co-form.layout-left {
  grid-template-columns: .75fr 1.25fr;
  width: min(920px, 100%);
  max-width: 920px;
}
.co-form.layout-left .co-side { order: -1; }
.co-form.layout-none {
  grid-template-columns: 1fr;
  width: min(440px, 100%);
  max-width: 440px;
}
.co-main { min-width: 0; width: 100%; }
.co-side { min-width: 0; }
.co-back { display: block; text-align: center; margin-bottom: 4px; }
.co-seals {
  display: grid; gap: 5px; margin: 10px 0 8px; width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.co-seals[data-n="1"] { grid-template-columns: minmax(0, 1fr); justify-content: center; max-width: 70%; margin-left: auto; margin-right: auto; }
.co-seals[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.co-seals[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.co-seal {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: #ecfdf3; color: #027a48; border-radius: 999px; padding: 7px 6px;
  font-size: 10px; font-weight: 650; line-height: 1.15; min-width: 0; text-align: center;
}
.co-seal .ico { font-size: 11px; line-height: 1; flex: none; }
.co-seal .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.co-title {
  display: block; width: 100%; margin: 10px 0 4px; text-align: center;
  font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25;
}
.co-tag { display: block; width: 100%; text-align: center; margin: 0 0 12px; color: var(--muted); }
.co-gal { width: min(320px, 100%); margin: 0 auto 14px; }
.co-gal-viewport {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 16px; background: #f2f4f7; border: 1px solid var(--line);
}
.co-gal-track {
  display: flex; flex-direction: row; flex-wrap: nowrap; height: 100%;
  transition: transform .28s ease; will-change: transform;
}
.co-gal-slide {
  flex: 0 0 100%; width: 100%; min-width: 100%; max-width: 100%;
  height: 100%; box-sizing: border-box;
}
.co-gal-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
}
.co-gal-ui {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px;
}
.co-gal-nav {
  width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 18px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.co-gal-dots { display: flex; justify-content: center; gap: 6px; }
.co-gal-dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0;
  background: #d0d5dd; cursor: pointer;
}
.co-gal-dots button.on { background: var(--blue); }
.co-vid { margin: 8px 0; }
.co-vid a { color: var(--blue); font-weight: 650; text-decoration: none; }
.co-bullets { margin: 12px 0; padding: 12px 14px; background: #f8fafc; border-radius: 14px; border: 1px solid var(--line); }
.co-bullets b { display: block; margin-bottom: 8px; }
.co-bullets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.co-bullets li { display: flex; gap: 8px; align-items: flex-start; }
.co-bullets .bm { color: #027a48; font-weight: 700; min-width: 1em; }
.co-quotes { display: grid; gap: 10px; margin: 12px 0; }
.co-quote { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.co-quote .av { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; background: #eef2ff; flex: none; }
.co-quote .av-def { display: grid; place-items: center; font-size: 18px; }
.co-quote p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.co-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; margin-bottom: 10px; }
.co-box .ttl { font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.co-box .rowp { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0; font-weight: 650; }
.co-coupon { border: 1px dashed #98a2b3; border-radius: 12px; padding: 12px; text-align: center; font-weight: 700; color: var(--muted); margin-bottom: 10px; background: #fafbfc; }
.co-extra { white-space: pre-wrap; color: var(--ink-2); }
.co-powered { text-align: center; margin-top: 8px; }
.co-bump { align-items: flex-start; gap: 12px; }
.co-bump-img {
  width: 64px; height: 64px; border-radius: 12px; object-fit: cover;
  background: #f2f4f7; flex: none; border: 1px solid var(--line);
}
.co-bump-desc { white-space: pre-wrap; margin-top: 4px; color: var(--ink-2); }
@media (max-width: 820px) {
  .co-form.layout-right, .co-form.layout-left { grid-template-columns: 1fr; }
  .co-form.layout-left .co-side { order: 0; }
}
.shopbar { font-weight: 800; letter-spacing: -0.04em; }
.hero-img { width: 100%; height: 280px; object-fit: cover; border-radius: 16px; margin: 14px 0; background: #eef2ff; display: block; }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #eef2ff; flex: none; }
.thumb.ph { display: grid; place-items: center; color: var(--blue); font-weight: 750; background: var(--blue-100); }
.prod { display: flex; gap: 10px; align-items: center; }
.photo { width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #f4f6fb; display: block; }
.photo.hidden, .hidden { display: none; }
.photo-pick { display: block; position: relative; max-width: 280px; cursor: pointer; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.split3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.vtable { overflow-x: auto; }
.vgrid { display: grid; grid-template-columns: 92px 1.2fr .8fr .7fr .5fr; gap: 8px; margin-bottom: 8px; align-items: center; min-width: 640px; }
.vphoto { display: flex; gap: 6px; align-items: center; }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.vchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; cursor: pointer; font-weight: 650; }
.vchip:has(input:checked), .vchip.on { border-color: var(--blue); background: var(--blue-50); }
.vpick-radio { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.vgrid.head { color: var(--muted); font-size: 12px; font-weight: 650; margin-bottom: 6px; }
.gallery { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
#gal-preview img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.gitem { width: 92px; }
.gitem img, .buyer-gal img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; display: block; }
.gitem span { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 4px; }
.points { margin: 8px 0 0; padding-left: 18px; }
.points li { margin: 4px 0; }
.hero.edukasi { background: linear-gradient(135deg, #e7f6ee, #c6efd8); }
.hero.flash { background: linear-gradient(135deg, #fff4e8, #ffd7a8); }
.price { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; margin: 8px 0; }
.strike { color: var(--muted); text-decoration: line-through; margin-right: 8px; font-size: 15px; font-weight: 550; }
.desc { color: var(--ink-2); white-space: pre-wrap; }
.desc.body { white-space: normal; }
.desc.body ul, .desc.body ol, .rich ul, .rich ol { margin: 8px 0 8px 18px; }
.desc.body li, .rich li { margin: 4px 0; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.tools button { border: 1px solid #d0d5dd; background: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 650; cursor: pointer; }
.rich { min-height: 160px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 10px 12px; background: #fff; }
.rich:focus { outline: 2px solid #d9e2ff; }
.faq-row { display: grid; gap: 8px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8f9fc; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
.empty { color: var(--muted); padding: 28px 8px; text-align: center; }
td.empty::before, p.empty::before { content: ""; display: block; width: 42px; height: 32px; margin: 0 auto 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 36' fill='none' stroke='%2398a2b3' stroke-width='1.6'%3E%3Crect x='6' y='8' width='36' height='22' rx='3'/%3E%3Cpath d='M6 14h36M16 8v22'/%3E%3C/svg%3E") center/contain no-repeat; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.section-label { font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }

@media (max-width: 980px) {
  .cards, .grid-2, .split, .split3, .sources, .work, .funnel, .auth, .form-grid { grid-template-columns: 1fr; }
  .shop-pill, .user-btn .uname, .logo-text small { display: none; }
  .logo img { width: 28px; height: 28px; }
  .only-narrow { display: flex; margin-bottom: 14px; }
  .topbar .search input { width: 34vw; }
  .side { position: fixed; top: var(--top); left: 0; bottom: 0; width: min(280px, 86vw); height: auto; z-index: 35; transform: translateX(-105%); transition: transform .18s ease; box-shadow: 0 12px 32px rgba(16,24,40,.16); }
  .shell.nav-open .side { transform: none; }
  .shell.is-collapsed .side { width: min(280px, 86vw); }
  .shell.is-collapsed .sec-toggle { justify-content: flex-start; padding: 10px 10px 4px; }
  .shell.is-collapsed .sec-toggle span,
  .shell.is-collapsed .nav span,
  .shell.is-collapsed .nav b { display: revert; }
  .shell.is-collapsed .nav span { display: block; }
  .shell.is-collapsed .sec-links { position: static; display: block; min-width: 0; border: 0; box-shadow: none; padding: 0; }
  .shell.is-collapsed .nav-sec.shut .sec-links { display: none; }
  .shell.nav-open .backdrop { display: block; position: fixed; inset: var(--top) 0 0 0; background: rgba(16,24,40,.35); z-index: 34; }
  .content { padding: 14px; }
  .rail { position: static; }
  .auth-side { display: none; }
}

/* Seller topnav pola OrderOnline: grup dropdown + CTA + akun */
.shell.seller-topnav { background: var(--bg); }
.shell.seller-topnav .seller-bar {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.shell.seller-topnav .seller-bar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px; min-height: 58px;
}
.shell.seller-topnav .seller-brand {
  flex: 0 0 auto;
  font-weight: 800; font-size: 17px; letter-spacing: -0.03em;
  color: var(--ink); margin-right: 4px;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.shell.seller-topnav .admin-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 3px 8px;
}
.shell.seller-topnav .admin-search {
  position: relative; display: flex; align-items: center;
}
.shell.seller-topnav .admin-search svg {
  position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.shell.seller-topnav .admin-search input {
  width: min(220px, 28vw); min-height: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px 0 36px; background: #fff; font-size: 13px;
}
.shell.seller-topnav .admin-search input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring);
}
@media (max-width: 860px) {
  .shell.seller-topnav .admin-search { display: none; }
}
.shell.seller-topnav .menu-rail {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 4px;
}
.shell.seller-topnav .menu-scroll {
  flex: 1 1 auto; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  touch-action: pan-x;
}
.shell.seller-topnav .menu-scroll::-webkit-scrollbar { height: 4px; }
.shell.seller-topnav .menu-scroll::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 99px; }
.shell.seller-topnav .seller-menu {
  display: flex; align-items: stretch; gap: 2px;
  width: max-content; min-width: 100%;
}
.shell.seller-topnav .scroll-btn {
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  color: #475467; font-size: 18px; line-height: 1; cursor: pointer;
}
.shell.seller-topnav .scroll-btn:hover { background: #f8fafc; }
.shell.seller-topnav .scroll-btn.hide { visibility: hidden; pointer-events: none; }
.shell.seller-topnav .item {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 18px 12px; margin: 0;
  color: #475467; font-weight: 700; font-size: 13px;
  letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap; border: 0; background: transparent;
  cursor: pointer; font: inherit; font-weight: 700;
  border-bottom: 2px solid transparent;
}
.shell.seller-topnav .item:hover { color: var(--ink); }
.shell.seller-topnav .item.on,
.shell.seller-topnav .drop.on > .drop-btn {
  color: var(--blue); border-bottom-color: var(--blue);
}
.shell.seller-topnav .chev { width: 14px; height: 14px; opacity: .7; }
.shell.seller-topnav .drop { position: relative; flex: 0 0 auto; }
.shell.seller-topnav .drop-btn { height: 100%; }
.shell.seller-topnav .drop-panel {
  display: none; position: fixed; left: 0; top: 0;
  min-width: 200px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 28px rgba(16,24,40,.14);
  padding: 8px; z-index: 80;
}
.shell.seller-topnav .drop.open .drop-panel { display: grid; gap: 2px; }
.shell.seller-topnav .drop-link {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: #344054; font-weight: 600; font-size: 13px; text-align: left;
  border: 0; background: transparent; cursor: pointer; width: 100%;
  font: inherit; font-weight: 600;
}
.shell.seller-topnav .drop-link:hover { background: var(--accent-soft); color: var(--accent); }
.shell.seller-topnav .drop-link.danger { color: #b42318; }
.shell.seller-topnav .seller-bar-right {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
}
.shell.seller-topnav .btn.add-prod {
  background: var(--accent); border-color: var(--accent); color: #fff;
  font-weight: 750; min-height: 38px; padding: 8px 14px; border-radius: 10px;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(91, 110, 245, .28);
}
.shell.seller-topnav .btn.add-prod:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.shell.seller-topnav .user-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: transparent; cursor: pointer; padding: 4px;
  border-radius: 999px; color: inherit;
}
.shell.seller-topnav .user-btn:hover { background: #f2f4f7; }
.shell.seller-topnav .avatar {
  width: 34px; height: 34px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px;
}
.shell.seller-topnav .account .drop-panel { min-width: 240px; padding: 0; overflow: hidden; }
.shell.seller-topnav .account-head {
  padding: 14px 16px; background: var(--accent); color: #fff;
}
.shell.seller-topnav .account-head b { display: block; font-size: 14px; }
.shell.seller-topnav .account-head span { display: block; font-size: 12px; opacity: .85; margin-top: 2px; word-break: break-all; }
.shell.seller-topnav .account-panel .drop-link { border-radius: 0; padding: 9px 16px; }
.shell.seller-topnav .account-panel .drop-label {
  padding: 9px 16px; font-size: 13px; font-weight: 800;
  color: var(--accent); line-height: 1.3;
}
.shell.seller-topnav .account-panel .drop-sep {
  height: 1px; background: #e4e7ec; margin: 0;
}
.shell.seller-topnav .main { max-width: 1280px; width: 100%; margin: 0 auto; }
.shell.seller-topnav .content { padding: 40px 32px 72px; background: var(--bg); }
@media (max-width: 860px) {
  .shell.seller-topnav .seller-bar-inner { flex-wrap: wrap; gap: 8px; padding: 10px 12px; min-height: 0; }
  .shell.seller-topnav .menu-rail { order: 3; width: 100%; }
  .shell.seller-topnav .item { padding: 10px; font-size: 12px; }
  .shell.seller-topnav .btn.add-prod { padding: 8px 10px; font-size: 12px; }
  .shell.seller-topnav .content { padding: 28px 16px 56px; }
}

body.mkt {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, #dbeafe 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e8f1ff 0%, transparent 50%),
    var(--bg);
}
.mkt-wrap {
  min-height: 100vh;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.mkt-wrap h1 {
  margin: 18px 0 0;
  font-size: clamp(32px, 6vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--ink);
}
.mkt-wrap > p { margin: 0; color: var(--ink-2); max-width: 36ch; }
.mkt-note { color: var(--muted); font-size: 14px; }
.mkt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Pengaturan — desain modern */
.content:has(.settings-page) {
  background: #F8FAFC;
  padding: 0;
}
.settings-page {
  --accent: #5B6EF5;
  --accent-hover: #4558E0;
  --accent-soft: #EEF0FF;
  --accent-ring: rgba(91, 110, 245, 0.18);
  --set-ink: #0F172A;
  --set-muted: #64748B;
  --set-border: #E2E8F0;
  --set-input: #D5DCE8;
  --set-icon: #94A3B8;
  --set-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .05);
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 32px 72px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--set-ink);
  box-sizing: border-box;
}
.settings-page *, .settings-page *::before, .settings-page *::after { box-sizing: border-box; }
.settings-page svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.set-head { margin-bottom: 28px; }
.set-head h1 {
  margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--set-ink); line-height: 1.15;
}
.set-head p {
  margin: 8px 0 0; font-size: 15px; font-weight: 400; color: var(--set-muted); line-height: 1.45;
}

.set-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  background: #fff; border: 1px solid var(--set-border); border-radius: 16px;
  padding: 6px; margin-bottom: 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  position: sticky; top: 12px; z-index: 6;
}
.set-tab {
  flex: 1 1 auto; min-height: 40px; height: 40px; border: 0; background: transparent;
  border-radius: 11px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 500;
  color: #64748B; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.set-tab:hover { color: var(--set-ink); background: #F8FAFC; }
.set-tab.on {
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.set-tab:focus-visible {
  outline: none; box-shadow: 0 0 0 4px var(--accent-ring);
}
.set-tab-ico { display: inline-flex; color: inherit; }
.set-tab-ico svg { width: 18px; height: 18px; }
.set-tab .dot-on {
  width: 8px; height: 8px; border-radius: 99px; background: #16A34A; flex: 0 0 auto;
}

/* Satu kartu per tab — mirip mockup */
.set-pane { display: none; }
.set-pane.on { display: block; animation: ooIn .16s ease; }

.set-card {
  background: #fff; border: 1px solid var(--set-border); border-radius: 20px;
  box-shadow: var(--set-shadow); overflow: hidden; margin-bottom: 20px;
}
.set-card-h {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 24px 28px; border-bottom: 1px solid #EEF1F6;
}
.set-card-ico {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.set-card-ico svg { width: 22px; height: 22px; }
.set-card-h h2 {
  margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; color: var(--set-ink);
}
.set-card-h p {
  margin: 4px 0 0; font-size: 14px; font-weight: 400; color: var(--set-muted); line-height: 1.45;
}
.set-card-b { padding: 28px; }

.sf-grid {
  display: flex; flex-wrap: wrap; gap: 22px;
}
.sf {
  flex: 1 1 320px; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.sf-full { flex: 1 1 100%; }
.sf-check { justify-content: flex-end; padding-top: 28px; }
.sf > label {
  font-size: 13px; font-weight: 600; color: #1F2937; margin: 0;
}
.sf-control {
  position: relative; display: flex; align-items: center; min-height: 48px;
}
.sf-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--set-icon); pointer-events: none; display: inline-flex;
  z-index: 1;
}
.sf-ico svg { width: 18px; height: 18px; }
.sf-control input,
.sf-control select {
  width: 100%; min-height: 48px; height: 48px;
  border: 1px solid var(--set-input); border-radius: 12px;
  background: #fff; color: var(--set-ink); font: inherit; font-size: 15px;
  padding: 0 14px 0 44px; margin: 0;
  appearance: none; -webkit-appearance: none;
}
.sf-control select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7587' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.sf-control input::placeholder { color: var(--set-icon); }
.sf-control input:focus,
.sf-control select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.sf-control input:disabled,
.sf-control.sf-ro input {
  background: #F8FAFC; color: #374151;
}
.sf-control.sf-ro input { padding-right: 96px; }
.sf-control:has(.sf-eye) input { padding-right: 48px; }

.sf-copy {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  height: 32px; min-height: 32px; border-radius: 8px; border: 1px solid var(--set-input);
  background: #fff; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600;
  padding: 0 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.sf-copy svg { width: 14px; height: 14px; }
.sf-copy:hover { background: var(--accent-soft); }
.sf-copy:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-ring); }
.sf-copy.ok { color: #1F7A4D; border-color: #A6E3C0; background: #ECFDF3; }

.sf-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent;
  color: var(--set-icon); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.sf-eye:hover { color: var(--accent); background: var(--accent-soft); }
.sf-eye:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-ring); }
.sf-eye svg { width: 18px; height: 18px; }

.bank-list { display: grid; gap: 16px; }
.bank-row {
  border: 1px solid #EEF1F6; border-radius: 14px; padding: 16px 18px; background: #FBFCFE;
}
.bank-row-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.bank-row-title { font-size: 13px; font-weight: 650; color: #1F2937; }
.bank-row-del {
  border: 0; background: transparent; color: #B42318; font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 8px;
}
.bank-row-del:hover { background: #FEF3F2; }
.bank-row-del[hidden] { display: none; }
.bank-add-wrap { margin: 16px 0 0; }
.bank-add-wrap .btn-set { min-height: 40px; }

.wilayah-wrap { width: 100%; grid-column: 1 / -1; }
.wilayah-field { position: relative; width: 100%; }
.wilayah-suggest {
  display: flex; flex-direction: column; align-items: stretch;
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
  background: #fff; border: 1px solid #e8ecf2; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15,23,42,.12); max-height: 280px; overflow-x: hidden; overflow-y: auto;
  padding: 6px;
}
.wilayah-suggest[hidden] { display: none !important; }
button.wilayah-item,
.wilayah-item {
  display: flex !important; align-items: flex-start; justify-content: space-between; gap: 10px;
  width: 100% !important; box-sizing: border-box;
  flex: 0 0 auto; text-align: left; border: 0 !important; border-radius: 12px !important;
  background: transparent !important; box-shadow: none !important;
  padding: 10px 12px; margin: 0; font: inherit; font-size: 13.5px; line-height: 1.35;
  cursor: pointer; color: var(--ink, #111827); white-space: normal;
}
button.wilayah-item:hover,
.wilayah-item:hover { background: #f4f6fb !important; color: var(--ink, #111827); }
.wilayah-item-main { flex: 1; min-width: 0; }
.wilayah-item-meta {
  flex: none; font-size: 11px; font-weight: 700; color: #667085;
  background: #eef2f7; border-radius: 999px; padding: 3px 8px; line-height: 1.2;
}
.wilayah-status { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* Checkout: pencarian wilayah lebih lembut */
.co-wilayah { margin: 0 0 12px; }
.co-wilayah-label {
  display: block; font-size: 12px; font-weight: 650; color: var(--ink-2, #475467);
  margin-bottom: 8px;
}
.co-wilayah-field {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #fbfcfe, #f5f7fb);
  border: 1px solid #e4e8f0; border-radius: 16px;
  padding: 2px 12px 2px 14px; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.co-wilayah-field:focus-within {
  background: #fff;
  border-color: #aeb8fe;
  box-shadow: 0 0 0 4px rgba(91,110,245,.14);
}
.co-wilayah-ico {
  display: grid; place-items: center; color: #98a2b3; flex: none;
}
.co-wilayah-field:focus-within .co-wilayah-ico { color: #5b6ef5; }
.co-wilayah-field input[data-wilayah-q] {
  flex: 1; min-width: 0; border: 0 !important; background: transparent !important;
  box-shadow: none !important; outline: none !important; padding: 12px 4px;
  font: inherit; font-size: 15px; color: var(--ink, #0f172a);
}
.co-wilayah-field input[data-wilayah-q]::placeholder { color: #98a2b3; }
.co-wilayah-field input[data-wilayah-q]::-webkit-search-decoration,
.co-wilayah-field input[data-wilayah-q]::-webkit-search-cancel-button { -webkit-appearance: none; }
.co-wilayah-suggest {
  left: 0; right: 0; top: calc(100% + 8px);
  border-radius: 18px; padding: 8px; border-color: #e8ecf2;
}
.co-wilayah-status {
  display: none; margin: 8px 0 0; padding: 8px 12px;
  font-size: 12px; line-height: 1.35; color: #027a48;
  background: #ecfdf3; border-radius: 12px;
}
.co-wilayah-status.on { display: block; }
.co-wilayah-status.on::before { content: "✓ "; font-weight: 700; }
.co-wilayah-hint { margin: 6px 0 0; color: #98a2b3; }
.courier-picks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px 12px; margin-top: 4px;
}
.courier-pick { min-height: 40px; padding: 6px 0; }
.sf-hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.sf textarea {
  width: 100%; min-height: 88px; border: 1px solid var(--set-input, #D5DCE8);
  border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; resize: vertical;
}
.sf textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring);
}

.set-check {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: #374151; line-height: 1.4;
  min-height: 44px; padding: 10px 0;
}
.set-check input {
  width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto;
}

.set-info {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 22px; padding: 14px 16px; border-radius: 12px;
  background: var(--accent-soft); color: #1F2937;
}
.set-info-ico { color: var(--accent); flex: 0 0 auto; margin-top: 1px; display: inline-flex; }
.set-info-ico svg { width: 18px; height: 18px; }
.set-info p { margin: 0; font-size: 14px; line-height: 1.45; color: #374151; }
.set-info a {
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.set-info a:hover { color: var(--accent-hover); text-decoration: none; }

.set-note {
  margin: 0 0 14px; font-size: 14px; color: var(--set-muted); line-height: 1.45;
}
.set-status {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
  background: #ECFDF3; color: #1F7A4D; border-radius: 10px;
  padding: 10px 14px; font-size: 13px; font-weight: 500; margin: 0 0 18px;
}
.set-status svg { width: 16px; height: 16px; color: #1F7A4D; }

.set-foot {
  position: sticky; bottom: 16px; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--set-border); border-radius: 16px;
  padding: 16px 20px; box-shadow: var(--set-shadow);
}
.set-foot-hint {
  margin: 0; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--set-muted); font-weight: 500;
}
.set-foot-hint svg { width: 18px; height: 18px; color: #1F7A4D; flex: 0 0 auto; }
.set-foot-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn-set {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; height: 46px; padding: 0 18px; border-radius: 12px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  border: 1px solid transparent;
}
.btn-set.primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(91, 110, 245, .28);
}
.btn-set.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-set.ghost {
  background: #fff; color: #374151; border-color: var(--set-input);
}
.btn-set.ghost:hover { background: #F8FAFC; }
.btn-set:focus-visible {
  outline: none; box-shadow: 0 0 0 4px var(--accent-ring);
}

@media (max-width: 700px) {
  .settings-page { padding: 28px 16px 56px; }
  .set-head h1 { font-size: 28px; }
  .set-tabs { gap: 4px; }
  .set-tab { flex: 1 1 calc(50% - 4px); justify-content: flex-start; padding: 0 10px; font-size: 13px; }
  .set-card-h, .set-card-b { padding: 20px; }
  .sf-check { padding-top: 0; }
  .set-foot { flex-direction: column; align-items: stretch; }
  .set-foot-actions { width: 100%; }
  .set-foot-actions .btn-set { flex: 1; }
}

/* Inbox lonceng (seller HTML + webmaster) */
.kd-inbox { position: relative; flex: 0 0 auto; z-index: 60; }
.kd-inbox .inbox-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line, #e4e8f0); background: #fff; color: #344054;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.kd-inbox .inbox-btn:hover { background: #f8fafc; color: #111827; }
.kd-inbox.has-unread .inbox-btn { border-color: #c7d2fe; color: #4338ca; }
.kd-inbox.ring .inbox-btn { animation: inbox-ring .7s ease; }
@keyframes inbox-ring {
  0%,100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
}
.kd-inbox .inbox-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.kd-inbox .inbox-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 120;
  width: min(380px, calc(100vw - 24px));
  background: #fff; border: 1px solid #e6eaf2; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15,23,42,.16); overflow: hidden;
  text-align: left;
}
.kd-inbox .inbox-panel[hidden] { display: none !important; }
.kd-inbox .inbox-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid #eef2f7; background: #fbfcfe;
}
.kd-inbox .inbox-head b { font-size: 14px; color: #0f172a; font-weight: 800; }
.kd-inbox .inbox-all {
  border: 0; background: transparent; color: #5b6ef5; font: inherit;
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; white-space: nowrap;
}
.kd-inbox .inbox-all:hover { text-decoration: underline; }
.kd-inbox .inbox-list { max-height: 380px; overflow: auto; background: #fff; }
.kd-inbox a.inbox-item {
  display: grid !important;
  grid-template-columns: 10px 1fr;
  gap: 4px 12px;
  align-items: start;
  padding: 14px 16px;
  text-decoration: none !important;
  color: #0f172a !important;
  border-bottom: 1px solid #f2f4f7;
  background: #fff;
}
.kd-inbox a.inbox-item:last-child { border-bottom: 0; }
.kd-inbox a.inbox-item:hover { background: #f8fafc; }
.kd-inbox a.inbox-item.unread { background: #f5f7ff; }
.kd-inbox .inbox-dot {
  width: 8px; height: 8px; border-radius: 999px; margin-top: 5px;
  background: #d0d5dd; flex: none;
}
.kd-inbox a.inbox-item.unread .inbox-dot { background: #5b6ef5; }
.kd-inbox .inbox-main { min-width: 0; display: grid; gap: 4px; }
.kd-inbox .inbox-title {
  display: block; font-size: 13px; font-weight: 750; color: #0f172a;
  line-height: 1.35; word-break: break-word;
}
.kd-inbox a.inbox-item.unread .inbox-title { color: #1d4ed8; }
.kd-inbox .inbox-body {
  display: block; font-size: 12px; color: #667085; line-height: 1.45;
  word-break: break-word;
}
.kd-inbox .inbox-time {
  display: block; font-size: 11px; color: #98a2b3; margin-top: 2px;
}
.kd-inbox .inbox-empty {
  margin: 0; padding: 32px 16px; text-align: center; color: #98a2b3; font-size: 13px;
}
.chip.pay-confirm { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; margin-left: 4px; }
