/* FemPay Main CSS - assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdn-uicons.flaticon.com/2.6.0/uicons-regular-rounded/css/uicons-regular-rounded.css');
@import url('https://cdn-uicons.flaticon.com/2.6.0/uicons-solid-rounded/css/uicons-solid-rounded.css');

/* ============ CSS VARIABLES ============ */
:root {
  --primary: #1a73e8;
  --primary-dark: #0d47a1;
  --primary-light: #e8f0fe;
  --primary-mid: #1565c0;
  --accent: #4fc3f7;
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --info: #2196f3;

  --bg: #ffffff;
  --bg-secondary: #f8f9ff;
  --bg-card: #ffffff;
  --bg-input: #f5f7ff;
  --border: #e8f0fe;
  --border-light: #f0f4ff;

  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 3px rgba(26,115,232,0.08);
  --shadow: 0 4px 16px rgba(26,115,232,0.12);
  --shadow-lg: 0 8px 32px rgba(26,115,232,0.16);
  --shadow-xl: 0 20px 60px rgba(26,115,232,0.2);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --sidebar-width: 260px;
  --navbar-height: 64px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg: #0f1729;
  --bg-secondary: #152040;
  --bg-card: #1a2a4a;
  --bg-input: #1e3055;
  --border: #1e3a6e;
  --border-light: #1a3060;

  --text: #e8f0fe;
  --text-secondary: #90a4c8;
  --text-light: #6b84a8;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }
img { max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============ APP LAYOUT ============ */
.app-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #0d47a1 0%, #1a73e8 50%, #1565c0 100%);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
  box-shadow: 4px 0 20px rgba(26,115,232,0.3);
}
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.sidebar-logo img { height: 36px; border-radius: 8px; }
.sidebar-logo .logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}
.sidebar-logo .logo-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}
.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar-user-info .name {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.sidebar-user-info .acct {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-family: monospace;
}
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-label {
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 20px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}
.nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.nav-item.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-left-color: #fff;
}
.nav-item i { font-size: 18px; width: 20px; text-align: center; }
.nav-item .badge {
  margin-left: auto;
  background: #f44336;
  color: #fff;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  background: var(--bg-secondary);
  transition: margin var(--transition);
}

