/* ============== Password toggle ============== */
.toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-pw:hover { color: var(--primary-500); }

/* ============== Dashboard banner ============== */
.dashboard-banner {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  padding: 0 8px;
  box-sizing: border-box;
}
.dashboard-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
}
@media (min-width: 481px) {
  .dashboard-banner {
    padding: 0;
  }
  .dashboard-banner img {
    border-radius: 0;
  }
}


/* ============== Preset amount buttons ============== */
.preset-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.preset-btn {
  padding: 16px 8px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.preset-btn:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.15);
}
.preset-btn.active {
  border-color: var(--primary-600);
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  color: var(--primary-700);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
  transform: translateY(-1px);
}

/* ============== Deposit step header ============== */
.deposit-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.deposit-step-header .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

/* ============== Deposit narration box ============== */
.deposit-narration-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}
.narration-icon {
  font-size: 20px;
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 2px;
}
.narration-code {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-700);
  margin-top: 8px;
  font-family: 'Plus Jakarta Sans', monospace;
  letter-spacing: 1.5px;
  background: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* ============== Bank details card ============== */
.bank-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.bank-details-title {
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bank-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.bank-detail-row:last-child {
  border-bottom: none;
}
.bank-detail-row.highlight {
  background: var(--primary-50);
}
.bank-label {
  color: var(--text-muted);
  font-size: 13px;
}
.bank-value {
  font-weight: 700;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.bank-detail-row.highlight .bank-value {
  color: var(--primary-700);
  font-size: 16px;
}

/* ============== Deposit countdown ============== */
.deposit-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

/* ============== File upload area ============== */
.file-upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  font-size: 13px;
}
.file-upload-area:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
  color: var(--primary-600);
}
.file-upload-area.has-file {
  border-color: var(--success);
  background: #F0FDF4;
  color: var(--success);
  border-style: solid;
}

/* ============== Clickable stat cards ============== */
a.stat-card {
  cursor: pointer;
  transition: all 0.15s;
  display: block;
}
a.stat-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* =========================================================
   Honey — Sweet Investment Platform
   Warm golden honey design system
   ========================================================= */

:root {
  /* Brand — Honey golden brown */
  --primary:        #7C4A12;
  --primary-700:    #5C3510;
  --primary-600:    #D4A017;   /* main brand — honey gold */
  --primary-500:    #E8B830;   /* hover */
  --primary-400:    #F0CC5A;   /* accent */
  --primary-200:    #F5E6B8;   /* soft tint */
  --primary-100:    #FDF3DC;   /* very soft */
  --primary-50:     #FFFBF0;   /* whisper */

  /* Neutrals */
  --bg:             #FFFDF5;   /* warm cream */
  --bg-card:        #FFFFFF;
  --bg-elevated:    #FFFFFF;
  --bg-overlay:     rgba(60, 30, 5, 0.6);

  --text:           #2D1A00;   /* deep brown ink */
  --text-muted:     #7A6548;
  --text-light:     #A8936F;
  --text-inverse:   #FFFFFF;

  --border:         #F0E6D2;
  --border-strong:  #E0D0B0;

  /* Semantic */
  --success:        #047857;
  --success-bg:     #ECFDF5;
  --warning:        #B45309;
  --warning-bg:     #FEF6E7;
  --error:           #B91C1C;
  --error-bg:        #FEF2F2;
  --info:            #1E40AF;
  --info-bg:         #EFF6FF;

  /* Honey accents */
  --rose:           #C05621;
  --rose-bg:        #FDF2E9;
  --gold:           #92400E;
  --gold-bg:        #FEF6E7;
  --gold-accent:    #B8860B;

  /* Surface */
  --shadow-xs: 0 1px 2px rgba(60, 30, 5, 0.04);
  --shadow-sm: 0 2px 6px rgba(60, 30, 5, 0.06), 0 1px 2px rgba(60, 30, 5, 0.04);
  --shadow:    0 4px 14px rgba(124, 74, 18, 0.08), 0 1px 3px rgba(60, 30, 5, 0.04);
  --shadow-md: 0 8px 24px rgba(124, 74, 18, 0.10), 0 2px 6px rgba(60, 30, 5, 0.04);
  --shadow-lg: 0 16px 40px rgba(124, 74, 18, 0.14), 0 4px 10px rgba(60, 30, 5, 0.04);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --max-width: 480px;
}

