/* =============================================================
   NNpulsa — "Navy" Design System
   Blue palette, PWA-ready, push notification support.
   ============================================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap');


:root {
  --bg: #f5f6f8;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f9fafa;

  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --muted: #888888;
  --muted-2: #b0b0b0;

  --primary: #0d6efd;
  --primary-hover: #0b5ed7;
  --primary-glow: #6ea8fe;
  --primary-2: #f39c12;
  --primary-soft: rgba(13, 110, 253, 0.15);

  --accent: #f39c12;
  --accent-soft: rgba(243, 156, 18, 0.15);

  --success: #2ecc71;
  --warning: #f1c40f;
  --danger: #e74c3c;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);

  --noise: none;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--text);
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

h1, h2, h3, h4 { font-family: 'DM Sans', serif; }
h1 { font-weight: 900; letter-spacing: -0.02em; }
h2 { font-weight: 700; letter-spacing: -0.01em; }
h3 { font-weight: 700; }

.app-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  border-left: 1px solid rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.02);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem 0.6rem 1.25rem;
  background-color: var(--primary);
  color: #fff;
}

.app-logo { height: 28px; object-fit: contain; }

.chat-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.chat-badge i { color: #fff; font-size: 16px; }

.greeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.35rem 1.25rem 3rem 1.25rem; /* Padding bottom for overlapping card */
  background-color: var(--primary);
  color: #fff;
}
.greeting-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}
.greeting-badge {
  display: inline-flex;
  gap: 15px;
  font-size: 20px;
  color: #fff;
}

.balance-wrapper { padding: 0 1.25rem; margin-top: -36px; position: relative; z-index: 10; }

.balance-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--text);
}
.balance-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.balance-card-info {
  display: flex;
  justify-content: space-between;
}
.balance-card-info-left {
  display: flex;
  flex-direction: column;
}
.balance-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.balance-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.balance-card-info-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.balance-card-info-center .balance-label {
  font-size: 10px;
  font-weight: 800;
}
.qris-btn {
  background: var(--primary-2);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.balance-note { margin-top: 8px; font-size: 10px; line-height: 1.5; color: rgba(255,255,255,0.75); }
.balance-note .warn { color: #ffd0a0; font-weight: 700; }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px 1.25rem 2px 1.25rem;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 6px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
}
.quick-action::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: var(--noise);
  opacity: 0.3;
  pointer-events: none;
}
.quick-action:active { transform: scale(0.92); }
.quick-action:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 19px;
  position: relative;
  z-index: 1;
}
.quick-action:nth-child(1) .quick-action-icon { background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.05)); color: var(--primary); border: 1px solid rgba(99, 102, 241, 0.2); }
.quick-action:nth-child(2) .quick-action-icon { background: linear-gradient(135deg, rgba(74,222,128,0.2), rgba(74,222,128,0.05)); color: var(--success); border: 1px solid rgba(74,222,128,0.2); }
.quick-action:nth-child(3) .quick-action-icon { background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(56,189,248,0.05)); color: var(--accent); border: 1px solid rgba(56,189,248,0.2); }
.quick-action:nth-child(4) .quick-action-icon { background: linear-gradient(135deg, rgba(180,200,220,0.2), rgba(180,200,220,0.05)); color: var(--text-soft); border: 1px solid rgba(180,200,220,0.2); }

.quick-action-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
  position: relative;
  z-index: 1;
}

.promo-slider {
  margin: 14px 1.25rem;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.promo-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: 0.4;
  pointer-events: none;
}
.promo-slide {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  position: relative;
  z-index: 1;
}
.promo-content {
  flex: 1;
}
.promo-content h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  background: linear-gradient(90deg, #fff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.promo-content p {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
}
.promo-icon {
  font-size: 48px;
  color: rgba(255,255,255,0.1);
  transform: rotate(-15deg);
  margin-left: -20px;
}

