* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

    :root {
      --primary: #6d28d9;
      --accent: #3b82f6;
      --gray: #6b7280;
      --gradient: linear-gradient(135deg, #6d28d9 0%, #a855f7 50%, #ec4899 100%);
      --bg: #f1f5f9;
      --card: #ffffff;
      --text: #0f172a;
      --text-muted: #64748b;
      --border: rgba(0,0,0,.06);
      --border-2: rgba(0,0,0,.08);
      --hover: #e2e8f0;
      --soft: #f1f5f9;
    }

    body.dark {
      --bg: #0f172a;
      --card: #1e293b;
      --text: #f1f5f9;
      --text-muted: #94a3b8;
      --border: rgba(255,255,255,.08);
      --border-2: rgba(255,255,255,.12);
      --hover: #334155;
      --soft: #334155;
    }

    body {
      font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.5;
      min-height: 100vh;
      padding-bottom: 90px;
      transition: background .3s, color .3s;
    }

    .app {
      max-width: 480px;
      margin: 0 auto;
      background: var(--bg);
      min-height: 100vh;
      position: relative;
      transition: background .3s;
    }

    .topbar {
      background: var(--card);
      padding: 14px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 50;
      transition: background .3s, border-color .3s;
    }
    .topbar-left { display: flex; align-items: center; gap: 10px; }
    .brand-logo {
      width: 38px; height: 38px;
      background: var(--gradient);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-weight: 800; font-size: 1rem;
      box-shadow: 0 4px 12px rgba(109,40,217,.3);
    }
    .brand-text { font-size: 1.05rem; font-weight: 800; letter-spacing: -.3px; color: var(--text); }
    .topbar-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
    .saldo-mini {
      background: linear-gradient(135deg, #6d28d9, #a855f7);
      color: #fff;
      padding: 6px 12px;
      border-radius: 12px;
      text-align: right;
      line-height: 1.2;
      box-shadow: 0 4px 12px rgba(109,40,217,.25);
      cursor: pointer;
    }
    .saldo-mini .label { font-size: .58rem; opacity: .85; font-weight: 500; }
    .saldo-mini .value { font-size: .82rem; font-weight: 800; }
    .icon-btn {
      width: 36px; height: 36px;
      background: var(--soft);
      border: 1px solid var(--border);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem;
      cursor: pointer;
      color: var(--text);
      transition: all .2s;
    }
    .icon-btn:hover { background: var(--hover); }
.content { padding: 16px; }

.banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  background: #1e293b;
}
.banner-slide {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}
.banner-slide.active { opacity: 1; z-index: 2; }
.banner-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer; transition: all .3s;
}
.dot.active { background: #fff; width: 20px; border-radius: 4px; }

.runningtext {
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: background .3s, border-color .3s;
}
.runningtext-icon {
  background: var(--gradient);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(109,40,217,.3);
}
.runningtext-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 22px;
}
.runningtext-text {
  position: absolute;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  animation: scrollLeft 20s linear infinite;
  padding-left: 100%;
}
@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.kategori-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  scrollbar-width: none;
}
.kategori-scroll::-webkit-scrollbar { display: none; }
.kat-chip {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kat-chip.active,
.kat-chip:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(109,40,217,.3);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}
.section-title::before {
  content: '';
  width: 4px; height: 20px;
  background: var(--gradient);
  border-radius: 4px;
}

