:root {
  --ink: #18212F;
  --ink-2: #273246;
  --bg: #F2F4F3;
  --surface: #FFFFFF;
  --line: #E2E6E4;
  --line-2: #CDD4D1;
  --text: #18212F;
  --muted: #637083;
  --brand: #0B6E4F;
  --brand-2: #095A41;
  --brand-soft: #E1F1E9;
  --sticker: #FFD43B;
  --sticker-ink: #2E2300;
  --red: #C02B2B;
  --red-soft: #FCEAEA;
  --amber: #9A5408;
  --amber-soft: #FFF1D6;
  --blue: #1D5BC0;
  --blue-soft: #E4EDFB;
  --violet: #6A3FC2;
  --violet-soft: #EFE8FB;
  --green: #1C7440;
  --green-soft: #E2F3E8;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
em { font-style: normal; font-weight: 400; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 28px; padding-bottom: 64px; min-height: calc(100vh - 140px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-secondary { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-secondary:hover { background: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(24, 33, 47, 0.06); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; height: 44px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.icon-btn .icon { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--bg); color: var(--text); }
.icon-btn.danger:hover { background: var(--red-soft); color: var(--red); }

.link-sm { font-size: 13px; font-weight: 600; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--sticker);
}
.logo-mark .icon { width: 18px; height: 18px; }

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sticker);
  color: var(--sticker-ink);
  font-size: 13px;
  font-weight: 800;
}
.avatar:hover { text-decoration: none; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.avatar-soft { background: var(--brand-soft); color: var(--brand-2); width: 34px; height: 34px; font-size: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.search {
  position: relative;
  flex: 1;
  max-width: 560px;
}
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font: inherit;
  color: var(--text);
}
.search input:focus { outline: none; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.15); }

.topnav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topnav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r);
  color: var(--text);
  font-weight: 600;
}
.topnav-link:hover { background: var(--bg); text-decoration: none; }
.topnav .avatar { margin-left: 6px; }

.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; color: var(--muted); font-size: 13px; }