.marquee-wrapper {
  margin: 0 1.25rem 18px 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  position: relative;
}
.marquee-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: 0.4;
  pointer-events: none;
  border-radius: 10px;
}
.marquee-icon { color: var(--warning); font-size: 13px; flex: 0 0 auto; position: relative; z-index: 1; }
.marquee-content {
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  flex: 1;
  position: relative;
  z-index: 1;
}
.marquee-content span { display: inline-block; animation: marquee 20s linear infinite; }
.marquee-content span b { color: var(--primary); font-weight: 700; }

@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  margin: 4px 1.25rem 14px 1.25rem;
  color: var(--text);
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 1.25rem 24px 1.25rem;
}

.app-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.app-grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: 0.3;
  pointer-events: none;
  border-radius: 20px;
}
.app-grid-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.app-grid-item.is-pressed { transform: scale(0.95); opacity: 0.85; }

.app-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 18px; /* Squircle appearance */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.05);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.app-grid-item:hover .app-icon-box { transform: scale(1.1) translateY(-2px); }

/* --- ORDER KUOTA LIGHT THEME SPECIFIC CLASSES --- */
.quick-action-light { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.quick-action-light:hover { transform: translateY(-3px); }
.quick-action-light:active { transform: scale(0.95); }
.quick-icon-light { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 16px; transition: all 0.3s ease; }
.quick-action-light:hover .quick-icon-light { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3); }
.quick-action-light span { font-size: 11px; font-weight: 700; color: var(--primary); }