.produk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}
.produk-card {
  background: var(--card);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(15,10,30,.05);
  transition: all .25s, background .3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.produk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(109,40,217,.15);
}
.produk-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.produk-img.game { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.produk-img.pulsa { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.produk-img.data { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.produk-img.wallet { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.produk-img.voucher { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.produk-img.listrik { background: linear-gradient(135deg, #fef9c3, #fef08a); }
.produk-img.apk { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.produk-img.bot { background: linear-gradient(135deg, #cffafe, #a5f3fc); }

.badge-hot {
  position: absolute; top: 6px; left: 6px;
  background: #ef4444; color: #fff;
  font-size: .6rem; font-weight: 700;
  padding: 3px 7px; border-radius: 50px;
  z-index: 3;
}
.badge-stok {
  position: absolute; top: 6px; right: 6px;
  background: #10b981; color: #fff;
  font-size: .6rem; font-weight: 700;
  padding: 3px 7px; border-radius: 50px;
  z-index: 3;
}
.produk-nama {
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.produk-kat-label {
  font-size: .65rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.produk-rating {
  font-size: .68rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.produk-rating .star { color: #f59e0b; }
.produk-harga-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.produk-harga { font-size: .85rem; font-weight: 800; color: var(--primary); }
.produk-diskon {
  font-size: .62rem; font-weight: 700;
  background: #fee2e2; color: #dc2626;
  padding: 2px 6px; border-radius: 6px;
}
body.dark .produk-diskon { background: rgba(239,68,68,.2); color: #fca5a5; }
.produk-ori {
  font-size: .65rem;
  color: var(--text-muted);
  text-decoration: line-through;
  display: block;
  margin-bottom: 6px;
}
.produk-actions { display: flex; gap: 6px; }
.btn-detail, .btn-beli {
  flex: 1;
  border: none;
  padding: 8px 0;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.btn-detail {
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-detail:hover { background: var(--hover); }
.btn-beli {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 4px 10px rgba(59,130,246,.3);
}
.btn-beli:hover { transform: scale(1.03); }

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(15,10,30,.06);
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  transition: background .3s, border-color .3s;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 600;
  transition: color .2s;
  background: none; border: none;
  cursor: pointer; font-family: inherit;
  padding: 6px 14px;
}
.nav-item .icon { font-size: 1.3rem; line-height: 1; }
.nav-item.active { color: #3b82f6; }

.toast {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #0f172a;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
  z-index: 2000;
  transition: transform .3s;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  max-width: 90%;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.modal {
  position: fixed; inset: 0;
  background: rgba(15,10,30,.6);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal.show { display: flex; }
.modal-content {
  background: var(--card);
  color: var(--text);
  width: 100%;
  max-width: 480px;
  border-radius: 28px 28px 0 0;
  padding: 24px;
  animation: slideUp .3s;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.close-btn {
  background: none; border: none;
  font-size: 1.5rem; color: var(--text-muted);
  cursor: pointer; padding: 4px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  margin-bottom: 8px; color: var(--text);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border .2s;
  background: var(--soft);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus { border-color: var(--primary); }
.modal-btn {
  width: 100%;
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(109,40,217,.35);
  transition: all .2s;
}
.modal-btn:hover { transform: translateY(-2px); }

.modal-beli-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.modal-beli-header {
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.modal-beli-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-beli-body {
  padding: 16px 24px 20px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
}
.modal-beli-body::-webkit-scrollbar { width: 4px; }
.modal-beli-body::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 4px;
}
.label-section {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.nominal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.nominal-item {
  background: var(--soft);
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.nominal-item:hover {
  border-color: var(--primary);
  background: rgba(109,40,217,.06);
}
.nominal-item.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(109,40,217,.12), rgba(168,85,247,.08));
  box-shadow: 0 4px 12px rgba(109,40,217,.15);
}
.nominal-item-left { display: flex; flex-direction: column; gap: 2px; }
.nominal-nama {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
}
.nominal-harga {
  font-size: .78rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.nominal-item.selected .nominal-nama::before {
  content: '✓ ';
  color: var(--primary);
}
.input-pemain {
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border .2s;
  background: var(--soft);
  color: var(--text);
}
.input-pemain:focus { border-color: var(--primary); }
.selected-info {
  background: rgba(109,40,217,.08);
  border: 1px solid rgba(109,40,217,.2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: .8rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.selected-info .info-harga {
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.modal-beli-footer {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--card);
}
.topup-nominal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.nominal-btn {
  background: var(--soft);
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  padding: 14px 6px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-weight: 700;
  font-size: .85rem;
  color: var(--text);
  transition: all .2s;
}
.nominal-btn:hover {
  border-color: var(--primary);
  background: rgba(109,40,217,.06);
}
.nominal-btn.selected {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(109,40,217,.3);
}
.input-nominal-wrap { position: relative; margin-bottom: 14px; }
.input-nominal-wrap .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--text-muted);
  font-size: .95rem;
}
.input-nominal-wrap input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  background: var(--soft);
  color: var(--text);
  font-weight: 700;
}
.input-nominal-wrap input:focus { border-color: var(--primary); }

.metode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.metode-btn {
  background: var(--soft);
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  padding: 12px 6px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text);
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.metode-btn .metode-icon { font-size: 1.2rem; }
.metode-btn:hover {
  border-color: var(--primary);
  background: rgba(109,40,217,.06);
}
.metode-btn.selected {
  background: linear-gradient(135deg, rgba(109,40,217,.15), rgba(168,85,247,.1));
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(109,40,217,.15);
}
.ringkasan-box {
  background: rgba(109,40,217,.08);
  border: 1px solid rgba(109,40,217,.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: .8rem;
}
.ringkasan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  color: var(--text);
}
.ringkasan-row.total {
  border-top: 1px dashed rgba(109,40,217,.3);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 800;
  font-size: .9rem;
}
.ringkasan-row.total span:last-child { color: var(--primary); }
.simulasi-warning {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .75rem;
  color: #92400e;
  margin-bottom: 14px;
  text-align: center;
  font-weight: 600;
}
body.dark .simulasi-warning {
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.3);
  color: #fbbf24;
}
.qr-box {
  background: var(--soft);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid var(--border-2);
}
.qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 20px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.kode-bayar {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--card);
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 8px;
}
.timer-text {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cs-hero {
  background: var(--gradient);
  padding: 30px 20px 24px;
  text-align: center;
  color: #fff;
  border-radius: 0 0 24px 24px;
  margin: -24px -24px 20px;
  position: relative;
  overflow: hidden;
}
.cs-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
}
.cs-hero-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.cs-hero h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.cs-hero p {
  font-size: .82rem;
  opacity: .9;
  position: relative;
  z-index: 1;
}
.cs-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.cs-status .dot-online {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .4; }
}
.cs-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--soft);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all .25s;
  cursor: pointer;
}
.cs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(109,40,217,.15);
  border-color: var(--primary);
}
.cs-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.cs-card-icon.wa      { background: linear-gradient(135deg, #25D366, #128C7E); }
.cs-card-icon.tg      { background: linear-gradient(135deg, #0088cc, #005f8a); }
.cs-card-icon.channel { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.cs-card-info { flex: 1; }
.cs-card-title {
  font-size: .88rem;
  font-weight: 800;
  margin-bottom: 2px;
}
.cs-card-sub {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.cs-card-arrow {
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform .2s;
}
.cs-card:hover .cs-card-arrow { transform: translateX(4px); color: var(--primary); }
.cs-note {
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .75rem;
  color: var(--text);
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.cs-note-icon { font-size: 1.1rem; flex-shrink: 0; }
.cs-footer {
  text-align: center;
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 20px;
  padding-bottom: 10px;
}

.profil-hero {
  background: var(--gradient);
  padding: 30px 20px 50px;
  text-align: center;
  color: #fff;
  border-radius: 0 0 24px 24px;
  margin: -24px -24px 0;
  position: relative;
  overflow: hidden;
}
.profil-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
}
.profil-avatar {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.profil-nama {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.profil-id {
  font-size: .72rem;
  opacity: .9;
  position: relative;
  z-index: 1;
  font-family: monospace;
  letter-spacing: 1px;
}
.profil-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.25);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 700;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.profil-saldo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin: -30px 0 20px;
  box-shadow: 0 8px 24px rgba(109,40,217,.15);
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profil-saldo-label {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.profil-saldo-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}
.profil-topup-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .78rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(109,40,217,.3);
  transition: all .2s;
}
.profil-topup-btn:hover { transform: translateY(-2px); }
.profil-menu {
  background: var(--soft);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
.profil-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-2);
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  color: var(--text);
}
.profil-menu-item:last-child { border-bottom: none; }
.profil-menu-item:hover { background: var(--hover); }
.profil-menu-icon {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(109,40,217,.25);
}
.profil-menu-text {
  flex: 1;
  font-size: .85rem;
  font-weight: 700;
}
.profil-menu-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
}
.profil-logout {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 6px 16px rgba(239,68,68,.3);
  transition: all .2s;
}
.profil-logout:hover { transform: translateY(-2px); }
.profil-version {
  text-align: center;
  font-size: .68rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-bottom: 10px;
}
    /* ===== LOADING OVERLAY ===== */
    .loading-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 10, 30, 0.7);
      backdrop-filter: blur(4px);
      z-index: 3000;
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 16px;
    }
    .loading-overlay.show { display: flex; }
    .loading-spinner {
      width: 60px;
      height: 60px;
      border: 5px solid rgba(255, 255, 255, 0.2);
      border-top-color: #a855f7;
      border-right-color: #ec4899;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .loading-text {
      color: #fff;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: .3px;
      animation: blink 1.2s ease-in-out infinite;
    }
    @keyframes blink {
      0%, 100% { opacity: 1; }
      50%      { opacity: 0.5; }
    }
    .loading-check {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: linear-gradient(135deg, #10b981, #059669);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      color: #fff;
      animation: popIn 0.4s ease-out;
      box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
    }
    @keyframes popIn {
      0%   { transform: scale(0); opacity: 0; }
      50%  { transform: scale(1.2); }
      100% { transform: scale(1); opacity: 1; }
    }
