/* =====================================================
   MOBILE BANK – Design System v2.0
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy-900: #0a1628;
  --navy-800: #0f2044;
  --navy-700: #1a3a6b;
  --navy-600: #1e4080;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --gold:       #f59e0b;
  --gold-light: #fde68a;
  --green:      #10b981;
  --green-light:#d1fae5;
  --red:        #ef4444;
  --red-light:  #fee2e2;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white: #ffffff;

  --grad-hero:    linear-gradient(135deg, #0a1628 0%, #0f2044 50%, #1a3a6b 100%);
  --grad-blue:    linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  --grad-card:    linear-gradient(135deg, #1e4080 0%, #1d4ed8 100%);
  --grad-gold:    linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.09);
  --shadow-md: 0 10px 30px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.18);
  --shadow-blue: 0 8px 30px rgba(37,99,235,.35);

  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--gray-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--blue-400); transition: var(--transition); }
a:hover { color: var(--blue-500); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p  { margin-bottom: 1rem; }

/* ── Container ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1a45c0 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(37,99,235,.45);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border: 2px solid var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--blue-400);
  color: var(--blue-500);
  background: var(--blue-50);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.8);
  color: var(--white);
}
.btn-gold {
  background: var(--grad-gold);
  color: var(--navy-900);
  font-weight: 700;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(245,158,11,.4); }
.btn-text {
  background: transparent;
  color: var(--blue-500);
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
}
.btn-text:hover { background: var(--blue-50); }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }
.btn-block { display: flex; width: 100%; }
.btn-outline-primary {
  background: transparent;
  color: var(--blue-500);
  border: 2px solid var(--blue-400);
}
.btn-outline-primary:hover {
  background: var(--blue-500);
  color: var(--white);
}

/* =====================================================
   VITRINE – Navigation
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-900);
  text-decoration: none;
}
.site-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--grad-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}
.site-logo span { color: var(--blue-500); }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  color: var(--gray-600);
  transition: var(--transition);
}
.site-nav a:hover, .site-nav a.active {
  color: var(--blue-500);
  background: var(--blue-50);
}
.header-actions { display: flex; align-items: center; gap: .75rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: var(--transition);
}
/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0; bottom: 0;
  background: rgba(10,22,40,.97);
  z-index: 999;
  padding: 2rem;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.8);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav a:hover { color: white; }
.mobile-nav .mobile-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1rem;
}

/* Bootstrap navbar override */
.navbar {
  padding: 0;
  background: transparent !important;
  border: none;
  box-shadow: none;
}

/* Chat widget public */
.chat-widget {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}
.chat-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 18px 40px rgba(37,99,235,.2);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.chat-panel {
  width: 320px;
  max-height: 520px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(15,23,42,.18);
  overflow: hidden;
  transform: translateX(110%);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.chat-panel.open {
  transform: translateX(0);
  opacity: 1;
}
.chat-panel-header {
  padding: 1rem 1.15rem;
  background: #0f172a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.chat-panel-header h4 {
  font-size: .95rem;
  margin: 0;
}
.chat-panel-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-height: 360px;
  overflow-y: auto;
  background: #f8fafc;
}
.chat-message {
  display: inline-flex;
  padding: .85rem 1rem;
  border-radius: 18px;
  line-height: 1.4;
  max-width: 100%;
}
.chat-message.user {
  background: #2563eb;
  color: white;
  align-self: flex-end;
}
.chat-message.bot {
  background: #e2e8f0;
  color: #0f172a;
  align-self: flex-start;
}
.chat-panel-footer {
  padding: .85rem .95rem 1rem;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.chat-panel-footer form {
  display: flex;
  gap: .5rem;
}
.chat-panel-footer input {
  flex: 1;
  padding: .8rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: .9rem;
}
.chat-panel-footer button {
  border: none;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  padding: .8rem 1rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .chat-widget {
    right: .75rem;
    top: auto;
    bottom: 1.25rem;
    transform: none;
    align-items: flex-end;
  }
  .chat-panel {
    width: min(90vw, 320px);
  }
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-900) !important;
}
.navbar-brand .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--grad-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}
.navbar-nav .nav-link {
  padding: .5rem 1rem !important;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  color: var(--gray-600) !important;
  transition: var(--transition);
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: var(--blue-500) !important;
  background: var(--blue-50);
}
.auth-buttons { display: flex; align-items: center; gap: .75rem; }
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: .6rem 0;
}

