:root {
  --vb-blue-deep: #004E8A;
  --vb-blue: #0063B2;
  --vb-blue-bright: #057CD2;
  --vb-red: #D41541;
  --vb-red-badge: #DF3457;
  --vb-bg-sky-top: #C4E6FB;
  --vb-bg-sky-mid: #EDF6FD;
  --vb-bg-sheet: #F6F7F9;
  --vb-card: #FFFFFF;
  --vb-text: #111827;
  --vb-text-secondary: #4B5563;
  --vb-text-muted: #6B7280;
  --vb-border: #DDE7F1;
  --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-main);
  color: var(--vb-text);
  background: #EAF4FD;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Stage Layout: Fixed edge-to-edge fullscreen on Mobile/PWA, centered iPhone frame on Desktop */
.prototype-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
}

.app-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: var(--vb-bg-sheet);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.app-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(0, 56, 110, 0.22) 0%, rgba(0, 56, 110, 0) 100%);
  pointer-events: none;
  z-index: 25;
}

.screen-root {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.desktop-switcher {
  display: none;
}

@media (min-width: 520px) and (hover: hover) and (pointer: fine) and (not (display-mode: standalone)) {
  body {
    background: radial-gradient(circle at 30% 20%, #E6F1FC 0%, #D9E6F4 48%, #CEDCEB 100%);
  }

  .prototype-stage {
    position: static;
    height: 100dvh;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px;
  }

  .app-shell {
    flex: 0 0 auto;
    width: 402px;
    height: min(874px, calc(100dvh - 84px));
    border-radius: 52px;
    border: 8px solid #1E293B;
    box-shadow:
      0 26px 70px rgba(0, 35, 75, 0.22),
      0 4px 16px rgba(0, 35, 75, 0.12);
  }

  .desktop-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 45, 95, 0.1);
  }

  .ds-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--vb-blue-deep);
    padding-right: 4px;
    white-space: nowrap;
  }

  .ds-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ds-btn {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    padding: 6px 11px;
    border-radius: 999px;
    background: #EFF4FA;
    transition: transform 0.12s ease;
    white-space: nowrap;
  }

  .ds-btn:hover {
    background: #DCEAF8;
    color: var(--vb-blue);
  }

  .ds-btn.is-active {
    background: linear-gradient(180deg, #005494, #006EC5);
    color: #FFFFFF;
  }
}

/* ======================================================
   SHARED BRAND, AVATAR & CRYSTAL PETALS
   ====================================================== */
.vb-brand {
  display: inline-flex;
  align-items: flex-start;
}

.vb-brand-text {
  display: flex;
  flex-direction: column;
}

.vb-brand-top {
  display: flex;
  align-items: center;
  gap: 3px;
}

.vb-brand-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #004E8A;
  letter-spacing: -0.2px;
  line-height: 1.05;
}

.vb-brand-mark {
  display: inline-flex;
  margin-top: -4px;
  filter: drop-shadow(0 1px 2px rgba(0, 78, 138, 0.15));
}

.vb-brand-sub {
  font-size: 13.5px;
  font-weight: 500;
  color: #005798;
  letter-spacing: -0.1px;
  line-height: 1.1;
  margin-top: -1px;
}

/* Profile Avatar */
.avatar-circle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, #5BB4FC 0deg, #9891F4 115deg, #F0C4E8 205deg, #8CD8FA 305deg, #5BB4FC 360deg);
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.avatar-circle--lg {
  width: 48px;
  height: 48px;
}

.avatar-silhouette {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.avatar-head {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  margin-bottom: 3px;
}

.avatar-circle--lg .avatar-head {
  width: 15px;
  height: 15px;
}

.avatar-shoulders {
  width: 30px;
  height: 13px;
  border-radius: 15px 15px 0 0;
  background: rgba(255, 255, 255, 0.94);
}

.avatar-circle--lg .avatar-shoulders {
  width: 32px;
  height: 14px;
}

.avatar-chevron-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
  display: grid;
  place-items: center;
  color: #374151;
}

/* Crystal Lotus Petals & Header Halo Atmosphere */
.header-ambient-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.header-sheen {
  position: absolute;
  top: -30%;
  left: -60%;
  width: 65%;
  height: 160%;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.36) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translate3d(-120%, 0, 0);
  will-change: transform;
  animation: glassSheenSweep 6.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 3;
}

.header-halo-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 1;
  transform-origin: 68% 48%;
  will-change: transform, opacity;
  animation: haloDrift 9s ease-in-out infinite;
}

.lotus-float-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  will-change: transform, opacity;
}