.app-grid-light { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 8px; padding: 0 1.25rem 24px; }
.app-grid-item-light { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.app-grid-item-light:hover { transform: translateY(-4px); }
.app-grid-item-light:active { transform: scale(0.95); }
.app-icon-box-light { width: 52px; height: 52px; border-radius: 18px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 24px; box-shadow: inset 0 -3px 0 rgba(13, 110, 253, 0.1); transition: all 0.3s ease; }
.app-grid-item-light:hover .app-icon-box-light { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 16px rgba(13, 110, 253, 0.2); }
.app-grid-item-light:hover svg { transform: scale(1.1) translateY(-2px); filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1)); }
svg { transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.app-grid-label-light { font-size: 11px; font-weight: 600; color: #333; text-align: center; line-height: 1.2; }
/* ------------------------------------------------ */

.icon-blue   { background: linear-gradient(160deg, rgba(120,170,255,0.2), rgba(120,170,255,0.05)); color: #9dc2ff; }
.icon-orange { background: linear-gradient(160deg, rgba(255,150,100,0.2), rgba(255,150,100,0.05)); color: #ffaa70; }
.icon-green  { background: linear-gradient(160deg, rgba(74,222,128,0.2), rgba(74,222,128,0.05)); color: #5ee8aa; }
.icon-purple { background: linear-gradient(160deg, rgba(180,140,255,0.2), rgba(180,140,255,0.05)); color: #c49bff; }
.icon-red    { background: linear-gradient(160deg, rgba(255,120,120,0.2), rgba(255,120,120,0.05)); color: #ff9d9d; }
.icon-warning{ background: linear-gradient(160deg, rgba(255,180,60,0.2), rgba(255,180,60,0.05)); color: #ffd166; }

.app-grid-label {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  color: var(--text-soft);
  position: relative;
  z-index: 1;
}

.trx-list { display: flex; flex-direction: column; gap: 10px; }

.trx-item {
  display: block;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.trx-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: 0.4;
  pointer-events: none;
  border-radius: 16px;
}
.trx-item:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-1px); }

.trx-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  position: relative;
  z-index: 1;
}
.trx-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trx-status {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}
.trx-status.success { background: rgba(74,222,128,0.14); color: var(--success); }
.trx-status.pending { background: rgba(251,191,36,0.14); color: var(--warning); }
.trx-status.failed  { background: rgba(248,113,113,0.14); color: var(--danger); }

.trx-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  position: relative;
  z-index: 1;
}
.trx-item-target { color: var(--muted); font-weight: 500; }
.trx-item-price { color: var(--text); font-weight: 800; }

.app-bottom-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px;
  background: rgba(17, 14, 28, 0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  flex: 1;
  cursor: pointer;
  padding: 8px 0;
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}
.nav-item i { font-size: 20px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nav-item.active { color: var(--primary); background: rgba(99, 102, 241, 0.15); }
.nav-item.active i { transform: translateY(-2px); }
.nav-item:hover:not(.active) { color: var(--text-soft); }

.nav-fab-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-fab {
  position: absolute;
  top: -34px;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 4px solid var(--bg);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-fab:hover { transform: scale(1.1); box-shadow: 0 14px 30px rgba(99, 102, 241, 0.6); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.6);
  filter: brightness(1.06);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control::placeholder { color: var(--muted-2); }
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-control:hover { border-color: var(--border-strong); }

.alert {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid transparent;
}
.alert-danger  { background: rgba(248,113,113,0.1);  border-color: rgba(248,113,113,0.2); color: #ffaaaa; }
.alert-success { background: rgba(74,222,128,0.1);  border-color: rgba(74,222,128,0.2); color: #5ee8aa; }
.alert-primary { background: rgba(139, 92, 246, 0.1);  border-color: rgba(139, 92, 246, 0.2); color: var(--primary); }
.alert-warning { background: rgba(251,191,36,0.1);   border-color: rgba(251,191,36,0.2);  color: #ffd166; }

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
}
.glass-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: 0.4;
  pointer-events: none;
  border-radius: 18px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 1.4rem;
  background: rgba(11, 9, 20, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-success { background: rgba(74,222,128,0.14); color: var(--success); }
.badge-pending { background: rgba(251,191,36,0.14); color: var(--warning); }
.badge-failed  { background: rgba(248,113,113,0.14); color: var(--danger); }

.list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.list-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: 0.4;
  pointer-events: none;
  border-radius: 14px;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2147483000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.modal-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: 0.4;
  pointer-events: none;
  border-radius: 22px;
}

/* PWA install prompt */
.pwa-install-banner {
  display: none;
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  z-index: 1000;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.pwa-install-banner[hidden] { display: none !important; }
.pwa-install-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; color: #fff; font-size: 18px; flex: 0 0 40px; }
.pwa-install-text { flex: 1; font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.4; }
.pwa-install-btn { flex: 0 0 auto; padding: 8px 14px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; border: none; cursor: pointer; }
.pwa-install-dismiss { flex: 0 0 auto; width: 28px; height: 28px; border: none; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }

@media (min-width: 700px) and (max-width: 1023px) {
  .app-container { max-width: 860px; }
  .app-bottom-nav { max-width: 836px; }
  .app-header { padding-left: 2rem; padding-right: 2rem; }
  .balance-wrapper, .quick-actions, .app-grid { padding-left: 2rem; padding-right: 2rem; }
  .promo-slider, .marquee-wrapper, .section-title, .greeting-row { margin-left: 2rem; margin-right: 2rem; }
}

@media (min-width: 1024px) {
  html, body { min-height: 100%; }
  .app-container {
    width: calc(100% - 260px);
    max-width: none;
    min-height: 100vh;
    margin: 0 0 0 260px;
    padding-bottom: 48px !important;
    border: none;
  }
  .app-header { width: 100%; max-width: 1400px; margin: 0 auto; padding: 24px 30px 16px; }
  .app-logo { height: 38px; }
  .chat-badge { padding: 8px 16px; font-size: 13px; }

  .app-bottom-nav {
    top: 0; bottom: 0; left: 0; transform: none;
    width: 260px; max-width: none; height: 100vh;
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: 6px; padding: 28px 16px; border-radius: 0; border: none;
    border-right: 1px solid var(--border);
    background: var(--bg-2);
    box-shadow: 8px 0 40px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  .app-bottom-nav::before {
    content: 'NNpulsa';
    display: block;
    padding: 4px 14px 26px;
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
  }
  .nav-item {
    flex: none; width: 100%; min-height: 48px;
    flex-direction: row; justify-content: flex-start; gap: 13px;
    padding: 0 14px; border-radius: 12px; font-size: 13px;
  }
  .nav-item:hover,
  .nav-item.active { color: var(--primary); background: var(--primary-soft); }
  .nav-item i { width: 22px; font-size: 18px; text-align: center; }
  .nav-fab-wrapper { display: none; }
}

/* =============================================================
   ANIMATIONS
   ============================================================= */

@view-transition { navigation: auto; }

@keyframes nnpFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.greeting-row, .balance-wrapper, .quick-actions { animation: nnpFadeUp .45s ease-out both; }
.balance-wrapper    { animation-delay: .05s; }
.quick-actions      { animation-delay: .1s; }
.promo-slider       { animation: nnpFadeUp .45s .15s ease-out both; }
.marquee-wrapper    { animation: nnpFadeUp .4s  .18s ease-out both; }
.section-title      { animation: nnpFadeUp .4s  .2s  ease-out both; }
.app-grid, .app-grid-light { animation: nnpFadeUp .45s .22s ease-out both; }

.app-grid-item:nth-child(1), .app-grid-item-light:nth-child(1) { animation: nnpFadeUp .4s .24s ease-out both; }
.app-grid-item:nth-child(2), .app-grid-item-light:nth-child(2) { animation: nnpFadeUp .4s .28s ease-out both; }
.app-grid-item:nth-child(3), .app-grid-item-light:nth-child(3) { animation: nnpFadeUp .4s .32s ease-out both; }
.app-grid-item:nth-child(4), .app-grid-item-light:nth-child(4) { animation: nnpFadeUp .4s .36s ease-out both; }
.app-grid-item:nth-child(5), .app-grid-item-light:nth-child(5) { animation: nnpFadeUp .4s .30s ease-out both; }
.app-grid-item:nth-child(6), .app-grid-item-light:nth-child(6) { animation: nnpFadeUp .4s .34s ease-out both; }
.app-grid-item:nth-child(7), .app-grid-item-light:nth-child(7) { animation: nnpFadeUp .4s .38s ease-out both; }
.app-grid-item-light:nth-child(8) { animation: nnpFadeUp .4s .42s ease-out both; }
.app-grid-item-light:nth-child(9) { animation: nnpFadeUp .4s .46s ease-out both; }
.app-grid-item-light:nth-child(10) { animation: nnpFadeUp .4s .50s ease-out both; }
.app-grid-item-light:nth-child(11) { animation: nnpFadeUp .4s .54s ease-out both; }
.app-grid-item-light:nth-child(12) { animation: nnpFadeUp .4s .58s ease-out both; }

@keyframes nnpShimmer {
  0%   { left: -60%; }
  100% { left: 120%; }
}
.balance-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 60%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-20deg);
  z-index: 2;
  animation: nnpShimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes nnpBalancePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}
.balance-amount { animation: nnpBalancePulse 3s ease-in-out infinite; }

@keyframes nnpFabPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4); }
  50%      { box-shadow: 0 10px 36px rgba(99, 102, 241, 0.7), 0 0 0 8px rgba(99, 102, 241, 0.15); }
}
.nav-fab { animation: nnpFabPulse 2.5s ease-in-out infinite; }

.quick-action:hover .quick-action-icon { animation: nnpBounce .4s ease-out; }
@keyframes nnpBounce {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-6px); }
  60%      { transform: translateY(-2px); }
}

.trx-item:nth-child(1) { animation: nnpFadeUp .35s .1s ease-out both; }
.trx-item:nth-child(2) { animation: nnpFadeUp .35s .15s ease-out both; }
.trx-item:nth-child(3) { animation: nnpFadeUp .35s .2s ease-out both; }
.trx-item:nth-child(4) { animation: nnpFadeUp .35s .25s ease-out both; }
.trx-item:nth-child(5) { animation: nnpFadeUp .35s .3s ease-out both; }

#section-transaksi, #section-akun { animation: nnpFadeUp .35s ease-out both; }

.btn-primary {
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width .6s, height .6s;
}
.btn-primary:active::after { width: 300px; height: 300px; }

.app-grid-item:hover .app-icon-box i { animation: nnpWiggle .5s ease-out; }
@keyframes nnpWiggle {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-8deg); }
  75%      { transform: rotate(8deg); }
}

@keyframes nnpSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: none; }
}
.alert { animation: nnpSlideDown .3s ease-out both; }