/* =====================================================
   VITRINE – Hero
   ===================================================== */
.hero-section {
  background: var(--grad-hero);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(37,99,235,.18) 0%, transparent 70%);
}
.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { display: block; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(59,130,246,.2);
  border: 1px solid rgba(59,130,246,.4);
  color: var(--blue-300);
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}
.hero-section h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-section h1 .accent { color: var(--blue-300); }
.hero-section p {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-stat .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
}
.hero-stat .stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-mock {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: 20px;
  padding: 2rem;
  width: 340px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  color: white;
  backdrop-filter: blur(20px);
}
.hero-card-mock .card-chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 6px;
  margin-bottom: 2rem;
}
.hero-card-mock .card-number {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: .2em;
  opacity: .9;
  margin-bottom: 1.25rem;
}
.hero-card-mock .card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hero-card-mock .card-holder { font-size: .85rem; opacity: .7; margin-bottom: .2rem; }
.hero-card-mock .card-name { font-weight: 700; }
.hero-card-mock .card-brand { font-size: 1.5rem; font-weight: 800; opacity: .9; }
.hero-float-el {
  position: absolute;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: .9rem 1.25rem;
  box-shadow: var(--shadow-md);
}
.hero-float-el.el-balance {
  bottom: -20px;
  left: -30px;
}
.hero-float-el.el-transfer {
  top: -20px;
  right: -20px;
}
.hero-float-el .el-label { font-size: .7rem; color: rgba(255,255,255,.7); font-weight: 500; margin-bottom: .25rem; }
.hero-float-el .el-value { font-size: 1.1rem; font-weight: 700; color: white; }
.hero-float-el .el-sub { font-size: .75rem; color: rgba(255,255,255,.6); }
.hero-float-el .el-icon {
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  margin-bottom: .35rem;
  color: white;
}

/* =====================================================
   VITRINE – Features
   ===================================================== */
.features-section {
  padding: 5rem 0;
  background: var(--white);
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-tag {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-500);
  border: 1px solid var(--blue-100);
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .85rem;
  letter-spacing: .04em;
}
.section-header h2 { margin-bottom: .6rem; }
.section-header p { color: var(--gray-500); max-width: 560px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-blue);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--blue-500);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--blue-500);
  color: var(--white);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: .6rem; color: var(--navy-900); }
.feature-card p { color: var(--gray-500); font-size: .9rem; margin: 0; }

/* =====================================================
   VITRINE – Stats
   ===================================================== */
