/* AdaWang System CSS v4 — readable, clean, professional */
:root {
  --aw-bg: #f6f8fb;
  --aw-surface: #ffffff;
  --aw-ink: #0f172a;
  --aw-muted: #64748b;
  --aw-line: #e6edf4;
  --aw-primary: #181A20;
  --aw-primary-dark: #0B0E11;
  --aw-primary-soft: #FEF6D8;
  --aw-success: #0ECB81;
  --aw-warn: #F0B90B;
  --aw-danger: #F6465D;
  --aw-radius: 12px;
  --aw-font: "Josefin Sans", Inter, "Segoe UI", sans-serif;
  --aw-shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.05);
}

html { scroll-behavior: smooth; }
html, body {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--aw-bg) !important;
  color: var(--aw-ink) !important;
  font-family: var(--aw-font) !important;
  -webkit-font-smoothing: antialiased;
}

/* Typography — always readable on light bg */
body, p, li, td, th, label, input, select, textarea,
.card, .dash-card, .aw-stat, .section-title, .muted {
  font-family: var(--aw-font) !important;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--aw-font) !important;
  color: var(--aw-ink) !important;
  -webkit-text-fill-color: var(--aw-ink) !important;
}
p, li, td, label, span:not(.material-icons-outlined):not(.material-icons) {
  color: inherit;
}
.muted, .section-subtitle { color: var(--aw-muted) !important; -webkit-text-fill-color: var(--aw-muted) !important; }
.transaction-page-hero .muted, .transaction-page-hero .section-subtitle,
.la-hero-main .muted, .usecases-section .muted, .bank-page-hero .muted {
  color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
}

/* Material Icons — never restyle as text */
.material-icons-outlined, .material-icons,
span.material-icons-outlined {
  font-family: "Material Icons Outlined" !important;
  font-weight: normal !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  font-feature-settings: "liga" !important;
  -webkit-text-fill-color: currentColor !important;
  display: inline-block;
}
.material-icons { font-family: "Material Icons" !important; }

/* Buttons — solid contrast */
.btn, a.btn, button.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: .9rem !important;
  font-family: var(--aw-font) !important;
  text-decoration: none !important;
  border: 1.5px solid transparent !important;
  cursor: pointer;
  white-space: nowrap !important;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .12s;
}
.btn.primary, a.btn.primary, .btn-primary {
  background: var(--aw-primary) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: var(--aw-primary) !important;
}
.btn.primary:hover { background: var(--aw-primary-dark) !important; }
.btn.outline, a.btn.outline {
  background: #ffffff !important;
  color: var(--aw-ink) !important;
  -webkit-text-fill-color: var(--aw-ink) !important;
  border-color: var(--aw-line) !important;
}
.btn.outline:hover { border-color: var(--aw-primary) !important; color: var(--aw-primary) !important; -webkit-text-fill-color: var(--aw-primary) !important; }
.btn.block { width: 100% !important; }