/* Top Navbar */
.topnav {
  height: var(--navbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topnav .menu-btn {
  display: none;
  background: none;
  color: var(--text);
  font-size: 22px;
  padding: 4px;
}
.topnav-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.topnav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.icon-btn:hover { background: var(--primary-light); color: var(--primary); }
.icon-btn .notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #f44336;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

/* Page Content */
.page-content { padding: 24px; }

/* ============ ADS SLIDER ============ */
.ads-slider {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.ads-slides { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.ads-slide {
  min-width: 100%;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}
.ads-slide .ad-icon {
  font-size: 48px;
  opacity: 0.9;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ads-slide .ad-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.ads-slide .ad-content p {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
  max-width: 500px;
}
.ads-slide img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 200px;
  object-fit: cover;
  opacity: 0.15;
}
.ads-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.ads-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
}
.ads-dot.active { width: 20px; border-radius: 3px; background: #fff; }

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.card-body { padding: 24px; }

/* ============ BALANCE CARD ============ */
.balance-card {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 60%, #1565c0 100%);
  border-radius: var(--radius-xl);
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.balance-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.balance-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.balance-label {
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.balance-amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1;
  transition: all var(--transition);
}
.balance-amount.hidden { filter: blur(8px); user-select: none; }
.balance-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
}
.balance-acct {
  font-size: 13px;
  opacity: 0.75;
  font-family: monospace;
  letter-spacing: 1px;
}
.balance-bank {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 2px;
}
.balance-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.balance-action-btn {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: #fff;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.balance-action-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.balance-action-btn i { font-size: 20px; }

/* Shake indicator */
.shake-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 20px;
  opacity: 0.5;
  z-index: 1;
  animation: shake-hint 2s ease-in-out infinite;
}
@keyframes shake-hint {
  0%,100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

/* ============ QUICK ACTIONS ============ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.quick-action {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
}
.quick-action:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--primary);
}
.quick-action .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.quick-action span { font-size: 12px; font-weight: 600; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,115,232,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,115,232,0.45);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-ghost { background: var(--bg-secondary); color: var(--text); border: 1px solid var(--border); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(26,115,232,0.1);
}
.form-control::placeholder { color: var(--text-light); }
.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 18px;
}
.input-group .input-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; }

/* PIN Input */
.pin-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}
.pin-input {
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  transition: all var(--transition);
  -webkit-text-security: disc;
}
.pin-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(26,115,232,0.1);
  outline: none;
}

/* ============ TRANSACTION LIST ============ */
.txn-list { list-style: none; }
.txn-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition);
  border-radius: var(--radius);
  padding-left: 12px;
  padding-right: 12px;
}
.txn-item:hover { background: var(--bg-secondary); }
.txn-item:last-child { border-bottom: none; }
.txn-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.txn-icon.credit { background: rgba(76,175,80,0.12); color: var(--success); }
.txn-icon.debit  { background: rgba(244,67,54,0.12);  color: var(--danger);  }
.txn-icon.reward { background: rgba(255,152,0,0.12);   color: var(--warning); }
.txn-details { flex: 1; min-width: 0; }
.txn-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.txn-right { text-align: right; flex-shrink: 0; }
.txn-amount { font-size: 15px; font-weight: 700; }
.txn-amount.credit { color: var(--success); }
.txn-amount.debit  { color: var(--danger);  }
.txn-time { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ============ STATUS BADGES ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-success { background: rgba(76,175,80,0.12);  color: var(--success); }
.badge-danger  { background: rgba(244,67,54,0.12);   color: var(--danger);  }
.badge-warning { background: rgba(255,152,0,0.12);   color: var(--warning); }
.badge-info    { background: rgba(33,150,243,0.12);  color: var(--info);    }
.badge-primary { background: var(--primary-light);    color: var(--primary); }

/* ============ ALERTS / FLASH ============ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert-success { background: rgba(76,175,80,0.1);  border: 1px solid rgba(76,175,80,0.3);  color: #2e7d32; }
.alert-danger  { background: rgba(244,67,54,0.1);  border: 1px solid rgba(244,67,54,0.3);  color: #c62828; }
.alert-warning { background: rgba(255,152,0,0.1);  border: 1px solid rgba(255,152,0,0.3);  color: #e65100; }
.alert-info    { background: rgba(33,150,243,0.1); border: 1px solid rgba(33,150,243,0.3); color: #0d47a1; }

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 480px;
  padding: 32px 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 24px;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}

/* ============ STEPS INDICATOR ============ */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-card);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.step.active .step-circle { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.step.done .step-circle  { border-color: var(--success); background: var(--success); color: #fff; }
.step-label { font-size: 11px; color: var(--text-light); font-weight: 500; }
.step.active .step-label { color: var(--primary); }
.step.done  .step-label  { color: var(--success); }
.step-line {
  height: 2px;
  flex: 1;
  background: var(--border);
  margin-top: -30px;
}
.step-line.done { background: var(--success); }

/* ============ SUCCESS PAGE ============ */
.success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 24px;
}
.success-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: successPop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes successPop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
.success-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 44px;
  color: #fff;
  animation: iconBounce 0.6s 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
  box-shadow: 0 8px 32px rgba(76,175,80,0.4);
}
@keyframes iconBounce {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.success-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  animation: fadeUp 0.5s 0.5s ease both;
}
.success-label {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeUp 0.5s 0.6s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.success-details {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
  animation: fadeUp 0.5s 0.7s ease both;
}
.success-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.success-detail-row:last-child { border-bottom: none; }
.success-detail-row .label { color: var(--text-light); }
.success-detail-row .value { font-weight: 600; color: var(--text); }
.success-actions {
  display: flex;
  gap: 12px;
  animation: fadeUp 0.5s 0.9s ease both;
}
.confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ============ PROFILE PICTURE ============ */
.avatar-upload {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}
.avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--primary);
}
.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid var(--bg-card);
}

