/* ═══════════════════════════════════════════
   DangoPay — Design Tokens & Variables
   ═══════════════════════════════════════════
   Referensi: Nike Design System
   - Pill geometry, flat hierarchy, zero shadow
   - 8px spacing grid, extreme typography contrast
   ═══════════════════════════════════════════ */

/* ─── DARK MODE (default) ─── */
:root {
  /* Surface — Premium Blue */
  --bg-deep: #0c0c16;
  --bg-surface: #16162a;
  --bg-elevated: #1e1e38;
  --bg-hover: #282848;

  /* Border */
  --border: #2e2e4e;
  --border-light: #3e3e62;

  /* Accent — Premium Blue + Logo Teal */
  --accent: #1d6ff2;
  --accent-end: #38b897;
  --accent-soft: rgba(29, 111, 242, 0.08);
  --accent-mid: rgba(29, 111, 242, 0.16);
  --accent-glow: rgba(29, 111, 242, 0.2);

  /* Text — Warm */
  --text-primary: #eeeff6;
  --text-secondary: #999abb;
  --text-muted: #55557a;

  /* Status */
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Radius — Pill geometry inspired by Nike */
  --radius-none: 0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Spacing — 8px base grid */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-section: 48px;

  /* Shadows — none by default, only for active states */
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Theme-specific */
  --header-bg: rgba(12, 12, 22, 0.88);
  --toast-bg: var(--bg-elevated);
  --input-bg: var(--bg-elevated);
  --upload-bg: var(--bg-elevated);
  --badge-text: #1a1a1a;
  --glow-blue: rgba(29, 111, 242, 0.05);
  --glow-teal: rgba(56, 184, 151, 0.03);
}

/* ─── LIGHT MODE ─── */
[data-theme="light"] {
  --bg-deep: #f4f6fa;
  --bg-surface: #ffffff;
  --bg-elevated: #f0f2f6;
  --bg-hover: #e8ecf4;
  --border: #dce0e8;
  --border-light: #c8cde0;

  --accent: #1d6ff2;
  --accent-end: #38b897;
  --accent-soft: rgba(29, 111, 242, 0.06);
  --accent-mid: rgba(29, 111, 242, 0.12);
  --accent-glow: rgba(29, 111, 242, 0.12);

  --text-primary: #1a1a2e;
  --text-secondary: #55557a;
  --text-muted: #8888aa;

  --header-bg: rgba(255, 255, 255, 0.88);
  --toast-bg: #ffffff;
  --input-bg: #ffffff;
  --upload-bg: #f8f9fc;
  --badge-text: #ffffff;
  --glow-blue: rgba(29, 111, 242, 0.03);
  --glow-teal: rgba(56, 184, 151, 0.02);
}

/* ═══════════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════════ */

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--glow-blue) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at center, var(--glow-teal) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.3s ease;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   Theme Toggle
   ═══════════════════════════════════════════ */

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}
.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }

/* ═══════════════════════════════════════════
   Header
   ═══════════════════════════════════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  margin-bottom: var(--space-section);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo img {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.header-logo .logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header-nav {
  display: flex;
  gap: var(--space-2xs);
}
.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-md);
  transition: all 0.15s;
}
.header-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.header-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ═══════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════ */

.hero {
  text-align: center;
  padding: 0 0 var(--space-xl);
}
.hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}
.hero p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}
.hero-payments {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.hero-payments span {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* ═══════════════════════════════════════════
   Step Indicator
   ═══════════════════════════════════════════ */

.step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.step-circle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.step-circle.active {
  background: var(--accent);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 12px var(--accent-glow);
}
.step-circle.done {
  background: var(--accent);
  border-color: transparent;
  color: white;
}
.step h2 {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   Input Nomor
   ═══════════════════════════════════════════ */

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.2rem;
  transition: all 0.15s, background 0.3s ease;
}
.input-group:focus-within {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent-soft);
  outline: none;
}
.input-group .prefix {
  padding: 0 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}
.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.7rem 0.4rem;
  font-family: inherit;
  transition: color 0.3s ease;
}
.input-group input::placeholder {
  color: var(--text-muted);
}
.input-group .operator-tag {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 0.5rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.25s;
}
.input-group .operator-tag.show {
  opacity: 1;
}