.stats-section {
  background: var(--grad-hero);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(37,99,235,.2) 0%, transparent 70%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.stat-item { text-align: center; }
.stat-item .number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-item .number .suffix { color: var(--gold); }
.stat-item .label {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  font-weight: 500;
}

/* =====================================================
   VITRINE – CTA
   ===================================================== */
.cta-section {
  padding: 5rem 0;
  background: var(--white);
}
.cta-inner {
  background: var(--grad-card);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-blue);
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.08) 0%, transparent 60%);
}
.cta-inner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-inner p { color: rgba(255,255,255,.75); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* =====================================================
   VITRINE – Partners
   ===================================================== */
.partners-section { padding: 4.5rem 0; background: var(--gray-50); }
.carousel-logo {
  width: 160px !important;
  object-fit: contain;
  margin: 0 20px;
  filter: grayscale(40%);
  opacity: .75;
  transition: var(--transition);
}
.carousel-logo:hover { filter: grayscale(0); opacity: 1; }

/* =====================================================
   VITRINE – Footer
   ===================================================== */
.site-footer {
  background: var(--navy-900);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { max-width: 280px; }
.footer-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
}
.footer-brand .brand-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--grad-blue);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .9rem;
}
.footer-brand p { color: rgba(255,255,255,.5); font-size: .9rem; }
.footer-col h4 { color: white; margin-bottom: 1.25rem; font-size: .95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { color: rgba(255,255,255,.5); font-size: .9rem; transition: var(--transition); }
.footer-col ul a:hover { color: white; }
.footer-col .contact-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
}
.footer-col .contact-item i { color: var(--blue-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .85rem; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.4); font-size: .85rem; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-legal { display: flex; gap: 1.5rem; }

/* =====================================================
   VITRINE – About / Services pages
   ===================================================== */
.page-hero {
  background: var(--grad-hero);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(37,99,235,.2) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.page-section { padding: 5rem 0; }
.page-section.alt { background: var(--white); }
.page-section.bg-dark { background: var(--navy-900); }
.page-section.bg-dark h2 { color: white; }
.page-section.bg-dark p { color: rgba(255,255,255,.65); }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.content-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* =====================================================
   AUTH PAGES
   ===================================================== */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: var(--grad-hero);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(37,99,235,.3) 0%, transparent 70%);
}
.auth-visual .visual-content { position: relative; z-index: 1; text-align: center; }
.auth-visual .visual-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 3rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}
.auth-visual .visual-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.auth-visual h2 { color: white; margin-bottom: .75rem; }
.auth-visual p { color: rgba(255,255,255,.65); max-width: 320px; margin: 0 auto 2.5rem; }
.auth-visual .visual-perks { text-align: left; }
.auth-visual .perk {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.auth-visual .perk:last-child { border: none; }
.auth-visual .perk i { color: var(--blue-300); font-size: 1rem; width: 20px; }
.auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
  background: var(--white);
  overflow-y: auto;
}
.auth-form-inner { max-width: 420px; width: 100%; margin: 0 auto; }
.auth-form-header { margin-bottom: 2rem; }
.auth-form-header h2 { font-size: 1.75rem; margin-bottom: .4rem; color: var(--navy-900); }
.auth-form-header p { color: var(--gray-500); margin: 0; }
.auth-alert-error {
  background: var(--red-light);
  border: 1px solid #fca5a5;
  color: var(--red);
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.auth-alert-success {
  background: var(--green-light);
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--gray-700);
  margin-bottom: .45rem;
}
.form-control {
  width: 100%;
  padding: .72rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--blue-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-control.error { border-color: var(--red); }
.form-control::placeholder { color: var(--gray-400); }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 2.75rem; }
.input-icon-wrap .input-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: .95rem;
  pointer-events: none;
}
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 2.75rem; }
.toggle-pw {
  position: absolute;
  right: .9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: .9rem;
  transition: var(--transition);
}
.toggle-pw:hover { color: var(--blue-500); }
.field-error { font-size: .8rem; color: var(--red); margin-top: .3rem; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check { display: flex; align-items: flex-start; gap: .6rem; }
.form-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--blue-500);
  flex-shrink: 0;
  margin-top: 2px;
}
.form-check label { font-size: .88rem; color: var(--gray-600); cursor: pointer; }
.form-check label a { color: var(--blue-500); }
.forgot-link { text-align: right; font-size: .85rem; display: block; margin-bottom: .5rem; }
.auth-alt { text-align: center; margin-top: 1.5rem; font-size: .9rem; color: var(--gray-500); }
.auth-alt a { color: var(--blue-500); font-weight: 600; }
.strength-bar-wrap { margin-top: .5rem; }
.strength-bar-wrap .bars {
  display: flex;
  gap: 4px;
}
.strength-bar-wrap .bar {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  transition: var(--transition);
}
.strength-bar-wrap .bar.active-1 { background: var(--red); }
.strength-bar-wrap .bar.active-2 { background: var(--gold); }
.strength-bar-wrap .bar.active-3 { background: var(--green); }
.strength-text { font-size: .78rem; color: var(--gray-500); margin-top: .3rem; }