@keyframes nnpStatusPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .7; }
}
.trx-status.pending { animation: nnpStatusPulse 2s ease-in-out infinite; }

@keyframes nnpSkeleton {
  0%   { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200px 100%;
  animation: nnpSkeleton 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================
   BOTTOM SHEET — Modal konfirmasi dari bawah (ala Orderkuota)
   ============================================================= */
.sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2147483000;
  opacity: 0;
  transition: opacity .3s ease;
}
.sheet-overlay.open { display: flex; align-items: flex-end; justify-content: center; opacity: 1; }

.sheet-panel {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 50px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.sheet-overlay.open .sheet-panel { transform: translateY(0); }

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: var(--muted-2);
  margin: 0 auto 18px;
  flex: 0 0 4px;
}

.sheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.sheet-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 20px;
  background: var(--primary-soft);
  color: var(--primary);
  flex: 0 0 48px;
}
.sheet-title { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.2; }
.sheet-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; word-break: break-all; }
.sheet-close {
  margin-left: auto;
  width: 34px; height: 34px;
  border: 0; border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 16px; cursor: pointer;
  flex: 0 0 34px;
  transition: background .2s, color .2s;
}
.sheet-close:hover { background: rgba(255,255,255,.12); color: var(--text); }

.sheet-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid rgba(139,92,246,.25);
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-hover);
  margin-bottom: 16px;
}