/* Dark surfaces: white text */
.dash-profile, .dash-wallet, .p2p-wallet-copy, .duitnow-hero,
.portal-sidebar, footer, .site-footer, .aw-footer,
.hero-duitnow-card, .hero-bnpl-card.featured {
  color: #ffffff !important;
}
.dash-profile h1, .dash-profile p, .dash-profile span:not(.material-icons-outlined),
.dash-wallet h1, .dash-wallet strong, .dash-wallet span, .dash-wallet p,
.p2p-wallet-copy h1, .p2p-wallet-copy .eyebrow, .p2p-wallet-copy .muted,
.p2p-wallet-copy p,
.duitnow-hero h1, .duitnow-hero p, .duitnow-hero .muted, .duitnow-hero span:not(.material-icons-outlined),
.hero-duitnow-card, .hero-duitnow-card *,
.hero-bnpl-card.featured, .hero-bnpl-card.featured * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Wallet hero buttons ON green — white bg + DARK text */
.p2p-wallet-copy .btn,
.p2p-wallet-copy a.btn,
.p2p-actions .btn,
.dashboard-actions .btn {
  background: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border-color: #ffffff !important;
  font-weight: 800 !important;
}
.p2p-wallet-copy .btn .material-icons-outlined,
.p2p-actions .btn .material-icons-outlined {
  color: #0f766e !important;
  -webkit-text-fill-color: #0f766e !important;
}
.p2p-wallet-copy .btn.outline,
.p2p-actions .btn.outline {
  background: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: rgba(255,255,255,.55) !important;
}
.p2p-wallet-copy .btn.outline .material-icons-outlined {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Light cards — dark text */
.card, .dash-card, .aw-stat, .hs-card, .la-card, .qr-card, .auth-card,
.action-tile, .p2p-network-card {
  background: #ffffff !important;
  color: var(--aw-ink) !important;
  border: 1px solid var(--aw-line) !important;
  border-radius: var(--aw-radius) !important;
  box-shadow: var(--aw-shadow) !important;
}
.card h1, .card h2, .card h3, .card p, .card span:not(.material-icons-outlined),
.dash-card h1, .dash-card h2, .dash-card strong, .dash-card span:not(.material-icons-outlined),
.aw-stat strong, .aw-stat span:not(.material-icons-outlined),
.action-tile strong, .action-tile span:not(.material-icons-outlined) {
  color: var(--aw-ink) !important;
  -webkit-text-fill-color: var(--aw-ink) !important;
}

/* Forms */
input, select, textarea {
  min-height: 44px !important;
  border: 1.5px solid #d7e0ea !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--aw-ink) !important;
  -webkit-text-fill-color: var(--aw-ink) !important;
  font-size: 16px !important;
  font-family: var(--aw-font) !important;
  padding: 10px 12px !important;
}
input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--aw-primary) !important;
  box-shadow: 0 0 0 3px rgba(15,118,110,.14) !important;
}

/* Portal layout */
@media (min-width: 993px) {
  body.customer-portal-body .portal-layout {
    display: block !important;
  }
  body.customer-portal-body .portal-sidebar {
    position: fixed !important;
    top: 0 !important; left: 0 !important; bottom: 0 !important;
    width: 260px !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 200 !important;
    background: #0f172a !important;
  }
  body.customer-portal-body .portal-main {
    display: block !important;
    margin-left: 260px !important;
    width: auto !important;
    max-width: none !important;
    min-height: 100vh !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 992px) {
  body.customer-portal-body .portal-main {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 12px !important;
  }
}

/* Dashboard profile */
.dash-profile {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  border-radius: 16px !important;
  background: #0f172a !important;
  color: #fff !important;
  box-sizing: border-box !important;
  writing-mode: horizontal-tb !important;
}
.dash-profile-info { flex: 1 1 200px !important; min-width: 0 !important; }
.dash-profile h1, .dash-profile .dash-hello {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
  font-size: clamp(1.05rem, 2vw, 1.35rem) !important;
  margin: 0 0 4px !important;
}
.dash-profile p, .dash-profile .dash-meta {
  color: rgba(255,255,255,.85) !important;
  -webkit-text-fill-color: rgba(255,255,255,.85) !important;
}
.dash-profile .dash-btn-primary, .dash-profile a.dash-btn-primary {
  background: #f0b90b !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  padding: 8px 16px !important;
}
.dash-profile .dash-btn-outline, .dash-profile a.dash-btn-outline {
  background: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.5) !important;
  border-radius: 999px !important;
}

