:root {
  --paper: #f4f1ea;
  --card: #fdfbf6;
  --card2: #efe9dc;
  --ink: #141414;
  --muted: #7a756a;
  --line: #141414;
  --gold: #b98a2f;
  --gold-soft: #e8c97a;
  --emerald: #0f6b4f;
  --emerald-soft: #bfe0d0;
  --navy: #1f3a5f;
  --red: #d63c3c;
  --amber: #d97706;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  background:
    radial-gradient(900px 420px at 50% -60px, #e6dfcc 0%, var(--paper) 70%);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 16px 36px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.order-page .container {
  max-width: 480px;
}

.app-header { padding: 6px 0 4px; }

.header-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  box-shadow: 4px 4px 0px #000000;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-card .header-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 2px 2px 0px #000000;
  flex-shrink: 0;
  overflow: hidden;
}
.header-card .header-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.header-card .header-text h1 {
  font-size: 18px; font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.header-card .header-text p {
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 600px) {
  .header-card { gap: 10px; padding: 12px 14px; }
  .header-card .header-icon { width: 38px; height: 38px; }
  .header-card .header-text h1 { font-size: 15px; }
  .header-card .header-text p { font-size: 11px; }
}

.brand-logo {
  width: 56px; height: 56px;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  background: var(--card);
  display: block;
  flex-shrink: 0;
}

.app-header .brand {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  text-align: left;
}
.app-header .brand .brand-logo {
  width: 58px; height: 58px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--card);
}
.app-header h1 {
  font-size: 20px; font-weight: 900;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  line-height: 1.2;
}
.app-header p { color: var(--muted); font-size: 13px; margin-top: 3px; font-weight: 600; }
.app-header .center { text-align: center; }

@media (max-width: 600px) {
  .app-header .brand { gap: 10px; }
  .app-header .brand .brand-logo { width: 44px; height: 44px; border-radius: 12px; }
  .app-header .brand > div { margin-left: 4px; }
  .app-header h1 { font-size: 16px; letter-spacing: -0.2px; }
  .app-header p { font-size: 11px; margin-top: 2px; }
}

.card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 0;
  box-shadow: var(--shadow);
}

body.order-page .card {
  border: 2px solid #000000;
  border-radius: 16px;
  box-shadow: 4px 4px 0px #000000;
  padding: 18px;
  margin-top: 0;
}

body.order-page .card.access-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  box-shadow: 4px 4px 0px #000000;
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
body.order-page .card.access-card .access-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft);
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 2px 2px 0px #000000;
  color: var(--gold);
}
body.order-page .card.access-card h2 {
  font-size: 15px; font-weight: 800;
  justify-content: center;
}
body.order-page .card.access-card p {
  font-size: 13px; color: var(--muted);
  line-height: 1.5;
}

body.order-page .card.announcement-card {
  background: var(--emerald-soft);
  border: 2px solid #000000;
  border-radius: 16px;
  box-shadow: 4px 4px 0px #000000;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
body.order-page .card.announcement-card .ann-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 2px solid #000000;
  border-radius: 10px;
  box-shadow: 2px 2px 0px #000000;
  flex-shrink: 0;
  color: var(--emerald);
}
body.order-page .card.announcement-card p {
  font-size: 13px; font-weight: 600;
  color: var(--emerald);
  line-height: 1.4;
}