.sheet-section { margin-bottom: 16px; }
.sheet-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.sheet-input-wrap { position: relative; }
.sheet-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 48px 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.sheet-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.sheet-input-icon {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border: 0; border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 15px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.sheet-input-icon:hover { background: var(--primary-soft); color: var(--primary); }

.sheet-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.sheet-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.sheet-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.sheet-payment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.sheet-payment-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 16px;
  flex: 0 0 38px;
}
.sheet-payment-name { font-size: 13px; font-weight: 700; color: var(--text); }
.sheet-payment-balance { font-size: 11px; color: var(--muted); margin-top: 2px; }

.sheet-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, var(--bg) 30%);
}
.sheet-total { flex: 1; min-width: 0; }
.sheet-total-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sheet-total-value { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.1; margin-top: 2px; }
.sheet-buy-btn {
  flex: 0 0 auto;
  padding: 14px 28px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139,92,246,.4);
  transition: transform .15s, filter .15s;
  position: relative;
  overflow: hidden;
}
.sheet-buy-btn:active { transform: scale(.96); }
.sheet-buy-btn:hover { filter: brightness(1.08); }
.sheet-buy-btn.loading { pointer-events: none; opacity: .7; }
.sheet-buy-btn.loading::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  animation: nnpBtnShimmer 1.1s ease-in-out infinite;
}
@keyframes nnpBtnShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.sheet-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
}
.sheet-note ul { margin: 0; padding-left: 16px; }
.sheet-note li { margin-bottom: 4px; }

@media (min-width: 1024px) {
  .sheet-panel { max-width: 460px; border-radius: 28px; border: 1px solid var(--border-strong); margin-bottom: 24px; }
  .sheet-overlay.open { align-items: center; }
  .sheet-panel { transform: translateY(60px); }
  .sheet-overlay.open .sheet-panel { transform: translateY(0); }
}

/* =============================================================
   STICKY INPUT — Input nomor HP menempel di atas halaman produk
   ============================================================= */
