/* ================================================
   JERSEY STORE — Mobile-first, KISS Design System
   Inspired by: Tokopedia / Shopee pro-grade UX
   Font: Outfit (clean, sporty, modern)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand */
  --primary: #1b4fff;
  --primary-dark: #1338cc;
  --primary-light: #e8eeff;
  --accent: #ff4d00;
  --accent-light: #fff0eb;

  /* Neutrals */
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --border: #e4e7f0;
  --border-strong: #c9cedf;

  /* Text */
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --muted-light: #9ca3af;

  /* Status */
  --success: #059669;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;

  /* Sizes */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

  /* Nav height */
  --topbar-h: 58px;
  --bottomnav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

/* ================================================
   TOPBAR — Desktop
   ================================================ */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; max-width: 1180px; margin: 0 auto;
  padding: 0 20px; height: 100%;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; color: var(--primary-dark);
  letter-spacing: -.3px;
}
.brand-badge {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
}

/* Desktop nav — hidden on mobile */
.nav-desktop {
  display: flex; align-items: center; gap: 4px;
}
.nav-desktop a {
  padding: 7px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 600; font-size: 14px;
  transition: all .15s;
}
.nav-desktop a.active,
.nav-desktop a:hover {
  background: var(--primary-light); color: var(--primary);
}
.nav-desktop a.active { font-weight: 700; }

/* Cart badge in topbar */
.topbar-cart {
  position: relative; display: flex; align-items: center;
  gap: 6px; padding: 7px 14px; border-radius: var(--radius);
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 14px;
  transition: background .15s;
}
.topbar-cart:hover { background: var(--primary-dark); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
  display: none;
}
.cart-badge.visible { display: flex; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.logout-btn {
  padding: 7px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 600; font-size: 14px;
}
.logout-btn:hover { color: var(--danger); }

/* ================================================
   BOTTOM NAV — Mobile only
   ================================================ */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--border);
  height: var(--bottomnav-h);
  padding: 0 8px;
}
.bottom-nav-inner {
  display: flex; align-items: center;
  height: 100%; max-width: 480px; margin: 0 auto;
}
.bnav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; padding: 6px 4px;
  color: var(--muted); font-size: 11px; font-weight: 600;
  border-radius: var(--radius-sm);
  transition: color .15s;
  position: relative;
}
.bnav-item.active { color: var(--primary); }
.bnav-item svg { width: 22px; height: 22px; }
.bnav-cart-badge {
  position: absolute; top: 4px; right: calc(50% - 22px);
  background: var(--accent); color: #fff;
  min-width: 16px; height: 16px; border-radius: 99px;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--surface);
  display: none;
}
.bnav-cart-badge.visible { display: flex; }

/* ================================================
   CONTAINER
   ================================================ */
.container {
  max-width: 1180px; margin: 0 auto;
  padding: 20px 20px 100px; /* bottom padding for bottom-nav on mobile */
}

/* ================================================
   CARDS & SURFACES
   ================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-title {
  font-size: 15px; font-weight: 800; color: var(--text);
  margin-bottom: 14px; letter-spacing: -.2px;
}

/* ================================================
   GRID
   ================================================ */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ================================================
   KPI BOXES
   ================================================ */
.kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
}
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 24px; font-weight: 900; margin-top: 4px; color: var(--text); }
.kpi .value.primary { color: var(--primary); }

/* ================================================
   TYPOGRAPHY
   ================================================ */
h1 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 16px; }
h2 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 12px; }
h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 11px 20px;
  border-radius: var(--radius); font-weight: 700;
  font-size: 14px; cursor: pointer; border: none;
  min-height: 44px; transition: all .15s; white-space: nowrap;
  background: var(--primary); color: #fff;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(27,79,255,.3); }
.btn:active { transform: translateY(0); }
.btn-secondary, .btn.secondary { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.btn-secondary:hover, .btn.secondary:hover { background: var(--border); box-shadow: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; box-shadow: 0 4px 12px rgba(220,38,38,.3); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); box-shadow: none; }
.btn-sm { padding: 7px 14px; min-height: 34px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; min-height: 52px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ================================================
   FORMS
   ================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }

input, select, textarea {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 11px 14px;
  background: var(--surface); font: inherit;
  font-size: 14px; color: var(--text);
  min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}

/* Checkbox/radio harus tetap memakai bentuk asli browser.
   Tanpa override ini, rule input global membuat checkbox terlalu besar
   dan pada beberapa browser terlihat seperti tidak bisa diklik. */
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--primary);
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:disabled,
input[type="radio"]:disabled { cursor: not-allowed; opacity: .55; }
.table-wrap th input[type="checkbox"],
.table-wrap td input[type="checkbox"] { width: 15px; height: 15px; min-width: 15px; min-height: 15px; }
.pay-check-cell { text-align: center; width: 42px; }
.bulk-actions-label { font-size: 12px; color: var(--muted); font-weight: 700; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,79,255,.12);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
input:disabled, select:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }

/* Input group with icon */
.input-group { position: relative; }
.input-group input { padding-left: 42px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }

/* ================================================
   ALERT / TOAST
   ================================================ */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.alert-error { background: var(--danger-bg); border-color: #fecaca; color: var(--danger); }
.alert-warning { background: var(--warning-bg); border-color: #fde68a; color: var(--warning); }
.alert-info { background: var(--primary-light); border-color: #bfdbfe; color: var(--primary-dark); }

/* ── Legacy alert compat ── */
.alert.success { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.alert.error { background: var(--danger-bg); border-color: #fecaca; color: var(--danger); }

/* Toast */
.toast-container {
  position: fixed; bottom: calc(var(--bottomnav-h) + 12px); right: 16px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  max-width: 320px;
}
.toast {
  padding: 13px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  background: var(--text); color: #fff;
  box-shadow: var(--shadow-lg);
  animation: toast-in .2s ease-out;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   BADGES
   ================================================ */
.badge {
  display: inline-flex; align-items: center;
  border-radius: 99px; padding: 3px 10px;
  font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--text-2);
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-primary { background: var(--primary-light); color: var(--primary); }
/* Legacy compat */
.badge.success { background: var(--success-bg); color: var(--success); }
.badge.warning { background: var(--warning-bg); color: var(--warning); }
.badge.danger  { background: var(--danger-bg); color: var(--danger); }

/* ================================================
   TABLE
   ================================================ */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; }
th { background: var(--surface-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ================================================
   LOGIN PAGE
   ================================================ */
.login-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1b4fff 0%, #3b82f6 50%, #06b6d4 100%);
  padding: 20px;
}
.login-card {
  width: 100%; max-width: 400px;
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 32px 28px; box-shadow: var(--shadow-lg);
}
.login-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 900; font-size: 20px; color: var(--primary);
  margin-bottom: 24px;
}
.login-logo-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
}

/* ================================================
   USER DASHBOARD
   ================================================ */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  border-radius: var(--radius-xl); padding: 24px 20px;
  color: #fff; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.welcome-banner::before {
  content: '';
  position: absolute; right: -20px; top: -20px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
}
.welcome-banner::after {
  content: '';
  position: absolute; right: 40px; bottom: -30px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.welcome-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.welcome-sub { font-size: 13px; opacity: .8; }
.welcome-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary);
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 800; font-size: 14px; margin-top: 16px;
  transition: all .15s; position: relative; z-index: 1;
}
.welcome-cta:hover { background: var(--primary-light); transform: translateY(-1px); }

/* Profile incomplete banner */
.profile-banner {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-lg); padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 16px;
}
.profile-banner-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--warning); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-banner-text { flex: 1; }
.profile-banner-title { font-weight: 800; font-size: 14px; color: var(--warning); margin-bottom: 3px; }
.profile-banner-desc { font-size: 13px; color: #92400e; }

/* ================================================
   PRODUCT CAMPAIGN CARD
   ================================================ */
.product-campaign-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.product-campaign-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; transition: all .2s;
  position: relative;
}
.product-campaign-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(27,79,255,.15); transform: translateY(-2px); }
.product-campaign-card:active { transform: translateY(0); }
.pcc-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg); }
.pcc-body { padding: 12px; }
.pcc-name { font-weight: 800; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.pcc-price { font-weight: 900; font-size: 16px; color: var(--primary); }
.pcc-badge { position: absolute; top: 8px; left: 8px; }
.pcc-sold { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* ================================================
   ORDER FLOW — Mobile UX
   ================================================ */

/* Step indicator */
.order-progress {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 20px; padding: 16px;
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.op-step {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  position: relative;
}
.op-step:not(:last-child)::after {
  content: '';
  position: absolute; left: calc(50% + 14px); top: 14px;
  right: calc(-50% + 14px);
  height: 2px; background: var(--border);
  z-index: 0;
}
.op-step.done:not(:last-child)::after { background: var(--primary); }
.op-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--border); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; z-index: 1;
  position: relative; transition: all .2s;
}
.op-step.active .op-dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(27,79,255,.2); }
.op-step.done .op-dot { background: var(--success); color: #fff; }
.op-label { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; }
.op-step.active .op-label { color: var(--primary); }
.op-step.done .op-label { color: var(--success); }

/* Product card for order page */
.product-pick-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  cursor: pointer; display: flex; gap: 14px; align-items: center;
  transition: all .2s;
}
.product-pick-card:hover { border-color: var(--primary); background: var(--primary-light); }
.product-pick-card.selected { border-color: var(--primary); background: var(--primary-light); }
.product-pick-img {
  width: 72px; height: 72px; border-radius: var(--radius);
  object-fit: cover; background: var(--bg); flex-shrink: 0;
}
.product-pick-info { flex: 1; }
.product-pick-name { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.product-pick-price { font-weight: 900; color: var(--primary); font-size: 16px; }
.product-pick-check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.product-pick-card.selected .product-pick-check {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* Qty selector */
.qty-selector {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; width: fit-content;
}
.qty-btn {
  width: 40px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--primary);
  background: var(--surface); cursor: pointer;
  transition: background .1s;
  border: none;
}
.qty-btn:hover { background: var(--primary-light); }
.qty-value {
  width: 50px; text-align: center; font-size: 16px; font-weight: 800;
  border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
  background: #fff; min-height: 44px; padding: 0;
}
.qty-value:focus { outline: none; box-shadow: none; border-color: var(--border); }

/* Wearer card */
.wearer-select-list { display: flex; flex-direction: column; gap: 8px; }
.wearer-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  cursor: pointer; display: flex; align-items: center; gap: 12px;
  transition: all .15s;
}
.wearer-card:hover { border-color: var(--primary); }
.wearer-card.selected { border-color: var(--primary); background: var(--primary-light); }
.wearer-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.wearer-info { flex: 1; }
.wearer-name { font-weight: 700; font-size: 14px; }
.wearer-sub { font-size: 12px; color: var(--muted); }