/* =====================================================
   DASHBOARD – Layout
   ===================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: #f0f4f9;
}
.app-sidebar {
  width: 260px;
  background: var(--navy-900);
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: var(--transition);
  overflow-y: auto;
}
.sidebar-logo {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
}
.sidebar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--grad-blue);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.sidebar-section {
  padding: 1.25rem 1rem .5rem;
}
.sidebar-section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  padding: 0 .5rem;
  margin-bottom: .5rem;
}
.sidebar-nav { display: flex; flex-direction: column; gap: .2rem; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.6);
  font-weight: 500;
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-nav a i { width: 20px; text-align: center; font-size: 1rem; }
.sidebar-nav a:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.sidebar-nav a.active {
  background: rgba(59,130,246,.2);
  color: var(--blue-300);
  border-left: 3px solid var(--blue-400);
  padding-left: calc(1rem - 3px);
}
.sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.45);
  font-size: .88rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.sidebar-footer a:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); }

/* App main area */
.app-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  font-size: 1.1rem;
}
.sidebar-toggle:hover { background: var(--gray-100); }
.page-title { font-size: 1.1rem; font-weight: 700; color: var(--navy-900); }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-notif {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
  position: relative;
  transition: var(--transition);
}
.topbar-notif:hover { background: var(--gray-200); }
.topbar-notif .badge {
  position: absolute;
  top: 2px; right: 2px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid white;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .9rem .4rem .4rem;
  border-radius: 50px;
  background: var(--gray-100);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.user-chip:hover { background: var(--gray-200); }
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.user-chip .user-name { font-size: .88rem; font-weight: 600; color: var(--gray-700); }
.user-chip .chevron { color: var(--gray-400); font-size: .8rem; }
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 500;
}
.user-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem 1rem;
  color: var(--gray-700);
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
}
.user-dropdown-menu a i { color: var(--gray-400); width: 16px; }
.user-dropdown-menu a:hover { background: var(--gray-50); }
.user-dropdown-menu hr { border: none; border-top: 1px solid var(--gray-200); margin: .25rem 0; }
.user-dropdown-menu .danger { color: var(--red); }
.user-dropdown-menu .danger i { color: var(--red); }
.user-dropdown-menu .danger:hover { background: var(--red-light); }

/* App Content */
.app-content {
  padding: 2rem;
  flex: 1;
}
.page-header {
  margin-bottom: 2rem;
}
.page-header h2 { font-size: 1.5rem; color: var(--navy-900); margin-bottom: .3rem; }
.page-header p { color: var(--gray-500); margin: 0; }

/* =====================================================
   DASHBOARD – Cards
   ===================================================== */
