:root {
  --navy: #0c2f57;
  --navy-2: #163f6e;
  --teal: #12a3b2;
  --teal-dark: #0c7f8b;
  --teal-soft: #e3f5f7;
  --orange: #f26b21;
  --orange-dark: #d4561280;
  --orange-soft: #fff0e6;
  --ink: #102238;
  --muted: #5b6b7d;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --danger: #c62f2f;
  --danger-soft: #fdecec;
  --ok: #1f8a4c;
  --ok-soft: #e7f6ed;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 47, 87, .06), 0 6px 20px rgba(12, 47, 87, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy); }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons & form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700;
  background: var(--navy); color: #fff; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .1s; font-size: 15px;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: #dd5c16; }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #a92424; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal-dark); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.field { margin-bottom: 14px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=search], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); }
textarea { min-height: 84px; resize: vertical; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pw-toggle:hover { color: var(--navy); background: var(--bg-2); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* ---------- Header ---------- */
.announce { background: var(--navy); color: #fff; font-size: 13px; text-align: center; padding: 7px 16px; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 18px; letter-spacing: -.02em; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand span b { color: var(--teal); font-weight: 800; }
.search { flex: 1; max-width: 420px; position: relative; }
.search input { border-radius: 999px; padding-left: 40px; background: var(--bg-2); border-color: transparent; }
.search input:focus { background: #fff; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 600; padding: 8px 12px; border-radius: 999px; font-size: 14px; }
.nav a:hover, .nav a.active { background: var(--bg-2); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; }
.cart-btn .count { background: var(--orange); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }
.cart-btn.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.12); } }
@media (max-width: 860px) {
  .header .wrap { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .brand span { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav a.hide-sm { display: none; }
  .cart-btn .label { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--teal-soft), #fff); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 800; letter-spacing: .14em; font-size: 12.5px; color: var(--teal-dark); margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { font-size: 17px; color: var(--muted); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero .btn { padding: 15px 28px; font-size: 16px; }
.hero-art { justify-self: center; width: min(360px, 80%); }
@media (max-width: 860px) {
  .hero { padding: 32px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 8px 0 8px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.step .num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.step:nth-child(1) .num { background: var(--orange); }
.step b { display: block; color: var(--navy); }
.step span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0; }
.section-alt { background: var(--bg-2); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.chip { flex-shrink: 0; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; font-size: 14px; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--teal); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.card {
  position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: left; padding: 0;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.card:active { transform: scale(.985); }
.card.in-cart { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal) inset; }
.card.soldout { cursor: not-allowed; opacity: .6; }
.card .thumb { aspect-ratio: 4/5; background: var(--bg-2); display: grid; place-items: center; position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .name { font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { padding-top: 4px; }
.card .price { font-weight: 800; color: var(--ink); font-size: 16px; margin-top: auto; }
.card .meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.card .low { color: var(--orange); font-weight: 700; }
.card .tap-hint { position: absolute; left: 10px; bottom: 10px; background: rgba(12,47,87,.88); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; opacity: 0; transition: opacity .15s; }
.card:hover .tap-hint { opacity: 1; }
.card .qty-badge { position: absolute; right: 10px; top: 10px; background: var(--orange); color: #fff; font-weight: 800; min-width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; padding: 0 8px; font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.card .info-btn { position: absolute; left: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.card .info-btn:hover { background: #fff; color: var(--teal-dark); }
.card .stepper { margin-top: 8px; }
.bundle-tag { align-self: flex-start; background: var(--orange-soft); color: #b44d12; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.was { color: var(--muted); font-weight: 500; font-size: 13px; }
.bundle-list { background: var(--bg-2); border-radius: 12px; padding: 10px 14px; margin: 10px 0 14px; font-size: 14px; }
.bundle-list ul { list-style: none; margin: 6px 0 0; padding: 0; }
.bundle-list li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.bundle-list li:first-child { border-top: 0; }
.placeholder { width: 46%; height: 46%; color: var(--teal); }
.placeholder.c2 { color: var(--navy); } .placeholder.c3 { color: var(--orange); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 34px; height: 32px; border: 0; background: transparent; font-size: 18px; font-weight: 700; cursor: pointer; color: var(--navy); }
.stepper button:hover { background: var(--bg-2); }
.stepper input { width: 40px; text-align: center; border: 0; padding: 0; font-weight: 700; height: 32px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty svg { margin: 0 auto 12px; color: var(--teal); }

/* ---------- Drawer & modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(12, 30, 52, .45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 61; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-2); cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.icon-btn:hover { background: var(--line); }
.line-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item:last-child { border-bottom: 0; }
.line-item .mini { width: 56px; height: 56px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.line-item .mini img { width: 100%; height: 100%; object-fit: cover; }
.line-item .mini .placeholder { width: 60%; height: 60%; }
.line-item .nm { font-weight: 700; font-size: 14px; color: var(--navy); }
.line-item .pr { font-size: 13px; color: var(--muted); }
.line-item .end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.remove { background: none; border: 0; color: var(--danger); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; }
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; }
.sum-row.total { font-size: 18px; font-weight: 800; color: var(--navy); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 6px; }

.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal .box { background: #fff; border-radius: 18px; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); transform: translateY(10px); opacity: 0;
  /* Saat tertutup kotak tidak boleh menangkap klik/geser; visibility disembunyikan setelah animasi selesai */
  pointer-events: none; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
.modal.open .box { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .2s, transform .2s, visibility 0s; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pd .thumb { aspect-ratio: 4/5; background: var(--bg-2); border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.pd .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .pd { grid-template-columns: 1fr; } }

.toast-wrap { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: toastIn .2s; display: flex; gap: 8px; align-items: center; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Panels / pages ---------- */
.page { padding: 32px 0 56px; min-height: 60vh; }
.page-title { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 6px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 17px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.two-col > aside { position: sticky; top: 88px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .two-col > aside { position: static; } }
.auth-box { max-width: 440px; margin: 0 auto; }
.tabs { display: flex; background: var(--bg-2); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.tabs button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; background: var(--teal-soft); color: var(--navy); margin-bottom: 14px; }
.notice.warn { background: var(--orange-soft); }
.notice.err { background: var(--danger-soft); color: var(--danger); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }

.method { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.method label { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; margin: 0; display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.method label b { display: block; color: var(--navy); }
.method label span { font-size: 12.5px; color: var(--muted); }
.method input { margin-top: 4px; accent-color: var(--teal); }
.method label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }

.order-hero { background: var(--navy); color: #fff; border-radius: 18px; padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.order-hero h2 { color: #fff; margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: .01em; }
.order-hero .lbl { font-size: 12.5px; letter-spacing: .1em; opacity: .75; font-weight: 700; }
.order-hero .amt { font-size: 26px; font-weight: 800; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--bg-2); color: var(--navy); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.s-menunggu_pembayaran { background: var(--orange-soft); color: #b44d12; }
.badge.s-menunggu_verifikasi { background: #fff6d9; color: #8a6400; }
.badge.s-ditolak, .badge.s-dibatalkan { background: var(--danger-soft); color: var(--danger); }
.badge.s-diproses, .badge.s-siap_dikirim, .badge.s-siap_dijemput { background: var(--teal-soft); color: var(--teal-dark); }
.badge.s-dikirim, .badge.s-dijemput { background: #e6eefb; color: #1d4f9c; }
.badge.s-diterima, .badge.s-selesai { background: var(--ok-soft); color: var(--ok); }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.timeline li:last-child::after { background: var(--teal); }
.timeline .t { font-size: 12.5px; color: var(--muted); }
.timeline .n { font-size: 14px; margin-top: 2px; }

.bank { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px; border: 1.5px dashed var(--teal); border-radius: 12px; background: var(--teal-soft); margin-bottom: 10px; }
.bank .no { font-size: 20px; font-weight: 800; letter-spacing: .04em; color: var(--navy); }
.upload { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; cursor: pointer; display: block; transition: border-color .15s; }
.upload:hover { border-color: var(--teal); }
.upload input { display: none; }
.proof-img { border-radius: 12px; border: 1px solid var(--line); max-height: 360px; object-fit: contain; background: var(--bg-2); width: 100%; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--bg-2); }
tr.click { cursor: pointer; }
tr.click:hover td { background: #fafcfd; }

.zone-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.zone-list .panel { padding: 0; overflow: hidden; }
.zone-list .panel + .panel { margin-top: 0; } /* grid: semua kotak sejajar di atas */
.zone-list h4 { margin: 0; padding: 14px 16px; background: var(--navy); color: #fff; font-size: 15px; }
.zone-list ul { list-style: none; margin: 0; padding: 6px 16px 10px; }
.zone-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.zone-list li:last-child { border-bottom: 0; }
.zone-list li b { color: var(--navy); }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--teal); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.footer { background: var(--navy); color: #c9d6e6; padding: 40px 0 24px; font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; font-size: 15px; }
.footer a { color: #fff; }
.footer .tag { color: var(--teal); font-weight: 800; letter-spacing: .12em; font-size: 13px; }
.footer .copy { grid-column: 1/-1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 13px; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr; } }

.order-list .o { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; flex-wrap: wrap; }
.order-list .o:last-child { border-bottom: 0; }
.order-list .o b { color: var(--navy); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin .7s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--bg-2); }
.side { background: var(--navy); color: #fff; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { color: #fff; margin: 0 6px 22px; font-size: 16px; }
.side .brand img { background: #fff; border-radius: 10px; padding: 3px; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #c9d6e6; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.side nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.side nav a.active { background: var(--teal); color: #fff; }
.side nav a .pill { margin-left: auto; background: var(--orange); color: #fff; border-radius: 999px; font-size: 11.5px; padding: 1px 8px; }
.side .who { margin-top: 20px; padding: 12px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #c9d6e6; }
.main { padding: 26px 28px 60px; min-width: 0; }
.main-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.main-head h1 { font-size: 26px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 26px; font-weight: 800; color: var(--navy); margin-top: 4px; letter-spacing: -.02em; }
.stat.alert .v { color: var(--orange); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }
.toolbar .grow { flex: 1; min-width: 220px; }
.thumb-sm { width: 44px; height: 44px; border-radius: 8px; background: var(--bg-2); object-fit: cover; display: grid; place-items: center; overflow: hidden; }
.thumb-sm .placeholder { width: 60%; height: 60%; }
.inline-input { padding: 7px 10px !important; border-radius: 8px !important; }
.switch { position: relative; width: 40px; height: 22px; display: inline-block; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #c8d1db; border-radius: 999px; cursor: pointer; transition: .15s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(18px); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  /* Di atas overlay (60) supaya menu bisa diketuk, di bawah modal (70) */
  .side { position: fixed; z-index: 65; width: 250px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .menu-toggle { display: grid; }
  .side .brand span { display: inline; }
  .main { padding: 18px 16px 60px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 110px 1fr; }
}