/* Order item form sections */
.form-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 14px;
}
.form-section-title {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.form-section-title::before {
  content: ''; width: 3px; height: 14px;
  background: var(--primary); border-radius: 99px;
}

/* Chip options (size, sleeve, etc.) */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 99px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .15s; color: var(--text-2);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip input { display: none; }

/* Price breakdown */
.price-box {
  background: linear-gradient(135deg, var(--primary-light), #eff6ff);
  border: 1.5px solid #bfdbfe; border-radius: var(--radius-lg);
  padding: 16px; margin-top: 14px;
}
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 14px; }
.price-row:not(:last-child) { border-bottom: 1px solid rgba(27,79,255,.1); }
.price-row.total { font-weight: 900; font-size: 17px; color: var(--primary); padding-top: 10px; }
.price-row .label { color: var(--text-2); }

/* ================================================
   CART DRAWER / PAGE
   ================================================ */
.cart-empty {
  text-align: center; padding: 48px 20px;
  color: var(--muted);
}
.cart-empty-icon {
  width: 72px; height: 72px; border-radius: var(--radius-lg);
  background: var(--surface-2); color: var(--muted-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 32px;
}

.cart-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px;
  display: flex; gap: 12px; position: relative;
}
.cart-item-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.cart-item-details { font-size: 12px; color: var(--muted); line-height: 1.6; }
.cart-item-price { font-weight: 900; font-size: 15px; color: var(--primary); margin-top: 6px; }
.cart-item-remove {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--danger-bg); color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s; font-size: 14px;
}
.cart-item-remove:hover { background: var(--danger); color: #fff; }

.cart-total-bar {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.cart-total-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.cart-total-value { font-size: 22px; font-weight: 900; color: var(--primary); }

/* ================================================
   MY ORDERS PAGE
   ================================================ */
.order-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.order-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.order-code { font-weight: 800; font-size: 15px; }
.order-batch { font-size: 13px; color: var(--muted); margin-top: 2px; }
.order-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
.order-total-lbl { font-size: 13px; color: var(--muted); }
.order-total-val { font-size: 18px; font-weight: 900; color: var(--text); }

/* Detail sheet */
.detail-sheet {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 20px;
  margin-top: 14px; animation: slide-up .25s ease-out;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   BILLING PAGE
   ================================================ */
.billing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.billing-card-head { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.billing-card-body { padding: 14px 16px; }
.billing-amount-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.billing-amount-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.billing-big { font-size: 20px; font-weight: 900; color: var(--primary); }

/* ================================================
   PROFILE PAGE
   ================================================ */
.profile-header {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.profile-avatar {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; flex-shrink: 0;
}
.profile-name { font-size: 18px; font-weight: 800; }
.profile-nik { font-size: 13px; color: var(--muted); margin-top: 2px; }

.family-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.family-avatar {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; flex-shrink: 0;
}

/* ================================================
   BATCH CARD
   ================================================ */
.batch-pick-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  cursor: pointer; transition: all .2s;
}
.batch-pick-card:hover { border-color: var(--primary); }
.batch-pick-card.selected { border-color: var(--primary); background: var(--primary-light); }
.batch-pick-name { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.batch-pick-meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.batch-pick-desc { font-size: 13px; color: var(--text-2); margin-top: 6px; }

/* ================================================
   GUIDED FLOW - Incomplete profile step
   ================================================ */
.guided-step {
  text-align: center; padding: 32px 20px;
}
.guided-step-icon {
  width: 64px; height: 64px; border-radius: var(--radius-lg);
  background: var(--warning-bg); color: var(--warning);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px;
}
.guided-step-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.guided-step-desc { color: var(--muted); font-size: 14px; margin-bottom: 24px; line-height: 1.6; }

/* ================================================
   SECTION HEADERS
   ================================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title { font-size: 16px; font-weight: 800; }
.section-link { font-size: 13px; font-weight: 700; color: var(--primary); }

/* ================================================
   SPINNER
   ================================================ */
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; align-items: center; justify-content: center; padding: 32px; }

/* ================================================
   FOOTER
   ================================================ */
.footer-note {
  font-size: 12px; color: var(--muted-light);
  text-align: center; padding: 20px 0 8px;
}

/* ================================================
   ADMIN — kept minimal, inherit from above
   ================================================ */
.order-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.step-pill { display: inline-flex; align-items: center; border-radius: 99px; background: var(--surface-2); color: var(--muted); padding: 6px 12px; font-size: 12px; font-weight: 700; }
.step-pill.active { background: var(--primary-light); color: var(--primary); }
.batch-card { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: border-color .15s; }
.batch-card:hover, .batch-card.active { border-color: var(--primary); background: var(--primary-light); }
.batch-card b { font-size: 15px; color: var(--primary-dark); }
.batch-card span { font-size: 12px; color: var(--muted); font-weight: 600; }
.product-summary { display: flex; flex-direction: column; gap: 8px; }
.desc-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; line-height: 1.5; font-size: 14px; }
.order-total { font-size: 18px; font-weight: 900; padding: 12px 14px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); margin-top: 10px; }
.asset-grid-inner { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.asset-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.asset-card img { width: 100%; height: 160px; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg); }
.price-preview { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 12px; margin-top: 12px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px 14px; }
.check-grid label { display: flex; align-items: center; gap: 8px; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; }
.check-grid input[type="checkbox"] { width: auto; min-height: 0; }
.billing-list { display: flex; flex-direction: column; gap: 10px; }
.audit-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.audit-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 10px; }
.billing-amount { min-width: 160px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.billing-amount b { font-size: 17px; color: var(--primary-dark); font-weight: 900; }
.billing-amount span { font-size: 12px; color: var(--muted); font-weight: 700; }
.order-history-card { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.order-history-card p { margin: 5px 0; line-height: 1.5; }
.report-table-wrap { max-height: 68vh; }
.report-table-wrap table { font-size: 12px; }
.report-table-wrap th, .report-table-wrap td { padding: 8px 10px; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 760px) {
  :root { --topbar-h: 54px; }

  .container { padding: 14px 14px 80px; }

  h1 { font-size: 20px; }
  h2 { font-size: 16px; }

  /* Hide desktop nav, show bottom nav */
  .nav-desktop { display: none; }
  .bottom-nav { display: block; }

  /* Topbar slim */
  .topbar-inner { padding: 0 14px; }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .product-campaign-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

  /* Order layout stack */
  .order-layout { grid-template-columns: 1fr !important; }

  /* Cart item */
  .cart-item { flex-direction: row; }
  .order-history-card { flex-direction: column; }
  .billing-amount { align-items: flex-start; width: 100%; }
  .billing-card-inner { flex-direction: column; }

  /* Asset grid */
  .asset-grid-inner { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

  /* Btn full on mobile for primary actions */
  .btn-mobile-full { width: 100%; }

  /* Report */
  .report-table-wrap { max-height: 55vh; }

  /* Admin modals */
  #detailModal .card, #editModal .card,
  #manualModal .card, #bulkModal .card { margin-top: 4px; }

  .desktop-only { display: none; }
}

@media print {
  .topbar, .bottom-nav, .footer-note, .actions { display: none !important; }
  body { background: #fff; }
  .container { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .report-table-wrap { max-height: none; overflow: visible; border: 0; }
  th, td { font-size: 9px; padding: 4px 5px; }
}

/* ================================================
   PRODUCT DETAIL — katalog profesional sebelum order
   ================================================ */
.product-detail-wrap { max-width: 980px; margin: 0 auto; }
.product-detail-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
.product-detail-gallery {
  background: var(--bg); padding: 16px; display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start;
}
.product-detail-image {
  display: block; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); padding: 0;
  position: relative; text-align: left; transition: transform .15s, box-shadow .15s;
}
.product-detail-image:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-detail-image.main { grid-column: 1 / -1; }
.product-detail-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-detail-image.main img { aspect-ratio: 16 / 11; }
.product-detail-image span {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  background: rgba(17,24,39,.72); color: #fff; border-radius: 999px;
  padding: 5px 9px; font-size: 12px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-detail-empty {
  min-height: 360px; grid-column: 1 / -1; border-radius: var(--radius-lg);
  background: var(--primary-light); color: var(--primary); display: flex;
  align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  font-size: 56px; font-weight: 900;
}
.product-detail-empty small { font-size: 13px; color: var(--muted); font-weight: 700; }
.product-detail-info { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.product-detail-kicker {
  width: fit-content; padding: 5px 10px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary); font-size: 12px;
  font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
}
.product-detail-title { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.5px; }
.product-detail-price { font-size: 24px; font-weight: 900; color: var(--primary); }
.product-detail-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.product-detail-meta span {
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-2); border-radius: 999px; padding: 5px 9px;
  font-size: 12px; font-weight: 700;
}
.product-detail-section {
  border-top: 1px solid var(--border); padding-top: 14px;
}
.product-detail-desc { white-space: normal; line-height: 1.65; }
.product-chart-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.product-chart-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.product-chart-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.product-chart-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg); }
.product-chart-card span { display: block; margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--text-2); }
.product-detail-actions { margin-top: auto; padding-top: 6px; }
.product-pick-detail {
  flex-shrink: 0; color: var(--primary); background: var(--primary-light);
  padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 900;
}

@media (max-width: 760px) {
  .product-detail-card { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
  .product-detail-gallery { padding: 10px; }
  .product-detail-empty { min-height: 240px; }
  .product-detail-info { padding: 16px; }
  .product-detail-title { font-size: 22px; }
  .product-detail-price { font-size: 20px; }
  .product-detail-actions { flex-direction: column; }
  .product-detail-actions .btn { width: 100%; }
  .product-chart-list { grid-template-columns: 1fr; }
}

/* Patch: product detail click-safety and compact action buttons */
button.product-pick-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}
.product-detail-actions {
  align-items: center;
  gap: 10px;
}
.product-detail-cart-btn,
.product-detail-buy-btn {
  min-height: 44px;
}
.product-detail-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.product-detail-image,
.product-chart-card {
  cursor: pointer;
  font: inherit;
  color: inherit;
}
@media (min-width: 761px) {
  .product-detail-actions .product-detail-cart-btn,
  .product-detail-actions .product-detail-buy-btn {
    flex: 1 1 0;
  }
}

/* Patch: tombol aksi detail produk seperti ecommerce mobile */
.product-detail-back {
  width: max-content;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-weight: 800;
  font-size: 13px;
  padding: 2px 0;
  cursor: pointer;
}
.product-detail-back:hover { color: var(--primary); }
.product-detail-actions {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin-top: 12px !important;
  padding-top: 0 !important;
  flex-direction: unset !important;
}
.product-detail-cart-btn,
.product-detail-buy-btn {
  height: 50px !important;
  min-height: 50px !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.product-detail-cart-btn {
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  color: var(--primary) !important;
  background: var(--surface) !important;
  border: 1.8px solid var(--primary) !important;
}
.product-detail-cart-btn .cart-plus-symbol {
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  margin-top: -2px !important;
}
.product-detail-cart-btn svg {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto !important;
}
.product-detail-buy-btn {
  width: 100% !important;
  border: 1.8px solid var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
}
.product-detail-cart-btn:hover,
.product-detail-buy-btn:hover {
  transform: translateY(-1px);
}
@media (max-width: 760px) {
  .product-detail-actions {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
  .product-detail-actions .product-detail-cart-btn,
  .product-detail-actions .product-detail-buy-btn {
    width: auto !important;
  }
  .product-detail-actions .product-detail-cart-btn {
    width: 68px !important;
  }
}

/* Tripay & branding patch */
.brand-logo{background:transparent!important;box-shadow:none!important;overflow:hidden;}
.brand-logo img{width:34px;height:34px;display:block;border-radius:10px;}
code{background:rgba(15,23,42,.06);padding:2px 6px;border-radius:6px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.92em;}
.alert.success{border-color:rgba(16,185,129,.28);background:rgba(16,185,129,.08);color:#047857;}
.alert.error{border-color:rgba(239,68,68,.28);background:rgba(239,68,68,.08);color:#b91c1c;}

/* MASTER patch */
.btn.small{padding:6px 10px;font-size:12px;border-radius:10px;}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:1000;padding:16px;overflow:auto;}
.modal .modal-content{box-shadow:0 24px 70px rgba(15,23,42,.28);}


/* Patch logo & icon PESAN */
.brand-logo{background:transparent!important;box-shadow:none!important;overflow:visible!important;}
.brand-logo img{width:36px!important;height:36px!important;display:block;border-radius:10px;object-fit:contain;}
.login-brand{display:flex;justify-content:center;margin-bottom:18px;}
.login-brand img{width:min(280px,86vw);height:auto;display:block;}
@media (max-width: 760px){
  .bottom-nav-inner{max-width:560px;}
  .bnav-item{font-size:10px;padding:5px 2px;gap:2px;}
  .bnav-item svg{width:20px;height:20px;}
  .bnav-item div[style*="48px"]{width:42px!important;height:42px!important;margin-top:-16px!important;}
  .bnav-cart-badge{right:calc(50% - 19px);}
}

/* Patch 2026-05-24: Profil dipindah ke topbar, bottom nav user tetap 5 ikon */
.user-topbar-actions{gap:8px;flex-shrink:0;}
.topbar-icon-btn{
  position:relative;
  width:38px;height:38px;
  border-radius:14px;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--muted);
  background:var(--surface-2);
  border:1px solid var(--border);
  transition:all .15s ease;
}
.topbar-icon-btn svg{width:19px;height:19px;display:block;}
.topbar-icon-btn:hover,
.topbar-icon-btn.active{color:var(--primary);background:var(--primary-light);border-color:rgba(27,79,255,.18);}
.topbar-icon-btn.topbar-cart{background:var(--primary);color:#fff;border-color:var(--primary);padding:0;gap:0;}
.topbar-icon-btn.topbar-cart:hover{background:var(--primary-dark);color:#fff;border-color:var(--primary-dark);}
.topbar-icon-btn.topbar-logout:hover{color:var(--danger);background:rgba(239,68,68,.08);border-color:rgba(239,68,68,.18);}

@media (max-width:760px){
  .brand span:last-child{font-size:15px;max-width:42vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .user-topbar-actions{gap:6px;}
  .topbar-icon-btn{width:36px;height:36px;border-radius:13px;}
  .topbar-icon-btn svg{width:18px;height:18px;}
  .bottom-nav-inner{max-width:480px;}
}

/* Patch 2026-05-24: Pilihan channel pembayaran Tripay sebelum checkout */
.tripay-channel-list{display:grid;gap:10px;max-height:52vh;overflow:auto;padding-right:2px;}
.tripay-channel-option{
  width:100%;border:1px solid var(--border);background:var(--surface);border-radius:16px;
  padding:12px;display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer;
  transition:all .16s ease;color:var(--text);
}
.tripay-channel-option:hover{border-color:var(--primary);transform:translateY(-1px);box-shadow:0 10px 28px rgba(15,23,42,.08);}
.tripay-channel-option.active{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.13);background:rgba(37,99,235,.04);}
.tripay-channel-icon{width:44px;height:44px;border-radius:14px;background:var(--surface-2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden;}
.tripay-channel-icon img{width:100%;height:100%;object-fit:contain;padding:6px;}
.tripay-channel-initial{font-weight:900;font-size:13px;color:var(--primary);}
.tripay-channel-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;}
.tripay-channel-main b{font-size:14px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tripay-channel-main small{font-size:12px;color:var(--muted);line-height:1.25;}
.tripay-phone-box .form-control{width:100%;}
@media (max-width:760px){
  .tripay-channel-modal{padding:0!important;}
  .tripay-channel-modal .modal-content{margin:0!important;min-height:100vh;border-radius:0!important;}
  .tripay-channel-list{max-height:58vh;}
  .tripay-channel-option{border-radius:14px;padding:11px;}
  .tripay-channel-icon{width:40px;height:40px;border-radius:12px;}
}

/* Patch 2026-05-24: Adopsi halaman pilih channel Tripay seperti aplikasi resto */
.hidden{display:none!important;}
.tripay-payment-sheet{backdrop-filter:blur(2px);}
.tripay-payment-card{max-width:620px;margin:24px auto;padding:0!important;overflow:hidden;border-radius:22px!important;}
.tripay-payment-head{padding:16px 18px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:flex-start;gap:12px;}
.tripay-payment-title{font-weight:950;font-size:20px;letter-spacing:-.02em;color:var(--text);}
.tripay-payment-total{margin:14px 18px 0;background:var(--surface-2);border:1px solid var(--border);border-radius:16px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px;}
.tripay-payment-total span{font-size:14px;font-weight:800;color:var(--muted);}
.tripay-payment-total b{font-size:22px;font-weight:950;color:var(--primary);white-space:nowrap;}
.tripay-payment-body{padding:16px 18px 18px;}
.tripay-section-label{font-size:13px;font-weight:850;color:var(--text-2);margin-bottom:10px;}
.tripay-group-title{font-size:11px;font-weight:950;color:var(--muted);text-transform:uppercase;letter-spacing:.7px;margin:12px 2px 6px;}
.tripay-group-title:first-child{margin-top:0;}
.tripay-channel-list{display:block;max-height:52vh;overflow:auto;padding-right:2px;}
.tripay-channel-option{position:relative;width:100%;border:1px solid var(--border);background:var(--surface);border-radius:16px;padding:12px;display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer;transition:all .16s ease;color:var(--text);margin-bottom:8px;}
.tripay-channel-option:hover{border-color:var(--primary);transform:translateY(-1px);box-shadow:0 10px 28px rgba(15,23,42,.08);}
.tripay-channel-option.active{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.13);background:rgba(37,99,235,.04);}
.tripay-channel-icon{width:44px;height:44px;border-radius:14px;background:var(--surface-2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden;}
.tripay-channel-icon img{width:100%;height:100%;object-fit:contain;padding:6px;}
.tripay-channel-initial{font-weight:950;font-size:13px;color:var(--primary);}
.tripay-channel-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;}
.tripay-channel-main b{font-size:14px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text);}
.tripay-channel-main small{font-size:12px;color:var(--muted);line-height:1.3;}
.tripay-chevron{font-size:22px;color:var(--muted);line-height:1;}
.tripay-phone-box .form-control{width:100%;}
.tripay-payment-actions{padding:14px 18px;border-top:1px solid var(--border);display:flex;gap:10px;justify-content:flex-end;background:var(--surface);}
.tripay-result-card{background:var(--surface-2);border:1px solid var(--border);border-radius:18px;padding:18px;text-align:center;}
.tripay-result-icon{width:54px;height:54px;border-radius:18px;background:rgba(16,185,129,.12);display:flex;align-items:center;justify-content:center;margin:0 auto 12px;font-size:26px;}
.tripay-result-title{font-weight:950;font-size:17px;color:var(--text);}
.tripay-result-actions{display:grid;gap:10px;margin-top:16px;}
.alert-warning{border-color:rgba(245,158,11,.28)!important;background:rgba(245,158,11,.10)!important;color:#92400e!important;}
@media (max-width:760px){
  .tripay-payment-sheet{padding:0!important;}
  .tripay-payment-card{margin:0!important;min-height:100vh;border-radius:0!important;box-shadow:none!important;}
  .tripay-payment-head{padding:14px 16px;}
  .tripay-payment-title{font-size:18px;}
  .tripay-payment-total{margin:12px 16px 0;padding:12px 14px;}
  .tripay-payment-total b{font-size:20px;}
  .tripay-payment-body{padding:14px 16px 16px;}
  .tripay-channel-list{max-height:56vh;}
  .tripay-channel-option{border-radius:14px;padding:11px;}
  .tripay-channel-icon{width:40px;height:40px;border-radius:12px;}
  .tripay-payment-actions{padding:12px 16px;position:sticky;bottom:0;}
  .tripay-payment-actions .btn{flex:1;}
}

/* Patch 2026-05-24: alur Tagihan pilih channel dulu, lalu tampilkan biaya layanan dan total bayar */
.tripay-choice-box{
  border:1px solid var(--border);
  background:var(--surface-2);
  border-radius:16px;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.tripay-choice-empty{background:rgba(245,158,11,.07);border-color:rgba(245,158,11,.24);}
.tripay-choice-method{display:flex;align-items:center;gap:10px;min-width:0;}
.tripay-choice-method img,
.tripay-choice-method span{
  width:40px;height:40px;border-radius:13px;background:var(--surface);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;object-fit:contain;padding:6px;flex:0 0 auto;font-weight:950;color:var(--primary);
}
.tripay-choice-method b{display:block;font-size:14px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px;}
.tripay-total-box{margin-top:10px;border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--surface);}
.tripay-total-box>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--border);}
.tripay-total-box>div:last-child{border-bottom:none;}
.tripay-total-box span{font-size:13px;color:var(--muted);font-weight:750;}
.tripay-total-box b{font-size:14px;color:var(--text);white-space:nowrap;}
.tripay-total-box .grand{background:var(--primary-light);}
.tripay-total-box .grand span{color:var(--primary);font-weight:900;}
.tripay-total-box .grand b{color:var(--primary);font-size:18px;font-weight:950;}
@media (max-width:760px){
  .tripay-choice-box{align-items:flex-start;}
  .tripay-choice-method b{max-width:160px;}
  .tripay-total-box>div{padding:9px 10px;}
}

/* Seputar Pesan / halaman informasi profil */
.about-menu-grid { display:grid; gap:10px; margin-top:14px; }
.about-menu-item {
  display:flex; align-items:center; gap:12px;
  padding:13px 14px; border:1px solid var(--border); border-radius:var(--radius);
  background:var(--surface); color:var(--text); text-decoration:none;
  transition:.18s ease;
}
.about-menu-item:hover { border-color:var(--primary); background:var(--primary-light); transform:translateY(-1px); }
.about-menu-icon { width:38px; height:38px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:var(--surface-2); font-size:18px; flex:0 0 auto; }
.about-menu-item span:nth-child(2) { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.about-menu-item b { font-size:14px; }
.about-menu-item small { color:var(--muted); font-size:12px; line-height:1.35; }
.about-menu-item em { font-style:normal; font-size:24px; color:var(--muted-light); }
.info-page-hero {
  background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:#fff;
  border-radius:var(--radius-xl); padding:22px; margin-bottom:14px; box-shadow:var(--shadow);
}
.info-page-hero h1 { margin:0 0 6px; font-size:22px; }
.info-page-hero p { margin:0; opacity:.92; line-height:1.55; }
.info-content { line-height:1.7; }
.info-content h2 { margin-top:18px; margin-bottom:8px; font-size:17px; }
.info-content p, .info-content li { color:var(--text-2); }
.info-content ul, .info-content ol { padding-left:20px; margin-top:8px; }
.info-back { margin-bottom:14px; display:inline-flex; }
@media (min-width: 768px) { .about-menu-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }



/* Patch 2026-05-24: Menu admin teks kecil satu baris dan bisa scroll horizontal */
.topbar-admin .topbar-inner{
  max-width:1280px;
}
.admin-nav-scroll{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  flex-wrap:nowrap;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  padding:3px 2px;
}
.admin-nav-scroll a{
  flex:0 0 auto;
  white-space:nowrap;
  font-size:12px;
  line-height:1;
  padding:8px 10px;
}

@media (max-width:760px){
  .topbar-admin{
    height:auto;
  }
  .topbar-admin .topbar-inner{
    height:auto;
    min-height:var(--topbar-h);
    flex-wrap:wrap;
    align-content:center;
    gap:6px 8px;
    padding:6px 12px 8px;
  }
  .topbar-admin .brand{
    order:1;
    flex:1 1 auto;
    min-width:0;
  }
  .topbar-admin .brand span:last-child{
    max-width:44vw;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .topbar-admin .topbar-actions{
    order:2;
    flex:0 0 auto;
    margin-left:auto;
    gap:6px;
  }
  .topbar-admin .topbar-actions span{
    display:none;
  }
  .topbar-admin .logout-btn{
    padding:7px 10px;
    font-size:12px;
    border:1px solid var(--border);
    background:var(--surface-2);
  }
  .topbar-admin .admin-nav-scroll{
    display:flex !important;
    order:3;
    flex:0 0 100%;
    width:100%;
    gap:6px;
    padding:2px 0 1px;
    margin-top:0;
  }
  .topbar-admin .admin-nav-scroll a{
    font-size:11px;
    font-weight:700;
    padding:7px 10px;
    border-radius:999px;
    background:var(--surface-2);
    border:1px solid var(--border);
  }
  .topbar-admin .admin-nav-scroll a.active,
  .topbar-admin .admin-nav-scroll a:hover{
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
  }
}

/* Patch 2026-05-24: Menu Tentang Kami desktop + halaman produk untuk kebutuhan verifikasi Tripay */
.about-hero { margin-top: 2px; }
.about-menu-grid-lg { margin-bottom: 14px; }
.info-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:14px; }
.info-product-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); }
.info-product-card img, .info-product-placeholder { width:100%; aspect-ratio:4/3; object-fit:cover; background:var(--surface-2); display:flex; align-items:center; justify-content:center; font-size:42px; }
.info-product-body { padding:14px; }
.info-product-type { color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; margin-bottom:4px; }
.info-product-body h3 { font-size:15px; margin:0 0 6px; line-height:1.35; }
.info-product-price { color:var(--primary); font-size:16px; font-weight:900; margin:8px 0; }
.info-product-body p { color:var(--muted); font-size:13px; line-height:1.5; margin-top:8px; }
@media (min-width: 768px) { .about-menu-grid-lg { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width: 920px) { .info-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .info-product-grid { grid-template-columns:1fr; } }

/* Patch 2026-05-24: perjelas informasi produk untuk verifikasi Tripay */
.login-product-info{
  margin-top:14px;
  padding:13px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--primary-light);
}
.login-product-title{font-size:13px;font-weight:900;color:var(--primary);margin-bottom:4px;}
.login-product-info p{font-size:12px;line-height:1.5;color:var(--text-2);margin:0 0 6px;}
.login-product-info a{font-size:12px;font-weight:900;color:var(--primary);}
.public-topbar{
  min-height:64px;
  padding:10px 20px;
  background:var(--surface);
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  position:sticky;
  top:0;
  z-index:10;
}
.public-nav{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--muted);font-size:14px;}
.public-nav a:hover{color:var(--primary);}
.public-page-wrap{max-width:1120px;margin:0 auto;padding:22px 18px 34px;}
.product-info-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:18px;
  align-items:stretch;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  border-radius:var(--radius-xl);
  padding:24px;
  margin-bottom:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.product-info-kicker{font-size:12px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;opacity:.86;margin-bottom:8px;}
.product-info-hero h1{font-size:26px;line-height:1.14;margin:0 0 10px;letter-spacing:-.6px;}
.product-info-hero p{line-height:1.65;opacity:.94;margin:0;max-width:760px;}
.product-info-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;}
.product-info-summary{
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.24);
  border-radius:var(--radius-lg);
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
}
.product-info-summary b{font-size:16px;}
.product-info-summary span{line-height:1.55;opacity:.94;}
.product-explain-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px;}
.product-explain-card{padding:18px;}
.product-explain-icon{width:42px;height:42px;border-radius:15px;background:var(--primary-light);display:flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:10px;}
.product-explain-card h2{font-size:16px;margin:0 0 7px;}
.product-explain-card p{font-size:13px;color:var(--text-2);line-height:1.6;margin:0;}
.product-clear-box{margin-bottom:14px;}
.product-spec-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
.product-spec-list span{font-size:11px;font-weight:800;color:var(--primary);background:var(--primary-light);border-radius:999px;padding:4px 8px;}
@media (max-width:820px){
  .product-info-hero{grid-template-columns:1fr;padding:20px;}
  .product-explain-grid{grid-template-columns:1fr;}
  .public-topbar{align-items:flex-start;flex-direction:column;}
  .public-nav{width:100%;overflow-x:auto;}
}

