/* User Portal — shared design system */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --up-primary: #667eea;
  --up-primary-dark: #764ba2;
  --up-accent: #0d6efd;
  --up-success: #10b981;
  --up-warning: #f59e0b;
  --up-danger: #ef4444;
  --up-surface: #ffffff;
  --up-bg-start: #f0f4ff;
  --up-bg-end: #e8eef8;
  --up-text: #1e293b;
  --up-text-muted: #64748b;
  --up-border: rgba(15, 23, 42, 0.08);
  --up-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --up-shadow-hover: 0 20px 50px rgba(15, 23, 42, 0.12);
  --up-radius-lg: 20px;
  --up-radius-md: 14px;
  --up-radius-sm: 10px;
  --up-font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

body.user-portal {
  font-family: var(--up-font);
  background: linear-gradient(160deg, var(--up-bg-start) 0%, var(--up-bg-end) 50%, #f8fafc 100%);
  background-attachment: fixed;
  color: var(--up-text);
  margin: 0;
  padding: 0;
}

body.user-portal .navbar {
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1080;
}

body.user-portal .navbar .navbar-collapse {
  overflow: visible;
}

@media (max-width: 991.98px) {
  body.user-portal .navbar .navbar-collapse.show,
  body.user-portal .navbar .navbar-collapse.collapsing {
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.user-portal .user-portal-nav {
    z-index: 1020;
  }
}

body.user-portal .navbar .dropdown-menu {
  z-index: 1090;
  margin-top: 0.35rem;
}

/* Modals must sit above sticky header / nav (navbar z-index 1080) */
body.user-portal .modal-backdrop {
  z-index: 2000;
}
body.user-portal .modal {
  z-index: 2010;
}

/* Page content: full width of the same .container as the secondary nav */
body.user-portal .container > .row.justify-content-center > [class*="col-"],
body.user-portal .withdraw-container > .container > .row.justify-content-center > [class*="col-"],
body.user-portal .deposit-container > .container > .row.justify-content-center > [class*="col-"],
body.user-portal .withdraw-container > .container > .row.justify-content-center > [class*="col-"],
body.user-portal .profile-container > .container > .row.justify-content-center > [class*="col-"],
body.user-portal .transactions-container > .container > .row.justify-content-center > [class*="col-"],
body.user-portal .referrals-container > .container > .row.justify-content-center > [class*="col-"],
body.user-portal .claims-container > .container > .row.justify-content-center > [class*="col-"],
body.user-portal .income-container > .container > .row.justify-content-center > [class*="col-"],
body.user-portal .activation-container > .container > .row.justify-content-center > [class*="col-"],
body.user-portal .dashboard-container > .container > .row.justify-content-center > [class*="col-"],
body.user-portal .touchpay-page-container > .container > .row.justify-content-center > [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.user-portal .container > .row.justify-content-center,
body.user-portal .withdraw-container > .container > .row.justify-content-center,
body.user-portal .deposit-container > .container > .row.justify-content-center,
body.user-portal .transactions-container > .container > .row.justify-content-center,
body.user-portal .referrals-container > .container > .row.justify-content-center,
body.user-portal .claims-container > .container > .row.justify-content-center,
body.user-portal .income-container > .container > .row.justify-content-center,
body.user-portal .profile-container > .container > .row.justify-content-center,
body.user-portal .dashboard-container > .container > .row.justify-content-center,
body.user-portal .activation-container > .container > .row.justify-content-center,
body.user-portal .touchpay-page-container > .container > .row.justify-content-center {
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
}

/* Secondary navigation — must stay below navbar dropdown */
.user-portal-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--up-border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.user-portal-nav .nav-scroll {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.65rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.user-portal-nav .nav-scroll::-webkit-scrollbar { display: none; }

.user-portal-nav .nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--up-text-muted);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.user-portal-nav .nav-pill:hover {
  color: var(--up-primary);
  background: rgba(102, 126, 234, 0.08);
  text-decoration: none;
}

.user-portal-nav .nav-pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

/* Page shells — alias all legacy container names */
.dashboard-container,
.deposit-container,
.withdraw-container,
.profile-container,
.transactions-container,
.referrals-container,
.claims-container,
.income-container,
.activation-container,
.touchpay-page-container,
.withdraw-container,
.container.affiliate-earnings-page {
  min-height: calc(100vh - 120px);
  padding: 1.5rem 0 2.5rem;
}

/* Cards — unified */
.deposit-card, .profile-card, .transactions-card, .referrals-card,
.claims-card, .income-card, .activation-card,
.welcome-card, .stats-card, .quick-actions-card, .affiliate-card,
.activity-card, .info-card, .commission-card,
.withdraw-main-card, .withdraw-history-card {
  border: none;
  border-radius: var(--up-radius-lg);
  box-shadow: var(--up-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stats-card:hover, .info-card:hover, .commission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--up-shadow-hover);
}

.info-card {
  background: var(--up-surface);
}

.requirement-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid transparent;
  border-radius: var(--up-radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
}

.requirement-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.35);
  box-shadow: var(--up-shadow);
}

.requirement-card.achieved {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
}

.requirement-card.pending {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
}

/* Page headers */
.deposit-header, .profile-header, .transactions-header, .referrals-header,
.claims-header, .income-header, .activation-header {
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%);
  color: #fff;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.deposit-header::before, .profile-header::before, .transactions-header::before,
.referrals-header::before, .claims-header::before, .income-header::before,
.activation-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.deposit-header h3, .profile-header h3, .transactions-header h3,
.referrals-header h3, .claims-header h3, .income-header h3,
.activation-header h3 { position: relative; font-weight: 800; }

.deposit-content, .profile-info, .transactions-content, .referrals-content,
.claims-content, .income-content, .activation-content {
  padding: 2rem;
}

/* Welcome hero (dashboard) */
.welcome-card {
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.welcome-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.welcome-card .card-body { position: relative; z-index: 1; }

/* Stats */
.stats-card {
  background: var(--up-surface);
  overflow: hidden;
}

.stats-card .card-body { padding: 1.5rem; }

.stats-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--up-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.35rem;
  color: #fff;
}

.icon-success { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.icon-info { background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%); }
.icon-primary { background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%); }
.icon-warning { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.icon-danger { background: linear-gradient(135deg, #ef4444 0%, #f97316 100%); }

/* Buttons */
.btn-modern {
  border-radius: var(--up-radius-sm);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  text-decoration: none;
}

.btn-modern.btn-primary { background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%); color: #fff; }
.btn-modern.btn-success { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); color: #fff; }
.btn-modern.btn-info { background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%); color: #fff; }
.btn-modern.btn-warning { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); color: #1e293b; }
.btn-modern.btn-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.stat-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s;
}

.stat-link:hover {
  transform: scale(1.03);
  text-decoration: none;
  color: inherit;
}

.quick-actions-card {
  background: var(--up-surface);
}

.quick-actions-card .d-flex { gap: 0.65rem !important; }

/* Forms */
.form-control-modern,
.form-control.form-control-modern {
  border-radius: var(--up-radius-sm);
  border: 1.5px solid #e2e8f0;
  padding: 0.7rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-modern:focus {
  border-color: var(--up-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Info blocks */
.user-info, .affiliate-info, .requirement-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--up-border);
  border-radius: var(--up-radius-md);
  padding: 1.25rem 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child { border-bottom: none; }

.info-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%);
  border-radius: var(--up-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-right: 1rem;
  flex-shrink: 0;
}

.info-label { font-size: 0.8rem; color: var(--up-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.info-value { font-size: 1.05rem; font-weight: 700; color: var(--up-text); }

.profile-avatar, .user-avatar {
  width: 88px;
  height: 88px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2.25rem;
  border: 3px solid rgba(255,255,255,0.35);
  color: #fff;
}

/* Code / wallet displays */
.wallet-display, .affiliate-code, .referral-link {
  background: #fff;
  border: 1.5px solid #c7d2fe;
  border-radius: var(--up-radius-sm);
  padding: 0.85rem 1rem;
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--up-primary);
  word-break: break-all;
}

/* Tables */
.table-modern {
  border-radius: var(--up-radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  margin-bottom: 0;
}

.table-modern thead th {
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%);
  color: #fff;
  border: none;
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-modern tbody tr { transition: background 0.15s; }
.table-modern tbody tr:hover { background: rgba(102, 126, 234, 0.04); }
.table-modern tbody td {
  padding: 0.9rem 1rem;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

/* Badges & alerts */
.badge-modern { border-radius: 8px; padding: 0.4rem 0.75rem; font-weight: 700; font-size: 0.75rem; }

/* Deposit transaction status */
.deposit-status-cell { min-width: 168px; }
.deposit-status-pending-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.65rem 0.7rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 55%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--up-radius-sm);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.08);
}
.deposit-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.deposit-status-pending {
  align-self: center;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
  position: relative;
}
.deposit-status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: deposit-status-pulse 1.8s ease-out infinite;
}
@keyframes deposit-status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.deposit-status-approved {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.deposit-status-rejected {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.deposit-verify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.deposit-verify-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.38);
  filter: brightness(1.03);
}
.deposit-verify-btn:active { transform: translateY(0); }
.deposit-verify-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
}
.deposit-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(220, 53, 69, 0.35);
  border-radius: 10px;
  background: #fff;
  color: #dc3545;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.deposit-delete-btn:hover {
  color: #fff;
  background: #dc3545;
  border-color: #dc3545;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.28);
}
.deposit-delete-btn:active { transform: translateY(0); }

