@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;1,800&family=Barlow+Condensed:wght@700;800&display=swap');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #22c55e;
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-pill: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255,255,255,0.06);
}

[data-theme="light"] {
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-pill: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--text); font-family: 'Barlow', sans-serif; overflow-x: hidden; min-height: 100vh; }

.header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #312e81 100%) !important;
  padding: 50px 20px 90px;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  text-align: center;
  color: white;
}
.header-body h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.header-body p { font-size: 13px; opacity: 0.8; margin-top: 5px; }

.nav-content {
  display: none;
  min-height: 100vh;
}

.nav-content.active {
  display: block;
}

.wallet-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin: -40px 16px 0;
  padding: 20px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}
.wallet-user { display: flex; align-items: center; gap: 15px; }
.avatar {
  width: 50px; height: 50px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 22px; color: white;
}
.wallet-greeting { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.wallet-name { font-size: 18px; font-weight: 700; }

.services-section { padding: 30px 0 0; }
.services-label { padding: 0 20px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--text-muted); margin-bottom: 15px; }
.services-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 20px; scrollbar-width: none; }
.services-scroll::-webkit-scrollbar { display: none; }

.pill {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  border-radius: 50px; background: var(--bg-card); border: 1.5px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.pill.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3); }
.pill-icon-wrapper { font-size: 18px; display: flex; align-items: center; }

.products-area { padding: 0 16px 100px; }
.product-panel { display: none; animation: fadeIn 0.4s var(--ease); }
.product-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.product-card {
  background: var(--bg-card); padding: 15px 10px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); text-align: center; transition: transform 0.2s;
}
.product-card:active { transform: scale(0.95); background: var(--bg-pill); }
.product-icon-wrapper img { width: 55px; height: 55px; border-radius: 12px; object-fit: contain; }
.product-name-grid { font-size: 13px; font-weight: 700; margin-top: 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.product-status-tag { font-size: 9px; color: var(--text-muted); margin-top: 5px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

.bottom-nav-container { position: fixed; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; z-index: 100; }
.bottom-nav { 
  background: var(--bg-card); padding: 8px; border-radius: 50px; display: flex; gap: 10px; 
  border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.2); backdrop-filter: blur(10px);
}
.nav-item { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--text-muted); cursor: pointer; transition: 0.3s; }
.nav-item.active { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }

.lacak-header { background: linear-gradient(135deg, var(--primary-dark) 0%, #312e81 100%); padding: 60px 20px 80px; text-align: center; color: white; border-bottom-left-radius: var(--radius-xl); border-bottom-right-radius: var(--radius-xl); }
.lacak-container { margin: -50px 20px 0; background: var(--bg-card); padding: 25px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.input-group { position: relative; margin-bottom: 20px; }
.input-group .search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 20px; }
.input-group input { width: 100%; padding: 15px 15px 15px 45px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; outline: none; }
.btn-cari { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; }

.whatsapp-fab { position: fixed; right: 20px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 28px; box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 99; text-decoration: none; }
.whatsapp-badge { position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; background: #ef4444; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; border: 2px solid var(--bg); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 9999; }
.modal-content { background: var(--bg-card); padding: 30px; border-radius: 20px; width: 85%; max-width: 400px; text-align: center; border: 1px solid var(--border); animation: zoomIn 0.3s var(--ease); }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.btn-close-modal { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; margin-top: 20px; }

.dot-merah { width: 5px; height: 5px; background: #ef4444; border-radius: 50%; }