/* Homepage hero */
.hero-panel {
  background: #fff !important;
  border: 1px solid var(--aw-line) !important;
  border-radius: 20px !important;
  box-shadow: var(--aw-shadow) !important;
}
.hero-title {
  color: var(--aw-ink) !important;
  -webkit-text-fill-color: var(--aw-ink) !important;
}
.hero-title .highlight {
  color: var(--aw-primary) !important;
  -webkit-text-fill-color: var(--aw-primary) !important;
}
.hero-subtitle { color: var(--aw-muted) !important; -webkit-text-fill-color: var(--aw-muted) !important; }
.hero-bnpl-strip {
  display: grid !important;
  grid-template-columns: 1.3fr 1fr 1fr 1fr !important;
  gap: 10px !important;
  margin-top: 14px !important;
}
.hero-bnpl-card {
  background: #f8fafc !important;
  border: 1px solid var(--aw-line) !important;
  border-radius: 12px !important;
  padding: 14px !important;
  color: var(--aw-ink) !important;
}
.hero-bnpl-card strong, .hero-bnpl-card small {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  display: block;
}
.hero-bnpl-card.featured {
  background: var(--aw-primary) !important;
  border-color: var(--aw-primary) !important;
  color: #fff !important;
}
.hero-bnpl-card.featured strong,
.hero-bnpl-card.featured small,
.hero-bnpl-card.featured span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.hero-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 10px !important;
}
.hero-stat {
  background: #fff !important;
  border: 1px solid var(--aw-line) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  color: var(--aw-ink) !important;
}
.hero-stat-value { color: var(--aw-ink) !important; -webkit-text-fill-color: var(--aw-ink) !important; font-weight: 800; }
.hero-stat-label { color: var(--aw-muted) !important; -webkit-text-fill-color: var(--aw-muted) !important; }

@media (max-width: 900px) {
  .hero-bnpl-strip { grid-template-columns: 1fr 1fr !important; }
  .hero-stats { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 520px) {
  .hero-bnpl-strip { grid-template-columns: 1fr !important; }
}

/* Sidebar links */
.side-link {
  color: #e2e8f0 !important;
  -webkit-text-fill-color: #e2e8f0 !important;
}
.side-link.active {
  background: var(--aw-primary) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Never transparent text */
* {
  /* do not force fill on everything — only reset known bad */
}


/* ===== Auth pages ===== */
.auth-card, section.auth-card {
  max-width: 440px !important;
  margin: 40px auto !important;
  background: #fff !important;
  border: 1px solid #e6edf4 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 28px rgba(15,23,42,.07) !important;
  color: #0f172a !important;
}
.auth-card .card-pad { padding: 28px 24px !important; }
.auth-card h1 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 1.6rem !important;
  margin: 4px 0 8px !important;
}
.auth-card .muted, .auth-card p {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
}
.auth-card .form-row { margin-bottom: 14px !important; }
.auth-card .form-row label {
  display: block !important;
  margin-bottom: 6px !important;
  font-weight: 700 !important;
  color: #334155 !important;
}
.auth-card input {
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 46px !important;
  display: block !important;
}
.auth-provider-stack {
  display: grid !important;
  gap: 10px !important;
  margin: 16px 0 12px !important;
}
.auth-card .btn.telegram, a.btn.telegram {
  background: #229ED9 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: #229ED9 !important;
}
.auth-card .btn.google, a.btn.google {
  background: #fff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border: 1.5px solid #e2e8f0 !important;
}
.auth-divider {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 16px 0 !important;
  color: #94a3b8 !important;
  font-size: .8rem !important;
}
.auth-divider::before, .auth-divider::after {
  content: "" !important;
  flex: 1 !important;
  height: 1px !important;
  background: #e2e8f0 !important;
}
.auth-card .btn.primary {
  background: #0f766e !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  width: 100% !important;
  margin-top: 8px !important;
}

/* ===== Sidebar fix ===== */
body.customer-portal-body .portal-sidebar {
  width: 260px !important;
  background: #0b1220 !important;
  color: #e2e8f0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body.customer-portal-body .portal-sidebar .brand-logo,
body.customer-portal-body .portal-sidebar .sidebar-brand img {
  max-width: 140px !important;
  height: auto !important;
  display: block !important;
}
body.customer-portal-body .portal-sidebar .side-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}
body.customer-portal-body .portal-sidebar .side-link .material-icons-outlined {
  font-size: 20px !important;
  color: inherit !important;
}
body.customer-portal-body .portal-sidebar .side-link.active {
  background: #0f766e !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.customer-portal-body .portal-main {
  margin-left: 260px !important;
}
@media (max-width: 992px) {
  body.customer-portal-body .portal-main { margin-left: 0 !important; }
}


/* ===== CRITICAL: dark cards must have WHITE text ===== */
.wallet-balance-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border: none !important;
}
.wallet-balance-card span,
.wallet-balance-card strong,
.wallet-balance-card p,
.wallet-balance-card * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.wallet-balance-card p {
  opacity: .9 !important;
}