.operator-tag.telkomsel { background: rgba(229, 9, 20, 0.12); color: #e50914; }
.operator-tag.indosat { background: rgba(30, 144, 255, 0.12); color: #1e90ff; }
.operator-tag.xl { background: rgba(0, 173, 239, 0.12); color: #00adef; }
.operator-tag.smartfren { background: rgba(255, 152, 0, 0.12); color: #ff9800; }

.helper-text {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: var(--space-xs);
  padding-left: var(--space-xs);
}

/* ═══════════════════════════════════════════
   Category Tabs (Pill-style)
   ═══════════════════════════════════════════ */

.tabs-container {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.tabs-container::-webkit-scrollbar { height: 0; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  scroll-snap-align: start;
  flex-shrink: 0;
  font-family: inherit;
}
.tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.tab-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.tab-btn .tab-icon {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.tab-btn .tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ═══════════════════════════════════════════
   Product Grid (Flat cards, no shadow)
   ═══════════════════════════════════════════ */

.section {
  margin-bottom: var(--space-section);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.section-header .op-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.section-header .op-header img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.section-header h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.produk-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease, background 0.3s ease;
  user-select: none;
}
.produk-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.produk-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.produk-card .nominal {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
  line-height: 1.2;
}
.produk-card .harga {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.produk-card .badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: var(--warning);
  color: var(--badge-text);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  line-height: 1;
}

/* ═══════════════════════════════════════════
   Ringkasan Panel
   ═══════════════════════════════════════════ */

.ringkasan-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  display: none;
  animation: slideDown 0.25s ease-out;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.ringkasan-panel.show { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ringkasan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}
.ringkasan-item + .ringkasan-item {
  border-top: 1px solid var(--border);
}
.ringkasan-item .label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.ringkasan-item .value {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
}
.ringkasan-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-xs);
}
.ringkasan-total .label {
  font-size: 0.9rem;
  font-weight: 600;
}
.ringkasan-total .value {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   Payment Info
   ═══════════════════════════════════════════ */

.payment-info {
  background: var(--accent-soft);
  border: 1px solid rgba(29, 111, 242, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
}
.payment-info .bank-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2xs);
}
.payment-info .bank-name {
  font-size: 0.95rem;
  font-weight: 600;
}
.payment-info .bank-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 3px;
  margin: var(--space-2xs) 0;
  font-feature-settings: "tnum";
}
.payment-info .bank-holder {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   Upload Area
   ═══════════════════════════════════════════ */

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  background: var(--upload-bg);
  transition: all 0.15s, background 0.3s ease;
  margin: var(--space-md) 0;
}
.upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload-area.has-file {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.05);
}
.upload-area input { display: none; }
.upload-area .upload-icon {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.upload-area .upload-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.upload-area img {
  max-width: 100%;
  max-height: 160px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
}

/* ═══════════════════════════════════════════
   Button (Pill-shaped)
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s;
  font-family: inherit;
  line-height: 1.4;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-end));
  color: white;
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-primary:active {
  transform: scale(0.97);
}
.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: none;
  transform: none;
}
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  width: auto;
}

/* ═══════════════════════════════════════════
   Riwayat Card (Flat)
   ═══════════════════════════════════════════ */

.riwayat-section {
  margin: var(--space-section) 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.riwayat-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  transition: all 0.1s, background 0.3s ease;
  cursor: pointer;
}
.riwayat-card:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
}
.riwayat-card .r-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.riwayat-card .r-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.riwayat-card .r-info { flex: 1; min-width: 0; }
.riwayat-card .r-info .r-produk {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.riwayat-card .r-info .r-tgl { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.1rem; }
.riwayat-card .r-nominal {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   Status Badge (Pill)
   ═══════════════════════════════════════════ */

.status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
}
.status-sukses { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-gagal { background: rgba(239, 68, 68, 0.1); color: var(--error); }

/* ═══════════════════════════════════════════
   Toast
   ═══════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  background: var(--toast-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  z-index: 99;
  display: none;
  max-width: 90%;
  animation: toastIn 0.2s ease;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.show { display: block; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ═══════════════════════════════════════════
   Loading Overlay
   ═══════════════════════════════════════════ */

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.loading-overlay.show { display: flex; }

.spinner {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay p {
  margin-top: var(--space-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
}

/* ═══════════════════════════════════════════
   Empty State
   ═══════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: var(--space-2xl) 0;
  color: var(--text-muted);
}
.empty-state .empty-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  opacity: 0.35;
}
.empty-state p { font-size: 0.85rem; }

/* ═══════════════════════════════════════════
   Category Cards (Homepage)
   ═══════════════════════════════════════════ */

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: block;
}
.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--bg-hover);
}
.category-card .cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}
.category-card .cat-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.category-card .cat-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ─── Category icon variants ─── */
.cat-icon.pulsa { background: rgba(29, 111, 242, 0.1); color: var(--accent); }
.cat-icon.topup { background: rgba(56, 184, 151, 0.12); color: var(--accent-end); }
.cat-icon.emoney { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.cat-icon.pln { background: rgba(34, 197, 94, 0.1); color: var(--success); }

/* ═══════════════════════════════════════════
   Page Header (subpages)
   ═══════════════════════════════════════════ */

.page-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-lg);
}
.page-header .back-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s;
  text-decoration: none;
  font-size: 1rem;
}
.page-header .back-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.page-header h1 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   Filter Tabs (Pill-style, Riwayat)
   ═══════════════════════════════════════════ */

