/* ============================================
   JETFOOD KURIR - MAIN STYLESHEET
   Mobile-first, PWA-ready, No horizontal scroll
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #0f1117;
  --bg2: #161b25;
  --bg3: #1e2535;
  --bg4: #252d3d;
  --border: #2a3347;
  --text: #e8edf5;
  --text2: #8a95aa;
  --text3: #5a6478;
  --orange: #cc0000;
  --orange2: #e60000;
  --orange-dim: rgba(204,0,0,0.12);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.12);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.12);
  --yellow: #eab308;
  --yellow-dim: rgba(234,179,8,0.12);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --font: 'Plus Jakarta Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --header-h: 60px;
  --nav-h: 64px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   LAYOUT
   ============================================ */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-bottom: var(--nav-h);
}

.page-content {
  flex: 1;
  padding: 16px;
  max-width: 768px;
  margin: 0 auto;
  width: 100%;
}



/* ============================================
   TOMBOL INSTALL PWA
   ============================================ */
.btn-install {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
  white-space: nowrap;
  animation: pulse-install 2s infinite;
}
.btn-install:hover { background: #b30000; transform: scale(1.05); }
@keyframes pulse-install {
  0%,100% { box-shadow: 0 0 0 0 rgba(204,0,0,0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(204,0,0,0); }
}

/* ============================================
   HAMBURGER BUTTON (Mobile)
   ============================================ */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
}
.hamburger-btn:hover { background: var(--bg3); }
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}
/* Animasi X saat aktif */
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   SIDEBAR OVERLAY (Mobile)
   ============================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
  transition: opacity 0.3s;
}
.sidebar-overlay.active { display: block; }

/* ============================================
   SIDEBAR MOBILE - slide dari kiri
   ============================================ */
@media (max-width: 767px) {
  .hamburger-btn { display: flex; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    padding: 72px 12px 20px;
    z-index: 200;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open { transform: translateX(0); }

  /* Semua sidebar-item link tetap kecil */
  .sidebar-item a, .sidebar-item button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text3);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.15s;
  }
  .sidebar-item a:hover,
  .sidebar-item button:hover { background: var(--bg3); color: var(--text); }
  .sidebar-item.active a { background: var(--orange-dim); color: var(--orange); }
  .sidebar-item svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }
  .sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 12px 6px;
  }
  .sidebar-menu { list-style: none; }

  /* Di mobile, main-with-sidebar tidak pakai margin */
  .main-with-sidebar { margin-left: 0 !important; }
}

/* ============================================
   HEADER
   ============================================ */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.brand-name span { color: var(--orange); }

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-avatar {
  width: 36px; height: 36px;
  background: var(--bg4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  border: 2px solid var(--border);
  cursor: pointer;
  text-decoration: none;
}

/* ============================================
   BOTTOM NAV
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 100;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--text3);
  transition: color 0.2s;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

.nav-item.active { color: var(--orange); }
.nav-item:hover { color: var(--text2); }
.nav-item.active:hover { color: var(--orange); }

/* SVG global - default size, jangan membesar */
svg { max-width: 100%; display: inline-block; vertical-align: middle; }
.nav-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.nav-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.3px; }

