/* BisaTopup Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; }

/* Loading Spinner */
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal Animation */
.animate-modal {
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Toast */
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(10px); }
}

.toast-show { animation: toastIn 0.3s ease-out; }
.toast-hide { animation: toastOut 0.3s ease-out; }

/* Product Card */
.product-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-color: #16a34a;
}

.product-card:active {
  transform: translateY(0);
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 10px;
}

/* Category Tabs */
.cat-tab {
  background: white;
  color: #6b7280;
  border: 1.5px solid #e5e7eb;
}

.cat-tab:hover {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #86efac;
}

.cat-tab.active-tab {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
}

/* Denom cards */
.denom-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.denom-card:hover {
  border-color: #16a34a;
  background: #f0fdf4;
}

.denom-card.selected {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* Input fields */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: all 0.15s;
}

.form-input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Status badges */
.status-success {
  background: #dcfce7;
  color: #16a34a;
}

.status-failed {
  background: #fee2e2;
  color: #dc2626;
}

.status-pending {
  background: #fef9c3;
  color: #ca8a04;
}

/* Pulse animation for loading states */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse { animation: pulse 1.5s ease-in-out infinite; }

/* Struk/Receipt styles */
.receipt {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.receipt-header {
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #16a34a, #059669);
  color: white;
}

.receipt-body {
  padding: 20px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed #f0f0f0;
  font-size: 14px;
}

.receipt-row:last-child { border-bottom: none; }
.receipt-row .label { color: #6b7280; }
.receipt-row .value { color: #111827; font-weight: 500; text-align: right; max-width: 60%; }

/* Token number style */
.token-number {
  font-family: 'Courier New', monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #16a34a;
  text-align: center;
  background: #f0fdf4;
  padding: 12px;
  border-radius: 10px;
  border: 2px dashed #86efac;
  margin: 12px 0;
}

/* Operator logos area */
.operator-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  color: #6b7280;
  margin: 2px;
}

/* Hero stats */
.stat-card {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

/* Profile section */
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  font-weight: bold;
}

/* Bottom nav for mobile */
@media (max-width: 768px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    display: flex;
    z-index: 40;
    padding: 8px 0;
  }
  
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 0;
  }
  
  .bottom-nav-item.active { color: #16a34a; }
  .bottom-nav-item i { font-size: 18px; }
  
  body { padding-bottom: 65px; }
}

/* Notification dot */
.notif-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
}

/* Topup amount btn selected */
.topup-amount-btn.selected {
  border-color: #16a34a;
  background: #f0fdf4;
}

/* Progress bar */
.progress-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #059669);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Shine effect */
@keyframes shine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% auto;
  animation: shine 1.5s linear infinite;
  border-radius: 8px;
}

/* Copy button */
.copy-btn {
  cursor: pointer;
  color: #16a34a;
  font-size: 12px;
  border: 1px solid #86efac;
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.copy-btn:hover {
  background: #f0fdf4;
}
