/* FinPulse Modern Mobile UI - Exactly matching video reference */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-green: #10B981;
  --dark-green: #059669;
  --deep-green: #047857;
  --bg-color: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --navy-banner: #0B192C;
  --accent-blue: #2563EB;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 90px;
  overflow-x: hidden;
}

/* App Top Header with Green Wave */
.app-header {
  position: relative;
  background: linear-gradient(180deg, #A7F3D0 0%, #ECFDF5 50%, #F8FAFC 100%);
  padding: 14px 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #047857;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s;
}

.header-btn:active {
  background: rgba(16, 185, 129, 0.15);
}

.header-title {
  font-size: 22px;
  font-weight: 800;
  color: #065F46;
  letter-spacing: -0.5px;
}

.header-user-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid #D1FAE5;
  cursor: pointer;
  text-decoration: none;
}

.header-user-badge img,
.header-user-badge .avatar-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10B981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.header-user-badge span {
  font-size: 13px;
  font-weight: 700;
  color: #065F46;
}

/* Page Container */
.page-container {
  padding: 0 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* Profile Card - Vibrant Green */
.profile-card {
  background: linear-gradient(145deg, #10B981 0%, #059669 60%, #047857 100%);
  border-radius: 24px;
  padding: 18px;
  color: white;
  box-shadow: 0 12px 24px -8px rgba(16, 185, 129, 0.4);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1.5px solid #34D399;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-avatar-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
  text-transform: uppercase;
  color: #FFFFFF;
}

.profile-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ECFDF5;
  margin-bottom: 2px;
}

.profile-meta-row i {
  font-size: 11px;
  opacity: 0.85;
}

/* Inner Balance Pill Box */
.balance-pill-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #A7F3D0;
}

.bank-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 20px;
  border: 1px solid #E2E8F0;
}

.balance-content {
  flex: 1;
}

.balance-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 2px;
}

.balance-amount {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
}

/* Bank to Bkash Full-Width Button */
.btn-bank-bkash {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  border: none;
  box-shadow: 0 8px 18px -4px rgba(245, 158, 11, 0.45);
  cursor: pointer;
  margin-bottom: 16px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-bank-bkash:active {
  transform: scale(0.98);
}

.btn-bank-bkash i {
  font-size: 18px;
}

/* 6 Action Buttons Grid */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.action-card-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 16px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
}

.action-card-btn:active {
  transform: scale(0.97);
}

.action-card-btn i {
  font-size: 16px;
  width: 24px;
  text-align: center;
}

.action-bank-transfer { background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%); }
.action-send-money    { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }
.action-cash-out      { background: linear-gradient(135deg, #10B981 0%, #0D9488 100%); }
.action-withdraw      { background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%); }
.action-statements    { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); }
.action-deposit       { background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%); }

/* Gateways 2-Column List */
.gateways-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 30px;
}

.gateway-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.15s;
}

.gateway-card:active {
  transform: scale(0.97);
}

.gateway-card i {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.gw-paypal      { background: linear-gradient(135deg, #6B21A8 0%, #4C1D95 100%); }
.gw-stripe      { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }
.gw-visa        { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.gw-mastercard  { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.gw-skrill      { background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%); }
.gw-payoneer    { background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); }
.gw-authorize   { background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%); }
.gw-amex        { background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%); }
.gw-alipay      { background: linear-gradient(135deg, #F97316 0%, #EA580C 100%); }
.gw-discover    { background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%); }
.gw-bluesnap    { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); }
.gw-2checkout   { background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%); }

/* Floating Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 460px;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #E2E8F0;
  z-index: 1000;
}

.nav-item {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  text-decoration: none;
  font-size: 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item.nav-home {
  background: #2563EB;
  color: white;
  border-radius: 14px;
}

.nav-item.nav-grid {
  background: #1E293B;
  color: white;
  border-radius: 14px;
}

.nav-item.nav-chat {
  background: #10B981;
  color: white;
  border-radius: 14px;
}

.nav-item.nav-power {
  background: #EF4444;
  color: white;
  border-radius: 14px;
}

/* Floating Center QR Code Button */
.nav-qr-wrapper {
  position: relative;
  top: -16px;
}

.nav-qr-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3.5px solid #10B981;
  color: #059669;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
  cursor: pointer;
  transition: transform 0.2s;
}

.nav-qr-btn:active {
  transform: scale(0.94);
}

/* Slide-in Drawer Navigation */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #1E293B;
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 24px rgba(0,0,0,0.3);
}

.drawer-sidebar.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px 20px;
  background: #0F172A;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.drawer-user-title {
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.drawer-menu-list {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  color: #94A3B8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.drawer-link i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.drawer-link:hover,
.drawer-link.active {
  background: #0D9488;
  color: #FFFFFF;
}

/* Section Header Banners (Statements, Deposit, Withdraw, Send Money) */
.page-title-banner {
  background: #0B192C;
  color: #FFFFFF;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(11, 25, 44, 0.2);
}

/* Statements Filter Pills */
.filter-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.filter-pills-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active {
  background: #0B192C;
  color: #FFFFFF;
  border-color: #0B192C;
}

/* Statement Transaction Card */
.statement-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #F1F5F9;
}

.statement-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.statement-type-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-badge.rejected {
  border: 1.5px solid #EF4444;
  color: #DC2626;
  background: #FEF2F2;
}

.status-badge.approved {
  border: 1.5px solid #10B981;
  color: #059669;
  background: #ECFDF5;
}

.statement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px dashed #E2E8F0;
  padding-top: 12px;
}

.stmt-meta-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.stmt-meta-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  word-break: break-all;
}

.stmt-meta-val.val-amount {
  color: #059669;
}

.stmt-date-full {
  grid-column: span 2;
  margin-top: 4px;
}

/* Form Styling (Deposit, Send Money, Bank Transfer, Withdraw) */
.form-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #E2E8F0;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-label .required-star {
  color: #EF4444;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
  border-color: #2563EB;
}

.form-input:disabled {
  background: #F8FAFC;
  color: #475569;
}

.btn-submit-action {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4);
  transition: transform 0.15s;
}

.btn-submit-action:active {
  transform: scale(0.98);
}

/* Modal Dialogs (QR Scanner, Bank Select, Feedback) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-row i {
  font-size: 20px;
  color: #10B981;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
}

.modal-close-btn {
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #64748B;
  font-size: 14px;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastFade 0.3s ease;
}

.toast-msg.success { background: #059669; }
.toast-msg.error { background: #DC2626; }
.toast-msg.info { background: #2563EB; }

@keyframes toastFade {
  0% { transform: translate(-50%, -20px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* Mercantile Bank Brand & Avatar Elements */
.brand-header-logo {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  vertical-align: middle;
}
.brand-icon-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}
.avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
}
.profile-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 26px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
  overflow: hidden;
  border: 3px solid #FFFFFF;
}
.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-edit-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.avatar-edit-badge:hover,
.avatar-edit-badge:active {
  transform: scale(1.1);
  background: #1D4ED8;
}
.preset-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.preset-avatar-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.preset-avatar-item:hover,
.preset-avatar-item:active {
  transform: scale(1.08);
  border-color: #2563EB;
}
.avatar-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.15s ease;
}
.avatar-option-btn:hover {
  background: #F1F5F9;
}
.avatar-option-btn i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.profile-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