/* ============ SPIN WHEEL ============ */
.spin-section {
  background: linear-gradient(135deg, #ff9800, #f44336);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.spin-wheel-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
}
.spin-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #fff;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  z-index: 10;
}
.spin-btn {
  background: #fff;
  color: #f44336;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 32px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: all var(--transition);
}
.spin-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.spin-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============ STAT CARDS ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 12px; color: var(--text-light); font-weight: 500; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--text); }
.stat-change { font-size: 12px; margin-top: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============ TABLE ============ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
td {
  font-size: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}
tr:hover td { background: var(--bg-secondary); }
tr:last-child td { border-bottom: none; }

/* ============ LOADING ============ */
.loader {
  width: 24px; height: 24px;
  border: 3px solid rgba(26,115,232,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton { to { background-position: -200% 0; } }
.overlay-loader {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
[data-theme="dark"] .overlay-loader { background: rgba(15,23,41,0.85); }
.overlay-loader .loader { width: 40px; height: 40px; border-width: 4px; }

/* ============ AUTH PAGES ============ */
.auth-container {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #0d47a1 0%, #1a73e8 50%, #1565c0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: #fff;
}
.auth-left-title { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.auth-left-sub   { font-size: 16px; opacity: 0.8; max-width: 360px; text-align: center; line-height: 1.6; }
.auth-features   { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.auth-feature    { display: flex; align-items: center; gap: 12px; }
.auth-feature-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.auth-feature-text { font-size: 14px; opacity: 0.9; }
.auth-right {
  width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--bg);
  overflow-y: auto;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.auth-logo img { height: 40px; }
.auth-logo span { font-size: 24px; font-weight: 800; color: var(--primary); }
.auth-form { width: 100%; max-width: 380px; }
.auth-title { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.auth-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }

/* ============ DARK MODE TOGGLE ============ */
.theme-toggle {
  width: 48px; height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.theme-toggle.active { background: var(--primary); }
.theme-toggle.active::after { transform: translateX(22px); }

/* ============ PWA INSTALL BANNER ============ */
.pwa-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xl);
  z-index: 500;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  max-width: 380px;
  width: calc(100% - 40px);
}
.pwa-banner.show { transform: translateX(-50%) translateY(0); }
.pwa-icon { font-size: 32px; }
.pwa-text .title { font-weight: 700; font-size: 14px; color: var(--text); }
.pwa-text .sub { font-size: 12px; color: var(--text-secondary); }
.pwa-actions { display: flex; gap: 8px; margin-left: auto; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .auth-left { display: none; }
  .auth-right { width: 100%; }
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .main-content { margin-left: 0; }
  .topnav .menu-btn { display: flex; }
  .page-content { padding: 16px; }
  .quick-actions { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick-action { padding: 12px 8px; }
  .quick-action .icon { width: 40px; height: 40px; font-size: 18px; }
  .quick-action span { font-size: 11px; }
  .balance-amount { font-size: 28px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .ads-slide { flex-direction: column; text-align: center; padding: 20px; }
  .success-actions { flex-direction: column; }
  .modal { max-height: 95vh; }
}

@media (max-width: 480px) {
  .quick-actions { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .quick-action .icon { width: 36px; height: 36px; }
  .quick-action span { font-size: 10px; }
  .auth-right { padding: 32px 20px; }
  .stat-grid { grid-template-columns: 1fr; }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    display: none;
  }
  .sidebar-overlay.show { display: block; }
}

/* ============ UPGRADE LEVELS ============ */
.trial-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.trial-card.trial-1 { background: rgba(245,124,0,0.06); border-color: rgba(245,124,0,0.2); }
.trial-card.trial-2 { background: rgba(56,142,60,0.06);  border-color: rgba(56,142,60,0.2); }
.trial-card.trial-3 { background: rgba(26,115,232,0.06); border-color: rgba(26,115,232,0.2); }
.trial-card.active  { border-width: 2px; }
.trial-card.trial-1.active { border-color: #f57c00; }
.trial-card.trial-2.active { border-color: #388e3c; }
.trial-card.trial-3.active { border-color: var(--primary); }
.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.trial-1 .trial-badge { background: rgba(245,124,0,0.15); color: #f57c00; }
.trial-2 .trial-badge { background: rgba(56,142,60,0.15);  color: #388e3c; }
.trial-3 .trial-badge { background: rgba(26,115,232,0.15); color: var(--primary); }

/* ============ RECEIVE MONEY CARD ============ */
.receive-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.receive-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 24px;
  color: #fff;
  text-align: center;
}
.receive-acct-number {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 4px;
  margin: 8px 0;
  font-family: monospace;
}
.receive-bank-name { font-size: 14px; opacity: 0.85; }
.receive-body { padding: 24px; }
.copy-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}
.copy-btn:hover { background: var(--primary); color: #fff; }

/* Utility */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.fw-700 { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger);  }
.text-muted   { color: var(--text-secondary); }
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}
.empty-state i { font-size: 56px; color: var(--border); margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