.sticky-input-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 16px 10px;
  background: rgba(11, 9, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.sticky-input-wrap { position: relative; }
.sticky-input-field {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px 100px 14px 44px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.sticky-input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.sticky-input-field::placeholder { color: var(--muted-2); }
.sticky-input-icon-left {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
}
.sticky-input-actions {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
}
.sticky-input-btn {
  width: 34px; height: 34px;
  border: 0; border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 14px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.sticky-input-btn:hover { background: var(--primary-soft); color: var(--primary); }

.sticky-input-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sticky-input-toolbar::-webkit-scrollbar { display: none; }
.sticky-toolbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: all .2s;
}
.sticky-toolbar-chip:hover { border-color: var(--primary); color: var(--primary); }
.sticky-toolbar-chip.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-hover); }

.provider-detected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(74,222,128,.12);
  border: 1px solid rgba(74,222,128,.25);
  font-size: 11px;
  font-weight: 800;
  color: var(--success);
  margin-top: 8px;
  animation: nnpFadeUp .3s ease-out both;
}

/* =============================================================
   CARD LIST — Daftar produk vertikal (ala Orderkuota)
   ============================================================= */
.product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform .15s, border-color .2s, background .2s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  margin-bottom: 8px;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: .3;
  pointer-events: none;
  border-radius: 16px;
}
.product-card:hover {
  transform: translateY(-1px);
  border-color: rgba(139,92,246,.35);
  background: var(--surface-2);
}
.product-card:active { transform: scale(.98); }
.product-card.disrupted { opacity: .55; }

.product-card-left { min-width: 0; flex: 1; position: relative; z-index: 1; }
.product-card-right { text-align: right; flex: 0 0 auto; position: relative; z-index: 1; }

.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}
.product-description {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-hover);
  white-space: nowrap;
}
.product-status-badge {
  position: absolute;
  bottom: 8px; right: 16px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(248,113,113,.15);
  color: var(--danger);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 2;
}
.identity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(56,189,248,.12);
  color: var(--primary-2);
  font-size: 9px;
  font-weight: 700;
  margin-top: 4px;
}
.utility-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(139,92,246,.12);
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
  margin-top: 4px;
}
.route-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(245,158,11,.12);
  color: var(--warning);
  font-size: 9px;
  font-weight: 700;
  margin-top: 4px;
}

/* =============================================================
   PILLS — Tab filter berbentuk pills
   ============================================================= */
.pill-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.pill-tab:hover { border-color: var(--primary); color: var(--primary); }
.pill-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(139,92,246,.3);
}

/* =============================================================
   E-WALLET GRID — Grid icon penyedia e-wallet
   ============================================================= */
.ewallet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 1.25rem 20px;
}
.ewallet-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform .15s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.ewallet-grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: .3;
  pointer-events: none;
  border-radius: 16px;
}
.ewallet-grid-item:hover { transform: translateY(-2px); border-color: rgba(139,92,246,.35); }
.ewallet-grid-item:active { transform: scale(.95); }
.ewallet-grid-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 18px;
  position: relative; z-index: 1;
}
.ewallet-grid-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.2;
  position: relative; z-index: 1;
}

/* =============================================================
   CATEGORY CARDS — Kategori beranda bergaya
   ============================================================= */
.cat-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform .15s, border-color .2s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.cat-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: .3;
  pointer-events: none;
  border-radius: 18px;
}
.cat-banner:hover { transform: translateY(-1px); border-color: rgba(139,92,246,.3); }
.cat-banner:active { transform: scale(.98); }
.cat-banner-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 20px;
  flex: 0 0 48px;
  position: relative; z-index: 1;
}
.cat-banner-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.cat-banner-title { font-size: 14px; font-weight: 800; color: var(--text); }
.cat-banner-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.cat-banner-arrow { color: var(--muted); font-size: 14px; position: relative; z-index: 1; }

/* =============================================================
   SMOOTH PAGE TRANSITIONS
   ============================================================= */
@keyframes nnpPageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.page-content { animation: nnpPageIn .3s ease-out both; }