.nav-center-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.nav-fab {
  width: 50px; height: 50px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(204,0,0,0.4);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-fab:active { transform: scale(0.95); box-shadow: 0 2px 8px rgba(204,0,0,0.3); }
.nav-fab svg { width: 24px; height: 24px; color: #fff; }

/* ============================================
   CARDS & CONTAINERS
   ============================================ */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

/* ============================================
   SALDO CARD
   ============================================ */
.saldo-card {
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg4) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.saldo-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: var(--orange-dim);
  border-radius: 50%;
}

.saldo-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.saldo-nilai {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.saldo-nilai.plus { color: var(--green); }
.saldo-nilai.minus { color: var(--red); }
.saldo-nilai.zero { color: var(--text2); }

.saldo-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.saldo-status.aktif { background: var(--green-dim); color: var(--green); }
.saldo-status.suspend { background: var(--red-dim); color: var(--red); }
.saldo-status.topup { background: var(--yellow-dim); color: var(--yellow); }

.saldo-meta {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.saldo-meta-item { flex: 1; }
.saldo-meta-label { font-size: 10px; color: var(--text3); font-weight: 600; text-transform: uppercase; margin-bottom: 2px; }
.saldo-meta-value { font-size: 13px; font-weight: 700; color: var(--text); font-family: var(--mono); }

/* ============================================
   STAT GRID
   ============================================ */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.stat-value {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  margin-top: 2px;
}

/* ============================================
   RESPONSIVE TABLE (NO HORIZONTAL SCROLL)
   ============================================ */
.table-wrap { width: 100%; }

/* Desktop: tabel biasa */
@media (min-width: 640px) {
  table.resp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  table.resp-table thead tr {
    background: var(--bg3);
    border-bottom: 2px solid var(--border);
  }
  table.resp-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text3);
    white-space: nowrap;
  }
  table.resp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
  }
  table.resp-table tbody tr:hover { background: var(--bg3); }
  .resp-table .hide-desktop { display: none; }
}

/* Mobile: card-style rows */
@media (max-width: 639px) {
  table.resp-table,
  table.resp-table thead,
  table.resp-table tbody,
  table.resp-table th,
  table.resp-table td,
  table.resp-table tr { display: block; width: 100%; }

  table.resp-table thead { display: none; }

  table.resp-table tbody tr {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    padding: 12px;
  }

  table.resp-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4px 0;
    border: none;
    font-size: 13px;
    gap: 8px;
  }

  table.resp-table td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 90px;
    flex-shrink: 0;
    padding-top: 2px;
  }

  table.resp-table td.full-row {
    flex-direction: column;
    gap: 4px;
  }

  table.resp-table td.full-row::before {
    min-width: unset;
  }

  .resp-table .hide-mobile { display: none; }
}

/* ============================================
   BADGES & PILLS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-green { background: var(--green-dim); color: var(--green); }
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-yellow { background: var(--yellow-dim); color: var(--yellow); }
.badge-orange { background: var(--orange-dim); color: var(--orange); }
.badge-blue { background: var(--blue-dim); color: var(--blue); }
.badge-gray { background: var(--bg4); color: var(--text2); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

.form-control::placeholder { color: var(--text3); }

select.form-control { cursor: pointer; }

.form-hint {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
}

.form-hint.warning { color: var(--yellow); }
.form-hint.error { color: var(--red); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg4); }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-full { width: 100%; }
.btn-icon { padding: 9px; }

/* ============================================
   WA BUTTON
   ============================================ */
.btn-wa {
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.btn-wa:hover { opacity: 0.9; }

/* ============================================
   ALERTS
   ============================================ */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.alert-info { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); }
.alert-warning { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(234,179,8,0.2); }
.alert-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.alert-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }

/* ============================================
   PAGE TITLE
   ============================================ */
.page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.page-subtitle {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 16px;
}

/* ============================================
   LIST ITEMS
   ============================================ */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.list-item:last-child { border-bottom: none; }

.list-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.list-item-body { flex: 1; min-width: 0; }
.list-item-title { font-size: 14px; font-weight: 600; color: var(--text); }
.list-item-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }

.list-item-end { text-align: right; flex-shrink: 0; }
.list-item-value { font-size: 14px; font-weight: 700; font-family: var(--mono); }

/* ============================================
   MODAL / BOTTOM SHEET
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal-sheet {
  background: var(--bg2);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 768px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0 16px 32px;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 16px;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* ============================================
   METODE TOPUP SELECTOR
   ============================================ */
.metode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.metode-btn {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg3);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.metode-btn.selected {
  border-color: var(--orange);
  background: var(--orange-dim);
}