.intro { padding: 12px 0 28px; }
.intro h1 {
  max-width: 17ch;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.intro p { margin-top: 14px; max-width: 56ch; font-size: 16px; color: var(--muted); }

.chips {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.chip span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); text-decoration: none; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active span { color: rgba(255, 255, 255, 0.65); }

.result-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.result-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

.grid-produk {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 20px;
}

.card-produk { display: block; color: var(--text); }
.card-produk:hover { text-decoration: none; }
.card-media { position: relative; }
.card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--line);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card-produk:hover .card-img img { transform: scale(1.04); }
.is-habis .card-img img { filter: grayscale(0.85); opacity: 0.7; }
.stok-habis {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.price-tag {
  position: absolute;
  left: 12px;
  bottom: -13px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px 5px 22px;
  border-radius: 4px 8px 8px 4px;
  background: var(--sticker);
  color: var(--sticker-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: rotate(-3deg);
  box-shadow: 0 2px 0 rgba(46, 35, 0, 0.18);
}
.price-tag::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 1px 1px rgba(46, 35, 0, 0.3);
}
.card-produk:hover .price-tag { transform: rotate(-1deg); }
.is-habis .price-tag { background: #E4E2DA; color: var(--muted); }

.card-body { padding: 24px 2px 0; }
.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.card-seller { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.kondisi { padding: 1px 8px; border-radius: 5px; font-size: 12px; font-weight: 700; }
.kondisi-baru { background: var(--brand-soft); color: var(--brand-2); }
.kondisi-bekas { background: #ECEEF1; color: #4B5565; }

.img-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 28px;
  font-weight: 800;
}

.breadcrumb { display: flex; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); font-weight: 500; }

.notice { margin-bottom: 20px; padding: 12px 16px; border-radius: var(--r); background: var(--amber-soft); color: var(--amber); font-weight: 600; }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.detail-media { aspect-ratio: 1; overflow: hidden; border-radius: 20px; background: var(--line); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .img-placeholder { font-size: 64px; }
.detail-info h1 { font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; }
.price-tag-lg {
  position: relative;
  left: 0;
  bottom: 0;
  margin: 18px 0 4px 4px;
  padding: 8px 18px 8px 30px;
  font-size: 26px;
}
.price-tag-lg::before { left: 12px; width: 9px; height: 9px; margin-top: -4.5px; }

.facts { display: flex; gap: 32px; margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12.5px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; }

.buy-box { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.buy-note { margin-bottom: 12px; color: var(--muted); }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 16px; }
.buy-total strong { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

.seller { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.seller-info { flex: 1; min-width: 0; font-size: 13px; }
.seller-name { font-size: 15px; font-weight: 700; }

.section { margin-top: 48px; }
.section h2 { margin-bottom: 16px; }
.description { max-width: 70ch; font-size: 15px; line-height: 1.7; white-space: pre-line; }

.account-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.account-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.account-info { flex: 1; min-width: 0; }

.tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 12px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--brand); }
.tab-badge { padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 19px; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }

.segmented {
  display: inline-flex;
  max-width: 100%;
  gap: 2px;
  margin-bottom: 16px;
  padding: 3px;
  border-radius: var(--r);
  background: #E5E9E7;
  overflow-x: auto;
}
.segmented a { padding: 6px 12px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.segmented a:hover { color: var(--text); text-decoration: none; }
.segmented a.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(24, 33, 47, 0.12); }

.orders { display: flex; flex-direction: column; gap: 12px; }
.order {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.order-thumb { width: 88px; height: 88px; overflow: hidden; border-radius: var(--r); background: var(--line); }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-thumb .img-placeholder { font-size: 20px; }
.order-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; }
.order-title { display: block; margin-top: 6px; color: var(--text); font-size: 15px; font-weight: 700; }
.order-sub { color: var(--muted); font-size: 13px; }
.order-note { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: var(--bg); font-size: 13px; }
.order-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.order-total { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.order-cancelled { margin-top: 12px; color: var(--muted); font-size: 13px; }

.steps { display: flex; margin: 14px 0 0; padding: 0; list-style: none; max-width: 440px; }
.steps li {
  position: relative;
  flex: 1;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  z-index: 1;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 10px;
  right: 0;
  height: 2px;
  background: var(--line-2);
}
.steps li:last-child { flex: 0 0 auto; }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--text); }
.steps li.done::before { border-color: var(--brand); background: var(--brand); }
.steps li.done:has(+ li.done)::after { background: var(--brand); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-gray { background: #ECEEF1; color: #4B5565; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
}
.summary-item { padding: 18px 20px; background: var(--surface); }
.summary-value { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-label { margin-top: 2px; color: var(--muted); font-size: 13px; }

.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 15px; }
.panel-link { font-size: 13px; font-weight: 600; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  background: #F8FAF9;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #FAFBFA; }
.cell-title { display: block; font-weight: 600; }
.cell-sub { display: block; color: var(--muted); font-size: 12.5px; }
.td-actions { width: 1%; text-align: right; white-space: nowrap; }

.product-cell { display: flex; align-items: center; gap: 12px; color: var(--text); }
.product-cell:hover { text-decoration: none; }
.product-cell:hover .cell-title { text-decoration: underline; }
.thumb { display: block; width: 48px; height: 48px; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .img-placeholder { font-size: 14px; }
.person { display: flex; align-items: center; gap: 10px; }

.empty { padding: 56px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.panel .empty { border: none; }
.empty-page { margin-top: 40px; }
.empty-title { font-size: 16px; font-weight: 700; }
.empty-text { margin: 4px auto 18px; max-width: 44ch; color: var(--muted); }
.empty-text:last-child { margin-bottom: 0; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  font: inherit;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23637083' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.alert { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--r); background: var(--red-soft); color: var(--red); font-weight: 600; }

.dialog {
  width: min(500px, calc(100% - 32px));
  padding: 0;
  border: none;
  border-radius: 18px;
  color: var(--text);
  box-shadow: 0 24px 64px rgba(24, 33, 47, 0.28);
}
.dialog-wide { width: min(720px, calc(100% - 32px)); }
.dialog form { padding: 24px; }
.dialog h2 { margin-bottom: 20px; font-size: 19px; font-weight: 800; }
.dialog::backdrop { background: rgba(24, 33, 47, 0.5); }
.dialog[open] { animation: muncul 0.18s ease-out; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
@keyframes muncul {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
}

.form-split { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
.image-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; background: var(--surface); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form .logo { margin-bottom: 40px; }
.auth-form h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; }
.auth-sub { margin: 6px 0 24px; color: var(--muted); }
.auth-footer { margin-top: 18px; text-align: center; color: var(--muted); }

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 48px;
  background: var(--brand);
  overflow: hidden;
}
.auth-stack { position: relative; width: 400px; height: 480px; }
.auth-card {
  position: absolute;
  width: 210px;
  padding: 10px 10px 30px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.auth-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.auth-card .price-tag { left: 18px; bottom: 14px; }
.auth-card .price-tag::before { background: #fff; }
.auth-card-1 { left: 0; top: 40px; transform: rotate(-8deg); }
.auth-card-2 { right: 0; top: 0; transform: rotate(6deg); }
.auth-card-3 { left: 140px; bottom: 0; transform: rotate(-2deg); }
.auth-caption { max-width: 32ch; color: rgba(255, 255, 255, 0.85); font-size: 16px; font-weight: 500; text-align: center; }

.admin { display: flex; min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 248px;
  height: 100vh;
  flex-shrink: 0;
  padding: 22px 14px 16px;
  background: var(--ink);
  color: #fff;
}
.sidebar .logo { color: #fff; padding: 0 10px; }
.sidebar-label { margin: 24px 10px 8px; color: rgba(255, 255, 255, 0.45); font-size: 12px; font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}
.nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; }
.nav a.active { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 600; }
.nav a.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sticker);
}
.nav-sep { height: 1px; margin: 10px; background: rgba(255, 255, 255, 0.1); }
.sidebar-account { display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sidebar-account-info { flex: 1; min-width: 0; }
.sidebar-account-name { overflow: hidden; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-account-sub { color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.sidebar-logout { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: rgba(255, 255, 255, 0.6); }
.sidebar-logout:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.admin-content { flex: 1; min-width: 0; max-width: 1180px; padding: 32px 40px 64px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.page-header h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; }
.page-sub { margin-top: 2px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.bars { margin: 0; padding: 16px 20px 20px; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--bg); }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }

@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .detail-media { max-width: 560px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .topbar-inner { flex-wrap: wrap; height: auto; gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .topnav-link span { display: none; }
  .topnav-link { padding: 0 10px; }
  .page { padding-top: 20px; }
  .grid-produk { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .price-tag { font-size: 13px; padding: 4px 10px 4px 19px; left: 8px; }
  .price-tag::before { left: 7px; width: 6px; height: 6px; margin-top: -3px; }
  .price-tag-lg { font-size: 22px; padding: 7px 16px 7px 28px; left: 0; }
  .card-title { font-size: 14px; }
  .facts { gap: 20px; }
  .order { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .order-thumb { width: 64px; height: 64px; }
  .order-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
  .order-total { margin-right: auto; }
  .form-split { grid-template-columns: 1fr; }
  .image-preview { max-width: 160px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; }

  .admin { flex-direction: column; }
  .sidebar { position: static; width: 100%; height: auto; padding: 14px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
  .sidebar .logo { padding: 0; flex: 1; }
  .sidebar-label { display: none; }
  .nav { order: 3; flex-basis: 100%; flex-direction: row; overflow-x: auto; }
  .nav a { white-space: nowrap; }
  .nav a.active::before { display: none; }
  .nav-sep { display: none; }
  .sidebar-account { padding: 0; border: none; }
  .sidebar-account-info { display: none; }
  .admin-content { padding: 20px 16px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