.card h2 {
  font-size: 15px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  font-weight: 800;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  border: 2px solid var(--ink);
}
.badge.active { background: var(--emerald-soft); color: var(--emerald); }
.badge.inactive { background: #f3c6c6; color: var(--red); }
.badge.amber { background: var(--gold-soft); color: #7a5208; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.order-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card2);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 14px;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.order-item:active { transform: translate(3px, 3px); box-shadow: none; }
.order-item .name { font-weight: 800; font-size: 14px; }
.order-item .meta { color: var(--muted); font-size: 12px; margin-top: 3px; font-weight: 600; display:flex; align-items:center; gap:4px; }
.order-item .arrow { color: var(--gold); }
.order-item .oi-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 10px;
  color: var(--emerald);
}
.order-item .oi-body { flex: 1; min-width: 0; }

.note-box {
  background: var(--card2);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 500;
}

.order-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.order-title h2 { margin-bottom: 0; flex: 1; word-break: break-word; }

.content-box {
  background: var(--card2);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  font-weight: 500;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  font-size: 15px; font-weight: 800;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .1s ease, box-shadow .1s ease;
  text-decoration: none;
}
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn.outline { background: var(--card); color: var(--ink); font-weight: 700; }
.btn.danger { background: var(--red); }
.btn.gold { background: var(--gold); color: #fff; }
.btn.green { background: var(--emerald); color: #fff; }
.btn.ghost { background: transparent; border-style: dashed; color: var(--ink); font-weight: 700; }
.btn.big { padding: 16px; font-size: 16px; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row .btn { width: 100%; }
@media (max-width: 400px) { .btn-row { flex-direction: column; } }
.mt { margin-top: 18px; }

.toolbar { display: flex; gap: 8px; margin-top: 18px; }
.toolbar .btn { flex: 1; }

.field { margin-top: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink); margin-bottom: 6px; font-weight: 800; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 3px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  font-weight: 500;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  box-shadow: var(--shadow-sm);
}
.field textarea { min-height: 140px; }
.field .row { display: flex; gap: 8px; }
.field .row > * { flex: 1; }

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  padding-right: 16px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 3px solid var(--ink);
  color: var(--ink); font-weight: 800; font-size: 13px;
  cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.tab.active { background: var(--gold); color: #fff; }
.tab:active { transform: translate(3px, 3px); box-shadow: none; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.stat {
  background: var(--card2);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  writing-mode: horizontal-tb;
}
.stat .num { font-size: 26px; font-weight: 900; line-height: 1.1; }
.stat .lbl { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 700; line-height: 1.2; }
.stat.green .num { color: var(--emerald); }
.stat.red .num { color: var(--red); }
.stat.blue .num { color: var(--navy); }
.stat.amber .num { color: var(--amber); }
.stat.full { grid-column: 1 / -1; }

.admin-item {
  background: var(--card2);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}
.admin-item .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-item .name { font-weight: 800; font-size: 14px; word-break: break-word; }
.admin-item .meta { color: var(--muted); font-size: 12px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; font-weight: 600; }
.admin-item .meta .link { color: var(--navy); text-decoration: none; font-weight: 800; }
.admin-item .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.admin-item .actions .btn { padding: 10px; font-size: 12px; }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 20, 20, .55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 50;
}
.modal {
  position: relative;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 640px;
  padding: 20px 16px 24px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 -6px 0 var(--gold);
}
.modal h3 { font-size: 17px; margin-bottom: 4px; font-weight: 900; }
.modal .sub { color: var(--muted); font-size: 13px; margin-bottom: 12px; font-weight: 600; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.close-x {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; color: var(--muted);
  font-size: 22px; cursor: pointer;
}

.hidden { display: none !important; }

.card-clean {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin-top: 0;
}

.card-minimal {
  border: none;
  box-shadow: none;
}

/* ── Splash (animasi masuk logo) ── */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: var(--paper);
}
.splash-logo-wrap { position: relative; }
.splash-logo {
  width: 110px; height: 110px;
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 14px 44px rgba(0,0,0,.28);
  overflow: hidden;
  background: var(--card);
  animation: splashIn .75s cubic-bezier(.16,1,.3,1) forwards;
}
.splash-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.splash-ring {
  position: absolute; inset: -16px;
  border: 3px solid var(--gold);
  border-radius: 40px;
  opacity: 0;
  animation: splashRing 1s .12s ease-out forwards;
  pointer-events: none;
}
.splash-text {
  margin: 0; font-weight: 800; letter-spacing: .5px; color: var(--muted);
  opacity: 0;
  animation: splashFade .7s .25s ease forwards;
}
.splash.leaving { animation: splashOut .45s ease forwards; }
@keyframes splashIn {
  0%   { transform: scale(.35) translateY(46px); opacity: 0; }
  62%  { transform: scale(1.09) translateY(0); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes splashRing {
  0%   { transform: scale(.7); opacity: 0; }
  100% { transform: scale(1.06); opacity: .35; }
}
@keyframes splashFade { to { opacity: 1; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 380px; text-align: center; }
.auth-card .login-logo { margin: 0 auto 16px; }
.auth-head {
  font-size: 18px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-sub {
  color: var(--muted); font-size: 13px; font-weight: 600;
  margin-top: 3px;
}
.auth-divider {
  height: 3px; margin: 16px 0 4px;
  background: var(--ink);
  border-radius: 3px;
}
.auth-line {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; color: var(--gold);
  letter-spacing: .6px; text-transform: uppercase;
  margin-bottom: 4px;
}

.error-box {
  background: #f3c6c6;
  border: 3px solid var(--ink);
  color: #8c1d1d;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-top: 14px;
  font-weight: 700;
}

.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--card);
  border: 3px solid var(--ink);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: all .25s ease;
  box-shadow: 6px 6px 0 var(--ink);
  z-index: 100;
  max-width: 90vw;
  text-align: center;
  font-weight: 700;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--emerald-soft); }
.toast.err { background: #f3c6c6; }

/* Notifikasi baru: kanan-atas, geser kanan -> kiri */
.toast-stack {
  position: fixed; top: 16px; right: 16px;
  z-index: 250;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  align-items: stretch;
}
.ntf {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transform: translateX(120%);
  animation: ntfIn .35s cubic-bezier(.2, .8, .3, 1) forwards;
  background: var(--ink);
}
.ntf.ok { background: #16a34a; }
.ntf.err { background: #dc2626; }
.ntf.info { background: var(--navy); }
.ntf svg { flex-shrink: 0; color: #fff; }
.ntf span { word-break: break-word; }
.ntf.out { animation: ntfOut .3s ease forwards; }
@keyframes ntfIn { to { transform: translateX(0); } }
@keyframes ntfOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* Popup konfirmasi custom (bukan dialog browser) */
.confirm-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 20, 20, .55);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
}
.confirm {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 18px;
  width: 100%;
  max-width: 380px;
}
.confirm-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 900;
}
.confirm-head .ic { color: var(--red); }
.confirm-msg { color: var(--muted); font-size: 14px; margin-top: 10px; font-weight: 600; line-height: 1.6; }
.confirm-actions { display: flex; gap: 10px; margin-top: 20px; }
.confirm-actions .btn { flex: 1; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 12px;
  font-size: 14px;
  font-weight: 600;
}
.empty .big { font-size: 34px; margin-bottom: 8px; }

.login-msg { text-align: right; margin-top: 18px; }
.login-msg a { color: var(--navy); font-size: 13px; text-decoration: none; font-weight: 800; }
.login-msg a:hover { text-decoration: underline; }

/* v2 - hero, tabel, footer, ikon */
.ic { display: inline-block; vertical-align: -3px; flex-shrink: 0; }

.hero {
  margin-top: 18px;
  background: var(--emerald);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.08);
  border: 3px solid rgba(255,255,255,.18);
  border-radius: 22px;
  transform: rotate(12deg);
}
.hero h3 {
  font-size: 17px; font-weight: 900;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.hero p { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.92); line-height: 1.6; }
.hero .badge { margin-top: 12px; border-color: #fff; background: rgba(255,255,255,.15); color: #fff; }

.hero.gold { background: var(--navy); }
.hero.gold h3 { color: var(--gold-soft); }

.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--ink);
}
.card h2 .icon-chip { margin-right: 2px; }

.card-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.card-head h2 { margin-bottom: 0; }
.card-head .badge { margin-left: auto; }

/* Tabel info pesanan */
.table-wrap { overflow-x: auto; margin-top: 6px; }
.info-table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
}
.info-table th {
  background: var(--gold);
  color: #fff;
  font-weight: 900;
  text-align: left;
  padding: 11px 12px;
  border-bottom: 3px solid var(--ink);
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: 12px;
}
.info-table td {
  padding: 11px 12px;
  border: 2px solid var(--ink);
  vertical-align: top;
  font-weight: 500;
  word-break: break-word;
}
.info-table td:first-child {
  font-weight: 800;
  white-space: nowrap;
  min-width: 110px;
}
.info-table tbody tr:nth-child(odd) td { background: var(--card); }
.info-table tbody tr:nth-child(even) td { background: var(--card2); }
.info-table td .val { font-weight: 800; }
.info-table td a { color: var(--navy); font-weight: 800; }

/* Ikon list
list pada tombol kecil */
.btn .ic { margin-right: 2px; }

/* Footer */
.site-footer {
  margin-top: 0;
  text-align: center;
  background: var(--ink);
  color: #f1ede2;
  border: 2px solid #000000;
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 4px 4px 0px #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.site-footer .f-logo {
  width: 40px; height: 40px;
  border: 2px solid #fff;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 4px;
}
.site-footer .f-name { font-size: 14px; font-weight: 900; letter-spacing: .3px; text-transform: uppercase; }
.site-footer .f-text { font-size: 12px; color: #b9b3a3; margin-top: 2px; font-weight: 500; }
.site-footer .f-copy { font-size: 11px; color: #8d8676; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 8px; width: 100%; }

.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 900;
  letter-spacing: .8px; text-transform: uppercase;
  color: var(--gold);
}
.section-label .ic { margin-right: 2px; }
.section-label.warn-label {
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.section-label.warn-label .ic { color: var(--red); }

/* link ke dalam konten otomatis berinteraksi */
.content-box a { color: var(--navy); font-weight: 800; }

/* Teks dibatasi dulu — tampil sebagian, expand saat diminta */
.content-box.clamp {
  max-height: 250px;
  overflow: hidden;
  position: relative;
}
.content-box.clamp::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--card2));
  pointer-events: none;
}
.read-more {
  margin-top: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center; justify-content: center; gap: 6px;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-size: 14px; font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.read-more:active { transform: translate(2px, 2px); box-shadow: none; }

/* Banner info untuk pembeli */
.tip-note {
  background: var(--gold-soft);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px;
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.tip-note .ic { margin-top: 2px; color: #7a5208; }
.tip-note strong { display: block; font-size: 13px; font-weight: 900; }
.tip-note .tip-thanks { display: block; font-size: 12px; font-weight: 700; color: #6b4a0c; margin-top: 3px; }

/* Catatan kategori (peraturan/pengumuman di halaman pesanan) */
.cat-note {
  background: var(--gold-soft);
  border: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 500;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.cat-note-row {
  margin-top: 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cat-note-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--card2);
  border-bottom: 2px solid var(--ink);
  flex-wrap: wrap;
}
.cat-note-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.cat-note-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cat-note-row .trow-k {
  flex: 1;
  min-width: 140px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  border: 3px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
}
.cat-note-row .trow-k:focus { outline: none; box-shadow: var(--shadow-sm); }
.cat-note-row .trow-del {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 8px;
  align-self: auto;
}
.cat-note-body { padding: 12px; }
.cat-note-body .cat-note-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 6px;
}
.cat-note-body textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  border: 3px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
  resize: vertical;
}
.cat-note-body textarea:focus { outline: none; box-shadow: var(--shadow-sm); }

/* Instruksi setelah copy (bagian bawah halaman pesanan) */
.after-copy {
  margin-top: 14px;
  background: var(--card2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  text-align: center;
}
.after-copy .after-copy-head {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--navy);
  margin-bottom: 6px;
}
.after-copy p { margin: 0 0 6px; line-height: 1.6; }
.after-copy p:last-child { margin-bottom: 0; }
.after-copy .thanks { font-weight: 800; color: var(--navy); }
.after-copy .after-copy-text { margin-top: 4px; }
.after-copy .after-copy-text.cat {
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 600;
  line-height: 1.6;
}

/* Countdown masa aktif pesanan */
.expiry-box {
  background: var(--gold-soft);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.expiry-box .expiry-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 900; color: #6b4a0c;
}
.expiry-box .expiry-count { font-size: 18px; font-weight: 900; color: #7a5208; margin-top: 4px; }
.expiry-progress { height: 8px; background: #d4b96a; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.expiry-progress-bar { height: 100%; background: var(--gold); border-radius: 4px; transition: width 1s linear; }
.expiry-box.danger .expiry-progress { background: #e8a0a0; }
.expiry-box.danger .expiry-progress-bar { background: var(--red); }
.expiry-box.danger { background: #f3c6c6; }
.expiry-box.danger .expiry-title, .expiry-box.danger .expiry-count { color: var(--red); }

/* Editor tabel admin */
.trow { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; }
.trow input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  border: 3px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
}
.trow input:focus { outline: none; box-shadow: var(--shadow-sm); }
.trow-del {
  width: 42px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f3c6c6; color: var(--red);
  border: 3px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}
.trow-del:active { transform: translate(2px, 2px); box-shadow: none; }
.tmpl-select-wrap {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 4px;
}
.tmpl-select-wrap select {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 3px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tmpl-select-wrap select:focus { outline: none; box-shadow: var(--shadow-sm); }
.tmpl-select-wrap .btn { width: auto; flex: none; padding: 10px 16px; font-size: 13px; }
.tmpl-clear-btn { font-size: 12px; color: var(--muted); cursor: pointer; text-decoration: underline; font-weight: 700; white-space: nowrap; }

/* Logo pesanan */
.mini-logo {
  width: 26px; height: 26px; object-fit: cover;
  border-radius: 6px; vertical-align: middle; margin-right: 6px;
  border: 2px solid var(--ink);
}
.logo-preview { margin-top: 8px; }
.logo-preview img {
  max-width: 100%; max-height: 220px;
  border-radius: 10px; border: 3px solid var(--ink);
  background: #fff; object-fit: contain;
}
.logo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.logo-actions .hidden { display: none !important; }
.logo-public { display: flex; flex-direction: column; }
.logo-public-img {
  width: 100%;
  border-radius: 10px;
  border: 3px solid var(--ink);
  background: #fff;
  object-fit: contain;
}

/* Admin logo design */
.admin-logo-wrap { margin-top: 10px; }
.admin-logo-box {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: #fff;
  cursor: pointer;
}
.admin-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.admin-logo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .15s;
}
.admin-logo-box:hover .admin-logo-overlay { opacity: 1; }
.admin-logo-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-logo-btns { display: flex; flex-wrap: wrap; gap: 8px; }

@media (min-width: 600px) {
  .modal { border-radius: 16px; margin: 0 auto; }
  .modal-backdrop { align-items: center; }
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --paper: #1a1a2e;
  --card: #16213e;
  --card2: #0f3460;
  --ink: #e8e8e8;
  --muted: #8892a4;
  --line: #e8e8e8;
  --gold: #e8c97a;
  --gold-soft: #3d3215;
  --emerald: #4ade80;
  --emerald-soft: #1a3a2a;
  --navy: #60a5fa;
  --red: #f87171;
  --shadow: 5px 5px 0 #0a0a14;
  --shadow-sm: 3px 3px 0 #0a0a14;
  background: radial-gradient(900px 420px at 50% -60px, #1e2746 0%, var(--paper) 70%);
}

[data-theme="dark"] .btn.outline { background: var(--card); color: var(--ink); }
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--muted);
}
[data-theme="dark"] .trow input { background: var(--paper); color: var(--ink); }
[data-theme="dark"] .tab { background: var(--card); color: var(--ink); }
[data-theme="dark"] .ntf.info { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

/* ── Skeleton Loading ── */
.skeleton-item {
  background: var(--card2);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}
.skeleton-line {
  height: 14px;
  background: var(--muted);
  border-radius: 4px;
  margin-top: 8px;
  opacity: 0.3;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-90 { width: 90%; }
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ── Badge counter ── */
.badge.amber { background: var(--gold-soft); color: #7a5208; }

/* ── Status toggle button ── */
.btn.green .dot, .btn[onclick*="toggleStatus"].green .dot { background: currentColor; }
.btn[onclick*="toggleStatus"].outline .dot { background: var(--muted); }

/* ── kbd style for shortcuts ── */
kbd {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-family: monospace;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--card2);
  color: var(--ink);
}

/* ── Data Table (admin) ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  font-size: 13px;
  overflow: hidden;
}
.data-table th {
  background: var(--gold);
  color: #fff;
  font-weight: 900;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 3px solid var(--ink);
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: 11px;
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  border: 2px solid var(--ink);
  vertical-align: middle;
  font-weight: 500;
  word-break: break-word;
}
.data-table tbody tr:nth-child(odd) td { background: var(--card); }
.data-table tbody tr:nth-child(even) td { background: var(--card2); }
.data-table tbody tr:hover td { background: var(--gold-soft); }
.data-table .btn { padding: 6px 10px; font-size: 11px; width: auto; white-space: nowrap; }
.data-table .preview-text {
  font-size: 12px;
  color: var(--muted);
  max-height: 40px;
  overflow: hidden;
  line-height: 1.4;
}
.data-table .actions-cell { display: flex; gap: 4px; flex-wrap: wrap; }

/* ── Health check card ── */
.health-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}
.health-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--card2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 13px;
}
.health-item .health-icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  font-weight: 900;
  font-size: 14px;
}
.health-item .health-icon.ok { background: var(--emerald-soft); color: var(--emerald); }
.health-item .health-icon.error { background: #f3c6c6; color: var(--red); }
.health-item .health-icon.warn { background: var(--gold-soft); color: var(--amber); }
.health-item .health-label { font-weight: 800; min-width: 90px; }
.health-item .health-detail { color: var(--muted); font-size: 12px; flex: 1; }
.health-item .health-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid var(--ink);
}
.health-item .health-badge.ok { background: var(--emerald-soft); color: var(--emerald); }
.health-item .health-badge.error { background: #f3c6c6; color: var(--red); }
.health-item .health-badge.warn { background: var(--gold-soft); color: var(--amber); }

[data-theme="dark"] .data-table th { background: var(--gold); color: var(--ink); }
[data-theme="dark"] .data-table td { border-color: var(--muted); }
[data-theme="dark"] .data-table tbody tr:hover td { background: rgba(232,201,122,.12); }

@media (max-width: 600px) {
  body { overflow-x: hidden; }

  .container {
    padding: 12px 10px 32px;
    overflow-x: hidden;
  }

  .card {
    border: 2px solid var(--ink);
    border-radius: 10px;
    padding: 14px 12px;
    margin-top: 14px;
    box-shadow: 3px 3px 0 var(--ink);
    overflow: hidden;
    word-break: break-word;
  }

  .card h2 { font-size: 14px; }
  .card .sub { font-size: 12px; }

  .card-head {
    flex-wrap: wrap;
    gap: 6px;
  }
  .card-head h2 {
    font-size: 13px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .card-head .badge {
    font-size: 10px;
    padding: 3px 8px;
    flex-shrink: 0;
  }

  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .info-table { font-size: 12px; min-width: 400px; }
  .info-table th, .info-table td { padding: 8px 6px; font-size: 12px; }
  .info-table td:first-child { min-width: 90px; white-space: normal; }

  .order-item {
    padding: 10px;
    gap: 8px;
  }
  .order-item .name { font-size: 13px; }
  .order-item .meta { font-size: 11px; }
  .order-item .oi-icon { width: 32px; height: 32px; border-radius: 8px; }

  .btn { padding: 12px; font-size: 14px; }
  .btn-row { gap: 8px; }
  .btn-row .btn { flex: 1; min-width: 0; padding: 10px 8px; font-size: 12px; }

  .field { margin-bottom: 12px; }
  .field label { font-size: 12px; }
  .field input, .field select, .field textarea {
    padding: 10px;
    font-size: 14px;
  }

  .data-table { font-size: 11px; }
  .data-table th, .data-table td { padding: 6px 4px; font-size: 11px; }
  .data-table .actions-cell .btn { padding: 4px 6px; font-size: 10px; }
  .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat {
    border: 2px solid var(--ink);
    box-shadow: none;
    border-radius: 12px;
    padding: 14px 10px;
    min-height: 70px;
  }
  .stat .num { font-size: 22px; }
  .stat .lbl { font-size: 10px; }
  .stat .lbl { font-size: 11px; }
  .stat:last-child { grid-column: 1 / -1; }

  .modal-body {
    padding: 14px;
    max-height: 85vh;
  }

  .content-box {
    padding: 10px;
    font-size: 13px;
  }

  .note-box {
    padding: 10px;
    font-size: 12px;
  }

  body.order-page .container {
    padding: 12px 10px 28px;
    gap: 12px;
  }
  body.order-page .header-card {
    padding: 12px 14px;
    gap: 10px;
    border-radius: 14px;
    box-shadow: 3px 3px 0px #000000;
  }
  body.order-page .header-card .header-icon { width: 36px; height: 36px; border-radius: 10px; }
  body.order-page .header-card .header-text h1 { font-size: 14px; }
  body.order-page .header-card .header-text p { font-size: 11px; }
  body.order-page .card {
    border-radius: 14px;
    box-shadow: 3px 3px 0px #000000;
    padding: 14px 12px;
  }
  body.order-page .card.access-card { padding: 18px 14px; border-radius: 14px; }
  body.order-page .card.announcement-card { padding: 12px 14px; border-radius: 14px; }
  body.order-page .site-footer {
    border-radius: 14px;
    box-shadow: 3px 3px 0px #000000;
    padding: 16px 14px;
  }
}

/* Sembunyikan chat FAB saat modal/confirm terbuka */
.modal-backdrop:not(.hidden) ~ .chat-fab,
.confirm-backdrop:not(.hidden) ~ .chat-fab {
  visibility: hidden;
  pointer-events: none;
}

/* ── Chatbot VexronPay AI ── */
.chat-fab {
  position: fixed;
  bottom: 60px;
  right: 40px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--emerald);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.chat-fab:active { transform: translate(3px, 3px); box-shadow: none; }
.chat-fab .ic { color: #fff; }
.chat-fab-label { white-space: nowrap; }

.chat-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 400;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 80px);
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--emerald);
  color: #fff;
  border-bottom: 3px solid var(--ink);
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.2);
  border: 2px solid #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  overflow: hidden;
  flex-shrink: 0;
}
.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-name { font-weight: 900; font-size: 14px; }
.chat-status { font-size: 11px; opacity: .85; }
.chat-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}
.chat-close:active { transform: scale(.9); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
}

.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-msg.bot .chat-bubble {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px 14px 14px 4px;
  color: var(--ink);
  line-height: 1.6;
}
.chat-msg.user .chat-bubble {
  background: var(--navy);
  border: 2px solid var(--ink);
  border-radius: 14px 14px 4px 14px;
  color: #fff;
}
.chat-bubble strong { font-weight: 900; }
.chat-bubble br + br { content: ''; display: block; margin-top: 6px; }

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}
.chat-typing span {
  width: 8px; height: 8px;
  background: var(--muted);
  border-radius: 50%;
  animation: chatBounce 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chat-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 3px solid var(--ink);
  background: var(--card);
}
.chat-input-wrap input {
  flex: 1;
  padding: 10px 14px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
}
.chat-input-wrap input:focus { outline: none; box-shadow: var(--shadow-sm); }
.chat-send {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--emerald);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send:active { transform: translate(2px, 2px); }

[data-theme="dark"] .chat-input-wrap input { background: var(--paper); color: var(--ink); }
[data-theme="dark"] .chat-msg.bot .chat-bubble { background: var(--card2); }

@media (max-width: 500px) {
  .chat-fab {
    bottom: 80px;
    right: 16px;
  }
  .chat-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
}

/* ── Export PDF / print ── */
#printArea { display: none; }

@media print {
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  .pdf-wrap {
    max-width: 100%;
    padding: 8mm;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
  }
  .pdf-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 3px solid #1c3b6b;
    padding-bottom: 10px;
    margin-bottom: 14px;
  }
  .pdf-head h1 { font-size: 22px; margin: 0; color: #1c3b6b; }
  .pdf-head p { margin: 3px 0 0; color: #555; font-size: 12px; }
  .pdf-meta { font-size: 11px; color: #555; text-align: right; }
  .pdf-stats { display: flex; gap: 10px; margin-bottom: 16px; }
  .pdf-stats div {
    flex: 1;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
  }
  .pdf-stats b { display: block; font-size: 20px; color: #1c3b6b; }
  .pdf-stats span { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: 0.4px; }
  .pdf-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .pdf-table th {
    background: #1c3b6b;
    color: #fff;
    text-align: left;
    padding: 6px 8px;
    font-weight: 700;
  }
  .pdf-table td { border: 1px solid #d4d4d4; padding: 5px 8px; }
  .pdf-table tr:nth-child(even) td { background: #f4f6fa; }
  .tl { text-align: left !important; }
  .mono { font-family: Consolas, "Courier New", monospace; font-size: 10px; }
  .pdf-foot { margin-top: 16px; font-size: 10px; color: #999; text-align: center; }
}

/* ========== Notifications ========== */
.notif-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 900;
  min-width: 18px; height: 18px;
  border-radius: 99px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
  border: 2px solid var(--card);
  pointer-events: none;
}
.notif-panel {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  width: 360px; max-height: 420px;
  background: var(--card); border: 2px solid var(--ink);
  border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.15);
  z-index: 9999; overflow: hidden;
  display: flex; flex-direction: column;
}
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid rgba(0,0,0,.06);
}
.notif-header strong { font-size: 14px; }
.notif-clear {
  background: none; border: none; color: var(--navy); font-size: 12px;
  cursor: pointer; font-weight: 700; padding: 4px 8px; border-radius: 6px;
}
.notif-clear:hover { background: var(--navy-soft); }
.notif-list {
  overflow-y: auto; flex: 1;
}
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: background .15s;
}
.notif-item:hover { background: var(--navy-soft); }
.notif-item.unread { background: rgba(47,84,150,.06); }
.notif-item.unread:hover { background: rgba(47,84,150,.12); }
.notif-icon {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--navy-soft);
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.notif-msg { font-size: 12px; color: var(--muted); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 4px; }
.notif-del {
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 4px; border-radius: 4px; opacity: 0; transition: opacity .15s;
}
.notif-item:hover .notif-del { opacity: 1; }
.notif-del:hover { color: var(--red); background: rgba(220,53,69,.1); }
.notif-empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 13px; }
@keyframes flashHighlight {
  0%, 100% { background: transparent; }
  30% { background: rgba(255,215,0,.25); }
}
@media (max-width: 600px) {
  .notif-panel { width: calc(100vw - 32px); right: 50%; transform: translateX(50%); }
}

/* ========== Static Page (Halaman Utama) ========== */
.static-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.static-header {
  padding: 20px 16px;
  text-align: center;
}

.static-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.static-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
}

.static-brand-text h1 {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.static-brand-text p {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Announcement */
.static-announce {
  margin: 0 16px 16px;
  background: var(--emerald);
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.static-announce-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.static-announce-body h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.static-announce-body p {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.92;
}

/* Main Content */
.static-main {
  flex: 1;
  padding: 0 16px;
}

.static-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--card);
  border: 2px dashed var(--muted);
  border-radius: 16px;
}

.static-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--card2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.static-empty h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.static-empty p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 360px;
  margin: 0 auto;
}

/* Footer */
.static-footer {
  margin-top: 32px;
  padding: 20px 16px;
  text-align: center;
  background: var(--ink);
  color: #f1ede2;
}

.static-f-logo {
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 8px;
}

.static-f-name {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.static-f-text {
  font-size: 12px;
  color: #b9b3a3;
  margin-top: 4px;
  font-weight: 500;
}

.static-f-copy {
  font-size: 11px;
  color: #8d8676;
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 10px;
}

@media (max-width: 500px) {
  .static-header { padding: 16px 12px; }
  .static-logo { width: 44px; height: 44px; }
  .static-brand-text h1 { font-size: 16px; }
  .static-announce { margin: 0 12px 12px; padding: 14px; }
  .static-main { padding: 0 12px; }
  .static-empty { padding: 36px 16px; }
}

/* ========== bukaOlshop Product Grid ========== */
.bk-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.bk-product-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}

.bk-product-card:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.bk-product-img {
  width: 100%;
  height: 120px;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}

.bk-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-product-noimg {
  color: var(--muted);
  opacity: 0.5;
}

.bk-product-info {
  padding: 10px;
}

.bk-product-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk-product-price {
  font-size: 14px;
  font-weight: 900;
  color: var(--emerald);
  margin-top: 4px;
}

.bk-product-stock {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
}

.bk-product-stock.stock-ok {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.bk-product-stock.stock-low {
  background: var(--gold-soft);
  color: var(--amber);
}

.bk-product-stock.stock-empty {
  background: #f3c6c6;
  color: var(--red);
}

.bk-product-cat {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive: Mobile */
@media (max-width: 480px) {
  .bk-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .bk-product-img {
    height: 100px;
  }
  
  .bk-product-info {
    padding: 8px;
  }
  
  .bk-product-name {
    font-size: 12px;
  }
  
  .bk-product-price {
    font-size: 13px;
  }
}

/* Responsive: Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .bk-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Guide Steps */
.guide-step {
  background: var(--card2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px;
}

.guide-step h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.guide-step p {
  font-size: 13px;
  margin: 4px 0;
}

.guide-step ul {
  font-size: 13px;
  margin: 4px 0;
}

/* Tab content for bukaOlshop */
#tab-bukaolshop .card {
  margin-top: 18px;
}

#tab-bukaolshop .card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#tab-bukaolshop .card-head h2 {
  margin-bottom: 0;
  flex: 1;
}

/* ========== Product Tour Styles ========== */

/* Overlay - gelap solid, tanpa blur */
.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  pointer-events: none;
}

/* Spotlight - dekorasi border di sekitar target, tanpa box-shadow cutout */
.tour-spotlight {
  position: fixed;
  z-index: 10001;
  pointer-events: none;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  background: transparent;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

/* Glow effect pada spotlight */
.tour-spotlight::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  animation: tourGlowPulse 2s ease-in-out infinite;
}

@keyframes tourGlowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Highlighted element - di atas semua layer */
.tour-highlight-target {
  position: relative;
  z-index: 10003 !important;
}

.tour-tooltip {
  position: fixed;
  width: 340px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 10002;
  overflow: hidden;
  animation: tourSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tourSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tour-tooltip-header {
  position: relative;
  background: var(--card);
  padding: 14px 14px 10px;
  border-bottom: 2px solid var(--ink);
}

.tour-tooltip-illustration {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-tooltip-illustration svg {
  width: 120px;
  height: 60px;
}

.tour-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.tour-close:hover {
  background: var(--red);
  color: #fff;
}

.tour-tooltip-progress {
  height: 3px;
  background: #f0f0f0;
  margin: 0 16px;
  border-radius: 99px;
  overflow: hidden;
}

.tour-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald) 0%, #34d399 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 99px;
}

.tour-tooltip-body {
  padding: 16px;
  background: #fff;
}

.tour-tooltip-body h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.tour-tooltip-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.tour-tooltip-footer {
  padding: 12px 16px;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
}

.tour-step-counter {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--card2);
  border: 2px solid var(--ink);
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

.tour-actions {
  display: flex;
  gap: 8px;
}

.tour-actions .btn {
  width: auto;
  padding: 8px 14px;
  font-size: 12px;
}

/* Mobile responsive tour */
@media (max-width: 480px) {
  .tour-spotlight {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.6);
  }

  .tour-tooltip {
    position: fixed !important;
    width: calc(100vw - 16px) !important;
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: 8px !important;
    max-height: 65vh;
    overflow-y: auto;
    border-radius: 16px;
    animation: tourSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes tourSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }

  .tour-tooltip-header {
    padding: 14px 14px 10px;
    border-radius: 16px 16px 0 0;
  }

  .tour-tooltip-illustration {
    height: 48px;
  }

  .tour-tooltip-illustration svg {
    width: 96px;
    height: 48px;
  }

  .tour-close {
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
  }

  .tour-tooltip-progress {
    margin: 0 14px;
  }

  .tour-tooltip-body {
    padding: 16px;
  }

  .tour-tooltip-body h4 {
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .tour-tooltip-body p {
    font-size: 13px;
    line-height: 1.6;
  }

  .tour-tooltip-footer {
    padding: 12px 16px 14px;
    border-radius: 0 0 16px 16px;
    flex-direction: column;
    gap: 10px;
  }

  .tour-step-counter {
    font-size: 11px;
    padding: 4px 12px;
    order: -1;
  }

  .tour-actions {
    width: 100%;
    justify-content: stretch;
    gap: 10px;
  }

  .tour-actions .btn {
    flex: 1;
    padding: 12px 14px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
}

/* Tablet responsive tour */
@media (min-width: 481px) and (max-width: 768px) {
  .tour-tooltip {
    width: 320px;
  }
}

/* Guide Popup */
.guide-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.guide-overlay.hidden { display: none; }
.guide-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  box-shadow: 4px 4px 0px #000000;
  width: 100%; max-width: 420px;
  max-height: 90vh; overflow-y: auto;
}
.guide-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 14px;
  border-bottom: 2px solid #000000;
}
.guide-header h2 { font-size: 16px; font-weight: 900; flex: 1; margin: 0; }
.guide-close {
  width: 32px; height: 32px;
  border: 2px solid #000000;
  border-radius: 8px;
  background: var(--card);
  font-size: 18px; font-weight: 900;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.guide-close:hover { background: var(--red); color: #fff; }
.guide-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.guide-step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  background: var(--card);
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 2px 2px 0px #000000;
}
.guide-step-num {
  width: 30px; height: 30px;
  background: var(--gold);
  color: #fff;
  border: 2px solid #000000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  flex-shrink: 0;
}
.guide-step-content h3 { font-size: 14px; font-weight: 800; margin: 0 0 4px; }
.guide-step-content p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.guide-btn {
  display: block; width: calc(100% - 32px);
  margin: 4px 16px 16px;
}

/* Admin Header Card */
.admin-header-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 16px;
  box-shadow: 4px 4px 0px #000000;
  padding: 12px 16px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
  gap: 12px;
  margin-bottom: 16px;
  box-sizing: border-box;
}
.admin-header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.admin-header-logo {
  width: 44px; height: 44px;
  object-fit: cover;
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 2px 2px 0px #000000;
  flex-shrink: 0;
}
.admin-header-text {
  min-width: 0;
}
.admin-header-text h1 {
  font-size: 16px; font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}
.admin-header-text p {
  font-size: 11px; font-weight: 600;
  color: var(--muted);
  margin: 2px 0 0;
  white-space: nowrap;
}
.admin-header-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  padding-right: 4px;
}
.admin-header-btn {
  min-width: 38px; height: 38px;
  padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 5px;
  background: var(--card);
  border: 2px solid #000000;
  border-radius: 10px;
  box-shadow: 3px 3px 0px #000000;
  font-size: 12px; font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  white-space: nowrap;
}
.admin-header-btn:hover { background: var(--gold-soft); }
.admin-header-btn svg { flex-shrink: 0; }
@media (max-width: 480px) {
  .admin-header-card { flex-direction: row; flex-wrap: wrap; padding: 10px 12px; }
  .admin-header-left { flex: 1; }
  .admin-header-text h1 { font-size: 14px; }
  .admin-header-text p { font-size: 10px; }
  .admin-header-actions { gap: 8px; padding-right: 0; }
  .admin-header-btn { min-width: 34px; height: 34px; padding: 0 10px; font-size: 11px; box-shadow: 2px 2px 0px #000000; }
}