/* =========================================================
   BANKING DASHBOARD – Mobile exact match to video + Desktop
   ========================================================= */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #10b981;
  --primary-50: #ecfdf5;
  --bg: #f0fdf4;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --success: #10b981;
  --pending: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 40px rgba(5,150,105,0.18);
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes scaleIn {
  from { opacity:0; transform:scale(0.92); }
  to   { opacity:1; transform:scale(1); }
}
@keyframes slideInLeft {
  from { transform:translateX(-100%); }
  to   { transform:translateX(0); }
}
@keyframes pulse {
  0%,100% { transform:scale(1); }
  50%     { transform:scale(1.04); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-up   { animation: fadeUp 0.45s ease both; }
.animate-scale-in  { animation: scaleIn 0.4s ease both; }
.animate-delay-1   { animation-delay: 0.08s; }
.animate-delay-2   { animation-delay: 0.16s; }
.animate-delay-3   { animation-delay: 0.24s; }
.animate-delay-4   { animation-delay: 0.32s; }

/* ---------- PIN Screen (exact video) ---------- */
.pin-screen {
  min-height: 100vh;
  background: linear-gradient(165deg, #047857 0%, #059669 45%, #10b981 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}
.pin-screen::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  top: -80px; right: -60px;
}
.pin-card {
  background: #f0fdf4;
  border-radius: 28px;
  padding: 36px 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  position: relative;
  z-index: 2;
  animation: scaleIn 0.5s ease;
}
.pin-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid #10b981;
  object-fit: cover;
  margin: 0 auto 14px;
  box-shadow: 0 8px 20px rgba(16,185,129,0.3);
}
.pin-name { font-size: 1.45rem; font-weight: 700; margin-bottom: 6px; }
.pin-label {
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}
.pin-dot {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #fff;
  border: 2.5px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition);
}
.pin-dot.filled {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary);
}
.pin-dot.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(5,150,105,0.2);
}
.btn-verify {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 12px;
}
.btn-verify:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-logout-outline {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: var(--muted);
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-logout-outline:hover { border-color: var(--primary); color: var(--primary); }

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  width: 100%;
  max-width: 320px;
  z-index: 2;
}
.key {
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 18px;
  height: 68px;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.key small { font-size: 0.58rem; opacity: 0.75; letter-spacing: 0.5px; }
.key:active { background: rgba(255,255,255,0.35); transform: scale(0.96); }

/* ---------- App Shell ---------- */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 100px;
  min-height: 100vh;
  background: var(--bg);
}