.dash-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.dash-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.dash-card.primary {
  background: var(--grad-card);
  border-color: transparent;
  color: white;
}
.dash-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-card.primary .dash-card-header { border-color: rgba(255,255,255,.12); }
.dash-card-header h3 { font-size: .95rem; font-weight: 600; color: var(--navy-900); margin: 0; }
.dash-card.primary .dash-card-header h3 { color: rgba(255,255,255,.85); }
.dash-card-header .card-badge {
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .7rem;
  border-radius: 50px;
  background: rgba(255,255,255,.2);
  color: white;
}
.dash-card-body { padding: 1.5rem; }
.balance-display {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1.5rem;
}
.balance-display .balance-label { font-size: .82rem; color: rgba(255,255,255,.7); font-weight: 500; }
.balance-display .balance-amount {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: white;
  line-height: 1;
}
/* Prevent very large amounts from wrapping to the next line */
.balance-display .balance-amount {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  display: inline-block;
}
.balance-display .balance-sub { font-size: .8rem; color: rgba(255,255,255,.55); }
.balance-meta {
  display: flex;
  gap: 1.25rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.balance-meta .meta-item { display: flex; flex-direction: column; gap: .15rem; }
.balance-meta .meta-label { font-size: .75rem; color: rgba(255,255,255,.55); }
.balance-meta .meta-value { font-size: .9rem; font-weight: 600; color: white; }
.info-list { display: flex; flex-direction: column; gap: 1rem; }
.info-row { display: flex; flex-direction: column; gap: .25rem; }
.info-row .info-label { font-size: .75rem; color: var(--gray-400); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.info-row .info-value { font-size: .9rem; font-weight: 600; color: var(--navy-900); }
.info-row .copy-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.copy-btn {
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: .8rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.copy-btn:hover { background: var(--blue-100); color: var(--blue-500); }

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.quick-action {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.quick-action:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.quick-action .qa-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.quick-action .qa-icon.blue   { background: var(--blue-50); color: var(--blue-500); }
.quick-action .qa-icon.green  { background: var(--green-light); color: var(--green); }
.quick-action .qa-icon.gold   { background: #fef3c7; color: var(--gold); }
.quick-action .qa-label { font-size: .82rem; font-weight: 600; color: var(--gray-700); }

/* Transactions */
.tx-list { display: flex; flex-direction: column; }
.tx-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.tx-item:last-child { border-bottom: none; }
.tx-item:hover { background: var(--gray-50); }
.tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.tx-icon.debit  { background: #fee2e2; color: var(--red); }
.tx-icon.credit { background: var(--green-light); color: var(--green); }
.tx-icon.pending { background: #fef3c7; color: var(--gold); }
.tx-info { flex: 1; min-width: 0; }
.tx-name { font-weight: 600; font-size: .9rem; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-date { font-size: .78rem; color: var(--gray-400); margin-top: .1rem; }
.tx-amount { font-weight: 700; font-size: .95rem; text-align: right; flex-shrink: 0; }
.tx-amount.debit  { color: var(--red); }
.tx-amount.credit { color: var(--green); }
.tx-status {
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 50px;
  margin-top: .2rem;
  display: inline-block;
}
.tx-status.pending  { background: #fef3c7; color: #92400e; }
.tx-status.sent     { background: var(--green-light); color: #065f46; }
.tx-status.progress { background: var(--blue-50); color: var(--blue-600); }
.card-footer-link {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
}
.card-footer-link a {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-500);
}
.card-footer-link a:hover { gap: .7rem; }

/* =====================================================
   DASHBOARD – Transfer
   ===================================================== */
.transfer-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  align-items: start;
}
.transfer-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-bottom: 1.5rem;
}
.transfer-type-btn {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  outline: none;
}
.transfer-type-btn i {
  font-size: 1.35rem;
  color: var(--gray-400);
  transition: var(--transition);
}
.transfer-type-btn .tab-btn-content {
  display: flex;
  flex-direction: column;
}
.transfer-type-btn .tab-title {
  font-weight: 700;
  font-size: .92rem;
  color: var(--gray-700);
  transition: var(--transition);
}
.transfer-type-btn .tab-subtitle {
  font-size: .75rem;
  color: var(--gray-500);
  margin-top: .15rem;
}
.transfer-type-btn:hover {
  border-color: var(--blue-200);
  background: var(--gray-50);
}
.transfer-type-btn.active {
  border-color: var(--blue);
  background: var(--blue-50);
}
.transfer-type-btn.active i {
  color: var(--blue);
}
.transfer-type-btn.active .tab-title {
  color: var(--blue);
}
@media (max-width: 640px) {
  .transfer-type-selector {
    grid-template-columns: 1fr;
  }
}
.transfer-form-card .dash-card-body { padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .45rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: .72rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-group input.error { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: 1rem; margin-top: 1.5rem; justify-content: flex-end; }
.error-banner {
  background: var(--red-light);
  border: 1px solid #fca5a5;
  color: var(--red);
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
/* Pending transfers */
.pending-list { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; }
.pending-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: var(--transition);
  display: block;
}
.pending-item:hover {
  border-color: var(--blue-300);
  background: var(--white);
  box-shadow: var(--shadow);
}
.pending-item-header { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.pending-item-name { font-weight: 600; color: var(--navy-900); font-size: .9rem; }
.pending-item-amount { font-weight: 700; color: var(--navy-900); font-size: .9rem; }
.pending-item-meta { font-size: .78rem; color: var(--gray-500); margin-bottom: .75rem; }
.progress-wrap { display: block; }
.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: .3rem;
}
.progress-fill {
  height: 100%;
  background: var(--grad-blue);
  border-radius: 3px;
  transition: width .5s ease;
}
.progress-fill.done { background: linear-gradient(135deg, var(--green) 0%, #34d399 100%); }
.progress-labels { display: flex; justify-content: space-between; font-size: .74rem; color: var(--gray-400); }

/* =====================================================
   DASHBOARD – Transfer Progress
   ===================================================== */
.progress-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
  align-items: start;
}
.transfer-summary { padding: 1.5rem; }
.transfer-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: .7rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .9rem;
}
.transfer-summary .summary-row:last-child { border: none; }
.transfer-summary .summary-row .s-label { color: var(--gray-500); font-weight: 500; }
.transfer-summary .summary-row .s-value { font-weight: 600; color: var(--navy-900); }
.progress-hero {
  background: var(--grad-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}
.progress-hero .big-pct {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .5rem;
}
.progress-hero .pct-bar {
  height: 10px;
  background: rgba(255,255,255,.2);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.progress-hero .pct-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #34d399);
  border-radius: 5px;
  transition: width 1s ease;
}
.progress-hero .status-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
}
/* Validation steps */
.steps-list { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.step-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.step-card.validated { border-color: #6ee7b7; background: #f0fdf4; }
.step-card.active { border-color: var(--blue-400); background: var(--blue-50); }
.step-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-card .step-num { background: var(--gray-100); color: var(--gray-500); }
.step-card.validated .step-num { background: var(--green); color: white; }
.step-card.active .step-num { background: var(--blue-500); color: white; }
.step-head-info { flex: 1; }
.step-head-info .step-name { font-weight: 600; font-size: .9rem; color: var(--navy-900); }
.step-head-info .step-sub { font-size: .78rem; color: var(--gray-500); margin-top: .1rem; }
.step-check { color: var(--green); font-size: 1.1rem; }
.step-body { padding: 0 1.25rem 1.25rem; }
.code-input-group {
  display: flex;
  gap: .75rem;
  align-items: center;
}
.code-input-group input {
  flex: 1;
  padding: .72rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: .2em;
  font-weight: 700;
  background: var(--white);
  outline: none;
  transition: var(--transition);
}
.code-input-group input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.step-alert {
  background: var(--red-light);
  border: 1px solid #fca5a5;
  color: var(--red);
  padding: .6rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: .75rem;
}
.all-done-banner {
  background: var(--green-light);
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
}
.all-done-banner i { font-size: 2rem; margin-bottom: .75rem; display: block; }
.all-done-banner h4 { color: #065f46; margin-bottom: .4rem; }
.all-done-banner p { color: #047857; font-size: .9rem; margin: 0; }

/* =====================================================
   PROFILE
   ===================================================== */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  align-items: start;
}
.profile-card-left { padding: 2rem; text-align: center; }
.profile-avatar-big {
  width: 80px;
  height: 80px;
  background: var(--grad-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1rem;
}
.profile-name { font-size: 1.15rem; font-weight: 700; color: var(--navy-900); margin-bottom: .25rem; }
.profile-email { font-size: .85rem; color: var(--gray-500); margin-bottom: 1.25rem; }
.profile-badges { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.profile-badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 50px;
}
.profile-badge.verified { background: var(--green-light); color: #065f46; }
.profile-badge.member { background: var(--blue-50); color: var(--blue-600); }
.profile-form-card .dash-card-body { padding: 2rem; }

/* =====================================================
   ADMIN
   ===================================================== */
.admin-body { background: #f0f4f9; }
.admin-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.admin-stat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.admin-stat .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: .25rem;
}
.admin-stat .stat-icon.blue   { background: var(--blue-50); color: var(--blue-500); }
.admin-stat .stat-icon.green  { background: var(--green-light); color: var(--green); }
.admin-stat .stat-icon.gold   { background: #fef3c7; color: var(--gold); }
.admin-stat .stat-icon.red    { background: var(--red-light); color: var(--red); }
.admin-stat .stat-number { font-size: 1.75rem; font-weight: 800; color: var(--navy-900); }
.admin-stat .stat-label { font-size: .83rem; color: var(--gray-500); }

/* =====================================================
   NOTIFICATION WIDGET
   ===================================================== */
#notif-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  max-width: 320px;
  width: calc(100vw - 3rem);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  pointer-events: none;
}
.notif-toast {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue-400);
  padding: 1rem 1.25rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  pointer-events: all;
  animation: toastIn .4s cubic-bezier(.34,1.56,.64,1) forwards;
  overflow: hidden;
}
.notif-toast.hiding { animation: toastOut .3s ease forwards; }
.notif-toast.green { border-left-color: var(--green); }
.notif-toast.gold  { border-left-color: var(--gold); }
.notif-toast .notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.notif-toast .notif-icon.blue  { background: var(--blue-50); color: var(--blue-500); }
.notif-toast .notif-icon.green { background: var(--green-light); color: var(--green); }
.notif-toast .notif-icon.gold  { background: #fef3c7; color: var(--gold); }
.notif-body { flex: 1; min-width: 0; }
.notif-body .notif-title { font-size: .78rem; font-weight: 700; color: var(--gray-400); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .25rem; }
.notif-body .notif-msg { font-size: .88rem; color: var(--gray-700); font-weight: 500; line-height: 1.45; }
.notif-body .notif-time { font-size: .74rem; color: var(--gray-400); margin-top: .3rem; }
.notif-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: .85rem;
  padding: .1rem;
  margin-left: .25rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.notif-close:hover { color: var(--gray-700); }
.notif-progress-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--blue-400);
  animation: shrink 5s linear forwards;
}
.notif-toast { position: relative; }
.notif-toast.green .notif-progress-bar { background: var(--green); }
.notif-toast.gold  .notif-progress-bar { background: var(--gold); }
@keyframes toastIn {
  from { opacity:0; transform: translateX(100%) scale(.9); }
  to   { opacity:1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity:1; transform: translateX(0) scale(1); }
  to   { opacity:0; transform: translateX(100%) scale(.9); }
}
@keyframes shrink {
  from { width: 100%; }
  to   { width: 0%; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
/* When mobile sidebar is open, prevent background scrolling */
body.sidebar-open { overflow: hidden; height: 100%; }
@media (max-width: 1024px) {
  .dash-grid-top { grid-template-columns: 1fr 1fr; }
  .dash-grid-top .dash-card:last-child { grid-column: 1 / -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .transfer-layout { grid-template-columns: 1fr; }
  .progress-page-grid { grid-template-columns: 1fr; }
  .admin-stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 2.5rem 2rem; }
  .content-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .app-main { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 199;
  }
  .sidebar-overlay.show { display: block; }
  .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .dash-grid-top { grid-template-columns: 1fr !important; }
  .dash-grid-top .dash-card:last-child { grid-column: auto; }
  .hero-section .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-section p { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-card-mock { width: 280px; }
  .hero-float-el.el-balance { display: none; }
  .quick-actions { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .app-content { padding: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .info-row .info-value { font-size: .85rem; }
  .copy-btn { width: 24px; height: 24px; font-size: .7rem; }
}
@media (max-width: 600px) {
  .hero-section { padding: 4rem 0 3rem; }
  .hero-visual { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .auth-form-side { padding: 2rem 1.25rem; }
  .quick-actions { grid-template-columns: repeat(3, 1fr); }
  .quick-action { padding: .75rem .5rem; }
  .quick-action .qa-icon { width: 40px; height: 40px; font-size: 1rem; }
  .quick-action .qa-label { font-size: .75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .admin-stat-cards { grid-template-columns: 1fr 1fr; }
  .form-actions { flex-direction: column; gap: .75rem; width: 100%; }
  .form-actions .btn { width: 100%; justify-content: center; }
  #notif-container { left: 1rem; right: 1rem; width: auto; bottom: 1rem; }
  .notif-toast { padding: .6rem .8rem; gap: .6rem; }
  .notif-toast .notif-icon { width: 32px; height: 32px; font-size: .8rem; }
  .notif-body .notif-title { font-size: .65rem; margin-bottom: .15rem; }
  .notif-body .notif-msg { font-size: .82rem; line-height: 1.3; }
  .notif-body .notif-time { display: none; }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.hidden, .d-none { display: none !important; }
@media (min-width: 576px) {
  .d-sm-inline { display: inline !important; }
  .d-sm-flex { display: flex !important; }
}

/* Mobile-first transfer form refinements */
.lookup-status{line-height:1.45}
.lookup-status-success{color:#047857}
.lookup-status-error{color:#b91c1c}
#lookup-internal-recipient:disabled{opacity:.7;cursor:wait}
.transfer-account-meta {
  display: grid;
  gap: .6rem;
  margin-top: .75rem;
  color: var(--gray-600);
  font-size: .85rem;
}
.transfer-account-meta-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.transfer-account-meta strong { color: var(--gray-900); }
.transfer-account-meta code {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: var(--gray-100);
  padding: .2rem .4rem;
  border-radius: 4px;
  font-size: .78rem;
}
.progress-state { font-size: 1.15rem; font-weight: 700; }
.progress-message { margin: 1rem 0 0; color: inherit; line-height: 1.55; }
.progress-message p { margin: .35rem 0 0; }
.profile-readonly-field,
.profile-readonly-field:focus {
  background: var(--gray-100) !important;
  border-color: var(--gray-200) !important;
  box-shadow: none !important;
  cursor: default;
}
.transfer-summary .s-value { min-width: 0; overflow-wrap: anywhere; }
@media(max-width:640px){
  .app-main,.app-content,.transfer-layout,.transfer-form-card{min-width:0}
  .app-content{padding:.75rem;padding-bottom:9rem}
  .app-content>.page-header{margin-bottom:1rem}
  .app-content>.page-header h2{font-size:1.35rem;line-height:1.3}
  .app-content>.page-header p{font-size:.9rem;line-height:1.5}
  .transfer-layout{display:flex;flex-direction:column;gap:1rem}
  .transfer-layout>.dash-card{width:100%;min-width:0}
  .transfer-form-card{order:-1}
  .transfer-form-card .dash-card-body{padding:1rem}
  .transfer-form-card .dash-card-header{padding:1rem;gap:.5rem}
  .transfer-form-card .dash-card-header h3{font-size:1.05rem}
  .transfer-type-selector{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-bottom:1.1rem}
  .transfer-type-btn{min-width:0;min-height:68px;gap:.5rem;padding:.65rem .55rem}
  .transfer-type-btn i{font-size:1.05rem;flex:0 0 auto}
  .transfer-type-btn .tab-title{font-size:.78rem;line-height:1.25}
  .transfer-type-btn .tab-subtitle{font-size:.67rem;line-height:1.3}
  .transfer-form-card .form-group{margin-bottom:.9rem}
  .transfer-form-card .form-group input,
  .transfer-form-card .form-group select,
  .transfer-form-card .form-group textarea{min-height:46px;padding:.7rem .8rem;font-size:16px}
  .transfer-form-card .form-row{grid-template-columns:1fr;gap:0}
  .transfer-form-card .form-actions{flex-direction:column-reverse;gap:.65rem;width:100%}
  .transfer-form-card .form-actions .btn{width:100%;min-height:46px}
  .pending-list{padding:.85rem}
  .pending-item{padding:.85rem}
  .pending-item-header{gap:.5rem;align-items:flex-start}
  .pending-item-name{min-width:0;overflow-wrap:anywhere}
  .pending-item-amount{white-space:nowrap}
  .progress-page-grid{gap:1rem}
  .progress-hero{padding:1.25rem 1rem}
  .progress-hero .big-pct{font-size:2.75rem}
  .transfer-summary{padding:1rem}
  .transfer-summary .summary-row{display:grid;grid-template-columns:1fr;gap:.2rem;padding:.75rem 0}
  .transfer-summary .summary-row .s-label{font-size:.78rem}
  .transfer-summary .summary-row .s-value{text-align:left;line-height:1.45}
  .profile-form-card .dash-card-body{padding:1rem}
  .profile-layout>.dash-card{min-width:0}
  .profile-readonly-field{font-size:16px}
  .chat-widget{top:auto!important;bottom:5.25rem!important;right:.75rem!important;transform:none!important}
}
@media(max-width:380px){
  .transfer-type-btn{align-items:flex-start;min-height:74px}
  .transfer-type-btn .tab-subtitle{display:none}
  .transfer-form-card .dash-card-body{padding:.85rem}
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-success { background: var(--green-light); color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info    { background: var(--blue-50); color: var(--blue-600); }
.badge-danger  { background: var(--red-light); color: #991b1b; }