/* Patch: checkbox pembayaran mobile agar status centang terlihat jelas */
.pay-check-cell input[type="checkbox"],
#checkAll,
.productCheck,
#checkVisible {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 1.8px solid var(--border-2, #94a3b8);
  border-radius: 5px;
  background: var(--surface);
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
}
.pay-check-cell input[type="checkbox"]:checked,
#checkAll:checked,
.productCheck:checked,
#checkVisible:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.pay-check-cell input[type="checkbox"]:checked::after,
#checkAll:checked::after,
.productCheck:checked::after,
#checkVisible:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}
#checkAll:indeterminate,
#checkVisible:indeterminate {
  background: var(--primary);
  border-color: var(--primary);
}
#checkAll:indeterminate::after,
#checkVisible:indeterminate::after {
  content: "";
  width: 9px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
@media (max-width: 640px) {
  .pay-check-cell { width: 34px; min-width: 34px; }
  .pay-check-cell input[type="checkbox"], #checkAll { width: 17px; height: 17px; min-width: 17px; min-height: 17px; }
}

/* =================================================
   PATCH 2026-05-27 — Checkbox jelas di mobile/admin
   - Menggunakan background SVG, bukan pseudo-element ::after pada input,
     supaya centang tetap terlihat di Firefox/Chrome mobile.
   - Berlaku untuk halaman Tambah Produk, Bayar, dan checkbox lain.
   ================================================= */