/* Dark heroes: white text + visible buttons */
.bank-page-hero,
.p2p-wallet-copy,
.duitnow-hero,
[class*="-hero"] > div:first-child {
  color: #fff !important;
}
.bank-page-hero h1,
.bank-page-hero .eyebrow,
.bank-page-hero .muted,
.bank-page-hero p {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Buttons on dark backgrounds */
.bank-page-hero .btn.primary,
.p2p-wallet-copy .btn.primary,
.form-actions .btn.primary {
  background: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border-color: #ffffff !important;
}
.bank-page-hero .btn.primary .material-icons-outlined,
.p2p-wallet-copy .btn.primary .material-icons-outlined {
  color: #0f766e !important;
  -webkit-text-fill-color: #0f766e !important;
}
.bank-page-hero .btn.outline,
.p2p-wallet-copy .btn.outline,
.form-actions .btn.outline {
  background: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1.5px solid rgba(255,255,255,.55) !important;
}
.bank-page-hero .btn.outline .material-icons-outlined {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Homepage BNPL — 4 cards visible, readable */
.hero-bnpl-strip {
  display: grid !important;
  grid-template-columns: 1.25fr 1fr 1fr 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 14px 0 8px !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.hero-bnpl-card {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  gap: 10px !important;
  align-items: start !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 88px !important;
  padding: 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  color: #0f172a !important;
  box-shadow: none !important;
}
.hero-bnpl-card strong {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: .84rem !important;
  font-weight: 800 !important;
}
.hero-bnpl-card small {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  font-size: .75rem !important;
  line-height: 1.4 !important;
}
.hero-bnpl-number {
  width: 28px !important; height: 28px !important;
  border-radius: 8px !important;
  background: #ecfdf5 !important;
  color: #0f766e !important;
  -webkit-text-fill-color: #0f766e !important;
  font-weight: 900 !important;
  font-size: .8rem !important;
  display: grid !important;
  place-items: center !important;
}
.hero-bnpl-card.featured {
  background: #0f766e !important;
  border-color: #0f766e !important;
  color: #fff !important;
}
.hero-bnpl-card.featured strong,
.hero-bnpl-card.featured small,
.hero-bnpl-card.featured .material-icons-outlined {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.hero-bnpl-card.featured small { opacity: .9 !important; }

.hero-duitnow-card {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.hero-duitnow-copy { flex: 1 !important; min-width: 0 !important; }
.hero-duitnow-copy strong,
.hero-duitnow-copy span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

@media (max-width: 900px) {
  .hero-bnpl-strip { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .hero-bnpl-strip { grid-template-columns: 1fr !important; }
}

/* Mobile bottom labels */
.mobile-bottom-nav span:not(.material-icons-outlined),
.mobile-action-link span:not(.material-icons-outlined),
.mobile-action-link small {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: .65rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 72px !important;
}


/* ===== Mobile bottom bar + hamburger ===== */
.mobile-bottom-bar {
  display: none !important;
}
.mobile-bottom-nav {
  display: none !important;
}
.mobile-menu-toggle {
  display: none !important;
}

@media (max-width: 900px) {
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1200 !important;
    height: 64px !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #e6edf4 !important;
    box-shadow: 0 -4px 20px rgba(15,23,42,.08) !important;
    align-items: stretch !important;
    justify-content: space-around !important;
    gap: 2px !important;
  }
  .mobile-bottom-item {
    flex: 1 1 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    text-decoration: none !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    font-size: .62rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    min-width: 0 !important;
    padding: 4px 2px !important;
    border-radius: 10px !important;
  }
  .mobile-bottom-item span:not(.material-icons-outlined) {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  .mobile-bottom-item .material-icons-outlined {
    font-size: 22px !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }
  .mobile-bottom-item--main {
    color: #0f766e !important;
    -webkit-text-fill-color: #0f766e !important;
  }
  .mobile-bottom-item--main .material-icons-outlined {
    font-size: 26px !important;
    color: #0f766e !important;
  }
  .mobile-bottom-item:active,
  .mobile-bottom-item.active {
    color: #0f766e !important;
    background: #ecfdf5 !important;
  }

  /* Hamburger — clear, tappable */
  .mobile-menu-toggle {
    display: inline-flex !important;
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    z-index: 1300 !important;
    width: 48px !important;
    height: 48px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #0f766e !important;
    color: #fff !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(15,118,110,.28) !important;
    cursor: pointer !important;
  }
  .mobile-menu-icon {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: 20px !important;
  }
  .mobile-menu-icon span {
    display: block !important;
    height: 2.5px !important;
    width: 100% !important;
    background: #fff !important;
    border-radius: 2px !important;
  }
  body.customer-portal-body .portal-main {
    padding-bottom: 80px !important;
  }
}

@media (min-width: 901px) {
  .mobile-bottom-bar,
  .mobile-bottom-nav,
  .mobile-menu-toggle,
  .mobile-action-scrim {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}


/* ===== Sidebar brand compact ===== */
body.customer-portal-body .portal-sidebar .sidebar-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 12px 6px !important;
  margin: 0 !important;
  text-decoration: none !important;
  overflow: hidden !important;
}
body.customer-portal-body .portal-sidebar .sidebar-brand .brand-logo,
body.customer-portal-body .portal-sidebar .brand-logo {
  height: 40px !important;
  width: auto !important;
  max-width: 168px !important;
  object-fit: contain !important;
  display: block !important;
  background: #ffffff !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  box-sizing: content-box !important;
  margin: 0 auto !important;
}
body.customer-portal-body .portal-sidebar .nav-lang,
body.customer-portal-body .portal-sidebar .lang-switch,
body.customer-portal-body .portal-sidebar [class*="lang"] {
  margin: 8px 12px 10px !important;
}


/* === aw-global-text-fix === */
.main-content h1, .main-content h2, .main-content h3,
.page-content h1, .page-content h2, .card h1, .card h2, .card h3,
.panel h1, .panel h2 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  opacity: 1 !important;
}
.main-content p, .card p, .panel p, .muted, .sub, .help, .inline-help {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  opacity: 1 !important;
}
/* Dark heroes: keep white text */
.transaction-page-hero .muted,
.transaction-page-hero p,
.transaction-page-hero p.muted,
.la-hero-main .muted,
.la-hero-main p,
.usecases-section .muted,
.usecases-section p,
.bank-page-hero .muted,
.bank-page-hero p {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}
.eyebrow, .meta-label { color: #0f766e !important; -webkit-text-fill-color: #0f766e !important; }
.meta-value { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; }
input, select, textarea { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; }
/* Dark hero surfaces keep white text */
.la-hero-main, .la-hero-main h1, .la-hero-main h2, .la-hero-main p, .la-hero-main span, .la-hero-main .eyebrow,
.kyc-choice-card.primary, .kyc-choice-card.primary * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}


/* mobile-bottom-content-safe */
@media (max-width: 900px) {
  body.customer-portal-body .portal-main,
  body.customer-portal-body main,
  .portal-layout .portal-main,
  .customer-portal-body .page-wrap {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}




