/* JMONEY — Mobile-first styles matching the Ola Pay / INet Pay reference */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --primary-light: #f0fdf4;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-soft: #5a5a72;
  --text-muted: #8a8aa3;
  --border: #e8e8f0;
  --green: #22c55e;
  --green-light: #dcfce7;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --purple: #a855f7;
  --purple-light: #f3e8ff;
  --yellow: #f59e0b;
  --yellow-light: #fef3c7;
  --red: #ef4444;
  --shadow: 0 4px 20px rgba(34, 197, 94, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  overscroll-behavior: none;
}

button, input { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--primary); text-decoration: none; }

/* Mobile frame — caps content at phone width on tablets/desktop */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Status bar simulation (no system bars — content only) */
.status-bar {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.status-bar.dark { color: #fff; }

/* Top app bar */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: transparent;
}
.app-bar h1 { font-size: 18px; font-weight: 700; }
.app-bar .back-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(0,0,0,0.04);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.app-bar.dark .back-btn { background: rgba(255,255,255,0.15); color: #fff; }

/* Center auth screens (login/register) */
.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background: var(--bg);
}
.auth-logo {
  width: 80px; height: 80px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.auth-sub { font-size: 14px; color: var(--text-soft); margin-bottom: 36px; text-align: center; }

.form { width: 100%; max-width: 360px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus { border-color: var(--primary); }
.field input::placeholder { color: #b8b8c8; }

.btn-primary {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
  transition: transform 0.1s;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; }

.btn-secondary {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: white;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ghost {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  padding: 8px;
}

.auth-footer { margin-top: 24px; font-size: 14px; color: var(--text-soft); text-align: center; }

.apk-download {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.25);
}

/* Top-right APK download pill on auth pages */
.apk-top-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: white !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
  border: 1px solid rgba(255,255,255,0.25);
  letter-spacing: 0.2px;
  transition: transform 0.15s ease;
}
.apk-top-btn:active { transform: scale(0.96); }
.apk-top-btn svg { display: block; }

/* Content area */
.content { padding: 8px 16px 100px; }
.content-tight { padding: 8px 16px 100px; }

/* Card */
.card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

/* Greeting */
.greeting { padding: 8px 4px 18px; display: flex; justify-content: space-between; align-items: center; }
.greeting h2 { font-size: 24px; font-weight: 800; }
.greeting p { font-size: 13px; color: var(--text-soft); }
.bell {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  color: var(--text);
}
.bell::after {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* Balance card — dark gradient */
.balance-card {
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 50%, #22c55e 100%);
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.2);
}
.balance-card.light {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}
.balance-label { font-size: 13px; opacity: 0.85; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.balance-amount { font-size: 40px; font-weight: 800; letter-spacing: -1px; }

.action-row { display: flex; gap: 12px; margin-bottom: 24px; }
.action-btn {
  flex: 1;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  border: none;
}
.action-btn.primary { background: var(--primary); color: white; box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3); }
.action-btn.outline { background: white; color: var(--text); border: 1.5px solid var(--border); }

/* Section title */
.section-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; padding: 0 4px; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.stat-card {
  background: white;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-icon.blue { background: var(--blue-light); color: var(--blue); }
.stat-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-icon.green { background: var(--green-light); color: var(--green); }
.stat-icon.yellow { background: var(--yellow-light); color: var(--yellow); }
.stat-label { font-size: 11px; font-weight: 700; color: var(--text-soft); letter-spacing: 0.5px; margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 800; }

/* Orders list */
.level-tabs {
  display: flex;
  gap: 8px;
  padding: 0 4px 16px;
  overflow-x: auto;
}
.level-tab {
  padding: 10px 18px;
  border-radius: 14px;
  background: white;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow);
}
.level-tab.active { background: var(--primary); color: white; }

.order-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.order-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.order-info { flex: 1; min-width: 0; }
.order-id { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.order-amount { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.order-profit { font-size: 12px; color: var(--green); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.receive-btn {
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
  white-space: nowrap;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0 18px;
  z-index: 50;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}
.nav-item.active { color: var(--primary); }
.nav-item.center {
  margin-top: -32px;
}
.nav-center-btn {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

/* Empty state */
.empty {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 24px;
  margin-top: 12px;
  box-shadow: var(--shadow);
}
.empty-icon {
  width: 80px; height: 80px;
  border-radius: 24px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.empty-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.empty-text { font-size: 14px; color: var(--text-soft); }

/* Wallet specific */
.wallet-balance {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: white;
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.25);
}
.bank-card {
  background: white;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.bank-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bank-info { flex: 1; }
.bank-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--primary); }
.bank-info p { font-size: 12px; color: var(--text-soft); }
.add-now-btn {
  padding: 10px 14px;
  border-radius: 12px;
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-weight: 700;
  font-size: 12px;
}

.withdrawable-card {
  background: white;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
  border: 2px dashed var(--primary);
  box-shadow: var(--shadow);
}
.withdrawable-card h4 { font-size: 13px; color: var(--text-soft); font-weight: 600; margin-bottom: 8px; }
.withdrawable-card .amount { font-size: 28px; font-weight: 800; color: var(--primary); }

.swipe-btn {
  width: 100%;
  height: 60px;
  border-radius: 32px;
  background: #f0f0f5;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
  margin-bottom: 16px;
  cursor: pointer;
}
.swipe-btn-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-soft);
  pointer-events: none;
}
.swipe-btn-handle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  transition: margin-left 0.2s;
  z-index: 2;
}
.swipe-btn.success .swipe-btn-handle { margin-left: calc(100% - 58px); }
.swipe-btn.success .swipe-btn-text { opacity: 0; }

/* Refer page */
.refer-hero {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border-radius: 24px;
  padding: 36px 24px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.refer-hero h2 { font-size: 24px; font-weight: 800; margin: 16px 0 12px; }
.refer-hero p { font-size: 14px; opacity: 0.95; }

.invite-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.invite-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.invite-link-box {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  word-break: break-all;
}
.copy-btn {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.how-card { background: white; border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.how-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.how-step {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
}
.how-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 56px;
  bottom: -18px;
  width: 2px;
  background: var(--border);
}
.how-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary);
}
.how-content h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.how-content p { font-size: 13px; color: var(--text-soft); }

/* Profile */
.profile-header {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  padding: 16px 16px 40px;
  border-radius: 0 0 28px 28px;
  margin-bottom: -28px;
  color: white;
}
.profile-avatar-wrap { display: flex; justify-content: center; margin-top: 16px; }
.profile-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: #ffd1b0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.profile-avatar .check {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid white;
}
.profile-name { text-align: center; font-size: 22px; font-weight: 800; color: var(--text); margin: 12px 0 6px; }
.profile-id {
  display: inline-block;
  margin: 0 auto;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
}

.menu-list { background: white; border-radius: 24px; padding: 8px; margin-bottom: 16px; box-shadow: var(--shadow); }
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.menu-item:hover { background: var(--bg); }
.menu-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.menu-icon.orange { background: #dcfce7; color: var(--primary); }
.menu-icon.blue { background: var(--blue-light); color: var(--blue); }
.menu-icon.yellow { background: var(--yellow-light); color: var(--yellow); }
.menu-icon.green { background: var(--green-light); color: var(--green); }
.menu-icon.purple { background: var(--purple-light); color: var(--purple); }
.menu-label { flex: 1; font-weight: 700; font-size: 15px; }
.menu-arrow { color: var(--text-muted); }

.signout-btn {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  background: #fee2e2;
  color: var(--red);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.version { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* UPI details */
.upi-card {
  background: white;
  border-radius: 24px;
  padding: 28px 24px;
  margin: 16px;
  box-shadow: var(--shadow);
}
.upi-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
}
.upi-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: white;
  margin-bottom: 18px;
}
.upi-input-wrap:focus-within { border-color: var(--primary); }
.upi-input-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.upi-input-wrap input { flex: 1; border: none; outline: none; font-size: 15px; background: transparent; }
.upi-label { font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; margin-bottom: 8px; }

.upi-save-btn {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-soft);
}
.secure-note svg { color: var(--green); }

/* Receive / QR page */
.receive-screen {
  padding: 20px 16px;
  text-align: center;
}
.receive-screen h2 {
  font-size: 16px;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.qr-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #1a1a2e 0%, #2d1b3d 100%);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}
.qr-wrap {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  padding: 16px;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(34, 197, 94, 0.4);
}
.qr-img {
  width: 280px;
  height: 280px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-img img { width: 100%; height: 100%; object-fit: contain; }
.qr-page .caption { margin-top: 24px; font-size: 15px; opacity: 0.9; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
}
.modal {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.modal p { color: var(--text-soft); margin-bottom: 16px; font-size: 14px; }

.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn-primary, .modal-actions .btn-secondary { margin-top: 0; flex: 1; }

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--text);
  padding: 12px 20px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 90%;
  transition: all 0.3s ease;
  animation: toastIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.toast.success .toast-icon { background: var(--green); }
.toast.error .toast-icon { background: var(--red); }
.toast.info .toast-icon { background: var(--blue); }

@keyframes toastIn {
  from { transform: translate(-50%, -40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 3000;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: white;
  border-radius: 28px;
  width: 100%;
  max-width: 340px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
}
.modal-icon.alert { background: var(--yellow-light); color: var(--yellow); }
.modal-icon.confirm { background: var(--primary-light); color: var(--primary); }

.modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.modal p { font-size: 15px; color: var(--text-soft); margin-bottom: 24px; line-height: 1.6; }
.modal .field input { text-align: center; font-size: 18px; font-weight: 700; border-color: var(--primary); }

/* Loading spinner */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Notifications list */
.notif-card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow);
}
.notif-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: #dcfce7;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-content h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.notif-content p { font-size: 13px; color: var(--text-soft); margin-bottom: 6px; }
.notif-time { font-size: 11px; color: var(--text-muted); }

/* Admin styles */
.admin-screen {
  min-height: 100vh;
  padding: 20px;
  background: var(--bg);
}
.admin-login-wrap {
  max-width: 400px;
  margin: 80px auto;
  background: white;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.admin-tab {
  padding: 10px 16px;
  border-radius: 12px;
  background: white;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  border: 1.5px solid var(--border);
}
.admin-tab.active { background: var(--text); color: white; border-color: var(--text); }

.tx-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.tx-row { display: flex; justify-content: space-between; align-items: start; margin-bottom: 8px; }
.tx-amount { font-size: 20px; font-weight: 800; color: var(--primary); }
.tx-meta { font-size: 12px; color: var(--text-muted); }
.tx-actions { display: flex; gap: 8px; margin-top: 12px; }
.tx-approve {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 14px;
}
.tx-reject {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  background: white;
  color: var(--red);
  border: 1.5px solid var(--red);
  font-weight: 700;
  font-size: 14px;
}

/* Utility */
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.hidden { display: none !important; }

/* Live pulse dot */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 1.5s ease-out infinite;
  margin-right: 4px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* History filter pills */
.filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.filter-pill.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

/* QR page — green button on dark bg */
.qr-page .btn-primary {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: white;
  font-weight: 700;
  font-size: 16px;
  height: 56px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}