input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0;
  border: 2px solid var(--border-strong, #c9cedf) !important;
  border-radius: 5px !important;
  background-color: #fff !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
  display: inline-block !important;
  vertical-align: middle;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
input[type="checkbox"]:checked {
  border-color: var(--primary, #1b4fff) !important;
  background-color: var(--primary, #1b4fff) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M3 8.2l3 3.1L13 4.7'/%3E%3C/svg%3E") !important;
}
input[type="checkbox"]:indeterminate {
  border-color: var(--primary, #1b4fff) !important;
  background-color: var(--primary, #1b4fff) !important;
  background-image: linear-gradient(#fff, #fff) !important;
  background-size: 10px 2.5px !important;
}
input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(27,79,255,.18), inset 0 0 0 1px rgba(255,255,255,.35);
}
input[type="checkbox"]:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Halaman admin/tambah produk: area pilihan field order dibuat lebih terbaca. */
.check-grid label {
  min-height: 42px;
  transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s;
}
.check-grid input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  flex: 0 0 20px;
}
.check-grid label:has(input[type="checkbox"]:checked) {
  border-color: var(--primary, #1b4fff) !important;
  background: var(--primary-light, #e8eeff) !important;
  color: var(--primary-dark, #1338cc) !important;
  box-shadow: 0 0 0 1px rgba(27,79,255,.08);
}

/* Halaman Bayar dan tabel akses produk: tetap kecil, tetapi centang tegas. */
.pay-check-cell input[type="checkbox"],
#checkAll,
.productCheck,
#checkVisible,
.table-wrap th input[type="checkbox"],
.table-wrap td input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
}
.pay-check-cell { text-align: center; width: 42px; min-width: 42px; }

@media (max-width: 640px) {
  .check-grid { gap: 9px; }
  .check-grid label { padding: 10px 11px; font-size: 13px; }
  .pay-check-cell { width: 36px; min-width: 36px; }
  .pay-check-cell input[type="checkbox"],
  #checkAll,
  .productCheck,
  #checkVisible,
  .table-wrap th input[type="checkbox"],
  .table-wrap td input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
  }
}