/* ============== Admin Tab Badges ============== */
.admin-tabs a { position: relative; }
.tab-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  background: #EF4444;
  color: #fff;
  font-size: 9px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 4px;
  line-height: 1;
  animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ============== Admin Layout ============== */
.admin-shell {
  min-height: 100vh;
  background: #F0F2F5;
}
.admin-header {
  background: #FFFFFF;
  color: #1a1a2e;
  padding: 0 24px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  border-bottom: 1px solid #E5E7EB;
}
.admin-header .brand {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1a1a2e;
}
.admin-header .brand img {
  height: 32px;
  border-radius: 8px;
}
.admin-header .brand .admin-badge {
  font-size: 9px;
  background: #EEF2FF;
  color: #4F46E5;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid #C7D2FE;
}
.admin-header .actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-header .actions a {
  color: #6B7280;
  background: #F3F4F6;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-header .actions a:hover {
  background: #E5E7EB;
  color: #1a1a2e;
}

/* Admin Tabs */
.admin-tabs {
  background: #FFFFFF;
  display: flex;
  overflow-x: auto;
  border-bottom: 2px solid #E5E7EB;
  padding: 0 16px;
  position: sticky;
  top: 60px;
  z-index: 90;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a {
  padding: 14px 18px;
  color: #6B7280;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-tabs a:hover {
  color: #374151;
  background: #F9FAFB;
}
.admin-tabs a.active {
  color: var(--primary-600);
  border-bottom-color: var(--primary-600);
}

/* Admin Content */
.admin-content {
  padding: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.admin-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.admin-content h2 i {
  color: var(--primary-600);
  margin-right: 8px;
}

/* ============== Admin Stat Cards ============== */
.admin-content .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin-bottom: 24px;
}
.admin-content .stat-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #E5E7EB;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.admin-content .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--primary-200);
}
.admin-content .stat-card .label {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-content .stat-card .label i {
  font-size: 14px;
  color: var(--primary-500);
}
.admin-content .stat-card .value {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* ============== Admin Tables ============== */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  background: #fff;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 700px;
}
.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}
.admin-table th {
  background: #F9FAFB;
  color: #374151;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid #E5E7EB;
  white-space: nowrap;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background 0.1s; }
.admin-table tbody tr:hover { background: #F9FAFB; }

/* ============== Admin Cards ============== */
.admin-content .card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #E5E7EB;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.admin-content .card .card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F3F4F6;
}
.admin-content .card .card-title i { color: var(--primary-500); }

/* ============== Admin Forms ============== */
.admin-content .form-group {
  margin-bottom: 16px;
}
.admin-content .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-content .form-group input,
.admin-content .form-group select,
.admin-content .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #FFFFFF;
  color: #111827;
}
.admin-content .form-group input:focus,
.admin-content .form-group select:focus,
.admin-content .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(91, 42, 134, 0.1);
}

