:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f4f5f7;
  --surface-sunken: #ebedf0;
  --border: #e4e6ea;
  --border-strong: #cfd3d9;
  --ink: #101113;
  --ink-soft: #575b63;
  --ink-faint: #6b7280;
  --ink-mid: #5f6672;
  --brand: #006fee;
  --brand-dark: #0059c4;
  --brand-tint: #e8f2ff;
  --success: #15803d; --success-tint: #e7f7ec;
  --warning: #b45309; --warning-tint: #fef3da;
  --danger: #dc2626; --danger-tint: #fde8e8;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(16,17,19,.04);
  --shadow-sm: 0 1px 2px rgba(16,17,19,.04), 0 8px 20px -14px rgba(16,17,19,.10);
  --shadow-md: 0 2px 6px rgba(16,17,19,.05), 0 18px 36px -18px rgba(16,17,19,.14);
  --ring: 0 0 0 3px rgba(0,111,238,.18);
  --font-display: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); font-family: var(--font-body); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--ink); }
.nav, .footer { padding-left: max(40px, calc((100% - var(--container)) / 2 + 40px)); padding-right: max(40px, calc((100% - var(--container)) / 2 + 40px)); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex: none;
  height: 76px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; min-width: 0; }
a.brand { cursor: pointer; }
a.brand:hover .brand-mark { background: var(--brand); }
a.brand:hover .brand-word { color: var(--brand-dark); }
a.brand:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--radius-sm); }
.brand-mark, .brand-word { transition: background 150ms, color 150ms; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--ink); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; color: var(--brand); font-size: 16px;
}
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.1; letter-spacing: -0.01em; }
.nav .brand-word {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600; letter-spacing: -0.025em;
  white-space: nowrap;
}
.nav-right { display: flex; align-items: center; gap: 10px; }
#loginArea { display: flex; align-items: center; }
#loginArea:empty { display: none; }
#loginArea iframe { display: block; vertical-align: middle; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface);
  color: var(--ink); font-size: 13.5px; font-weight: 650; white-space: nowrap;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.nav-btn:hover { border-color: var(--border-strong); background: var(--surface-alt); color: var(--ink); }
.nav-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.nav-btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.nav-btn svg { width: 16px; height: 16px; flex: none; }
.container { max-width: var(--container); width: 100%; flex: 1 0 auto; margin: 0 auto; padding: 36px 40px 64px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.hero-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.hero-sub { font-size: 14px; color: var(--ink-soft); }
.search-row {
  display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-xs); margin-bottom: 30px;
  max-width: 640px; overflow: hidden;
}
.cat-select-wrap { position: relative; display: flex; align-items: center; flex-shrink: 0; border-right: 1px solid var(--border); }
.cat-select {
  appearance: none; -webkit-appearance: none; border: none; outline: none; background: none;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  padding: 0 26px 0 20px; height: 100%; cursor: pointer;
}
.cat-select-caret { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-row input {
  flex: 1; border: none; outline: none; background: none; font-family: var(--font-body);
  font-size: 14px; color: var(--ink); padding: 12px 16px; min-width: 0;
}
.search-row input::placeholder { color: var(--ink-faint); }
.search-row:focus-within { box-shadow: var(--ring); border-color: var(--brand); }
.cat-select:focus-visible,
.search-row input:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: -3px;
  border-radius: var(--radius-sm);
}
.search-icon-btn {
  width: 40px; height: 40px; margin: 5px; border-radius: 50%; background: var(--brand); border: none;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.section-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--ink-faint);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 180ms cubic-bezier(0.32,0.72,0,1), box-shadow 180ms cubic-bezier(0.32,0.72,0,1), transform 180ms cubic-bezier(0.32,0.72,0,1);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