.metode-btn .metode-icon { font-size: 22px; }
.metode-btn .metode-name { font-size: 12px; font-weight: 700; color: var(--text); }
.metode-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg3);
  color: var(--text3);
  border: 1.5px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}

.filter-chip.active {
  background: var(--orange-dim);
  color: var(--orange);
  border-color: var(--orange);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text3);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state .empty-title { font-size: 15px; font-weight: 700; color: var(--text2); margin-bottom: 4px; }
.empty-state .empty-sub { font-size: 13px; }

/* ============================================
   COMING SOON
   ============================================ */
.coming-soon {
  text-align: center;
  padding: 60px 20px;
}
.coming-soon .cs-icon {
  font-size: 60px;
  margin-bottom: 16px;
  display: block;
}
.coming-soon h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.coming-soon p {
  font-size: 13px;
  color: var(--text3);
  max-width: 260px;
  margin: 0 auto;
  line-height: 1.6;
}
.coming-soon .cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-dim);
  color: var(--orange);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo .logo-mark {
  width: 64px; height: 64px;
  background: var(--orange);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 12px;
}

.login-logo h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.login-logo p {
  font-size: 13px;
  color: var(--text3);
  margin-top: 4px;
}

/* ============================================
   SIDEBAR (Desktop)
   ============================================ */
@media (min-width: 768px) {
  .app-wrapper { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .hamburger-btn { display: none; }
  .sidebar-overlay { display: none !important; }

  .desktop-layout {
    display: flex;
    padding-top: var(--header-h);
    min-height: 100vh;
  }

  .sidebar {
    width: 220px;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 16px 12px;
  }

  .sidebar-menu { list-style: none; }

  .sidebar-item a, .sidebar-item button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text3);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.15s;
  }

  .sidebar-item a:hover,
  .sidebar-item button:hover { background: var(--bg3); color: var(--text); }

  .sidebar-item.active a { background: var(--orange-dim); color: var(--orange); }

  .sidebar-item svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }

  .sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 12px 6px;
  }

  .main-with-sidebar {
    margin-left: 220px;
    flex: 1;
    padding: 24px;
    max-width: 100%;
  }

  .page-content { max-width: 960px; padding: 0; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-orange { color: var(--orange) !important; }
.text-muted { color: var(--text3) !important; }
.text-mono { font-family: var(--mono) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex-1 { flex: 1; }
.w-100 { width: 100%; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.hidden { display: none !important; }
.rupiah { font-family: var(--mono); }

/* ============================================
   LOGO & BRAND IMAGE
   ============================================ */
.header-icon-img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: 8px;
  background: transparent;
}

.header-logo-img {
  height: 28px;
  object-fit: contain;
  max-width: 130px;
  background: transparent;
  /* Logo versi putih+merah - native, tidak perlu filter */
}

/* Login logo image */
.login-logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 18px;
  margin: 0 auto 14px;
  display: block;
  background: transparent;
  filter: drop-shadow(0 4px 12px rgba(204,0,0,0.6));
}

.login-logo-brand {
  width: 220px;
  max-width: 92%;
  object-fit: contain;
  margin: 0 auto 8px;
  display: block;
  background: transparent;
  /* Tidak perlu filter — logo sudah transparan, warna merah tetap merah */
}

/* Rekening info card */
.rek-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.rek-bank {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rek-bank-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.rek-bank-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
}

.rek-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.rek-row:last-child { border-bottom: none; }

.rek-label {
  font-size: 10px;
  color: var(--text3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  min-width: 80px;
}

.rek-value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  text-align: center;
}

.btn-copy {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--text3);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
}

.btn-copy:hover { background: var(--orange-dim); color: var(--orange); border-color: var(--orange); }
.btn-copy svg { width: 13px; height: 13px; }
.btn-copy.copied { color: var(--green); border-color: var(--green); background: var(--green-dim); }

.opacity-50 { opacity: 0.5; }