.filter-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
}
.filter-tabs::-webkit-scrollbar { height: 0; }
.filter-tab {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
}
.filter-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.filter-tab.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-pending { background: rgba(245,158,11,0.12); color: #f59e0b; }
.badge-sukses  { background: rgba(34,197,94,0.12); color: #22c55e; }
.badge-gagal   { background: rgba(239,68,68,0.12); color: #ef4444; }

/* ═══════════════════════════════════════════
   Success Animation
   ═══════════════════════════════════════════ */

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}
.success-icon svg {
  width: 30px;
  height: 30px;
}
.success-icon polyline {
  fill: none;
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: checkmark 0.4s ease-in-out 0.15s forwards;
}
@keyframes checkmark {
  to { stroke-dashoffset: 0; }
}

/* ═══════════════════════════════════════════
   Footer / About
   ═══════════════════════════════════════════ */

.footer {
  margin-top: var(--space-section);
  padding: var(--space-xl) 0 var(--space-2xl);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

.footer-section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}
.footer-section p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.footer-section .trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.footer-section .trust-list span {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.contact-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
.contact-item .contact-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.contact-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.contact-item a:hover {
  text-decoration: underline;
}
.contact-item .contact-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
}
.contact-item .contact-value {
  font-weight: 500;
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-muted);
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .hero h1 { font-size: 1.35rem; }
  .produk-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-xs); }
  .produk-card { padding: 0.6rem 0.2rem; }
  .produk-card .nominal { font-size: 0.85rem; }
  .produk-card .harga { font-size: 0.65rem; }
  .header-nav a { font-size: 0.8rem; padding: 0.3rem 0.5rem; }
  .header-logo img { width: 26px; height: 26px; }
  .header { margin-bottom: var(--space-xl); }
  .ringkasan-panel { padding: var(--space-md); }
  .step { gap: var(--space-sm); }
  .step h2 { font-size: 0.95rem; }

  /* Nike: section spacing lebih kecil di mobile */
  .section { margin-bottom: var(--space-xl); }
  .riwayat-section { margin: var(--space-xl) 0; }
  .footer { margin-top: var(--space-xl); }

  /* Nike: headline downscale */
  .hero h1 { letter-spacing: -0.01em; }
}
@media (min-width: 481px) and (max-width: 600px) {
  .produk-grid { grid-template-columns: repeat(4, 1fr); }
}