/* Product card stagger animation */
.product-card:nth-child(1) { animation: nnpFadeUp .3s .02s ease-out both; }
.product-card:nth-child(2) { animation: nnpFadeUp .3s .05s ease-out both; }
.product-card:nth-child(3) { animation: nnpFadeUp .3s .08s ease-out both; }
.product-card:nth-child(4) { animation: nnpFadeUp .3s .11s ease-out both; }
.product-card:nth-child(5) { animation: nnpFadeUp .3s .14s ease-out both; }
.product-card:nth-child(6) { animation: nnpFadeUp .3s .17s ease-out both; }
.product-card:nth-child(7) { animation: nnpFadeUp .3s .20s ease-out both; }
.product-card:nth-child(8) { animation: nnpFadeUp .3s .23s ease-out both; }
.product-card:nth-child(n+9) { animation: nnpFadeUp .3s .26s ease-out both; }
/* --- PROVIDER GRID --- */
.provider-picker{padding:2px 0 18px;}
.provider-picker-title{font-size:14px;font-weight:850;color:var(--text-color);margin-bottom:5px;}
.provider-picker-copy{font-size:10px;color:var(--muted-2);line-height:1.45;margin-bottom:13px;}
.provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
.provider-card{min-width:0;padding:12px 7px 10px;border-radius:15px;border:1px solid rgba(255,255,255,.20);background:var(--card-bg);color:var(--text-color);text-decoration:none;display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;box-shadow:0 8px 22px rgba(0,0,0,.08);transition:transform .1s ease,border-color .18s ease,box-shadow .18s ease;}
.provider-card:active{transform:scale(.975);}
.provider-card:hover{border-color:rgba(79,140,255,.52);box-shadow:0 10px 25px rgba(79,140,255,.12);}
.provider-logo{width:48px;height:48px;display:block;filter:drop-shadow(0 4px 8px rgba(0,0,0,.12));}
.provider-logo svg{width:100%;height:100%;display:block;}
.provider-name{font-size:11px;font-weight:900;line-height:1.1;}
.provider-subtitle{font-size:8px;font-weight:650;color:var(--muted-2);line-height:1.2;min-height:19px;display:flex;align-items:center;}

@media (min-width:700px){
    .provider-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (min-width:1024px){
    .provider-grid{grid-template-columns:repeat(7,minmax(0,1fr));}
    .provider-card{padding:15px 9px 12px;}
}

/* =============================================================
   VERTICAL MENU (For Digital & Bayar Tagihan)
   ============================================================= */
.vertical-menu-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    animation: nnpFadeUp .3s ease-out both;
}
.vertical-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 8px;
    background: transparent;
    border: none;
    border-bottom: 1px dashed var(--border);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: background .2s, padding-left .2s;
    text-decoration: none;
}
.vertical-menu-item:last-child {
    border-bottom: none;
}
.vertical-menu-item:hover {
    background: rgba(0,0,0,.03);
    padding-left: 12px;
}
.vertical-menu-item:active {
    background: rgba(0,0,0,.05);
}
.vertical-menu-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface);
    color: var(--primary);
    font-size: 18px;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.vertical-menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.vertical-menu-title {
    flex: 1;
    min-width: 0;
}
.vertical-menu-arrow {
    color: var(--muted-2);
    font-size: 14px;
    margin-left: 10px;
}

/* --- UI ANIMATIONS & MICRO-INTERACTIONS --- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* 1. Smooth Fade-In Transisi */
.vertical-menu-list, .products-section.active, .brand-tab, .product-card {
    animation: fadeSlideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 2. Micro-interactions saat diklik */
.provider-card, .vertical-menu-item, .product-card, .btn {
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, box-shadow 0.2s ease !important;
}
.provider-card:active, .vertical-menu-item:active, .product-card:active, .btn:active {
    transform: scale(0.96) !important;
}

/* 3. Skeleton Loading Shimmer */
.skeleton {
    background: linear-gradient(90deg, rgba(200,200,200,0.1) 25%, rgba(200,200,200,0.2) 50%, rgba(200,200,200,0.1) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 8px;
}

/* 4. Loading Button Spinner */
@keyframes btn-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn.loading,
button.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after,
button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}