.lotus-float-wrap--portfolio {
  z-index: 0;
}

.lotus-petals--home {
  right: 0;
  top: calc(72px + env(safe-area-inset-top, 0px));
  width: 126px;
  height: auto;
  z-index: 2;
}

.lotus-petals {
  position: absolute;
  pointer-events: none;
  user-select: none;
  transform-origin: 85% 75%;
  will-change: transform;
  animation: petalsFloat 7.2s ease-in-out infinite;
}

.lotus-petals--login {
  right: 0;
  top: calc(90px + env(safe-area-inset-top, 0px));
  width: 124px;
  height: auto;
  z-index: 2;
}

.lotus-petals--portfolio {
  right: 0;
  top: calc(8px + env(safe-area-inset-top, 0px));
  width: 126px;
  height: auto;
  z-index: 0;
  opacity: 0.84;
}

/* ======================================================
   HOME SCREEN (PRE-LOGIN & LOGGED-IN)
   ====================================================== */
.home-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--vb-bg-sheet);
  overflow: hidden;
}

.home-top-veil {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(30px + env(safe-area-inset-top, 0px));
  z-index: 18;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(246, 247, 249, 0.96) 0%, rgba(246, 247, 249, 0.65) 55%, rgba(246, 247, 249, 0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.24s ease;
}

.home-top-veil.is-visible {
  opacity: 1;
}

.home-scroll-area {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-scroll-area::-webkit-scrollbar {
  display: none;
}

.home-header-band {
  position: relative;
  background:
    radial-gradient(ellipse 84% 86% at 96% 4%, #BFE3FB 0%, #DCF0FD 40%, rgba(242, 248, 255, 0) 76%),
    radial-gradient(ellipse 58% 60% at 14% 8%, #EEF4FB 0%, rgba(248, 250, 253, 0) 74%),
    linear-gradient(180deg, #F3F8FD 0%, #F7F8FA 64%, #F6F7F9 100%);
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0;
  overflow: hidden;
}

.home-topbar,
.home-profile-row,
.account-stage {
  will-change: transform, opacity;
}

.home-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.circle-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 45, 95, 0.06);
  display: grid;
  place-items: center;
  transition: transform 0.14s ease;
}

.circle-icon-btn:active {
  transform: scale(0.94);
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--vb-red-badge);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1.5px solid #FFFFFF;
}

/* Profile Row */
.home-profile-row {
  position: relative;
  z-index: 5;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.15px;
  line-height: 1.25;
}

.btn-login-pill {
  margin-top: 6px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(96deg, #004E8A 0%, #025FA3 48%, #057CD2 100%);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0, 91, 159, 0.25);
  transition: transform 0.14s ease;
}

.btn-login-pill:active {
  transform: scale(0.97);
}

.tier-pill {
  margin-top: 5px;
  height: 26px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  background: rgba(223, 242, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 6px rgba(0, 65, 130, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1E293B;
}

/* Account Card Horizontal Stacked Carousel */
.account-stage {
  position: relative;
  z-index: 4;
  margin: 16px -16px 0;
  height: 114px;
  overflow: hidden;
  padding: 0 16px;
}

.cards-track {
  position: relative;
  width: 100%;
  height: 112px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.cards-track.is-dragging {
  cursor: grabbing;
}

.cards-track.is-dragging .card-slide {
  transition: none;
}

.card-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 262px;
  height: 112px;
  will-change: transform, opacity;
  transition:
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
  transform-origin: center bottom;
}

.card-slide.is-active {
  z-index: 4;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

.card-slide.is-peeking {
  z-index: 2;
  transform: translate3d(118px, 5px, 0) scale(0.96);
  opacity: 0.98;
}

.account-card {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);
  border: 1px solid rgba(226, 236, 246, 0.92);
  border-radius: 18px;
  padding: 16px 12px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 45, 95, 0.07);
  cursor: pointer;
}

.dark-dual-card {
  width: 100%;
  height: 114px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 20, 45, 0.16);
  cursor: pointer;
}

.dark-dual-card-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pills-swap-in {
  animation: fadeUpSoft 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.account-card-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.account-num-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-num-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #1F2937;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.icon-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 6px;
  transition: background 0.14s ease;
}

.icon-inline-btn:active {
  background: rgba(0, 91, 159, 0.08);
}

.account-balance-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-balance-text {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.account-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EEF3F9;
  color: #1E293B;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.account-arrow-btn:active {
  background: #DFEAFA;
}

/* Home Body Sheet overlapping bottom of card slightly */
.home-body-sheet {
  position: relative;
  z-index: 6;
  margin-top: -12px;
  background: #F6F7F9;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 14px 16px calc(116px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 12px rgba(0, 45, 95, 0.035);
}

/* Horizontal Quick Pills */
.quick-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px 4px;
  scrollbar-width: none;
}

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

.quick-pill {
  flex-shrink: 0;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #D8E4F0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #005294;
  box-shadow: 0 2px 8px rgba(0, 45, 95, 0.03);
  transition: transform 0.13s ease, background 0.15s ease;
}

.quick-pill:active {
  transform: scale(0.97);
  background: #F0F7FE;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.section-header--tight {
  margin-top: 22px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
}

.section-action {
  font-size: 13.5px;
  font-weight: 600;
  color: #005FA8;
  display: inline-flex;
  align-items: center;
}

/* Favorite 3x3 Grid Card */
.white-panel {
  margin-top: 12px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 18px 10px 16px;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.035);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 18px;
  column-gap: 4px;
}

.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 2px 0;
  transition: transform 0.12s ease;
}