/* ============== Admin Buttons ============== */
.admin-content .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.admin-content .btn-primary { background: var(--primary-600); color: #fff; }
.admin-content .btn-primary:hover { background: var(--primary-700); box-shadow: 0 4px 12px rgba(92,53,16,0.3); }
.admin-content .btn-secondary { background: #F3F4F6; color: #374151; border: 1px solid #D1D5DB; }
.admin-content .btn-secondary:hover { background: #E5E7EB; }
.admin-content .btn-danger { background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; }
.admin-content .btn-danger:hover { background: #FECACA; }
.admin-content .btn-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.admin-content .btn-warning:hover { background: #FDE68A; }
.admin-content .btn-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.admin-content .btn-success:hover { background: #A7F3D0; }
.admin-content .btn-ghost { background: transparent; color: #6B7280; }
.admin-content .btn-ghost:hover { background: #F3F4F6; color: #111827; }
.admin-content .btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.admin-content .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============== Admin Badges ============== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-error { background: #FEE2E2; color: #DC2626; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-approved { background: #D1FAE5; color: #065F46; }
.badge-rejected { background: #FEE2E2; color: #DC2626; }
.badge-completed { background: #DBEAFE; color: #1E40AF; }
.badge-active { background: #D1FAE5; color: #065F46; }
.badge-expired { background: #F3F4F6; color: #6B7280; }
.badge-suspended { background: #FEE2E2; color: #DC2626; }

/* ============== Admin Modals ============== */
.admin-content .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.admin-content .modal {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.admin-content .modal h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-content .modal .actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
}

/* ============== Admin Responsive ============== */
@media (max-width: 1024px) {
  .admin-content .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .admin-header { padding: 0 16px; height: 56px; }
  .admin-header .brand { font-size: 16px; }
  .admin-header .brand img { height: 28px; }
  .admin-header .actions a { padding: 6px 10px; font-size: 12px; }
  .admin-header .actions a span.link-text { display: none; }
  .admin-tabs { top: 56px; padding: 0 8px; }
  .admin-tabs a { padding: 12px 14px; font-size: 12px; }
  .admin-content { padding: 16px 12px; }
  .admin-content h2 { font-size: 17px; margin-bottom: 16px; }
  .admin-content .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
  .admin-content .stat-card { padding: 14px; border-radius: 10px; }
  .admin-content .stat-card .label { font-size: 11px; margin-bottom: 6px; }
  .admin-content .stat-card .value { font-size: 18px; }
  .admin-content .card { padding: 16px; border-radius: 10px; margin-bottom: 16px; }
  .admin-content .form-group input,
  .admin-content .form-group select,
  .admin-content .form-group textarea { font-size: 14px; padding: 10px 12px; }
  .admin-content .btn { padding: 10px 14px; font-size: 13px; }
  .admin-content .btn-sm { padding: 6px 10px; font-size: 11px; }
  .admin-content .modal { max-width: 95vw; padding: 18px; margin: 10px; border-radius: 12px; }
  .admin-table-wrap { border-radius: 0; margin: 0 -12px; border-left: 0; border-right: 0; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 10px 12px; }
  .admin-content .plan-editor-row > div:last-child { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .admin-header { padding: 0 12px; height: 52px; }
  .admin-header .brand { font-size: 15px; gap: 8px; }
  .admin-header .brand img { height: 24px; }
  .admin-header .actions { gap: 4px; }
  .admin-header .actions a { padding: 6px 8px; font-size: 11px; }
  .admin-tabs { top: 52px; }
  .admin-tabs a { padding: 10px 12px; font-size: 11px; gap: 6px; }
  .admin-content { padding: 12px 10px; }
  .admin-content .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-content .stat-card { padding: 12px; }
  .admin-content .stat-card .label { font-size: 10px; }
  .admin-content .stat-card .value { font-size: 16px; }
  .admin-content h2 { font-size: 16px; }
  .admin-table td:last-child { white-space: normal; }
  .admin-table td:last-child .btn { margin: 2px; }
  .admin-content .modal { padding: 14px; max-height: 90vh; }
  .admin-content .modal h3 { font-size: 15px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Raleway', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

a { color: var(--primary-600); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-500); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* App container */
.app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: var(--shadow-lg);
}

/* ============== Topbar ============== */
.topbar {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(61, 30, 94, 0.18);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
}
.topbar .brand img.brand-logo {
  height: 32px;
  width: auto;
  border-radius: 6px;
}
.topbar .brand .brand-fallback {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.topbar .actions { display: flex; gap: 6px; align-items: center; }
.topbar .actions .icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: #fff;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}
.topbar .actions .icon-btn:hover { background: rgba(255,255,255,0.2); }
.topbar .actions .icon-btn .badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  padding: 0 5px;
  border: 2px solid var(--primary-700);
}

/* ============== Auth pages ============== */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(157, 23, 77, 0.06), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(146, 64, 14, 0.05), transparent 40%),
    linear-gradient(160deg, var(--primary-50) 0%, #FFFFFF 50%, var(--primary-50) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-page::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-600), var(--rose), var(--gold-accent));
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.auth-banner {
  width: calc(100% + 56px);
  margin: -36px -28px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  height: 140px;
  position: relative;
}
.auth-banner img { width: 100%; height: 100%; object-fit: cover; }
.auth-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(255,255,255,0.95) 100%);
}

.auth-logo {
  margin: 0 auto 14px;
  width: auto;
  height: 48px;
  display: block;
}
.auth-logo img { height: 48px; margin: 0 auto; }
.auth-logo-fallback {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(76, 29, 110, 0.3);
}

.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.auth-tagline {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.02em;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

/* ============== Forms ============== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.15s;
  background: var(--bg-card);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.input-with-icon { position: relative; }
.input-with-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
  pointer-events: none;
}
.input-with-icon input { padding-left: 38px; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
  width: 100%;
  letter-spacing: -0.005em;
}
.btn i { font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
  box-shadow: 0 4px 12px rgba(76, 29, 110, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(76, 29, 110, 0.32);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-100);
}
.btn-secondary:hover { background: var(--primary-100); color: var(--primary-700); }

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover { background: #036949; color: #fff; }

.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #991B1B; color: #fff; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #92400E; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary-600);
  border-color: var(--primary-200);
}
.btn-outline:hover { background: var(--primary-50); color: var(--primary-600); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm { padding: 7px 12px; font-size: 12px; width: auto; }
.btn-block { width: 100%; }

/* ============== Cards ============== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
}

/* ============== Balance card ============== */
.balance-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.15), transparent 50%),
    linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(76, 29, 110, 0.22);
  border: 1px solid rgba(255,255,255,0.08);
}
.balance-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -25%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(157, 23, 77, 0.25), transparent 70%);
  border-radius: 50%;
}
.balance-card .label {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.balance-card .amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: 'Raleway', sans-serif;
}
.balance-card .meta {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  font-size: 11px;
  opacity: 0.9;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.balance-card .meta > div { flex: 1; }
.balance-card .meta .label-mini {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  opacity: 0.8;
}
.balance-card .meta .val {
  font-size: 14px;
  font-weight: 700;
  margin-top: 3px;
  font-family: 'Raleway', sans-serif;
}

/* ============== Quick actions ============== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 16px 18px;
}
.quick-action {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 6px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: all 0.15s;
}
.quick-action:hover { color: var(--text); }
.quick-action:active { transform: scale(0.96); }
.quick-action .icon {
  width: 38px; height: 38px;
  margin: 0 auto 7px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.quick-action .icon.icon-primary { background: linear-gradient(135deg, var(--primary-600), var(--primary-500)); }
.quick-action .icon.icon-success { background: linear-gradient(135deg, #047857, #059669); }
.quick-action .icon.icon-gold { background: linear-gradient(135deg, #92400E, #B45309); }
.quick-action .icon.icon-rose { background: linear-gradient(135deg, #9D174D, #BE185D); }
.quick-action .icon.icon-info { background: linear-gradient(135deg, #1E40AF, #2563EB); }
.quick-action .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ============== Plans ============== */
.plans-grid { display: grid; gap: 12px; padding: 16px; }
.plan-card {
  background: linear-gradient(160deg, #FFFFFF 0%, var(--primary-50) 100%);
  border-radius: var(--radius);
  padding: 0 18px 18px 18px;
  border: 1px solid var(--primary-100);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary-200); }
.plan-card .plan-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-700);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
}
.plan-card .plan-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}
.plan-card .plan-daily {
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin: 12px 0;
  display: flex; justify-content: space-between;
  font-size: 13px;
  border: 1px solid var(--primary-100);
}
.plan-card .plan-daily .value { color: var(--success); }
.plan-card .plan-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.plan-card .plan-meta i { color: var(--primary-400); margin-right: 4px; }
.plan-card .plan-bonus {
  color: var(--gold);
  font-weight: 700;
  margin-top: 8px;
  font-size: 13px;
  display: flex; align-items: center; gap: 6px;
}

/* ============== Plan product image ============== */
.plan-card-image {
  width: calc(100% + 36px);
  margin-left: -18px;
  height: 140px;
  object-fit: contain;
  display: block;
  padding: 10px 18px 0 18px;
  box-sizing: border-box;
  pointer-events: none;
}
.plan-card .badge-popular {
  position: absolute; top: 14px; right: -32px;
  background: linear-gradient(135deg, var(--rose), #BE185D);
  color: #fff;
  padding: 4px 36px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transform: rotate(35deg);
  text-transform: uppercase;
}

/* ============== List items ============== */
.list-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.list-item:hover { color: inherit; box-shadow: var(--shadow-sm); border-color: var(--primary-100); }
.list-item .info .title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.list-item .info .sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.list-item .value { font-weight: 700; font-size: 14px; }
.list-item .icon-circle {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

/* ============== Badges ============== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}
.badge i { font-size: 9px; }
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-approved,
.badge-completed,
.badge-success,
.badge-active { background: var(--success-bg); color: var(--success); }
.badge-rejected,
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-expired,
.badge-cancelled { background: #F3F0F7; color: var(--text-muted); }
.badge-info { background: var(--info-bg); color: var(--info); }

/* ============== Alerts ============== */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid;
}
.alert i { margin-top: 1px; font-size: 13px; }
.alert-success { background: var(--success-bg); color: #065F46; border-color: #A7F3D0; }
.alert-error { background: var(--error-bg); color: #991B1B; border-color: #FECACA; }
.alert-warning { background: var(--warning-bg); color: #92400E; border-color: #FDE68A; }
.alert-info { background: var(--info-bg); color: #1E40AF; border-color: #BFDBFE; }

/* ============== Bottom nav ============== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 10px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 16px rgba(31, 20, 40, 0.05);
  z-index: 100;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  color: var(--text-light);
  text-decoration: none;
  padding: 6px 0 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.bottom-nav a .icon {
  font-size: 18px;
  display: block;
  margin-bottom: 3px;
}
.bottom-nav a.active { color: var(--primary-600); }
.bottom-nav a.active .icon { color: var(--primary-600); }

/* ============== Content ============== */
.content { padding: 16px; padding-bottom: 84px; }
.content-tight { padding: 12px 16px 84px; }

/* ============== Section title ============== */
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 10px;
  padding: 0 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i { color: var(--primary-500); font-size: 13px; }

/* ============== Stat grid ============== */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 16px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.stat-card .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.stat-card .value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-700);
  margin-top: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* ============== Referral box ============== */
.referral-box {
  background:
    radial-gradient(circle at 100% 0%, var(--primary-100) 0%, transparent 60%),
    linear-gradient(135deg, var(--primary-50), #FFFFFF);
  border: 1px dashed var(--primary-200);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}
.referral-box .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.referral-box .code {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-700);
  letter-spacing: 2px;
  margin: 8px 0;
  font-family: 'Plus Jakarta Sans', monospace;
}

/* ============== Empty states ============== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 36px;
  opacity: 0.4;
  margin-bottom: 12px;
  color: var(--primary-400);
}
.empty-state p { font-size: 13px; }

/* ============== Spinner ============== */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-dark {
  border: 2px solid var(--primary-100);
  border-top-color: var(--primary-600);
}
.spinner-lg { width: 28px; height: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============== Toast ============== */
.toast-container {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 100%;
  max-width: 440px;
  padding: 0 14px;
  pointer-events: none;
}
.toast {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.25s ease;
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid var(--primary-600);
  pointer-events: auto;
}
.toast i { font-size: 14px; }
.toast.success { border-left-color: var(--success); }
.toast.success i { color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.error i { color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--primary-600); }
@keyframes slideDown {
  from { transform: translateY(-110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============== Modal ============== */
.modal-overlay {
  position: fixed; inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.modal .actions { display: flex; gap: 10px; margin-top: 18px; }

/* ============== Announcement banner ============== */
.announcement-banner {
  background: linear-gradient(135deg, var(--rose), #BE185D);
  color: #fff;
  padding: 10px 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.announcement-banner i { font-size: 14px; }
.announcement-banner span { flex: 1; line-height: 1.4; }

/* ============== Receipt ============== */
.receipt-thumb {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}
.receipt-preview {
  max-width: 100%;
  max-height: 360px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  border: 1px solid var(--border);
}

/* ============== Countdown ============== */
.countdown {
  background: var(--warning-bg);
  color: var(--warning);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #FDE68A;
}

/* ============== Progress bar ============== */
.progress-bar {
  background: var(--primary-50);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
  margin-top: 10px;
}
.progress-bar > div {
  background: linear-gradient(90deg, var(--primary-600), var(--primary-400));
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s;
}

/* ============== Dashboard welcome ============== */
.welcome-strip {
  background: linear-gradient(135deg, var(--primary-50), #fff);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.welcome-strip strong { color: var(--primary-700); }

/* ============== Footer link area ============== */
.footer-links {
  text-align: center;
  padding: 20px 16px 30px;
  font-size: 12px;
  color: var(--text-light);
}
.footer-links a {
  color: var(--text-muted);
  margin: 0 8px;
}

/* ============== Misc ============== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary-600); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }

/* ============== Responsive ============== */
@media (min-width: 768px) {
  body { background: var(--bg); }
  .app { box-shadow: 0 0 60px rgba(76, 29, 110, 0.08); }
}

/* ============== Maintenance page ============== */
.maintenance-icon {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--warning), #92400E);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.3);
}

/* ============== Welcome popup ============== */
.welcome-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.welcome-popup {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  animation: popupIn 0.25s ease;
  max-height: 85vh;
  overflow-y: auto;
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.welcome-popup .popup-logo {
  width: 50px; height: 50px;
  margin: 0 auto 10px;
  display: block;
  border-radius: 12px;
}
.welcome-popup h2 { font-size: 16px; font-weight: 800; margin-bottom: 12px; color: var(--primary-700); }
.welcome-popup .info-grid { text-align: left; margin-bottom: 12px; }
.welcome-popup .info-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.welcome-popup .info-row:last-child { border-bottom: none; }
.welcome-popup .info-row i { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.welcome-popup .info-row .info-label { color: var(--text-muted); font-size: 11px; }
.welcome-popup .info-row .info-value { font-weight: 700; color: var(--text); font-size: 12px; }
.welcome-popup .popup-telegram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #229ED9;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin: 10px 0 4px;
  padding: 8px;
  border-radius: var(--radius-xs);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  transition: all 0.15s;
}
.welcome-popup .popup-telegram-link:hover { background: #DBEAFE; color: #1E40AF; }
.welcome-popup .popup-telegram-link i { font-size: 16px; }

/* ============== Quick actions row 2 ============== */
.quick-actions-row2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px 16px; }

/* ============== Investment drop timer ============== */
.drop-timer { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--success); font-weight: 600; margin-top: 6px; }
.drop-timer i { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.checkin-cooldown { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============== Simple bank details (deposit step 2) ============== */
.simple-bank-details { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.simple-bank-details .sbd-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.simple-bank-details .sbd-row:last-child { border-bottom: none; }
.simple-bank-details .sbd-label { color: var(--text-muted); font-size: 12px; font-weight: 500; }
.simple-bank-details .sbd-value { font-weight: 700; color: var(--text); text-align: right; word-break: break-all; }
.simple-bank-details .sbd-row.highlight .sbd-value { color: var(--primary-600); font-size: 16px; }

/* ============== Upload receipt page ============== */
.upload-receipt-area {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin: 16px 0;
  background: var(--bg-card);
}
.upload-receipt-area:hover { border-color: var(--primary-400); background: var(--primary-50); }
.upload-receipt-area.has-file { border-color: var(--success); border-style: solid; background: var(--success-bg); }
.upload-receipt-area i { font-size: 32px; color: var(--text-light); margin-bottom: 8px; }
.upload-receipt-area.has-file i { color: var(--success); }
.upload-receipt-area .upload-text { font-size: 13px; color: var(--text-muted); }
.upload-receipt-area .upload-text strong { color: var(--primary-600); }

/* ============== Profile Header (Account page) ============== */
.profile-header {
  background: var(--primary-600);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  text-align: center;
  position: relative;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(76, 29, 110, 0.2);
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.profile-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}
.profile-email {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}