@supports (content-visibility: auto) {
  .card { content-visibility: auto; contain-intrinsic-size: auto 320px; }
}
.tile {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(160deg, #eef4fb 0%, #dfe9f6 48%, #cfdff1 100%);
  border-bottom: 1px solid var(--border);
}
.tile::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.65) 0%, rgba(255,255,255,0) 42%);
}
.tile-podium {
  position: absolute; left: 50%; bottom: 29%; width: 56%; height: 14px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.9), rgba(160,190,225,.25) 72%, transparent 100%);
}
.tile-glass {
  position: absolute; left: 50%; bottom: 37%; transform: translateX(-50%);
  width: 58px; height: 58px; border-radius: 17px;
  background: linear-gradient(160deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.28) 55%, rgba(255,255,255,.5) 100%);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 12px 22px -10px rgba(46,74,112,.4), inset 0 1px 1px rgba(255,255,255,.95);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; z-index: 1; overflow: hidden;
}
.tile-glass span {
  font-family: var(--font-display); font-weight: 800; font-size: 19px; color: #22344f; letter-spacing: -0.02em;
}
.tile-glass img { width: 100%; height: 100%; object-fit: cover; }
.tile-foto {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .tile-foto { transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1); }
  .card:hover .tile-foto { transform: scale(1.05); }
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.p-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.005em; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; min-width: 0; }
.p-price { font-family: var(--font-display); font-size: 16px; font-weight: 800; white-space: nowrap; }
.p-price-plus { font-size: 11px; font-weight: 700; color: var(--ink-faint); margin-left: 1px; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.badge::before { flex-shrink: 0; }
.badge.ok { background: var(--success-tint); color: var(--success); }
.badge.ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.badge.out { background: var(--surface-alt); color: #5f6672; }
.varian { border-top: 1px solid var(--border); padding-top: 10px; }
.varian > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 650; color: var(--ink-soft);
}
.varian > summary::-webkit-details-marker { display: none; }
.varian > summary svg { width: 13px; height: 13px; transition: transform 150ms; }
.varian[open] > summary svg { transform: rotate(180deg); }
.varian ul { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.varian li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.varian .v-name { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.varian .v-price { margin-left: auto; font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.varian .badge { font-size: 10px; padding: 2px 7px; }
.detail-btn {
  cursor: pointer; text-decoration: none;
  margin-top: auto; font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--ink);
  background: var(--surface-alt); border: none; border-radius: var(--radius-sm);
  padding: 11px 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 150ms, color 150ms;
}
.detail-btn:hover { background: var(--brand); color: #fff; }
.empty { text-align: center; padding: 70px 12px; color: var(--ink-faint); font-size: 14px; }
.how { margin-top: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-xs);
}
.step-no {
  width: 26px; height: 26px; border-radius: var(--radius-pill); background: var(--brand-tint);
  color: var(--brand-dark); font-family: var(--font-display); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.step span { font-size: 13px; color: var(--ink-soft); }
.masuk-kartu {
  max-width: 440px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 36px 32px 30px;
}
.masuk-mark {
  width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 14px;
  background: var(--ink); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 21px; font-weight: 800;
}
.masuk-judul { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.masuk-sub { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; }
.masuk-aksi { display: flex; flex-direction: column; gap: 10px; }
.masuk-aksi .nav-btn { width: 100%; height: 46px; justify-content: center; font-size: 14px; }
.masuk-aksi .nav-btn span { display: inline; }
.masuk-tombol { display: block; text-align: center; }
.masuk-sudah { font-size: 13.5px; color: var(--ink-soft); }
.masuk-sudah b { color: var(--ink); }
.masuk-tunggu { display: flex; flex-direction: column; gap: 12px; }
.masuk-kode-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.masuk-kode {
  font-family: var(--font-display); font-size: 34px; font-weight: 800;
  letter-spacing: 0.16em; color: var(--brand-dark); line-height: 1.1;
  background: var(--brand-tint); border-radius: var(--radius); padding: 14px 8px;
}
.masuk-langkah { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; }
.masuk-langkah b { color: var(--ink); }
.masuk-status { font-size: 12.5px; color: var(--ink-soft); }
.masuk-status b { color: var(--ink); font-variant-numeric: tabular-nums; }
.masuk-galat { color: var(--danger); }
.masuk-batal {
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600; color: var(--ink-faint); padding: 2px;
}
.masuk-batal:hover { color: var(--ink); }
.masuk-poin {
  list-style: none; text-align: left; margin: 26px 0 0;
  border-top: 1px solid var(--border); padding-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.masuk-poin li { position: relative; padding-left: 20px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; }
.masuk-poin li::before {
  content: ''; position: absolute; left: 4px; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}
.masuk-poin b { color: var(--ink); font-weight: 700; }
.masuk-kembali { display: inline-block; margin-top: 22px; font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.masuk-kembali:hover { color: var(--ink); }
.footer {
  flex: none;
  border-top: 1px solid var(--border); padding-top: 28px; padding-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -0.01em; }
.footer-copy { font-size: 12px; color: var(--ink-faint); }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 980px) {
  .nav { padding-left: 20px; padding-right: 20px; }
  .container { padding: 28px 20px 48px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .search-row { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .footer { padding: 24px 20px; flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nav-btn span { display: none; }
  .nav-btn { padding: 0 12px; }
  .card-body { padding: 12px 13px 14px; gap: 10px; }
  .hero-title { font-size: 22px; }
}
.topbar, .balance-strip, .bottom-nav, .view-app { display: none; }
.topbar {
  align-items: center; justify-content: space-between; padding: 14px 18px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.topbar .brand-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.topbar .brand-word { font-size: 13px; }
.topbar-user { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.balance-strip {
  align-items: center; justify-content: space-between; background: var(--brand-tint);
  border-radius: var(--radius); padding: 13px 16px; margin-bottom: 14px;
}
.balance-strip-label { font-size: 10.5px; font-weight: 700; color: var(--brand-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.balance-strip-val { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--brand-dark); }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  border-top: 1px solid var(--border); background: var(--surface);
  padding-bottom: calc(2px + env(safe-area-inset-bottom));
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 0 9px; font-family: var(--font-body); font-size: 10px; font-weight: 700;
  background: none; border: none; color: var(--ink-faint); cursor: pointer;
}
.nav-item.active { color: var(--ink); }
.nav-item.active .nav-dot { background: var(--brand); }
.nav-dot { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.tabs { display: inline-flex; background: var(--surface-alt); border-radius: var(--radius-pill); padding: 3px; margin-bottom: 16px; }
.tab {
  font-family: var(--font-body); font-size: 12px; font-weight: 700; padding: 8px 18px;
  border-radius: var(--radius-pill); border: none; background: none; color: var(--ink-soft); cursor: pointer;
}
.tab.active { background: var(--brand); color: #fff; }
.list { display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px; }
.row-tile {
  width: 42px; height: 42px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: radial-gradient(120% 100% at 50% 25%, #fff 0%, var(--surface-alt) 100%);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #22344f;
}
.row-main { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.row-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.row-meta { font-size: 11px; color: var(--ink-faint); font-family: var(--font-display); }
.row-bottom { display: flex; align-items: center; justify-content: space-between; }
.row-amount { font-family: var(--font-display); font-size: 13px; font-weight: 800; }
.status { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.status.done { background: var(--success-tint); color: var(--success); }
.status.pending { background: var(--warning-tint); color: var(--warning); }
.status.canceled { background: var(--danger-tint); color: var(--danger); }
.cart-row {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 46px 16px 14px; margin-bottom: 12px;
}
.cart-row-top { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.cart-row .row-name { font-size: 14px; margin-bottom: 0; }
.cart-row .row-meta { font-size: 11.5px; font-family: var(--font-body); }
.row-actions { display: flex; align-items: center; justify-content: space-between; }
.row-stepper { display: flex; align-items: center; gap: 10px; }
.step-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-alt); font-size: 17px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1;
}
.step-btn:disabled { color: var(--ink-faint); cursor: not-allowed; }
.step-val { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; min-width: 22px; text-align: center; }
.row-price { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; }
.row-remove {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--surface-alt); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-faint); font-size: 16px; line-height: 1;
}
.sticky-total-label { font-size: 10.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 2px; }
.sticky-total-val { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.summary-card { background: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 16px 18px; color: #fff; margin-bottom: 16px; }
.summary-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 12.5px; }
.summary-item-row.subtotal-start { border-top: 1px solid rgba(255,255,255,.15); margin-top: 4px; padding-top: 14px; }
.summary-item-row.divider { border-top: 1px solid rgba(255,255,255,.15); margin-top: 6px; padding-top: 14px; font-weight: 700; font-size: 14px; }
.summary-total-val { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--brand); }
.pm-card {
  display: flex; align-items: flex-start; gap: 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-xs); padding: 14px; margin-bottom: 10px;
  background: var(--surface); width: 100%; text-align: left; cursor: pointer; font-family: var(--font-body);
}
.pm-card.selected { border-color: var(--ink); background: var(--brand-tint); }
.pm-card.disabled { opacity: 0.5; cursor: not-allowed; }
.pm-card.selected .radio { border-color: var(--ink); }
.pm-card.selected .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.pm-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pm-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.pm-name { font-size: 13px; font-weight: 700; }
.pm-desc { font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; }
.pm-tag { font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--warning-tint); color: var(--warning); }
.radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink-faint); flex-shrink: 0; margin-top: 2px; position: relative; }
.balance-card {
  position: relative; overflow: hidden; background: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 22px 20px; color: #fff; margin-bottom: 16px;
  display: flex; align-items: center; gap: 16px;
}
.balance-card::after {
  content: ''; position: absolute; top: -50px; right: -50px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,111,238,.35), transparent 70%);
}
.balance-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--brand); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; flex-shrink: 0; }
.balance-teks { position: relative; z-index: 1; }
.balance-label { font-size: 10.5px; color: #9aa0a8; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; font-weight: 600; }
.balance-value { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 16px; }
.panel-title { font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.nominal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.nominal {
  padding: 12px 4px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface);
  font-family: var(--font-display); font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.nominal.selected { border-color: var(--ink); background: var(--brand-tint); color: var(--brand-dark); }
.custom-input { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0 13px; margin-bottom: 16px; }
.custom-input:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.custom-input span { font-family: var(--font-display); font-weight: 700; color: var(--ink-faint); font-size: 13px; }
.custom-input input { flex: 1; border: none; outline: none; padding: 12px 7px; font-family: var(--font-display); font-size: 13px; color: var(--ink); min-width: 0; background: transparent; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.mini-row:last-child { border-bottom: none; }
.mini-name { font-weight: 600; }
.mini-date { color: var(--ink-faint); font-size: 10.5px; }
.mini-amount { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; }
.btn-primary {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700; color: #fff; background: var(--brand);
  border: none; border-radius: var(--radius-sm); padding: 13px 22px; cursor: pointer; width: 100%;
}
.btn-primary:disabled { background: var(--surface-alt); color: var(--ink-mid); cursor: not-allowed; }
.hint { font-size: 12px; color: var(--ink-faint); text-align: center; padding: 18px 8px; }
.hint:empty { display: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  padding: 8px 16px; border-radius: var(--radius-pill); cursor: pointer;
  color: var(--ink-soft); background: var(--surface); border: 1px solid var(--border);
  transition: border-color 150ms, background 150ms, color 150ms;
}
.chip:hover { border-color: var(--border-strong); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
html[data-app="telegram"] .nav,
html[data-app="telegram"] .how,
html[data-app="telegram"] .footer,
html[data-app="telegram"] .hero-row { display: none; }
html[data-app="telegram"] .topbar { display: flex; }
html[data-app="telegram"] .bottom-nav { display: flex; }
html[data-app="telegram"] .balance-strip { display: flex; }
html[data-app="telegram"] .container { padding: 16px 16px calc(74px + env(safe-area-inset-bottom)); }
html[data-app="telegram"] .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html[data-app="telegram"] .card-body { padding: 12px 13px 14px; gap: 9px; }
html[data-app="telegram"] .p-name { font-size: 13px; }
html[data-app="telegram"] .p-price { font-size: 14px; }
html[data-app="telegram"] .detail-btn { font-size: 11.5px; padding: 9px 0; }
html[data-app="telegram"] .search-row { box-shadow: var(--shadow-sm); margin-bottom: 16px; }
html[data-app="telegram"] .search-row input { font-size: 13px; padding: 10px 12px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
}
.detail-hero {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, #eef4fb 0%, #dfe9f6 48%, #cfdff1 100%);
  border: 1px solid var(--border); margin-bottom: 14px;
}
.detail-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px; }
.blok { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 14px; background: var(--surface); }
.blok > summary {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft);
  padding: 13px 16px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.blok > summary::-webkit-details-marker { display: none; }
.blok > summary svg { flex-shrink: 0; transition: transform 150ms; }
.blok[open] > summary svg { transform: rotate(180deg); }
.blok-body { font-size: 12.5px; color: var(--ink-soft); line-height: 1.65; padding: 12px 16px 15px; border-top: 1px solid var(--border); white-space: pre-line; }
.desc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 15px; border-top: 1px solid var(--border); }
.desc-list li { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; padding-left: 16px; position: relative; }
.desc-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.varian-pilih { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.variant-card {
  border: 1.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs);
  padding: 10px 14px; background: var(--surface); min-width: 118px; cursor: pointer; text-align: left;
  font-family: var(--font-body);
}
.variant-card.selected { border-color: var(--ink); background: var(--brand-tint); }
.variant-card.disabled { background: var(--bg); cursor: not-allowed; }
.variant-card.disabled .variant-name { text-decoration: line-through; color: var(--ink-faint); }
.variant-name { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 3px; }
.variant-price { font-family: var(--font-display); font-size: 13px; font-weight: 800; }
.variant-stok { display: block; font-size: 10.5px; color: var(--ink-faint); font-weight: 600; margin-top: 2px; }
.price-unit { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--ink-faint); margin-left: 8px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.qty-label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--surface-alt);
  font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; line-height: 1;
}
.qty-btn:disabled { color: var(--ink-faint); cursor: not-allowed; }
.qty-val { min-width: 34px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.wholesale-table { width: 100%; border-top: 1px solid var(--border); border-collapse: collapse; font-size: 12.5px; }
.wholesale-table th { text-align: left; padding: 8px 16px; font-size: 10px; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); }
.wholesale-table th:last-child, .wholesale-table td:last-child { text-align: right; }
.wholesale-table td { padding: 9px 16px; color: var(--ink); font-weight: 600; }
.wholesale-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.wholesale-table tr.active td { background: var(--brand-tint); color: var(--brand-dark); }
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 25;
  background: var(--surface); border-top: 1px solid var(--border); padding: 12px 16px 14px;
  display: none; flex-direction: column; gap: 10px;
}
.sticky-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.btn-utama {
  width: 100%; padding: 12px 0; border: none; border-radius: var(--radius-sm); background: var(--brand);
  color: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-utama:hover { background: var(--brand-dark); }
.btn-utama:disabled { background: var(--surface-alt); color: var(--ink-mid); cursor: not-allowed; }
.cart-row { display: flex; align-items: center; gap: 10px; padding: 12px 13px; }
.cart-row .row-name { flex: 1; min-width: 0; }
.cart-hapus { background: none; border: none; color: var(--ink-faint); font-size: 18px; cursor: pointer; padding: 0 4px; }
.cart-badge {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; padding: 0 3px; border: 2px solid var(--surface);
}
.icon-btn {
  position: relative; width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
html[data-app="telegram"] .view-detail.active,
html[data-app="telegram"] .view-keranjang.active { padding-bottom: 120px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink-soft);
  background: none; border: none; cursor: pointer; padding: 9px 16px; border-radius: var(--radius-pill);
  transition: background 150ms, color 150ms;
}
.nav-link:hover { color: var(--ink); background: var(--surface-alt); }
.nav-link.active { color: var(--ink); background: var(--brand-tint); }
.saldo-chip {
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px; height: 40px; background: var(--brand-tint);
  border-radius: var(--radius-pill); padding: 0 16px 0 12px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--brand-dark);
}
.nav .icon-btn { width: 40px; height: 40px; }
.keluar-btn {
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600; color: var(--ink-faint); padding: 6px 4px;
}
.keluar-btn:hover { color: var(--ink); }
.login-nama { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.view-app.active { display: block; }
.view-katalog:not(.active) { display: none; }
html:not([data-app]) .sticky-bar {
  position: static; display: none; border: 1px solid var(--border); border-top: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px;
}
html:not([data-app]) .sticky-bar.tampil { display: flex; flex-direction: column; gap: 14px; }
html:not([data-app]) .sticky-row { flex-direction: column; align-items: flex-start; gap: 4px; }
html:not([data-app]) .sticky-bar .btn-primary { width: 100%; }
@media (min-width: 861px) {
  html:not([data-app]) .view-keranjang.active,
  html:not([data-app]) .view-checkout.active {
    display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start;
  }
  html:not([data-app]) .view-checkout.active { grid-template-columns: 1fr 380px; }
  html:not([data-app]) .view-saldo.active {
    display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start;
  }
  html:not([data-app]) .view-saldo.active > .panel-title { grid-column: 1 / -1; }
  html:not([data-app]) .view-saldo.active > .balance-card,
  html:not([data-app]) .view-saldo.active > #panelRiwayatTopup { grid-column: 1; }
  html:not([data-app]) .view-saldo.active > #panelTopup { grid-column: 2; grid-row: 2 / span 2; }
  html:not([data-app]) .view-profil.active,
  html:not([data-app]) .view-bayar.active { max-width: 760px; }
  html:not([data-app]) .view-detail.active { max-width: 900px; }
  html:not([data-app]) .nominal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
}
.crumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 22px; display: flex; align-items: center; gap: 6px; }
.crumb a { color: inherit; }
.crumb a:hover { color: var(--ink); }
.crumb span { opacity: 0.45; }
.crumb b {
  color: var(--ink); font-weight: 600;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-tag { font-size: 11px; font-weight: 700; color: var(--ink-faint); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.price-big { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.stock-note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.min-note { font-size: 11.5px; color: var(--ink-faint); margin-left: 4px; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.subtotal-block { text-align: right; }
.subtotal-label { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.subtotal-val { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.cta-row { display: flex; gap: 12px; }
.btn-buy, .btn-outline {
  flex: 1; font-family: var(--font-body); font-size: 15px; font-weight: 700;
  border-radius: var(--radius-sm); padding: 16px 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-buy { color: #fff; background: var(--brand); border: none; }
.btn-buy:hover:not(:disabled) { background: var(--brand-dark); }
.btn-buy:disabled { background: var(--ink-faint); cursor: not-allowed; }
.btn-outline { color: var(--ink); background: var(--surface); border: 1.5px solid var(--border); }
.btn-outline:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-alt); }
.btn-outline:disabled { opacity: 0.5; cursor: not-allowed; }
.akun-saldo {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 14px;
}
.akun-saldo-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.akun-saldo-nilai { font-family: var(--font-display); font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 16px; }
.akun-saldo-aksi { display: flex; align-items: center; gap: 18px; }
.btn-akun-utama {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--surface); border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 700; padding: 12px 20px;
  transition: background 150ms;
}
.btn-akun-utama:hover { background: var(--brand-dark); color: var(--surface); }
.btn-akun-utama svg { width: 15px; height: 15px; }
.akun-tautan { font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.akun-tautan:hover { color: var(--ink); }
.akun-kartu {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px;
}
.akun-tg { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.akun-tg-ikon {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--surface-alt); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
}
.akun-tg-ikon svg { width: 18px; height: 18px; }
.akun-tg-judul { font-size: 14px; font-weight: 700; }
.akun-tg-status { font-size: 12.5px; color: var(--success); font-weight: 600; }
.akun-tg-id { color: var(--ink-faint); font-weight: 500; }
.akun-tg-stat { display: block; color: var(--ink-faint); font-weight: 500; margin-top: 2px; }
.akun-judul-baris { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.akun-judul { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.akun-pesanan { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; }
.akun-pesanan:not(:last-child) { border-bottom: 1px solid var(--border); }
.akun-pesanan-kiri { min-width: 0; }
.akun-pesanan-id { font-family: var(--font-display); font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akun-pesanan-meta { font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; }
.akun-pesanan-kanan { display: flex; align-items: center; gap: 10px; flex: none; }
.akun-pesanan-nilai { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; }
.akun-aksi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.akun-tombol {
  display: flex; align-items: center; gap: 10px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  font-size: 13.5px; font-weight: 700;
  transition: border-color 150ms, background 150ms;
}
.akun-tombol:hover { border-color: var(--border-strong); background: var(--surface-alt); color: var(--ink); }
.akun-tombol svg { width: 17px; height: 17px; flex: none; color: var(--ink-soft); }
@media (max-width: 520px) {
  .akun-aksi { grid-template-columns: 1fr; }
  .akun-saldo-nilai { font-size: 32px; }
}
.btn-keluar {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700;
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 26px; cursor: pointer;
  transition: border-color 150ms, color 150ms, background 150ms;
}
.btn-keluar svg { width: 16px; height: 16px; flex: none; }
.btn-keluar:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-tint); }
.profil-aksi { display: flex; justify-content: center; margin-top: 6px; }
html[data-app="telegram"] .profil-aksi { margin-top: 14px; }
html[data-app="telegram"] .btn-keluar { width: 100%; }
.hero-tile {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  background: radial-gradient(120% 100% at 50% 25%, #ffffff 0%, #dfe9f6 100%);
}
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13px; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; font-weight: 700; font-size: 15px; }
.summary-row .nilai { font-family: var(--font-display); font-weight: 800; }
@media (min-width: 861px) {
  html:not([data-app]) .view-detail.active { max-width: none; }
  html:not([data-app]) .view-detail .detail-layout {
    display: grid; grid-template-columns: 440px 1fr; gap: 48px; align-items: start;
  }
  html:not([data-app]) .view-detail .hero-tile { position: sticky; top: 24px; }
  html:not([data-app]) .view-detail .detail-hero { display: none; }
  html:not([data-app]) .view-detail .detail-title { font-size: 26px; margin-bottom: 4px; }
}
@media (max-width: 860px) {
  .detail-layout { display: block; }
  html:not([data-app]) .hero-tile {
    display: block; aspect-ratio: 16 / 9; margin-bottom: 14px;
  }
}
.page-head { display: none; }
.checkout-side, .keranjang-side, .back-link { display: none; }
.page-head .page-h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.page-head .page-h1:last-child { margin-bottom: 24px; }
.page-head .page-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 28px; }
.cart-row .row-tile { display: none; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field label i { font-weight: 500; color: var(--ink-faint); font-style: normal; }
.field label .req { color: var(--danger); }
.field input {
  width: 100%; font-family: var(--font-body); font-size: 14px; padding: 13px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none;
  color: var(--ink); background: var(--surface);
  transition: border-color 150ms, box-shadow 150ms;
}
.field input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }
.input-icon input { padding-left: 40px; }
.field-hint { font-size: 12px; color: var(--ink-faint); margin-top: 7px; line-height: 1.55; }
.field-hint a { color: var(--brand-dark); font-weight: 600; }
.field-note { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; margin-top: 9px; line-height: 1.5; }
.field-note svg { flex-shrink: 0; margin-top: 1px; }
.field-note.ok { color: var(--success); font-weight: 600; }
.field-note.bad { color: var(--danger); font-weight: 600; }
.field-note.warn { color: var(--warning); font-weight: 600; }
.field-note.wait { color: var(--ink-faint); }
.summary-item { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.summary-item.terakhir { border-bottom: none; margin-bottom: 4px; }
.summary-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.summary-meta { font-size: 12px; color: var(--ink-faint); }
.trust { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--ink-faint); margin-top: 16px; }
@media (min-width: 861px) {
  html:not([data-app]) .view.active > .page-head { display: block; grid-column: 1 / -1; }
  html:not([data-app]) .view-checkout.active .checkout-side { display: block; }
  html:not([data-app]) .judul-app,
  html:not([data-app]) .view-checkout .back-btn,
  html:not([data-app]) .view-checkout #ringkasan { display: none; }
  html:not([data-app]) .checkout-side .sticky-bar.tampil,
  html:not([data-app]) .keranjang-side .sticky-bar.tampil { border: none; box-shadow: none; padding: 0; margin-top: 4px; }
}
@media (min-width: 861px) {
  html:not([data-app]) .view-riwayat .tabs { padding: 4px; margin-bottom: 26px; }
  html:not([data-app]) .view-riwayat .tab { font-size: 13px; padding: 10px 24px; }
  html:not([data-app]) .list { gap: 12px; }
  html:not([data-app]) .row {
    display: grid; grid-template-columns: 1fr auto auto; align-items: center;
    gap: 24px; padding: 18px 22px;
    transition: border-color 150ms, box-shadow 150ms;
  }
  html:not([data-app]) .row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
  html:not([data-app]) .row-main { margin-bottom: 0; gap: 14px; }
  html:not([data-app]) .row > .row-main .row-tile { width: 46px; height: 46px; font-size: 14px; }
  html:not([data-app]) .row .row-name { font-size: 14px; margin-bottom: 3px; }
  html:not([data-app]) .row .row-meta { font-size: 12px; }
  html:not([data-app]) .row-bottom { display: contents; }
  html:not([data-app]) .row-amount { font-size: 15px; text-align: right; }
  html:not([data-app]) .status { font-size: 11px; padding: 5px 12px; }
  html:not([data-app]) .view-keranjang.active .keranjang-side { display: block; }
  html:not([data-app]) .keranjang-side .panel { position: sticky; top: 24px; padding: 24px; }
  html:not([data-app]) .cart-row {
    position: static;
    display: grid; grid-template-columns: 64px 1fr auto auto auto;
    align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 12px;
  }
  html:not([data-app]) .cart-row .row-tile { display: flex; order: 1; width: 64px; height: 64px; font-size: 16px; }
  html:not([data-app]) .cart-row-top { order: 2; margin-bottom: 0; }
  html:not([data-app]) .row-actions { display: contents; }
  html:not([data-app]) .cart-row .row-stepper { order: 3; gap: 8px; }
  html:not([data-app]) .cart-row .step-btn { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; }
  html:not([data-app]) .cart-row .row-price { order: 4; min-width: 90px; text-align: right; }
  html:not([data-app]) .cart-row .row-remove {
    order: 5; position: static; width: 34px; height: 34px; border-radius: 9px;
    border: 1px solid var(--border); background: var(--surface); color: var(--danger); font-size: 15px;
  }
  html:not([data-app]) .cart-row .row-remove:hover { border-color: var(--danger); background: var(--danger-tint); }
  html:not([data-app]) .view-keranjang.active .back-link {
    display: inline-flex; align-items: center; gap: 6px; grid-column: 1 / -1; justify-self: start;
    font-size: 13px; font-weight: 600; color: var(--ink);
    margin-top: 22px; background: none; border: none; cursor: pointer;
  }
}
@media (max-width: 860px) {
  html:not([data-app]) .view-keranjang.active .keranjang-side { display: block; }
  html:not([data-app]) .keranjang-side > .panel {
    background: none; border: none; box-shadow: none; padding: 0; margin-bottom: 0;
  }
  html:not([data-app]) .keranjang-side > .panel > .panel-title,
  html:not([data-app]) .keranjang-side .summary-row { display: none; }
}
@media (max-width: 860px) {
  html:not([data-app]) .view-checkout.active .checkout-side { display: block; }
  html:not([data-app]) .checkout-side > .panel {
    background: none; border: none; box-shadow: none; padding: 0; margin-bottom: 0;
  }
  html:not([data-app]) .checkout-side > .panel > .panel-title,
  html:not([data-app]) .checkout-side #ringkasanSisi,
  html:not([data-app]) .checkout-side .trust { display: none; }
}
.field-label { font-size: 11px; font-weight: 700; color: var(--ink-faint); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.harga-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; margin: 6px 0 18px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stock-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; }
.stock-note.habis { color: var(--ink-faint); }
.desc-empty { font-style: italic; color: var(--ink-faint); font-size: 13px; margin-bottom: 18px; }
.detail-info > .desc-list { margin: 0 0 20px 18px; }
@media (min-width: 861px) {
  html:not([data-app]) .view-detail .back-btn { display: none; }
}
@media (min-width: 861px) {
  html:not([data-app]) .keranjang-side .sticky-row > div:first-child,
  html:not([data-app]) .checkout-side .sticky-row > div:first-child { display: none; }
  html:not([data-app]) .keranjang-side #stickyBtn,
  html:not([data-app]) .checkout-side #stickyBtn { width: 100% !important; }
}
@media (min-width: 861px) {
  html:not([data-app]) .view-saldo .balance-card .balance-icon { order: 2; }
  html:not([data-app]) .view-saldo .balance-card .balance-teks { order: 1; }
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface-alt);
  border: 1px solid var(--border); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--ink-soft);
}
.avatar:hover { border-color: var(--border-strong); }
#btnKeluar { white-space: nowrap; }
.tujuan-kirim {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--success-tint); border: 1px solid rgba(21, 128, 61, .18);
}
.tujuan-label { font-size: 11px; font-weight: 700; color: var(--success); text-transform: uppercase; letter-spacing: 0.06em; }
.tujuan-nama { font-size: 13px; font-weight: 700; color: var(--ink); text-align: right; min-width: 0; overflow-wrap: anywhere; }
html:not([data-app]) .nav-right a.nav-btn-luar { display: none; }
.hamburger {
  display: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.hamburger:hover { border-color: var(--border-strong); }
@media (max-width: 860px) {
  html:not([data-app]) .hamburger { display: flex; }
  html:not([data-app]) .nav-links.terbuka {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 76px; left: 0; right: 0; z-index: 40;
    padding: 8px; background: var(--surface);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  html:not([data-app]) .nav-links.terbuka .nav-link { text-align: left; padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav { position: relative; }
}
@media (max-width: 860px) {
  .icon-btn, .nav .icon-btn { width: 44px; height: 44px; flex: none; }
  .hamburger { width: 44px; height: 44px; }
  .nav-btn { height: 44px; min-width: 44px; }
  a.brand { min-height: 44px; }
  .search-icon-btn { width: 44px; height: 44px; margin: 4px; }
  .detail-btn { min-height: 44px; }
  .qty { gap: 8px; }
  .qty-btn { width: 44px; height: 44px; }
  .step-btn { width: 44px; height: 44px; }
  .row-remove { width: 44px; height: 44px; top: 8px; right: 8px; }
  .cart-row { flex-wrap: wrap; padding-right: 60px; }
  .cart-row-top { flex: 1 1 auto; min-width: 0; }
  .row-actions { flex: 1 1 100%; margin-right: -47px; }
  .cart-hapus {
    min-width: 44px; min-height: 44px; padding: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .tab, .chip { min-height: 44px; display: inline-flex; align-items: center; }
  .back-btn { min-height: 44px; }
  .masuk-kembali { min-height: 44px; display: inline-flex; align-items: center; }
  .sticky-bar .btn-primary, .sticky-bar .btn-utama { min-height: 44px; }
}
@media (max-width: 860px) {
  html:not([data-app]) .detail-aksi {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; flex-direction: column; gap: 10px;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px -16px rgba(16, 17, 19, 0.35);
  }
  html:not([data-app]) .detail-aksi .btn-buy,
  html:not([data-app]) .detail-aksi .btn-outline { padding: 13px 0; font-size: 14px; }
  html:not([data-app]) .detail-aksi .buy-row { margin: 0; gap: 10px; flex-wrap: wrap; }
  html:not([data-app]) .detail-aksi .stepper { gap: 8px; }
  html:not([data-app]) .detail-aksi .subtotal-block { margin-left: auto; }
  html:not([data-app]) .view-detail.active { padding-bottom: 28px; }
  html:not([data-app]) body.ada-bar-detail {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }
  html:not([data-app]) .detail-aksi .subtotal-val,
  html:not([data-app]) .detail-aksi .min-note { white-space: nowrap; }
  html:not([data-app]) .varian-pilih {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    align-items: stretch;
  }
  html:not([data-app]) .varian-pilih .variant-card { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 400px) {
  html:not([data-app]) .detail-aksi .cta-panjang { display: none; }
  html:not([data-app]) .detail-aksi .btn-outline { flex: 0 1 auto; padding-left: 14px; padding-right: 14px; }
  html:not([data-app]) .detail-aksi .btn-buy { flex: 1 1 auto; }
  html:not([data-app]) .detail-aksi .btn-buy,
  html:not([data-app]) .detail-aksi .btn-outline { white-space: nowrap; }
}
@media (max-width: 430px) {
  html:not([data-app]) .nav .saldo-chip { display: none; }
  html:not([data-app]) .nav .brand { flex: none; }
}
@media (max-width: 860px) {
  html:not([data-app]) .view-detail .back-btn { display: none; }
}
@media (max-width: 860px) {
  html:not([data-app]) .nav .hamburger,
  html:not([data-app]) .nav .icon-btn {
    border-color: transparent; background: none; box-shadow: none;
  }
  html:not([data-app]) .nav .hamburger { margin-left: auto; }
  html:not([data-app]) .nav { gap: 10px; }
  html:not([data-app]) .nav .hamburger:hover,
  html:not([data-app]) .nav .icon-btn:hover { background: var(--surface-alt); }
  html:not([data-app]) .qty {
    border-radius: var(--radius-sm); padding: 0; gap: 0; overflow: hidden;
  }
  html:not([data-app]) .qty-btn {
    width: 44px; height: 44px; border-radius: 0; background: none;
    font-size: 18px; color: var(--ink-soft);
  }
  html:not([data-app]) .qty-btn:hover:not(:disabled) { background: var(--surface-alt); }
  html:not([data-app]) .qty-btn:first-child { border-right: 1px solid var(--border); }
  html:not([data-app]) .qty-btn:last-child { border-left: 1px solid var(--border); }
  html:not([data-app]) .qty-val { min-width: 48px; }
}