.service-tile:active {
  transform: scale(0.95);
}

.service-icon-box {
  position: relative;
  width: 42px;
  height: 36px;
  display: grid;
  place-items: center;
}

.service-label {
  margin-top: 6px;
  font-size: 12.2px;
  font-weight: 500;
  color: #1F2937;
  line-height: 1.32;
  max-width: 102px;
  word-break: break-word;
}

.tile-badge {
  position: absolute;
  top: -8px;
  right: 2px;
  z-index: 2;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.tile-badge--suggest {
  padding: 3px 8px;
  background: #FFFFFF;
  color: #6B53A8;
  border: 1px solid #A48CD8;
  right: 4px;
  top: -10px;
}

.tile-badge--hot {
  padding: 3px 8px;
  background: linear-gradient(90deg, #DC3858 0%, #EB5D79 100%);
  color: #FFFFFF;
  right: 12px;
  top: -8px;
}

.tile-badge--promo {
  padding: 3px 7px;
  background: linear-gradient(90deg, #DC3858 0%, #EB647F 100%);
  color: #FFFFFF;
  right: -2px;
  top: -8px;
}

.btn-all-services {
  margin: 18px auto 0;
  height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid #D5E2EE;
  background: #FFFFFF;
  color: #005DA8;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-all-services:active {
  background: #F2F7FD;
}

/* Dedicated For You Card */
.widget-explore-card {
  margin-top: 12px;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.035);
}

.widget-explore-art {
  flex-shrink: 0;
}

.widget-explore-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.widget-explore-desc {
  margin-top: 4px;
  font-size: 12.2px;
  color: #4B5563;
  line-height: 1.42;
}

.inline-customize-link {
  color: #005DA8;
  font-weight: 600;
}

/* Promotions Carousel */
.promo-carousel {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-right: -16px;
  padding-right: 16px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.promo-carousel::-webkit-scrollbar {
  display: none;
}

.promo-card {
  flex-shrink: 0;
  width: 214px;
  background: #FFFFFF;
  border-radius: 16px;
  padding-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  text-align: left;
}

.promo-media {
  width: 100%;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  background: #E0EEFA;
}

.promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  display: block;
}

.promo-card-title {
  padding: 10px 10px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-card-tag {
  display: inline-block;
  margin: 8px 10px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #E8F3FC;
  color: #005DA8;
  font-size: 11.5px;
  font-weight: 600;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ecosystem Pagination Dots */
.eco-dots {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.eco-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: all 0.2s ease;
}

.eco-dot.is-active {
  width: 18px;
  height: 5px;
  border-radius: 999px;
  background: #005B9F;
}

/* Floating Support Bubble */
.fab-support-wrap {
  position: absolute;
  right: 14px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 22;
  display: flex;
  align-items: flex-start;
  animation: fadeUpSoft 0.22s ease;
}

.fab-support-btn {
  filter: drop-shadow(0 6px 14px rgba(0, 60, 120, 0.22));
  transition: transform 0.14s ease;
}

.fab-support-btn:active {
  transform: scale(0.94);
}

.fab-support-close {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #4B5563;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1.5px solid #FFFFFF;
}

/* Floating Glassmorphic Bottom Dock */
.bottom-dock {
  position: absolute;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 25;
  width: 236px;
  height: 72px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 10px 30px rgba(0, 45, 95, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dock-side-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.14s ease;
}

.dock-side-btn:active {
  transform: scale(0.92);
}

.dock-qr-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 68% 24%, #188CE4 0%, #0564B0 50%, #00457D 100%);
  display: grid;
  place-items: center;
  box-shadow:
    0 6px 18px rgba(0, 82, 148, 0.32),
    inset 0 1px 1px rgba(255, 255, 255, 0.38);
  transition: transform 0.14s ease;
}

.dock-qr-btn:active {
  transform: scale(0.93);
}

/* ======================================================
   LOGIN SCREEN (IMAGE 4)
   ====================================================== */
.login-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 84% 48% at 96% 2%, #C4E7FB 0%, #DFF1FD 38%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(180deg, #F3F9FD 0%, #FFFFFF 38%, #F8F9FB 100%);
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.login-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-pill {
  height: 34px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(0, 45, 95, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
}

.login-card {
  position: relative;
  z-index: 4;
  margin-top: 72px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(232, 239, 247, 0.92);
  border-radius: 22px;
  padding: 22px 18px 24px;
  box-shadow: 0 8px 26px rgba(0, 45, 95, 0.045);
}

.login-user-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-welcome {
  font-size: 13.5px;
  color: #374151;
}

.login-username {
  margin-top: 2px;
  font-size: 16.5px;
  font-weight: 700;
  color: #111827;
}

.password-field {
  margin-top: 22px;
  height: 52px;
  border: 1.3px solid #D5DCE3;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.password-field:focus-within {
  border-color: #1F6FB2;
  box-shadow: 0 0 0 2.5px rgba(5, 124, 210, 0.12);
}

.password-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
}

.password-input::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.clear-circle-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6B7280;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.clear-circle-btn.is-hidden {
  display: none;
}

.forgot-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.link-blue {
  font-size: 13.5px;
  font-weight: 600;
  color: #005B9F;
}

.login-cta-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary-pill {
  flex: 1;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(96deg, #004E8A 0%, #025FA3 48%, #057CD2 100%);
  color: #FFFFFF;
  font-size: 15.5px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 93, 168, 0.28);
  transition: transform 0.14s ease;
}

.btn-primary-pill:active {
  transform: scale(0.98);
}

.btn-biometric-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.2px solid #D5E2EE;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.login-switch-row {
  margin-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: #374151;
}

.support-floating-pill {
  margin-top: auto;
  align-self: center;
  z-index: 5;
  height: 54px;
  padding: 5px 5px 5px 18px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 6px 24px rgba(0, 45, 95, 0.1);
  border: 1px solid #EEF3F9;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.support-pill-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.support-pill-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #1C88DE 0%, #0460AA 58%, #004278 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* ======================================================
   PORTFOLIO SCREEN: DANH MUC TAI CHINH (IMAGE 3)
   ====================================================== */
.portfolio-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 84% 52% at 96% 2%, #CBEBFC 0%, #E3F3FD 38%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(180deg, #F3F8FD 0%, #F7F9FB 44%, #F6F7F9 100%);
  overflow: hidden;
}

.portfolio-scroll {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
}

.portfolio-scroll::-webkit-scrollbar {
  display: none;
}

.portfolio-back-row {
  position: relative;
  z-index: 2;
  height: 38px;
  display: flex;
  align-items: center;
}

.icon-btn-plain {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.portfolio-heading {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  font-size: 29px;
  font-weight: 700;
  color: #111827;
  line-height: 1.18;
  letter-spacing: -0.4px;
}

.portfolio-tabs {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.portfolio-tabs::-webkit-scrollbar {
  display: none;
}

.portfolio-tab {
  flex-shrink: 0;
  padding: 6px 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  border-radius: 999px;
  border: 1.4px solid transparent;
}

.portfolio-tab.is-active {
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.72);
  border-color: #4D8CC6;
  color: #005B9F;
  font-weight: 600;
}

.portfolio-grid {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-card {
  background: #FFFFFF;
  border: 1px solid #E5EDF5;
  border-radius: 18px;
  padding: 14px;
  min-height: 228px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 3px 12px rgba(0, 45, 95, 0.03);
  text-align: left;
}

.portfolio-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.portfolio-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

.mini-badges-row {
  display: flex;
  align-items: center;
  margin: 12px 0;
}

.mini-badge-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: grid;
  place-items: center;
  margin-left: -4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.mini-badge-ring:first-child {
  margin-left: 0;
}

.portfolio-bal-label {
  font-size: 12px;
  color: #4B5563;
  line-height: 1.4;
}

.portfolio-bal-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portfolio-bal-num {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.group-card-desc {
  margin-top: 16px;
  font-size: 13px;
  color: #4B5563;
  line-height: 1.4;
}

.group-card-art {
  margin-top: auto;
  align-self: center;
}

.biz-promo-banner {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  background: #FFFFFF;
  border: 1px solid #E5EDF5;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.biz-promo-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

.biz-promo-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #C9DAEA;
  font-size: 12.5px;
  font-weight: 600;
  color: #005B9F;
  background: #FFFFFF;
}

/* Bottom Sheet for Payment Account (Image 3 Foreground) */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeInSoft 0.18s ease;
}

.bottom-sheet {
  background: #FFFFFF;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 20px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.14);
  animation: slideUpSheet 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #111827;
}

.sheet-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sheet-hero-balance {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
  color: #004E8A;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.account-detail-row {
  margin-top: 18px;
  padding: 2px 0 2px 14px;
  border-left: 3.5px solid #2684D5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  width: 100%;
}

.account-detail-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-detail-bal {
  font-size: 15.5px;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.default-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: #EAF4FD;
  color: #005DA8;
  font-size: 11.5px;
  font-weight: 600;
}

.account-detail-num {
  margin-top: 6px;
  font-size: 14px;
  color: #4B5563;
  font-variant-numeric: tabular-nums;
}

.account-detail-holder {
  margin-top: 2px;
  font-size: 13.5px;
  color: #4B5563;
}

.sheet-divider {
  margin: 18px 0 14px;
  height: 1px;
  background: #E5E7EB;
}

.sheet-footer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sheet-action-btn {
  min-height: 46px;
  padding: 8px 9px;
  border-radius: 14px;
  border: 1px solid #D5DEE8;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-align: left;
  font-size: 11.4px;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
}

.sheet-action-btn:active {
  background: #F4F8FC;
}

/* ======================================================
   CHAT SCREEN: CHAT VOI VIETINBANK (IMAGE 8)
   ====================================================== */
.chat-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.chat-header {
  height: calc(54px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0;
  background: linear-gradient(180deg, #EDF4FB 0%, #F5F8FC 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #FFFFFF;
}

.chat-msg-bot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-bot-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chat-online-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #FFFFFF;
}

.chat-bubble-bot {
  background: #DBDFE3;
  color: #111827;
  font-size: 14px;
  line-height: 1.48;
  padding: 12px 14px;
  border-radius: 4px 18px 18px 18px;
  max-width: 84%;
}

.chat-timestamp {
  margin-top: 8px;
  font-size: 11.5px;
  color: #6B7280;
}

.chat-msg-user {
  align-self: flex-end;
  max-width: 80%;
  background: linear-gradient(180deg, #005DA8 0%, #006EC5 100%);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
}

.chat-quick-replies {
  padding: 0 14px 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #EFF5FC;
  border: 1px solid #C8DDF2;
  color: #005B9F;
  font-size: 12px;
  font-weight: 600;
}

.chat-composer {
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.chat-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chat-input-pill {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 10px rgba(0, 45, 95, 0.05);
  padding: 4px 4px 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-text-input {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #111827;
  outline: none;
}

.chat-text-input::placeholder {
  color: #9CA3AF;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00508E 0%, #057CD2 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ======================================================
   SECONDARY INTERACTIVE MODALS & TOAST
   ====================================================== */
.overlay-root {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.overlay-root.is-open {
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  max-height: 76%;
  overflow-y: auto;
  animation: slideUpSheet 0.2s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #111827;
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #475569;
  font-size: 16px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.tx-item {
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tx-item:last-child {
  border-bottom: none;
}

.tx-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
}

.tx-date {
  margin-top: 2px;
  font-size: 11.5px;
  color: #6B7280;
}

.tx-amt {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tx-amt--neg {
  color: #CE133E;
}

.tx-amt--pos {
  color: #059669;
}

.qr-preview-box {
  margin: 8px auto 14px;
  width: 220px;
  padding: 16px;
  border-radius: 18px;
  border: 1.5px solid #DBEAFE;
  background: #F8FBFF;
  text-align: center;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  z-index: 60;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ======================================================
   LANGUAGE SHEET, BIOMETRIC DIALOG & HOMELIFE POPUP
   ====================================================== */
.lang-sheet {
  background: #FFFFFF;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  animation: slideUpSheet 0.2s ease;
}

.lang-option-row {
  width: 100%;
  padding: 14px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #EEF2F6;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
}

.lang-option-row:last-child {
  border-bottom: none;
}

.lang-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.center-dialog-backdrop {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: rgba(15, 23, 42, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInSoft 0.16s ease;
}

.info-dialog {
  width: 100%;
  max-width: 344px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px 20px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 30, 65, 0.22);
  animation: fadeUpSoft 0.18s ease;
}

.info-orb {
  margin: 0 auto 14px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, #3B9AF0 0%, #83C7FA 48%, #E1F2FE 76%, rgba(225, 242, 254, 0) 100%);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #003D6B;
}

.info-dialog-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.info-dialog-desc {
  margin-top: 10px;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.48;
}

.info-dialog-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-outline-pill {
  height: 46px;
  border-radius: 999px;
  border: 1.2px solid #D3E0EC;
  background: #FFFFFF;
  color: #005B9F;
  font-size: 15px;
  font-weight: 600;
}

.homelife-modal {
  position: relative;
  width: 100%;
  max-width: 346px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 25, 60, 0.3);
  animation: fadeUpSoft 0.2s ease;
}

.homelife-modal img {
  width: 100%;
  display: block;
  transform: scale(1.02);
}

.homelife-close-hit {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
}

.homelife-cta-hit {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 14px;
  height: 42px;
  border-radius: 999px;
  background: transparent;
}

/* ======================================================
   ACCOUNT DETAIL SCREEN: TAI KHOAN THANH TOAN
   ====================================================== */
.acc-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 84% 32% at 92% 0%, #D9EFFD 0%, #EAF4FE 45%, rgba(248, 250, 253, 0) 78%),
    linear-gradient(180deg, #F0F6FE 0%, #F7F9FC 24%, #F6F7F9 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.acc-topbar {
  height: calc(52px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 12;
}

.acc-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.acc-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.acc-scroll::-webkit-scrollbar {
  display: none;
}

.acc-blue-banner {
  margin: 4px 14px 0;
  border-radius: 16px 16px 0 0;
  background:
    radial-gradient(circle at 54% 112%, #0C83DB 0%, rgba(12, 131, 219, 0) 64%),
    linear-gradient(135deg, #004E8A 0%, #015D9D 55%, #0471BE 100%);
  padding: 14px 16px 26px;
  color: #FFFFFF;
  cursor: pointer;
}

.acc-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.acc-banner-num-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.acc-banner-holder {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.94;
}

.acc-sticky-summary {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-top: -14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-bottom: 1px solid #E5ECF3;
  padding: 14px 16px 0;
  box-shadow: 0 2px 12px rgba(0, 45, 95, 0.04);
  transition: box-shadow 0.22s ease, border-radius 0.22s ease;
}

.acc-sticky-summary.is-pinned {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: 0 6px 18px rgba(0, 45, 95, 0.08);
}

.acc-blue-banner {
  will-change: transform, opacity;
}

.acc-bal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.acc-bal-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #1F2937;
}

.acc-hero-bal {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  color: #004E8A;
  font-variant-numeric: tabular-nums;
}

.acc-sub-bal {
  margin-top: 4px;
  font-size: 12.5px;
  color: #6B7280;
  font-variant-numeric: tabular-nums;
}

.acc-tabs {
  position: relative;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.acc-tab-btn {
  padding: 10px 4px 11px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  position: relative;
  text-align: center;
  transition: color 0.2s ease;
}

.acc-tab-btn.is-active {
  color: #004E8A;
  font-weight: 700;
}

.acc-tab-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 33.3333%;
  height: 2.5px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.acc-tab-indicator::after {
  content: '';
  width: calc(100% - 20px);
  height: 100%;
  border-radius: 2px;
  background: #CE133E;
}

.acc-tab-body {
  padding: 16px 14px 12px;
}

.acc-group-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin: 14px 2px 10px;
}

.acc-group-title:first-child {
  margin-top: 2px;
}

.acc-list-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #EAEFF5;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.acc-list-row {
  width: 100%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #F1F5F9;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.acc-list-row:last-child {
  border-bottom: none;
}

.acc-list-row:active {
  background: #F8FAFC;
}

.acc-list-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.acc-list-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6B7280;
}

.pill-hot-inline {
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #DC3858 0%, #EB647F 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
}

.acc-close-text {
  color: #CE133E;
  font-weight: 600;
}

/* Account History Tab */
.history-filters {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-pill {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #D8E2EC;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill.is-active {
  border-color: #2A7AB8;
  color: #005B9F;
  font-weight: 600;
  background: #F4F9FE;
}

.export-info-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #F4F9FE;
  border: 1px solid #DCEAF8;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #1F2937;
  line-height: 1.45;
}

.export-info-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0066B8;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.empty-history-state {
  margin-top: 32px;
  text-align: center;
  padding: 0 16px;
}

.empty-history-title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.empty-history-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #6B7280;
}

/* Account Info Tab */
.default-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: #111827;
}

.blue-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #005B9F;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.blue-checkbox.is-unchecked {
  background: #FFFFFF;
  border: 1.6px solid #94A3B8;
  color: transparent;
}

.info-kv-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #EAEFF5;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.info-kv-row {
  padding: 11px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.info-kv-label {
  font-size: 13.5px;
  color: #6B7280;
  flex-shrink: 0;
}

.info-kv-val {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-align: right;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-active-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: #E8F7EE;
  color: #15803D;
  font-size: 12.5px;
  font-weight: 600;
}

.select-acc-row {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
}

.screen-enter-fade {
  animation: screenFadeIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.screen-enter-slide {
  animation: screenSlideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-reveal-pop {
  animation: textPopReveal 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-content-fade {
  animation: fadeUpSoft 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeInSoft {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpSheet {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeUpSoft {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes screenFadeIn {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes screenSlideIn {
  from { opacity: 0.65; transform: translate3d(24px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes textPopReveal {
  from { opacity: 0.25; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes haloDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.92;
  }
  50% {
    transform: translate3d(-4px, 3px, 0) scale(1.028);
    opacity: 1;
  }
}

@keyframes petalsFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(-2px, -4px, 0) rotate(-0.8deg) scale(1.015);
  }
}

@keyframes glassSheenSweep {
  0%, 62% {
    transform: translate3d(-120%, 0, 0);
    opacity: 0;
  }
  72% {
    opacity: 0.85;
  }
  92% {
    transform: translate3d(280%, 0, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(280%, 0, 0);
    opacity: 0;
  }
}

.ds-btn--edit {
  background: #FFF1F3;
  color: #CE133E;
  border: 1px solid #FECDD3;
}

.ds-btn--edit:hover {
  background: #FFE4E8;
  color: #B91C1C;
}

/* ======================================================
   BALANCE & TRANSACTION EDITOR MODAL
   ====================================================== */
.editor-section {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.editor-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.editor-section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #004E8A;
}

.editor-field {
  margin-bottom: 8px;
}

.editor-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.editor-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 13.5px;
  color: #111827;
  outline: none;
}

.editor-input:focus {
  border-color: #005B9F;
  box-shadow: 0 0 0 2px rgba(0, 91, 159, 0.12);
}

.editor-row-2 {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px;
}

.editor-select {
  width: 100%;
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  font-family: inherit;
}

.editor-tx-row {
  padding: 10px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.editor-tx-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mini-pill-btn {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: #EFF6FF;
  color: #005B9F;
}

.mini-pill-btn--del {
  background: #FFF1F2;
  color: #CE133E;
}

.acc-tx-card {
  margin-top: 6px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #EAEFF5;
  padding: 2px 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.tx-date-group-title {
  margin: 14px 2px 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4B5563;
}

.acc-tx-row {
  width: 100%;
  padding: 13px 0;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.acc-tx-row:last-child {
  border-bottom: none;
}

.acc-tx-row:active {
  opacity: 0.72;
}

.acc-tx-left {
  min-width: 0;
  flex: 1;
}

.acc-tx-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-tx-time {
  margin-top: 4px;
  font-size: 12px;
  color: #6B7280;
  font-variant-numeric: tabular-nums;
}

.acc-tx-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.acc-tx-amt-col {
  text-align: right;
}

.acc-tx-amt {
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.acc-tx-amt--pos {
  color: #15803D;
}

.acc-tx-amt--neg {
  color: #CE133E;
}

.acc-tx-bal {
  margin-top: 4px;
  font-size: 12px;
  color: #6B7280;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ======================================================
   TRANSACTION DETAIL & HISTORY FILTER SHEETS
   ====================================================== */
.txd-kv-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 4px 0 18px;
}

.txd-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.txd-label {
  font-size: 13.5px;
  color: #6B7280;
  flex-shrink: 0;
  padding-top: 1px;
}

.txd-val {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  text-align: right;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-line;
}

.txd-val--pos {
  color: #15803D;
  font-weight: 600;
}

.txd-val--neg {
  color: #CE133E;
  font-weight: 600;
}

.txd-cat-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.txd-cat-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #111827;
  font-size: 13px;
  font-weight: 500;
}

.txd-actions-bar {
  margin-top: 4px;
  background: #FFFFFF;
  border: 1px solid #EAEFF5;
  border-radius: 16px;
  padding: 14px 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.txd-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #005B9F;
}

.txd-action-btn:active {
  opacity: 0.72;
}

.hf-search-pill {
  height: 44px;
  border-radius: 999px;
  border: 1px solid #D5DFE9;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
}

.hf-search-input {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: #111827;
  outline: none;
}

.hf-search-input::placeholder {
  color: #9CA3AF;
}

.hf-section-label {
  margin: 16px 0 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #6B7280;
}

.hf-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hf-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #D5DFE9;
  background: #FFFFFF;
  color: #111827;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hf-chip.is-active {
  border-color: #2A7AB8;
  color: #005B9F;
  font-weight: 600;
  background: #F4F9FE;
}

.hf-date-box {
  height: 54px;
  border-radius: 14px;
  border: 1px solid #D5DFE9;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FFFFFF;
}

.hf-date-sub {
  font-size: 11.5px;
  color: #6B7280;
}

.hf-date-input {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  outline: none;
  margin-top: 2px;
}

.hf-amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hf-amt-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #D5DFE9;
  padding: 0 14px;
  font-size: 13.5px;
  color: #111827;
  outline: none;
  background: #FFFFFF;
}

.hf-amt-input:focus {
  border-color: #1F6FB2;
}

.hf-footer-btns {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-soft-gray {
  height: 46px;
  border-radius: 999px;
  background: #E8EEF5;
  color: #475569;
  font-size: 14.5px;
  font-weight: 600;
}

/* ======================================================
   DATA LOCK CARD & TRANSFER SCREENS
   ====================================================== */
.lock-card {
  padding: 18px 14px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid #DCE6F2;
  text-align: center;
}

.lock-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #FFF1F3;
  color: #CE133E;
  border: 1px solid #FECDD3;
}

.tr-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 84% 32% at 92% 0%, #D9EFFD 0%, #EAF4FE 45%, rgba(248, 250, 253, 0) 78%),
    linear-gradient(180deg, #F0F6FE 0%, #F7F9FC 24%, #F6F7F9 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tr-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 14px calc(24px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
}

.tr-scroll::-webkit-scrollbar {
  display: none;
}

.tr-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #EAEFF5;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.tr-row {
  width: 100%;
  padding: 15px 14px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  color: #111827;
}

.tr-row:last-child {
  border-bottom: none;
}

.tr-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-badge {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #C084FC;
  background: linear-gradient(90deg, #EFF6FF 0%, #FDF2F8 100%);
  font-size: 11.5px;
  font-weight: 700;
  color: #005B9F;
}

.tr-tabs {
  position: relative;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #E5ECF3;
}

.tr-tab-btn {
  flex: 0 0 auto;
  padding: 10px 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4B5563;
  text-align: center;
  position: relative;
  white-space: nowrap;
}

.tr-tabs:has(> .tr-tab-btn:nth-child(2):last-child) {
  gap: 0;
}

.tr-tabs:has(> .tr-tab-btn:nth-child(2):last-child) .tr-tab-btn {
  flex: 1;
}

.tr-tab-btn.is-active {
  color: #004E8A;
  font-weight: 700;
}

.tr-tab-btn.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px;
  background: #CE133E;
}

.tr-search-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tr-circle-book {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #DCE5EF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tr-contact-card {
  margin-top: 14px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #EAEFF5;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.tr-bank-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.tr-bank-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #374151;
}

.tr-bank-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F4F7FA;
  border: 1px solid #E5ECF3;
  display: grid;
  place-items: center;
}

.tr-bank-item.is-selected .tr-bank-circle {
  border-color: #0063B2;
  background: #E8F3FC;
}

/* Locked Settings & Continuous Loading Spinner */
.circle-icon-btn:disabled,
.icon-inline-btn:disabled {
  cursor: not-allowed;
}

.circle-icon-btn:disabled:active,
.icon-inline-btn:disabled:active {
  transform: none;
  background: transparent;
}

.circle-icon-btn:disabled:active {
  background: #FFFFFF;
}

.loading-backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: fadeInSoft 0.14s ease;
}

.vb-spinner-wrap {
  display: grid;
  place-items: center;
  pointer-events: auto;
  cursor: default;
}

.vb-spinner-svg {
  display: block;
  overflow: visible;
}

.vb-spinner-ring {
  transform-box: view-box;
  transform-origin: 45px 45px;
  will-change: transform;
  animation: spinLoader 1.05s linear infinite;
}

@keyframes spinLoader {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-sheen,
  .header-halo-svg,
  .home-credit-petals-img,
  .lotus-petals {
    animation: none !important;
  }
}