.alert-portal, .alert[class*="border-0"] {
  border-radius: var(--up-radius-sm) !important;
  border: none !important;
  font-weight: 500;
}

/* Empty states */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}

/* Commission cards (income plan) */
.commission-card {
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%);
  color: #fff;
  border-radius: var(--up-radius-md);
  padding: 1.25rem;
  text-align: center;
  height: 100%;
}

.commission-card.level-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.commission-card.level-2 { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.commission-card.level-3 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.commission-card.level-4 { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.commission-card.level-5 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.commission-card.level-6 { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }
.commission-card.level-7 { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.commission-card.level-8 { background: linear-gradient(135deg, #64748b 0%, #334155 100%); }

/* Withdraw page */
.withdraw-hero {
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%);
  color: #fff;
  border-radius: var(--up-radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.25);
}

.withdraw-hero h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.35rem; }
.withdraw-hero p { opacity: 0.9; font-size: 0.95rem; }

.withdraw-balance-card {
  background: #fff;
  border-radius: var(--up-radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--up-shadow);
  border: 1px solid var(--up-border);
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.withdraw-balance-card:hover { transform: translateY(-3px); box-shadow: var(--up-shadow-hover); }
.withdraw-balance-card .balance-icon { width: 48px; height: 48px; border-radius: var(--up-radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.withdraw-balance-card.affiliate .balance-icon { background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%); color: #fff; }
.withdraw-balance-card.task .balance-icon { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); color: #fff; }
.withdraw-balance-card .balance-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--up-text-muted); font-weight: 700; }
.withdraw-balance-card .balance-value { font-size: 1.45rem; font-weight: 800; color: var(--up-text); }

.withdraw-main-card .card-header-modern,
.withdraw-history-card .card-header-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 1.15rem 1.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--up-text);
}

.withdraw-main-card .card-body { padding: 1.5rem; }
.withdraw-main-card { margin-bottom: 1.5rem; }
.withdraw-info-box { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1px solid #93c5fd; border-radius: var(--up-radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.withdraw-info-box ul { margin: 0; padding-left: 1.2rem; color: #1e40af; font-size: 0.88rem; line-height: 1.65; }
.withdraw-alert-modern { border-radius: var(--up-radius-sm); padding: 1rem 1.15rem; border: none; display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 1rem; }
.withdraw-alert-modern.alert-success { background: #ecfdf5; color: #065f46; }
.withdraw-alert-modern.alert-danger { background: #fef2f2; color: #991b1b; }
.withdraw-alert-modern.alert-warning { background: #fffbeb; color: #92400e; }

.withdraw-msg-modal { border: none; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2); }
.withdraw-msg-modal .modal-title { font-size: 1.15rem; color: #0f172a; }
.withdraw-msg-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin: 0 auto; font-size: 1.75rem; }
.withdraw-msg-body { font-size: 0.98rem; line-height: 1.55; color: #334155; }
.withdraw-msg-body a { font-weight: 700; text-decoration: none; }
.withdraw-msg-modal.is-success .withdraw-msg-icon { background: #ecfdf5; color: #059669; }
.withdraw-msg-modal.is-error .withdraw-msg-icon { background: #fef2f2; color: #dc2626; }
.withdraw-msg-modal.is-warning .withdraw-msg-icon { background: #fffbeb; color: #d97706; }
.withdraw-msg-modal.is-upgrade .withdraw-msg-icon { background: #eef2ff; color: #4f46e5; }
.withdraw-msg-modal.is-info .withdraw-msg-icon { background: #eff6ff; color: #2563eb; }
.withdraw-msg-modal.is-upgrade .btn-primary,
.withdraw-msg-modal.is-success .btn-primary,
.withdraw-msg-modal.is-info .btn-primary {
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%);
  border: none;
}
.withdraw-msg-modal.is-error .btn-primary { background: #dc2626; border-color: #dc2626; }
.withdraw-msg-modal.is-warning .btn-primary { background: #d97706; border-color: #d97706; }

.withdraw-form .form-label { font-weight: 700; color: #334155; font-size: 0.9rem; }
.withdraw-form .form-control, .withdraw-form .form-select { border-radius: var(--up-radius-sm); border: 1.5px solid #e2e8f0; padding: 0.6rem 0.9rem; }
.withdraw-form .form-control:focus, .withdraw-form .form-select:focus { border-color: var(--up-primary); box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12); }
.withdraw-btn-primary { background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%); border: none; border-radius: var(--up-radius-sm); padding: 0.7rem 1.5rem; font-weight: 700; color: #fff; box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35); }
.withdraw-btn-primary:hover { transform: translateY(-1px); color: #fff; }
.withdraw-otp-card { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border: 1px solid #7dd3fc; border-radius: var(--up-radius-md); padding: 1.35rem; margin-bottom: 1.25rem; }
.withdraw-otp-card .form-control { max-width: 180px; font-size: 1.2rem; letter-spacing: 0.35em; text-align: center; }

.withdraw-email-verify {
  background: linear-gradient(145deg, #eef2ff 0%, #f8fafc 55%, #ecfeff 100%);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--up-radius-md);
  padding: 1.35rem 1.35rem 1.25rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}
.withdraw-email-verify-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.withdraw-email-verify-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}
.withdraw-email-verify-head h6 {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
}
.withdraw-email-verify-head p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}
.withdraw-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 1rem;
  max-width: 100%;
  word-break: break-all;
}
.withdraw-email-chip i { color: #ea4335; }
.withdraw-email-verify-form .form-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: #334155;
}
.withdraw-email-otp-input {
  max-width: 200px;
  font-size: 1.35rem !important;
  letter-spacing: 0.4em;
  text-align: center;
  font-weight: 700;
  border: 1.5px solid #c7d2fe !important;
  border-radius: var(--up-radius-sm) !important;
}
.withdraw-email-otp-input:focus {
  border-color: var(--up-primary) !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15) !important;
}
.withdraw-email-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.withdraw-contact-verify {
  background: linear-gradient(145deg, #ecfdf5 0%, #f8fafc 55%, #eff6ff 100%);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}
.withdraw-contact-verify .withdraw-email-verify-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}
.withdraw-history-card .table thead th { background: #f8fafc; color: #475569; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #e2e8f0; padding: 0.85rem 1rem; }
.withdraw-history-card .table tbody td { padding: 0.85rem 1rem; vertical-align: middle; }
.badge-status { padding: 0.35rem 0.7rem; border-radius: 8px; font-weight: 700; font-size: 0.72rem; }
.badge-status.pending { background: #fef3c7; color: #92400e; }
.badge-status.approved { background: #d1fae5; color: #065f46; }
.badge-status.rejected { background: #fee2e2; color: #991b1b; }
.badge-status.cancelled { background: #e5e7eb; color: #374151; }
.withdraw-empty-state { padding: 2.5rem 1.5rem; text-align: center; color: #94a3b8; }
.withdraw-empty-state i { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.55; }
.withdraw-back-btn { border-radius: var(--up-radius-sm); padding: 0.55rem 1.15rem; font-weight: 600; border: 1px solid #e2e8f0; color: #475569; }
.withdraw-back-btn:hover { background: #f1f5f9; color: var(--up-text); }
.withdraw-debug-panel { font-family: ui-monospace, monospace; font-size: 11px; background: #1e293b; color: #e2e8f0; border-radius: var(--up-radius-sm); padding: 1rem; margin-bottom: 1rem; white-space: pre-wrap; word-break: break-all; }
.withdraw-debug-panel summary { cursor: pointer; color: #38bdf8; font-weight: 600; }

.withdraw-debug-panel summary { cursor: pointer; color: #38bdf8; font-weight: 600; }

/* Activation page — use full Bootstrap container (same as nav) */
.activation-page-wrap { max-width: none; }

.activation-page-card {
  background: #fff;
  border-radius: var(--up-radius-lg);
  box-shadow: var(--up-shadow);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.activation-page-body { padding: 1.75rem 2rem 2rem; }

.activation-page-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.activation-hero {
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 55%, #4f46e5 100%);
  color: #fff;
  border-radius: 0;
  padding: 2rem 2rem 1.85rem;
  margin-bottom: 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.activation-hero::before {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.activation-hero::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.activation-hero .hero-inner { position: relative; z-index: 1; }
.activation-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.activation-hero h1 { font-size: 1.85rem; font-weight: 800; margin-bottom: 0.45rem; letter-spacing: -0.03em; }
.activation-hero p { opacity: 0.92; margin: 0; font-size: 0.98rem; max-width: 36rem; line-height: 1.55; }
.activation-hero-claim-note {
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  opacity: 0.95 !important;
  max-width: 40rem;
}

.activation-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.activation-status-chip.is-upgraded {
  background: rgba(255, 255, 255, 0.95);
  color: #047857;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.activation-status-chip.is-pending {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.activation-fee-chip {
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: var(--up-radius-sm);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  min-width: 120px;
}
.activation-fee-chip .fee-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--up-text-muted);
}
.activation-fee-chip .fee-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--up-primary);
  letter-spacing: -0.02em;
}

.activation-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 992px) {
  .activation-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
  .activation-cta-side {
    position: sticky;
    top: 1.25rem;
  }
}

.activation-panel {
  margin-bottom: 1.75rem;
  padding: 1.35rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--up-border);
  border-radius: var(--up-radius-lg);
}

.activation-progress-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--up-primary), var(--up-primary-dark));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.activation-steps-enhanced {
  position: relative;
  padding-bottom: 0.25rem;
}
.activation-steps-enhanced::before {
  content: '';
  position: absolute;
  top: 2.15rem;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
  z-index: 0;
}
.activation-steps-enhanced .activation-step {
  position: relative;
  z-index: 1;
  border-width: 2px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.activation-steps-enhanced .activation-step.done {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
}
.activation-steps-enhanced .activation-step.active {
  border-color: rgba(102, 126, 234, 0.4);
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
  transform: translateY(-2px);
}

.activation-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 576px) {
  .activation-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .activation-benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

.activation-benefit-tile {
  background: #fff;
  border: 1px solid var(--up-border);
  border-radius: var(--up-radius-md);
  padding: 1.15rem;
  height: 100%;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.activation-benefit-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--up-shadow-hover);
}
.activation-benefit-tile .benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.activation-benefit-tile.tile-touchpay .benefit-icon { background: rgba(16, 185, 129, 0.12); color: var(--up-success); }
.activation-benefit-tile.tile-team .benefit-icon { background: rgba(102, 126, 234, 0.12); color: var(--up-primary); }
.activation-benefit-tile.tile-aff1 .benefit-icon { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.activation-benefit-tile.tile-aff2 .benefit-icon { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.activation-benefit-tile.tile-claim .benefit-icon { background: rgba(245, 158, 11, 0.12); color: var(--up-warning); }
.activation-benefit-tile.tile-access .benefit-icon { background: rgba(16, 185, 129, 0.12); color: #059669; }
.activation-benefit-tile .benefit-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--up-text-muted);
  margin-bottom: 0.25rem;
}
.activation-benefit-tile .benefit-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--up-text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.activation-benefit-tile .benefit-desc {
  font-size: 0.82rem;
  color: var(--up-text-muted);
  line-height: 1.45;
  margin: 0;
}

.activation-panel-compare {
  padding: 0;
  background: transparent;
  border: none;
}

.activation-panel-compare .touchpay-upgrade-nudge {
  margin-bottom: 0;
}

.activation-cta-side {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.activation-cta-side form,
.activation-cta-side .btn { width: 100%; max-width: 280px; }

.activation-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.activation-step {
  flex: 1;
  min-width: 100px;
  background: #fff;
  border: 1px solid var(--up-border);
  border-radius: var(--up-radius-md);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--up-shadow);
  position: relative;
}

.activation-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.activation-step.done .step-num { background: var(--up-success); color: #fff; }
.activation-step.active .step-num { background: linear-gradient(135deg, var(--up-primary), var(--up-primary-dark)); color: #fff; }
.activation-step .step-label { font-size: 0.75rem; font-weight: 700; color: var(--up-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.activation-step .step-title { font-size: 0.875rem; font-weight: 700; color: var(--up-text); margin-top: 0.15rem; }

.activation-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .activation-balance-grid { grid-template-columns: repeat(3, 1fr); }
}

.activation-balance-tile {
  background: #fff;
  border-radius: var(--up-radius-md);
  padding: 1.25rem;
  border: 1px solid var(--up-border);
  box-shadow: var(--up-shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.activation-balance-tile:hover { transform: translateY(-3px); box-shadow: var(--up-shadow-hover); }
.activation-balance-tile.highlight { border-color: rgba(102, 126, 234, 0.35); background: linear-gradient(180deg, #fff 0%, #f8faff 100%); }
.activation-balance-tile .tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.activation-balance-tile .tile-icon.success { background: rgba(16, 185, 129, 0.12); color: var(--up-success); }
.activation-balance-tile .tile-icon.warning { background: rgba(245, 158, 11, 0.12); color: var(--up-warning); }
.activation-balance-tile .tile-icon.primary { background: rgba(102, 126, 234, 0.12); color: var(--up-primary); }
.activation-balance-tile .tile-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--up-text-muted); }
.activation-balance-tile .tile-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.15rem; }

.activation-progress-wrap {
  background: #fff;
  border-radius: var(--up-radius-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--up-border);
  box-shadow: var(--up-shadow);
  margin-bottom: 1.5rem;
}

.activation-progress-wrap .progress {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.activation-progress-wrap .progress-bar {
  background: linear-gradient(90deg, var(--up-primary) 0%, var(--up-success) 100%);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.activation-cta-card {
  border-radius: var(--up-radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  border: none;
  box-shadow: var(--up-shadow);
}

.activation-cta-card.ready {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.activation-cta-card.pending-funds {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.activation-cta-card.active-done {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.activation-cta-card .cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.activation-cta-card.ready .cta-icon { background: rgba(16, 185, 129, 0.15); color: var(--up-success); }
.activation-cta-card.pending-funds .cta-icon { background: rgba(245, 158, 11, 0.15); color: var(--up-warning); }
.activation-cta-card.active-done .cta-icon { background: rgba(59, 130, 246, 0.15); color: #2563eb; }

.activation-touchpay-panel {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #fff 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--up-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--up-shadow);
  scroll-margin-top: 100px;
  position: relative;
}

.activation-touchpay-panel.highlighted {
  border: 2px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.18), 0 0 0 4px rgba(16, 185, 129, 0.06);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 30%, #fff 100%);
}

.activation-touchpay-panel.scroll-flash {
  animation: touchpayPulse 1.2s ease 2;
}

@keyframes touchpayPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(16, 185, 129, 0.18), 0 0 0 4px rgba(16, 185, 129, 0.06); }
  50% { box-shadow: 0 12px 40px rgba(16, 185, 129, 0.35), 0 0 0 8px rgba(16, 185, 129, 0.12); }
}

.touchpay-featured-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-earn-now {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1e293b;
  border: none;
  font-weight: 800;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  animation: earnNowPulse 2.5s ease-in-out infinite;
}

@keyframes earnNowPulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
  }
  50% {
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.65), 0 0 0 4px rgba(245, 158, 11, 0.18);
  }
}

.btn-earn-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
  color: #1e293b;
}

.activation-earn-banner .earn-banner-cta {
  flex-shrink: 0;
}

.activation-earn-banner {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  color: #fff;
  border-radius: var(--up-radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.activation-earn-banner .earn-banner-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.touchpay-balance-highlight {
  background: #fff;
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--up-radius-md);
  padding: 0.75rem 1.25rem;
  min-width: 140px;
}

.touchpay-balance-highlight .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--up-text-muted);
}

.touchpay-balance-highlight .amount {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--up-success);
}

.touchpay-instructions {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--up-radius-md);
  padding: 1.25rem 1.5rem;
  overflow: hidden;
}

.touchpay-instructions-grid {
  margin: 0;
}

.touchpay-instructions-col {
  padding: 0.25rem 0;
}

.touchpay-instructions-col + .touchpay-instructions-col {
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

@media (min-width: 992px) {
  .touchpay-instructions-col {
    padding: 0.25rem 1.25rem;
  }

  .touchpay-instructions-col:first-child {
    padding-left: 0;
    border-right: 2px solid rgba(16, 185, 129, 0.2);
    padding-right: 1.5rem;
  }

  .touchpay-instructions-col + .touchpay-instructions-col {
    border-top: none;
    margin-top: 0;
    padding-top: 0.25rem;
    padding-right: 0;
  }
}

.touchpay-referral-col {
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
}

.touchpay-referral-lead {
  font-size: 0.86rem;
  color: var(--up-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.touchpay-referral-steps .step-badge-referral {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.touchpay-referral-steps a {
  color: #667eea;
  font-weight: 700;
  text-decoration: none;
}

.touchpay-referral-steps a:hover {
  text-decoration: underline;
}

.touchpay-referral-link-box {
  background: #fff;
  border: 1px dashed rgba(102, 126, 234, 0.35);
  border-radius: var(--up-radius-sm);
  padding: 0.85rem;
}

.touchpay-team-earnings {
  background: #fff;
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--up-radius-sm);
  padding: 0.9rem 1rem;
}

.touchpay-team-earnings-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #4f46e5;
  margin-bottom: 0.35rem;
}

.touchpay-team-earnings-note,
.touchpay-team-earnings-foot {
  font-size: 0.78rem;
  color: var(--up-text-muted);
  line-height: 1.45;
}

.touchpay-team-earnings-pill {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.06));
  border: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: var(--up-radius-sm);
  padding: 0.55rem 0.65rem;
  text-align: center;
  height: 100%;
}

.touchpay-team-earnings-pill .team-size {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--up-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.touchpay-team-earnings-pill .team-amount {
  font-size: 0.95rem;
  font-weight: 800;
  color: #5b21b6;
}

.touchpay-commission-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.touchpay-rate-chip {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--up-radius-sm);
  padding: 0.55rem 0.65rem;
  text-align: center;
}

.touchpay-rate-chip.is-current {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.04));
  border-color: rgba(16, 185, 129, 0.35);
}

.touchpay-rate-chip.is-upgrade {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
  border-color: rgba(245, 158, 11, 0.35);
}

.touchpay-rate-chip .rate-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--up-text-muted);
  margin-bottom: 0.1rem;
}

.touchpay-rate-chip strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--up-text);
  line-height: 1.2;
}

.touchpay-rate-chip .rate-hint {
  display: block;
  font-size: 0.68rem;
  color: var(--up-text-muted);
  margin-top: 0.15rem;
}

.touchpay-instructions .instructions-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--up-text);
  margin-bottom: 1rem;
}

.touchpay-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.touchpay-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.touchpay-steps .step-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--up-success), #059669);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.touchpay-steps li > div > strong {
  display: block;
  font-size: 0.9rem;
  color: var(--up-text);
  margin-bottom: 0.1rem;
}

.touchpay-steps li span strong {
  display: inline;
  font-size: inherit;
  font-weight: 800;
  color: var(--up-text);
}

.touchpay-steps li span {
  font-size: 0.82rem;
  color: var(--up-text-muted);
  line-height: 1.45;
}

.touchpay-cta-box {
  background: #fff;
  border: 2px dashed rgba(16, 185, 129, 0.35);
  border-radius: var(--up-radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.touchpay-upgrade-nudge {
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: var(--up-radius-md);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 45%, #fff 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.12);
}

.touchpay-upgrade-nudge-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.touchpay-upgrade-nudge-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #b45309;
  background: rgba(245, 158, 11, 0.18);
  flex-shrink: 0;
}

.touchpay-upgrade-nudge-title {
  font-size: 1rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.touchpay-upgrade-nudge-text {
  font-size: 0.86rem;
  color: #78350f;
  line-height: 1.5;
}

.touchpay-upgrade-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.touchpay-compare-col {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--up-radius-md);
  padding: 0.9rem 1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.touchpay-compare-col.is-current {
  border-color: #e2e8f0;
}

.touchpay-compare-col.is-upgraded {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}

.compare-plan-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--up-text-muted);
  margin-bottom: 0.35rem;
}

.compare-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: #f1f5f9;
  color: #64748b;
}

.compare-plan-badge.is-featured {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.compare-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-metrics li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #e2e8f0;
}

.compare-metrics li:last-child { border-bottom: none; padding-bottom: 0; }

.compare-metric-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--up-text-muted);
  font-weight: 600;
}

.compare-metric-value {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--up-text);
  text-align: right;
  white-space: nowrap;
}

.compare-metric-value.is-muted {
  color: #94a3b8;
  font-weight: 700;
}

.compare-metric-value.is-better {
  color: #047857;
}

.touchpay-compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.touchpay-compare-vs span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #b45309;
  background: #fff;
  border: 2px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.touchpay-upgrade-nudge-footer {
  text-align: center;
}

.touchpay-upgrade-btn {
  min-width: 220px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  animation: touchpayUpgradeGlow 2.5s ease-in-out infinite;
}

@keyframes touchpayUpgradeGlow {
  0%, 100% { box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 8px 28px rgba(245, 158, 11, 0.55); }
}

.touchpay-cta-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.25), transparent);
  margin-bottom: 1rem;
}

.touchpay-cta-main { padding: 0.15rem 0.1rem 0; }

.touchpay-start-btn {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  animation: touchpayBtnGlow 2.5s ease-in-out infinite;
}

@keyframes touchpayBtnGlow {
  0%, 100% { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35); }
  50% { box-shadow: 0 8px 28px rgba(16, 185, 129, 0.55); }
}

.activation-touchpay-panel .task-stat-pill {
  background: #fff;
  border-radius: var(--up-radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
  border: 1px solid var(--up-border);
}

.activation-touchpay-panel .task-stat-pill .stat-label { font-size: 0.7rem; color: var(--up-text-muted); font-weight: 600; text-transform: uppercase; }
.activation-touchpay-panel .task-stat-pill .stat-val { font-size: 1rem; font-weight: 800; color: var(--up-text); }

.activation-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .activation-benefit-grid { grid-template-columns: repeat(4, 1fr); }
}

.activation-benefit-item {
  background: #fff;
  border: 1px solid var(--up-border);
  border-radius: var(--up-radius-md);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.activation-benefit-item i {
  font-size: 1.35rem;
  color: var(--up-success);
  margin-bottom: 0.5rem;
  display: block;
}

.activation-benefit-item strong { display: block; font-size: 0.85rem; margin-bottom: 0.2rem; }
.activation-benefit-item span { font-size: 0.75rem; color: var(--up-text-muted); }

.income-short-card {
  background: #fff;
  border: 1px solid var(--up-border);
  border-radius: var(--up-radius-md);
  padding: 1.25rem;
  height: 100%;
  box-shadow: var(--up-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.income-short-card:hover { transform: translateY(-3px); box-shadow: var(--up-shadow-hover); }

.income-short-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.income-short-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--up-text-muted); }
.income-short-value { font-size: 1.1rem; font-weight: 800; color: var(--up-text); margin-top: 0.25rem; }

.activation-profile-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  background: #fff;
  border: 1px solid var(--up-border);
  border-radius: var(--up-radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--up-shadow);
}

.activation-profile-strip .profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--up-primary), var(--up-primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.activation-section-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Withdraw tooltips */
.tooltip-container { position: relative; display: inline-block; width: 100%; }
.tooltip {
  visibility: hidden; width: 280px; background: #1e293b; color: #fff;
  border-radius: 12px; padding: 12px; position: absolute; z-index: 1000;
  bottom: 125%; left: 50%; margin-left: -140px; opacity: 0;
  transition: opacity 0.3s; font-size: 14px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.tooltip::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px;
  border-width: 5px; border-style: solid; border-color: #1e293b transparent transparent transparent;
}
.tooltip.show { visibility: visible; opacity: 1; }
.tooltip .tooltip-line { margin: 4px 0; padding: 2px 0; }
.tooltip .tooltip-line.charge { color: #fca5a5; font-weight: bold; }
.tooltip .tooltip-line.received { color: #86efac; font-weight: bold; }
.tooltip .tooltip-line.total { color: #93c5fd; font-weight: bold; border-top: 1px solid #475569; padding-top: 6px; margin-top: 8px; }
.amount-input { cursor: pointer; position: relative; }

.history-tooltip-container { position: relative; display: inline-block; }
.history-tooltip {
  visibility: hidden; min-width: 220px; max-width: 280px; width: max-content;
  background: #1e293b; color: #fff;
  border-radius: 12px; padding: 12px 14px; position: absolute; z-index: 1055;
  top: calc(100% + 8px); left: 0; opacity: 0; transition: opacity 0.2s;
  font-size: 13px; line-height: 1.45; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  white-space: normal; pointer-events: auto;
}
.history-tooltip::after {
  content: ""; position: absolute; bottom: 100%; left: 18px;
  border-width: 6px; border-style: solid;
  border-color: transparent transparent #1e293b transparent;
}
.history-tooltip.show { visibility: visible; opacity: 1; }
.history-tooltip .tooltip-line { margin: 4px 0; padding: 2px 0; }
.history-tooltip .tooltip-line.charge { color: #fca5a5; font-weight: 700; }
.history-tooltip .tooltip-line.received { color: #86efac; font-weight: 700; }
.history-tooltip .tooltip-line.total { color: #93c5fd; font-weight: 700; border-bottom: 1px solid #475569; padding-bottom: 6px; margin-bottom: 6px; border-top: none; padding-top: 0; margin-top: 0; }
.withdraw-history-card .dataTables_wrapper { padding: 0.35rem 0.75rem 1rem; }
.withdraw-history-card .dataTables_filter input,
.transactions-content .dataTables_filter input,
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
}
.transactions-content .dataTables_wrapper { margin-top: 0.25rem; padding-bottom: 0.25rem; }

.dataTables_wrapper .dataTables_length select {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.35rem 2rem 0.35rem 0.65rem;
  min-width: 4.75rem;
  width: auto;
  max-width: none;
  line-height: 1.4;
  background-position: right 0.55rem center;
}

.transactions-container,
.transactions-card,
.transactions-content,
.withdraw-container,
.withdraw-main-card,
.withdraw-history-card,
.referrals-container,
.referrals-card,
.referrals-content,
.claims-container,
.claims-card,
.claims-content,
.deposit-container,
.deposit-card {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.transactions-container .row,
.transactions-container [class*="col-"],
.withdraw-container .row,
.withdraw-container [class*="col-"],
.referrals-container .row,
.referrals-container [class*="col-"],
.claims-container .row,
.claims-container [class*="col-"],
.deposit-container .row,
.deposit-container [class*="col-"] {
  min-width: 0;
  max-width: 100%;
}
.table-scroll-host,
.transactions-content .dataTables_wrapper,
.withdraw-history-card .dataTables_wrapper,
.referrals-content .dataTables_wrapper,
.claims-content .dataTables_wrapper,
.deposit-card .dataTables_wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.dataTables_wrapper .dataTables_scroll,
.dataTables_wrapper .dataTables_scrollBody {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
.dataTables_wrapper .dataTables_scrollHead {
  overflow: hidden !important;
}

.btn-affiliate-earnings {
  border-radius: var(--up-radius-sm);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border: 2px solid #fde047;
  background: #fefce8;
  color: #a16207;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s;
}

.btn-affiliate-earnings:hover { background: #fde047; color: #713f12; text-decoration: none; }

/* Mobile bottom navigation */
.user-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--up-border);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
}

.user-mobile-nav .mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.user-mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--up-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.user-mobile-nav a i { font-size: 1.2rem; }
.user-mobile-nav a.active { color: var(--up-primary); }
.user-mobile-nav a.mobile-nav-earn { color: #b45309; }
.user-mobile-nav a.mobile-nav-earn i { font-weight: 700; }
.user-mobile-nav a.mobile-nav-earn.active { color: #d97706; }
.user-mobile-nav a:hover { color: var(--up-primary); text-decoration: none; }
.user-mobile-nav a.mobile-nav-earn:hover { color: #d97706; }

/* Floating upline support button */
.support-fab {
  position: fixed;
  z-index: 1050;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
  font-size: 2rem;
  transition: background 0.2s, transform 0.2s;
}

.support-fab:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  color: #fff;
}

@media (max-width: 767.98px) {
  .support-fab {
    top: auto;
    left: auto;
    right: 16px;
    bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: 52px;
    height: 52px;
    font-size: 1.65rem;
  }
}

/* Animations */
.fade-in-up { animation: upFade 0.45s ease-out both; }
@keyframes upFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 991.98px) {
  .user-mobile-nav { display: block; }
  .dashboard-container,
  .deposit-container,
  .withdraw-container,
  .profile-container,
  .transactions-container,
  .referrals-container,
  .claims-container,
  .income-container,
  .activation-container,
  .touchpay-page-container,
  .withdraw-container {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  body.user-portal footer {
    padding-bottom: calc(1.5rem + 4.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 767.98px) {
  /* Tighter page gutters: less left/right dead space on mobile */
  body.user-portal .container {
    --bs-gutter-x: 0.75rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .dashboard-container,
  .deposit-container,
  .withdraw-container,
  .profile-container,
  .transactions-container,
  .referrals-container,
  .claims-container,
  .income-container,
  .activation-container,
  .touchpay-page-container,
  .container.affiliate-earnings-page {
    padding-top: 0.75rem;
    padding-left: 0;
    padding-right: 0;
  }

  .deposit-content, .profile-info, .transactions-content, .referrals-content,
  .claims-content, .income-content, .activation-content {
    padding: 0.9rem 0.7rem;
  }
  .deposit-header, .profile-header, .transactions-header, .referrals-header,
  .claims-header, .income-header, .activation-header {
    padding: 1.15rem 0.7rem;
  }
  .user-info, .affiliate-info {
    padding: 0.85rem 0.7rem;
  }
  .withdraw-main-card .card-body,
  .withdraw-otp-card,
  .withdraw-email-verify {
    padding: 0.9rem 0.7rem;
  }
  .withdraw-email-otp-input {
    max-width: 100%;
    flex: 1 1 140px;
  }
  .withdraw-main-card .card-header-modern,
  .withdraw-history-card .card-header-modern {
    padding: 0.9rem 0.7rem;
  }
  .withdraw-history-card .dataTables_wrapper {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .btn-modern { padding: 0.55rem 1rem; font-size: 0.85rem; }
  .table-modern thead th, .table-modern tbody td { padding: 0.7rem 0.65rem; font-size: 0.85rem; }

  .welcome-card .welcome-actions-wrap {
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
    margin-top: 0.75rem;
  }

  .welcome-card .btn-earn-now {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 1.05rem;
    order: -1;
  }

  .welcome-card .welcome-meta-stats {
    width: 100%;
    justify-content: space-around;
    padding-top: 0.25rem;
  }

  .activation-earn-banner > .d-flex {
    flex-direction: column;
    align-items: stretch !important;
  }

  .activation-earn-banner .earn-banner-cta {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    margin-top: 0.25rem;
  }

  .activation-page-body { padding: 0.9rem 0.7rem; }
  .activation-hero { padding: 1.25rem 0.7rem; }
  .activation-hero h1 { font-size: 1.45rem; }
  .activation-steps-enhanced::before { display: none; }
  .activation-panel { padding: 0.85rem 0.7rem; }
  .touchpay-upgrade-compare {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .touchpay-compare-vs {
    order: 2;
    justify-content: center;
    padding: 0.15rem 0;
  }
  .touchpay-compare-col.is-upgraded { order: 3; }
  .touchpay-compare-col.is-current { order: 1; }
}

@media (min-width: 992px) {
  .user-portal-nav .nav-pill { padding: 0.55rem 1.15rem; }
}

.pagination {
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination .page-link {
  border-radius: 8px;
  margin: 0;
  border: 1px solid #e2e8f0;
  color: var(--up-text-muted) !important;
  font-weight: 700;
  min-width: 2.25rem;
  text-align: center;
  padding: 0.4rem 0.7rem;
  line-height: 1.25;
}
.pagination .page-item.active .page-link,
.dataTables_wrapper .pagination .page-item.active .page-link,
.dataTables_wrapper .paginate_button.page-item.active .page-link {
  background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}
.pagination .page-item.disabled .page-link {
  color: #cbd5e1 !important;
  background: #f8fafc;
}
.pagination .page-link:hover {
  background: rgba(102, 126, 234, 0.08);
  color: var(--up-primary) !important;
}
.pagination .page-item.active .page-link:hover {
  color: #ffffff !important;
}

@media (max-width: 767.98px) {
  .dataTables_wrapper .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.65rem;
  }
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none !important;
    text-align: left !important;
    width: 100% !important;
    margin: 0.35rem 0 !important;
    padding: 0 !important;
  }
  .dataTables_wrapper .dataTables_filter label {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
  }
  .dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    width: auto;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
  }
  .dataTables_wrapper .dataTables_filter input {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
  }
  .dataTables_wrapper .dataTables_length select {
    width: auto;
    min-width: 4.75rem;
    max-width: none;
    flex: 0 0 auto;
    margin: 0 0.15rem;
  }
  .dataTables_wrapper .dataTables_info {
    font-size: 0.8rem;
    color: #64748b;
    padding-top: 0.35rem !important;
  }
  .dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem !important;
  }
  .dataTables_wrapper .pagination {
    justify-content: center;
    margin: 0;
  }
  .dataTables_wrapper .pagination .page-link {
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
  }
  .withdraw-history-card .card-body.p-0 .table-scroll-host,
  .withdraw-history-card .table-scroll-host.p-3 {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }
  .withdraw-history-card .table thead th,
  .withdraw-history-card .table tbody td,
  .transactions-content .table thead th,
  .transactions-content .table tbody td {
    padding: 0.65rem 0.5rem;
    font-size: 0.82rem;
    vertical-align: middle;
    white-space: nowrap;
  }
  .withdraw-history-card .table-scroll-host,
  .transactions-content .table-scroll-host,
  .withdraw-history-card .dataTables_wrapper,
  .transactions-content .dataTables_wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .amount-breakdown-btn {
    font-size: 0.85rem !important;
    white-space: nowrap;
  }
}

/* ——— Register page (neutral signup form) ——— */
body.register-page.user-portal {
  min-height: 100vh;
}

.register-page-wrap {
  min-height: calc(100vh - 80px);
}

.register-card {
  background: var(--up-surface);
  border-radius: var(--up-radius-lg);
  box-shadow: var(--up-shadow);
  border: 1px solid var(--up-border);
  overflow: hidden;
}

.register-card-header {
  padding: 1.75rem 1.75rem 0.5rem;
  border-bottom: 1px solid var(--up-border);
}

.register-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.register-section {
  margin-bottom: 1.35rem;
}

.register-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--up-text-muted);
  margin-bottom: 0.85rem;
}

.register-input-group .input-group-text {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: var(--up-primary);
}

.register-input-group .form-control,
.register-input-group .form-select {
  border-color: #e2e8f0;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.register-input-group .form-control:focus,
.register-input-group .form-select:focus {
  border-color: var(--up-primary);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.register-geo-field {
  background: #f0fdf4 !important;
  color: #166534;
  font-weight: 600;
  cursor: default;
}

.register-submit-btn {
  background: var(--up-primary);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: var(--up-radius-sm);
  transition: background 0.15s ease;
}

.register-submit-btn:hover {
  color: #fff;
  background: var(--up-primary-dark);
}

.register-submit-btn:disabled {
  opacity: 0.7;
  transform: none;
}

.register-alert {
  border-radius: var(--up-radius-sm);
}

.register-footer-link a {
  color: var(--up-primary);
  text-decoration: none;
}

.register-footer-link a:hover {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .register-card-header,
  .register-card-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Give & Grow salary on dashboard */
.gg-dash-salary-card {
  background: var(--up-surface);
  border: 1px solid rgba(225, 29, 72, 0.16);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.06);
}
.gg-dash-salary-now {
  background: linear-gradient(180deg, #fff7f9 0%, #fff 100%);
  border: 1px solid rgba(225, 29, 72, 0.12);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  height: 100%;
}
.gg-dash-salary-amt {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #e11d48;
  margin: 0.15rem 0 0.45rem;
}
.gg-dash-level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.gg-dash-level {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}
.gg-dash-level.is-hot { border-color: #fda4af; background: #fff1f2; }
.gg-dash-level.is-done { border-color: #86efac; background: #f0fdf4; }
.gg-dash-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.gg-dash-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fb7185, #e11d48);
  border-radius: inherit;
}
.gg-dash-level.is-done .gg-dash-bar span {
  background: linear-gradient(90deg, #34d399, #10b981);
}
.gg-dash-tiers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}
.gg-dash-tier {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: #64748b;
}
.gg-dash-tier strong { color: #0f172a; font-size: 0.95rem; }
.gg-dash-tier.is-unlocked { background: #f0fdf4; border-color: #bbf7d0; }
.gg-dash-tier.is-current {
  background: #fff1f2;
  border-color: #fb7185;
  color: #9f1239;
}
.gg-dash-tier.is-current strong { color: #e11d48; }
@media (max-width: 767.98px) {
  .gg-dash-level-grid,
  .gg-dash-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