/* Desktop enhancement */
@media (min-width: 900px) {
  body { background: #e8f5e9; }
  .container {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    padding-bottom: 40px;
    min-height: 100vh;
    background: transparent;
  }
  .app-header { grid-column: 1 / -1; border-radius: 0 0 20px 20px; }
  .side-menu {
    position: relative !important;
    left: 0 !important;
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 16px 0 16px 16px;
    box-shadow: var(--shadow);
  }
  .side-overlay { display: none !important; }
  .bottom-nav { display: none !important; }
  .main-content { padding: 16px 24px 24px 8px; }
  .balance-card { max-width: none; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Header ---------- */
.app-header {
  background: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-box {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(5,150,105,0.35);
}
.logo-text { font-weight: 700; font-size: 1.15rem; }
.logo-sub { font-size: 0.62rem; color: var(--muted); display: block; margin-top: -2px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.time-badge {
  background: var(--primary-50);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}
.header-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--primary-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ---------- Balance Card (exact video) ---------- */
.balance-card {
  background: linear-gradient(145deg, #047857 0%, #059669 50%, #10b981 100%);
  border-radius: 22px;
  padding: 26px 24px;
  color: #fff;
  margin: 18px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.5s ease;
}
.balance-card::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -50px; right: -40px;
}
.balance-card .visa {
  position: absolute;
  top: 22px; right: 22px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 1.5px;
  opacity: 0.92;
  font-size: 1.1rem;
}
.chip {
  width: 44px; height: 32px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 7px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.balance-label {
  font-size: 0.72rem;
  opacity: 0.88;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  position: relative; z-index: 1;
}
.balance-amount {
  font-size: 2.35rem;
  font-weight: 700;
  margin: 6px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative; z-index: 1;
  letter-spacing: -0.5px;
}
.balance-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.95;
  position: relative; z-index: 1;
}
.balance-meta small { opacity: 0.75; font-size: 0.68rem; display: block; }

/* ---------- Action List ---------- */
.action-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.action-item {
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  animation: fadeUp 0.45s ease both;
}
.action-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.action-item:active { transform: scale(0.98); }
.action-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}
.action-text h4 { font-size: 0.98rem; font-weight: 600; }
.action-text p { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.action-arrow { margin-left: auto; color: var(--primary); font-size: 1.1rem; }

/* ---------- Bottom Nav (mobile) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 8px 0 14px;
  z-index: 100;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.06);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.68rem;
  min-width: 58px;
  transition: var(--transition);
}
.nav-item.active { color: var(--primary); font-weight: 600; }
.nav-item i { font-size: 1.35rem; }
.nav-center {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-top: -28px;
  box-shadow: 0 6px 20px rgba(5,150,105,0.45);
  text-decoration: none;
  transition: var(--transition);
}
.nav-center:hover { transform: scale(1.08); }

/* ---------- Side Menu ---------- */
.side-menu {
  position: fixed;
  top: 0; left: -300px;
  width: 290px;
  height: 100%;
  background: #f0fdf4;
  z-index: 200;
  transition: left 0.32s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: 6px 0 30px rgba(0,0,0,0.12);
}
.side-menu.open { left: 0; }
.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.side-overlay.show { opacity: 1; visibility: visible; }
.side-header {
  padding: 22px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.side-user { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.side-user img, .side-user .avatar-fallback {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--primary);
  object-fit: cover;
}
.kyc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-50);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
}
.side-section { padding: 10px 0; }
.side-section-title {
  padding: 8px 22px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--muted);
  font-weight: 600;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 22px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
}
.side-link:hover, .side-link.active {
  background: #d1fae5;
  color: var(--primary);
  font-weight: 600;
}
.side-link.active {
  border-left: 4px solid var(--primary);
  padding-left: 18px;
}

/* ---------- Transaction items ---------- */
.txn-item {
  background: #fff;
  border-radius: 16px;
  padding: 15px 17px;
  margin-bottom: 11px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeUp 0.4s ease both;
}
.txn-item:hover { transform: translateY(-2px); }
.txn-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 7px;
}
.txn-title { font-weight: 600; font-size: 0.95rem; }
.txn-amount { font-weight: 700; font-size: 1rem; }
.txn-amount.debit { color: var(--danger); }
.txn-amount.credit { color: var(--success); }
.txn-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--muted);
}
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}
.status-SUCCESSFUL, .status-APPROVED, .status-successful { background: #d1fae5; color: #047857; }
.status-PENDING, .status-pending { background: #fef3c7; color: #b45309; }
.status-DECLINED, .status-FAILED, .status-failed { background: #fee2e2; color: #b91c1c; }

/* ---------- Virtual Cards ---------- */
.virtual-card {
  border-radius: 20px;
  padding: 22px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  min-height: 190px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  overflow: hidden;
  animation: scaleIn 0.45s ease;
}
.virtual-card::before {
  content: '';
  position: absolute;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  top: -40px; right: -30px;
}
.virtual-card.purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.virtual-card.green  { background: linear-gradient(135deg, #047857, #10b981); }
.virtual-card.dark   { background: linear-gradient(135deg, #1f2937, #374151); }
.card-number {
  font-size: 1.25rem;
  letter-spacing: 2.5px;
  margin: 22px 0 14px;
  font-family: 'Courier New', monospace;
  position: relative; z-index: 1;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.92;
  position: relative; z-index: 1;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  margin: 16px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.4s ease;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.form-control {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #e5e7eb;
  border-radius: 13px;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  background: #fff;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(5,150,105,0.15);
}
.btn-primary {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(5,150,105,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5,150,105,0.4); }

/* ---------- Beneficiaries ---------- */
.benef-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 0 12px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.benef-row::-webkit-scrollbar { display: none; }
.benef-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.benef-item:hover { transform: scale(1.06); }
.benef-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ---------- Investment / Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 18px;
}
.stat-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.45s ease both;
}
.stat-card.highlight {
  background: linear-gradient(135deg, #047857, #10b981);
  color: #fff;
}
.stat-label {
  font-size: 0.68rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 5px;
}

.plan-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
  transition: var(--transition);
  animation: fadeUp 0.4s ease;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.plan-tier {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.plan-roi {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
}
.plan-roi span { font-size: 0.9rem; font-weight: 500; }

/* ---------- Chart ---------- */
.chart-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  margin: 16px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.45s ease;
}
.chart-placeholder {
  height: 170px;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 12px 10px 8px;
}
.bar {
  width: 26px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 6px 6px 0 0;
  opacity: 0.85;
  transition: height 0.6s ease;
  animation: fadeUp 0.6s ease both;
}

/* ---------- KYC Modal ---------- */
.kyc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeUp 0.3s ease;
}
.kyc-modal {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  animation: scaleIn 0.35s ease;
}
.kyc-modal h3 { margin: 16px 0 10px; font-size: 1.25rem; }
.kyc-modal p { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; line-height: 1.5; }

/* ---------- Utilities ---------- */
.page-title { font-size: 1.35rem; font-weight: 700; margin: 18px 16px 12px; }
.section-title { font-size: 1.05rem; font-weight: 600; margin: 18px 16px 12px; }
.text-muted { color: var(--muted); }
.hidden { display: none !important; }
.main-content { min-width: 0; }

/* SVG icon helpers */
.svg-icon {
  width: 24px; height: 24px;
  fill: currentColor;
}


/* ===== DESKTOP DASHBOARD SPACING (mobile untouched) ===== */
@media (min-width: 992px) {
  .main-content {
    padding: 28px 32px !important;
    max-width: 1100px;
  }
  .form-card, .balance-card {
    margin-bottom: 20px;
  }
  .side-menu {
    width: 260px;
  }
}
