:root {
  --bg: #050918;
  --paper: #0f1525;
  --paper-soft: #111b31;
  --ink: #f4f7ff;
  --muted: #9aa9bf;
  --line: rgba(117, 149, 203, 0.22);
  --blue: #5d8dff;
  --blue-deep: #1e5bff;
  --teal: #11c9bb;
  --mint: #22c987;
  --rose: #f54f86;
  --amber: #f7b733;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
  font-family: system-ui, sans-serif;
}

:root[data-theme="light"] {
  --bg: #eef7ff;
  --paper: #ffffff;
  --paper-soft: #f7fbff;
  --ink: #10264a;
  --muted: #6f7d95;
  --line: #dfebf7;
  --blue: #0877f2;
  --blue-deep: #064eb7;
  --shadow: 0 16px 44px rgba(18, 72, 125, 0.15);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 96% 18%, rgba(0, 190, 255, 0.28), transparent 15rem),
    radial-gradient(circle at 40% 100%, rgba(133, 55, 255, 0.22), transparent 22rem),
    linear-gradient(180deg, #071026 0%, #050713 48%, #030612 100%);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-loading {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.loader {
  color: var(--blue-deep);
  display: grid;
  gap: 14px;
  justify-items: center;
  font-weight: 700;
}

.loader span {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(8, 119, 242, 0.15);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.page-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.mini-app {
  width: min(430px, 100%);
  min-height: min(860px, calc(100vh - 36px));
  max-height: 920px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  border: 1px solid rgba(8, 119, 242, 0.15);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.topbar {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  padding: calc(12px + env(safe-area-inset-top)) 16px 14px;
}

.status-row,
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-row {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.92;
  margin-bottom: 12px;
}

.status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}

.brand-mark,
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #9fe6ff, #5167ff);
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.9;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}

.icon-btn svg,
.nav-item svg,
.action-icon svg,
.metric-icon svg,
.row-icon svg,
.input-icon svg,
.history-shortcut svg,
.withdraw-inline svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

.content {
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: none;
}

.content::-webkit-scrollbar {
  display: none;
}

.screen {
  animation: rise 0.14s ease both;
}

.balance-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 78, 183, 0.95), rgba(121, 75, 255, 0.9)),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.34), transparent 7rem);
  box-shadow: 0 18px 30px rgba(30, 91, 206, 0.24);
}

.balance-card::after {
  content: "";
  position: absolute;
  width: 128px;
  height: 128px;
  right: -18px;
  top: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(80, 216, 255, 0.7), rgba(138, 84, 255, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 28px;
  transform: rotate(-14deg);
}

.balance-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.9;
}

.balance-value {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 800;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.pill-action,
.primary-btn,
.ghost-btn,
.copy-btn {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 800;
}

.pill-action {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #0089e8);
}

.pill-action.rose {
  background: linear-gradient(135deg, #bc57ff, #eb4cbb);
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wallet-line,
.metric-card,
.stat-card,
.va-form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(19, 82, 142, 0.07);
}

.wallet-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.96)),
    radial-gradient(circle at 12% 0%, rgba(17, 201, 187, 0.18), transparent 9rem);
}

.wallet-line span,
.metric-card span,
.metric-card small,
.form-heading p {
  color: var(--muted);
}

.wallet-line span,
.metric-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.wallet-line strong {
  display: block;
  margin-top: 5px;
  font-size: 23px;
  line-height: 1.15;
}

.withdraw-inline {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #f54f86, #ff8a4d);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.metric-card {
  min-height: 118px;
  padding: 13px;
}

.metric-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--teal));
}

.metric-card strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.2;
}

.metric-card small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
}

.va-form-panel {
  margin-top: 12px;
  padding: 14px;
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.form-heading h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.form-heading p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.history-shortcut {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--blue);
  background: #eef7ff;
  border: 1px solid rgba(8, 119, 242, 0.15);
}

.va-form-panel.compact .bank-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
}

.va-form-panel.compact .bank-tile {
  min-height: 70px;
}

.va-form-panel.compact .bank-logo {
  width: 30px;
  height: 30px;
  font-size: 10px;
}

.va-form-panel.compact .bank-name {
  font-size: 10px;
}

.grid-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.menu-card,
.va-card,
.transaction-row,
.setting-row,
.detail-panel,
.bank-tile,
.success-card,
.date-picker,
.chart-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(19, 82, 142, 0.07);
}

.menu-card {
  min-height: 112px;
  padding: 15px;
  text-align: left;
}

.action-icon,
.row-icon,
.tx-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), #34cdf8);
}

.menu-card h3,
.section-title,
.view-title {
  margin: 12px 0 4px;
  font-size: 17px;
  line-height: 1.25;
}

.menu-card p,
.view-subtitle,
.muted,
.setting-row span,
.detail-row span {
  color: var(--muted);
}

.menu-card p {
  margin: 0;
  font-size: 12px;
}

.promo {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 15px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, #075edb, #00a8ff),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.36), transparent 8rem);
}

.promo strong {
  display: block;
  font-size: 14px;
}

.promo span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.9;
}

.promo-badge {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
}

.nav-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 2px;
  color: #8aa0bb;
  background: transparent;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}

.nav-item.active {
  color: var(--blue);
  background: #eef7ff;
}

.view-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.view-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.view-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
}

.search-wrap,
.field-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8aa0bb;
  display: grid;
}

.search-input,
.text-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  padding: 0 14px 0 44px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.text-input {
  padding-left: 14px;
}

.search-input:focus,
.text-input:focus {
  border-color: rgba(8, 119, 242, 0.52);
  box-shadow: 0 0 0 4px rgba(8, 119, 242, 0.1);
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 18px;
}

.bank-tile {
  min-height: 86px;
  padding: 10px 6px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  background: #fff;
  position: relative;
}

.bank-tile.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(8, 119, 242, 0.16);
}

.bank-tile.selected::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
}

.bank-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.bank-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tone-emerald,
.tone-green,
.tone-lime {
  background: linear-gradient(145deg, #13a970, #8ed440);
}

.tone-blue,
.tone-sky,
.tone-cyan {
  background: linear-gradient(145deg, #0877f2, #3fd0ef);
}

.tone-red,
.tone-rose {
  background: linear-gradient(145deg, #f04466, #ff8a59);
}

.tone-indigo {
  background: linear-gradient(145deg, #284dce, #7669ff);
}

.tone-orange,
.tone-amber,
.tone-yellow {
  background: linear-gradient(145deg, #ff9f1c, #ffd166);
}

.bank-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 2px;
  padding: 4px;
  border: 1px solid rgba(95, 123, 171, 0.32);
  border-radius: 8px;
  background: rgba(5, 11, 27, 0.58);
}

.mode-switch button {
  min-height: 40px;
  border-radius: 7px;
  color: #9ba9c0;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.mode-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, #2e69ff, #18c7a1);
  box-shadow: 0 8px 18px rgba(24, 199, 161, 0.18);
}

.field-label {
  display: block;
  margin: 12px 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.primary-btn {
  width: 100%;
  margin-top: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0099ff);
  box-shadow: 0 12px 22px rgba(8, 119, 242, 0.24);
}

.ghost-btn {
  width: 100%;
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid var(--line);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #6f7d95;
  background: #f2f7fc;
  font-size: 12px;
  font-weight: 800;
}

.chip.active {
  color: #fff;
  background: var(--blue);
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.va-card,
.transaction-row {
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.va-main strong,
.tx-main strong {
  display: block;
  font-size: 14px;
}

.va-main span,
.tx-main span,
.tx-time,
.va-time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status-active,
.status-success {
  color: #0f9366;
  background: #e7fbf3;
}

.status-locked {
  color: #b77900;
  background: #fff7dd;
}

.tx-icon.deposit {
  background: linear-gradient(145deg, #1bcf8a, #0aa9aa);
}

.tx-icon.withdraw {
  background: linear-gradient(145deg, #ff4d7d, #ff7d62);
}

.tx-icon.create_va {
  background: linear-gradient(145deg, #5971ff, #10badc);
}

.amount {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.amount.positive {
  color: #0ea56b;
}

.amount.negative {
  color: #ef3d68;
}

.amount.zero {
  color: #8aa0bb;
}

.detail-panel {
  padding: 16px;
}

.detail-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.detail-hero .tx-icon {
  width: 52px;
  height: 52px;
}

.detail-amount {
  font-size: 25px;
  font-weight: 800;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf4fb;
  font-size: 13px;
}

.detail-row strong {
  text-align: right;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  padding: 14px;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.trend {
  display: inline-flex;
  gap: 3px;
  margin-top: 8px;
  color: #0ea56b;
  font-size: 12px;
  font-weight: 800;
}

.chart-card {
  margin-top: 16px;
  padding: 16px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.legend {
  display: inline-flex;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.legend span:last-child::before {
  background: var(--rose);
}

.bar-chart {
  height: 190px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: end;
  padding-top: 8px;
  border-bottom: 1px solid var(--line);
}

.bar-group {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 8px;
}

.bars {
  height: 100%;
  width: 24px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
}

.bar {
  width: 9px;
  border-radius: 8px 8px 0 0;
  background: var(--teal);
  min-height: 12px;
}

.bar.expense {
  background: var(--rose);
}

.bar-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.line-chart {
  width: 100%;
  height: 190px;
}

.date-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  margin-bottom: 14px;
  font-weight: 800;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #ffffff, #f0f8ff);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-card .avatar {
  width: 62px;
  height: 62px;
  font-size: 20px;
  background: linear-gradient(145deg, var(--blue), var(--teal));
}

.verified {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #0f9366;
  background: #e7fbf3;
  font-size: 11px;
  font-weight: 800;
}

.setting-list {
  display: grid;
  gap: 10px;
}

.setting-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  text-align: left;
}

.setting-row strong {
  display: block;
  font-size: 14px;
}

.setting-row span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 34, 65, 0.78);
  backdrop-filter: blur(3px);
  animation: fade 0.16s ease both;
}

.success-card {
  width: 100%;
  padding: 20px;
  text-align: center;
  animation: pop 0.2s ease both;
}

.success-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #15c283, #21d6ad);
  box-shadow: 0 14px 30px rgba(21, 194, 131, 0.28);
}

.success-icon svg {
  width: 46px;
  height: 46px;
  stroke-width: 3;
}

.success-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.success-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.success-info {
  text-align: left;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.success-info .detail-row:last-child {
  border-bottom: 0;
}

.copy-btn {
  width: 100%;
  margin-bottom: 10px;
  color: #fff;
  background: var(--blue);
}

.empty {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

/* Radius-style shell */
.page-wrap {
  align-items: start;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(5, 14, 33, 0.94) 0 86px, transparent 86px),
    radial-gradient(circle at 100% 30%, rgba(71, 203, 255, 0.25), transparent 12rem);
}

.mini-app {
  width: min(580px, 100%);
  min-height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #061026 0%, #070617 46%, #040812 100%);
  box-shadow: none;
}

.mini-app.expanded {
  width: min(760px, 100%);
}

.topbar {
  background: transparent;
  color: #fff;
  padding: 0;
}

.app-title-row {
  height: 0;
  display: none;
}

.app-title-row strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 750;
}

.window-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #8d99a8;
}

.plain-icon,
.tool-icon {
  display: grid;
  place-items: center;
  color: inherit;
  background: transparent;
}

.plain-icon {
  width: 28px;
  height: 28px;
}

.plain-icon svg {
  width: 26px;
  height: 26px;
}

.brand-row {
  align-items: center;
  padding: 24px 18px 19px;
}

.script-logo {
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 1.2px 1.2px 0 rgba(251, 90, 54, 0.72);
}

.toolbar-pill {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(87, 134, 213, 0.45);
  border-radius: 18px;
  background: rgba(4, 11, 29, 0.74);
  color: #a9b7ce;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.toolbar-pill > span {
  width: 1px;
  height: 23px;
  background: rgba(151, 166, 190, 0.2);
}

.tool-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  transition: color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.tool-icon svg {
  width: 18px;
  height: 18px;
}

.tool-icon:active {
  transform: scale(0.9);
}

.tool-icon.is-on {
  color: #8fd8ff;
  background: rgba(93, 141, 255, 0.12);
}

.tool-icon.is-off {
  color: #66748b;
  background: rgba(255, 255, 255, 0.04);
}

.expand-theme {
  position: relative;
  width: 32px;
  height: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(139, 172, 235, 0.28);
  border-radius: 999px;
  color: #ffe89a;
  background:
    radial-gradient(circle at 30% 34%, rgba(255, 232, 154, 0.28), transparent 0.55rem),
    linear-gradient(135deg, rgba(18, 28, 56, 0.94), rgba(5, 10, 24, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 7px 16px rgba(0, 0, 0, 0.16);
  transition:
    width 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.24s ease,
    background 0.24s ease,
    transform 0.14s ease;
}

.expand-theme:active {
  transform: scale(0.92);
}

.expand-theme__halo {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: 14px;
  border-radius: 999px;
  background: rgba(255, 232, 154, 0.22);
  transition:
    width 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.24s ease;
}

.expand-theme__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.expand-theme__icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.expand-theme__dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.68;
  transform: scale(0);
  transition:
    opacity 0.2s ease,
    transform 0.24s cubic-bezier(0.18, 0.9, 0.22, 1.2);
}

.expand-theme .dot-a {
  top: 4px;
  left: 7px;
}

.expand-theme .dot-b {
  top: 4px;
  right: 7px;
}

.expand-theme .dot-c {
  bottom: 4px;
  left: 7px;
}

.expand-theme .dot-d {
  right: 7px;
  bottom: 4px;
}

.expand-theme.toggled {
  width: 34px;
  color: #d8e7ff;
  background:
    radial-gradient(circle at 70% 36%, rgba(216, 231, 255, 0.22), transparent 0.6rem),
    linear-gradient(135deg, rgba(83, 118, 255, 0.32), rgba(9, 17, 38, 0.95));
}

.expand-theme.toggled .expand-theme__halo {
  width: 18px;
  transform: translateX(8px);
  background: rgba(216, 231, 255, 0.2);
}

.expand-theme.toggled .expand-theme__icon {
  transform: translateX(5px) rotate(16deg);
}

.expand-theme.toggled .expand-theme__dot {
  opacity: 0.86;
  transform: scale(1);
}

.lang-btn {
  width: auto;
  min-width: 25px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.content {
  padding: 0 18px 96px;
  background: transparent;
}

.bottom-nav {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 48px;
  z-index: 10;
  border: 1px solid rgba(97, 129, 186, 0.28);
  border-radius: 14px 14px 0 0;
  background: rgba(5, 12, 28, 0.96);
  box-shadow: 0 -18px 32px rgba(0, 0, 0, 0.28);
}

.nav-item {
  color: #92a0b6;
}

.nav-item.active {
  color: #8bbdff;
  background: transparent;
}

.nav-item.active::before {
  content: "";
  width: 48px;
  height: 6px;
  border-radius: 999px;
  background: #516dff;
}

.wallet-line,
.metric-card,
.stat-card,
.va-form-panel,
.va-card,
.transaction-row,
.setting-row,
.detail-panel,
.bank-tile,
.success-card,
.date-picker,
.chart-card {
  color: var(--ink);
  background: rgba(14, 19, 33, 0.86);
  border-color: rgba(90, 116, 163, 0.28);
  box-shadow: none;
}

.wallet-line {
  min-height: 118px;
  align-items: end;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(15, 30, 63, 0.92), rgba(11, 16, 39, 0.94)),
    radial-gradient(circle at 95% 0%, rgba(52, 141, 255, 0.22), transparent 10rem);
  border-color: rgba(58, 111, 199, 0.55);
}

.wallet-line span {
  color: #9dc6ff;
  font-size: 13px;
  text-transform: uppercase;
}

.wallet-line span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  background: #5e9cff;
  box-shadow: 0 0 16px rgba(94, 156, 255, 0.8);
}

.wallet-line strong {
  margin-top: 22px;
  color: #bfffe0;
  font-size: 30px;
}

.withdraw-inline {
  min-width: 118px;
  min-height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #13c98d, #0ba79a);
  font-size: 15px;
}

.home-stats-grid {
  gap: 12px;
}

.metric-card {
  min-height: 82px;
  padding: 14px;
}

.metric-icon {
  display: none;
}

.metric-card span {
  color: #a7b2c4;
  font-size: 12px;
  text-transform: uppercase;
}

.metric-card strong {
  color: #ffb21c;
  font-size: 18px;
}

.metric-card:nth-child(3) strong,
.metric-card:nth-child(5) strong {
  color: #18d7a4;
}

.metric-card small {
  color: #9ca9bd;
}

.va-form-panel {
  margin-top: 30px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(20, 33, 67, 0.96), rgba(9, 13, 34, 0.98));
  border-color: rgba(52, 111, 214, 0.48);
}

.form-heading h2,
.view-title {
  color: #f5f8ff;
}

.form-heading p,
.view-subtitle,
.field-label,
.muted,
.setting-row span,
.detail-row span {
  color: #9ba9c0;
}

.history-shortcut {
  color: #9ac5ff;
  background: rgba(24, 45, 88, 0.72);
  border-color: rgba(82, 138, 234, 0.4);
}

.search-input,
.text-input {
  color: #f5f8ff;
  background: rgba(5, 11, 27, 0.72);
  border-color: rgba(95, 123, 171, 0.32);
}

.search-input::placeholder,
.text-input::placeholder {
  color: #6f7f98;
}

.bank-tile {
  background: rgba(8, 17, 39, 0.82);
}

.bank-tile-logo {
  grid-template-columns: auto 1fr;
  justify-items: start;
  align-content: center;
  min-height: 64px;
  padding: 12px;
  text-align: left;
}

.bank-tile-logo .bank-logo {
  width: 54px;
  height: 38px;
  padding: 5px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
}

.bank-logo-msb {
  padding: 4px;
}

.bank-logo-bidv {
  background: #087869;
}

.bank-tile.selected {
  border-color: #6d9dff;
  box-shadow: 0 0 0 2px rgba(109, 157, 255, 0.16);
}

.primary-btn {
  background: linear-gradient(135deg, #2e69ff, #674dff);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 20% 0%, rgba(42, 160, 255, 0.2), transparent 32rem),
    linear-gradient(135deg, #f5fbff 0%, #e7f5ff 48%, #f7fdff 100%);
}

:root[data-theme="light"] .mini-app {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.screen:has(.va-form-panel.compact) {
  padding-top: 4px;
}

.screen:has(.va-form-panel.compact) .home-stats-grid {
  display: none;
}

.va-form-panel.compact {
  margin: 0;
  padding: 22px 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 118%, rgba(255, 255, 255, 0.72), transparent 9rem),
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.62), transparent 13rem),
    linear-gradient(145deg, #eeeeef 0%, #d6d6d8 54%, #c7c7ca 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -24px 55px rgba(137, 126, 134, 0.16),
    0 26px 70px rgba(0, 0, 0, 0.28);
}

.va-form-panel.compact .form-heading {
  margin-bottom: 16px;
}

.va-form-panel.compact .form-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ff5c8e;
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: 0.2px;
  text-transform: none;
}

.title-spark {
  color: #ff728f;
  font-size: 22px;
  line-height: 1;
}

.keep-number-btn {
  width: auto;
  min-width: 128px;
  height: 54px;
  padding: 0 17px;
  display: inline-flex;
  gap: 10px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #26394f 0%, #46515b 42%, #d7b849 100%);
  border: 1px solid rgba(255, 239, 156, 0.5);
  box-shadow: 0 10px 18px rgba(49, 44, 24, 0.2);
  font-size: 18px;
  font-weight: 950;
}

.keep-number-btn svg {
  width: 19px;
  height: 19px;
  color: #ff4f86;
}

.va-form-panel.compact .bank-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.va-form-panel.compact .bank-tile {
  min-height: 68px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  color: #7d1642;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 20px rgba(30, 42, 60, 0.06);
}

.va-form-panel.compact .bank-tile.selected {
  color: #fff;
  background: linear-gradient(135deg, #235bd9 0%, #0c817b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 18px rgba(9, 96, 145, 0.18);
}

.va-form-panel.compact .bank-tile.selected::after {
  display: none;
}

.va-form-panel.compact .bank-tile-logo {
  grid-template-columns: auto 1fr;
  gap: 12px;
  justify-items: start;
  text-align: left;
}

.va-form-panel.compact .bank-tile-logo .bank-logo {
  width: 34px;
  height: 34px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 14px rgba(29, 55, 88, 0.12);
}

.va-form-panel.compact .bank-name {
  color: currentColor;
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: -0.4px;
}

.va-form-panel.compact .mode-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
  padding: 7px;
  border: 0;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.va-form-panel.compact .mode-switch.single-only {
  grid-template-columns: 1fr;
}

.va-form-panel.compact .mode-switch button {
  min-height: 54px;
  border-radius: 12px;
  color: #68758d;
  background: transparent;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: 0.2px;
}

.va-form-panel.compact .mode-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, #245ed9 0%, #0c817b 100%);
  box-shadow: 0 8px 16px rgba(11, 111, 146, 0.18);
}

.va-form-panel.compact .field-label {
  margin: 0 0 12px;
  color: #84103b;
  font-size: 17px;
  font-weight: 1000;
  letter-spacing: 0.4px;
}

.va-form-panel.compact .text-input {
  height: 66px;
  border: 2px solid #8edcff;
  border-radius: 16px;
  color: #64728a;
  background: linear-gradient(180deg, #ffffff, #f7f7f7);
  padding: 0 21px;
  font-size: 21px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.va-form-panel.compact .text-input::placeholder {
  color: #64728a;
  opacity: 1;
}

.va-form-panel.compact .text-input:focus {
  border-color: #65d5ff;
  box-shadow: 0 0 0 4px rgba(87, 210, 255, 0.18);
}

.va-form-panel.compact .primary-btn {
  width: min(230px, 62%);
  height: 58px;
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff7542 0%, #c447c9 37%, #256dff 63%, #0ab673 100%);
  box-shadow:
    0 12px 20px rgba(40, 78, 179, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font-size: 21px;
  font-weight: 1000;
  letter-spacing: 0.4px;
}

@media (max-width: 380px) {
  .va-form-panel.compact {
    padding: 18px;
    border-radius: 24px;
  }

  .va-form-panel.compact .form-heading h2 {
    font-size: 23px;
  }

  .keep-number-btn {
    min-width: 112px;
    height: 48px;
    font-size: 16px;
  }

  .va-form-panel.compact .bank-name {
    font-size: 18px;
  }
}

/* Admin operations layer */
.admin-screen .view-head {
  grid-template-columns: auto 1fr auto;
}

.admin-settings-btn {
  margin-left: auto;
  border: 1px solid rgba(125, 243, 214, 0.28);
  background: rgba(125, 243, 214, 0.1);
  color: #7df3d6;
}

.admin-operational-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(125, 243, 214, 0.17);
  border-radius: 999px;
  background: rgba(125, 243, 214, 0.055);
  color: var(--v2-muted);
  font-size: 10px;
}

.admin-operational-strip strong {
  color: #7df3d6;
  font-size: 11px;
}

.admin-operational-strip span:last-child {
  margin-left: auto;
}

.admin-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7df3d6;
  box-shadow: 0 0 0 4px rgba(125, 243, 214, 0.1), 0 0 14px rgba(125, 243, 214, 0.72);
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-quick-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(119, 156, 229, 0.14);
  border-radius: 14px;
  background: rgba(2, 9, 18, 0.26);
  color: var(--v2-text);
  text-align: left;
}

.admin-quick-card:hover,
.admin-quick-card:focus-visible {
  border-color: rgba(125, 243, 214, 0.4);
  background: rgba(125, 243, 214, 0.08);
}

.admin-quick-card strong,
.admin-quick-card small {
  display: block;
}

.admin-quick-card strong {
  font-size: 11px;
}

.admin-quick-card small {
  margin-top: 3px;
  color: var(--v2-muted);
  font-size: 9px;
  line-height: 1.25;
}

.text-action {
  padding: 0;
  background: transparent;
  color: #7df3d6;
  font-size: 10px;
  font-weight: 800;
}

.text-action:hover {
  color: #b8ffec;
}

.admin-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.admin-search-box {
  position: relative;
  display: block;
  flex: 1;
}

.admin-search-box > svg,
.admin-search-box > i {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--v2-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-search-box .search-input {
  width: 100%;
  min-height: 42px;
  padding-left: 38px;
  border-radius: 14px;
}

.admin-filter-chips {
  margin-bottom: 10px;
}

.admin-result-count {
  margin-bottom: 9px;
  color: var(--v2-muted);
  font-size: 10px;
}

.admin-amount-stack {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.admin-amount-stack .status-badge {
  white-space: nowrap;
}

.admin-inline-meta {
  display: block;
  max-width: 180px;
  overflow: hidden;
  color: var(--v2-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-card-main .status-badge {
  align-self: start;
}

.admin-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice-row.is-unread {
  border-color: rgba(125, 243, 214, 0.28);
  background:
    linear-gradient(90deg, rgba(125, 243, 214, 0.08), transparent 70%),
    var(--v2-card);
}

.notice-row.is-read {
  opacity: 0.7;
}

.mini-icon-btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 50%;
}

.mini-icon-btn > svg,
.mini-icon-btn > i {
  width: 14px;
  height: 14px;
}

.audit-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(119, 156, 229, 0.1);
}

.audit-row:last-child {
  border-bottom: 0;
}

.audit-row strong,
.audit-row small {
  display: block;
}

.audit-row strong {
  color: var(--v2-text);
  font-size: 11px;
}

.audit-row small {
  margin-top: 3px;
  color: var(--v2-muted);
  font-size: 9px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-modal {
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
}

.admin-check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(119, 156, 229, 0.15);
  border-radius: 14px;
  background: rgba(2, 9, 18, 0.22);
  cursor: pointer;
}

.admin-check-row input {
  width: 17px;
  height: 17px;
  accent-color: #7df3d6;
}

.admin-check-row span {
  min-width: 0;
}

.admin-check-row strong,
.admin-check-row small {
  display: block;
}

.admin-check-row strong {
  color: var(--v2-text);
  font-size: 11px;
}

.admin-check-row small {
  margin-top: 3px;
  color: var(--v2-muted);
  font-size: 9px;
}

.admin-settings-list {
  margin: 8px 0 4px;
}

.admin-textarea {
  min-height: 94px;
  resize: vertical;
}

.status-banned,
.status-disabled {
  color: #ff8dab;
  background: rgba(245, 79, 134, 0.13);
}

.status-unmatched {
  color: #ffcb70;
  background: rgba(247, 183, 51, 0.14);
}

@media (max-width: 380px) {
  .admin-quick-grid {
    gap: 6px;
  }

  .admin-quick-card {
    padding: 8px;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="light"] .app-title-row {
  background: #0d5ed8;
}

/* Restore the 20260916-7 create panel layout. */
.screen:has(.va-form-panel.compact) .home-stats-grid {
  display: grid;
}

.va-form-panel.compact {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 17, 39, 0.82);
  box-shadow: 0 10px 24px rgba(19, 82, 142, 0.07);
}

.va-form-panel.compact .form-heading {
  margin-bottom: 12px;
}

.va-form-panel.compact .form-heading h2 {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.va-form-panel.compact .form-heading p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.va-form-panel.compact .history-shortcut {
  width: 42px;
  height: 42px;
  min-width: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #eef7ff;
  border: 1px solid rgba(8, 119, 242, 0.15);
  box-shadow: none;
}

.va-form-panel.compact .history-shortcut svg {
  width: 19px;
  height: 19px;
  color: currentColor;
}

.va-form-panel.compact .mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 2px;
  padding: 4px;
  border: 1px solid rgba(95, 123, 171, 0.32);
  border-radius: 8px;
  background: rgba(5, 11, 27, 0.58);
  box-shadow: none;
}

.va-form-panel.compact .mode-switch.single-only {
  grid-template-columns: 1fr;
}

.va-form-panel.compact .mode-switch button {
  min-height: 40px;
  border-radius: 7px;
  color: #9ba9c0;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.va-form-panel.compact .mode-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, #2e69ff, #18c7a1);
  box-shadow: 0 8px 18px rgba(24, 199, 161, 0.18);
}

.va-form-panel.compact .field-label {
  display: block;
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.va-form-panel.compact .bank-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.va-form-panel.compact .bank-tile {
  min-height: 48px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(8, 17, 39, 0.82);
  box-shadow: 0 10px 24px rgba(19, 82, 142, 0.07);
}

.va-form-panel.compact .bank-tile.selected {
  border-color: #6d9dff;
  box-shadow: 0 0 0 2px rgba(109, 157, 255, 0.16);
}

.va-form-panel.compact .bank-tile.selected::after {
  display: none;
}

.va-form-panel.compact .bank-tile-logo {
  grid-template-columns: auto 1fr;
  gap: 8px;
  justify-content: center;
  justify-items: center;
  align-items: center;
  align-content: center;
  text-align: center;
}

.va-form-panel.compact .bank-tile-logo .bank-logo {
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 10px rgba(5, 11, 27, 0.16);
}

.va-form-panel.compact .bank-tile-logo .bank-logo-bidv {
  background: #087869;
}

.va-form-panel.compact .bank-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.va-form-panel.compact .text-input {
  height: 48px;
  border: 1px solid rgba(95, 123, 171, 0.32);
  border-radius: 8px;
  color: #f5f8ff;
  background: rgba(5, 11, 27, 0.72);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.va-form-panel.compact .text-input::placeholder {
  color: #6f7f98;
}

.va-form-panel.compact .text-input:focus {
  border-color: rgba(8, 119, 242, 0.52);
  box-shadow: 0 0 0 4px rgba(8, 119, 242, 0.1);
}

.va-form-panel.compact .primary-btn {
  width: 100%;
  height: 50px;
  margin: 14px 0 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2e69ff, #674dff);
  box-shadow: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

/* V2 interface skin */
:root {
  --v2-bg-a: #050916;
  --v2-bg-b: #0a1430;
  --v2-card: rgba(12, 20, 42, 0.78);
  --v2-card-strong: rgba(16, 28, 58, 0.92);
  --v2-line: rgba(130, 165, 235, 0.2);
  --v2-glow-blue: rgba(52, 119, 255, 0.34);
  --v2-glow-mint: rgba(15, 211, 173, 0.26);
  --v2-text: #f6f9ff;
  --v2-muted: #95a7c5;
}

body {
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 85, 145, 0.22), transparent 16rem),
    radial-gradient(circle at 92% 12%, rgba(34, 201, 255, 0.28), transparent 18rem),
    radial-gradient(circle at 50% 105%, rgba(24, 199, 161, 0.18), transparent 18rem),
    linear-gradient(155deg, var(--v2-bg-a) 0%, var(--v2-bg-b) 48%, #040712 100%);
}

.mini-app {
  background:
    linear-gradient(180deg, rgba(13, 24, 52, 0.96) 0%, rgba(5, 9, 24, 0.98) 100%);
  border: 1px solid rgba(129, 169, 255, 0.22);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.topbar {
  padding: calc(12px + env(safe-area-inset-top)) 16px 10px;
  background:
    linear-gradient(180deg, rgba(9, 17, 38, 0.94), rgba(8, 14, 31, 0.74));
  border-bottom: 1px solid rgba(119, 156, 229, 0.12);
}

.brand-row {
  padding: 18px 2px 12px;
}

.notice-ticker {
  position: relative;
  overflow: hidden;
  height: 30px;
  display: flex;
  align-items: center;
  margin: 0 2px 8px;
  border: 1px solid rgba(125, 243, 214, 0.18);
  border-radius: 999px;
  color: #d9ffe9;
  background:
    linear-gradient(90deg, rgba(19, 202, 168, 0.14), rgba(78, 120, 255, 0.12)),
    rgba(3, 9, 25, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.notice-ticker span {
  flex: 0 0 auto;
  min-width: 100%;
  padding-left: 100%;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  animation: tickerMove 12s linear infinite;
}

.script-logo {
  color: #fff;
  text-shadow:
    0 2px 0 rgba(245, 86, 132, 0.8),
    0 0 24px rgba(95, 157, 255, 0.28);
}

.script-logo::after {
  content: none;
}

.toolbar-pill {
  min-height: 44px;
  border-radius: 18px;
  background: rgba(11, 19, 42, 0.78);
  border: 1px solid rgba(139, 172, 235, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 35px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.tool-icon {
  color: #d8e3ff;
}

.tool-icon.is-on,
.tool-icon:hover {
  color: #7df3d6;
}

.content {
  padding: 18px 16px 100px;
}

.home-stats-grid {
  gap: 10px;
}

.wallet-line,
.metric-card,
.va-form-panel,
.va-card,
.transaction-row,
.detail-panel,
.date-picker,
.chart-card,
.profile-card,
.setting-row,
.success-card {
  border: 1px solid var(--v2-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--v2-card);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.wallet-line {
  min-height: 118px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 24%, rgba(28, 226, 178, 0.32), transparent 7rem),
    linear-gradient(135deg, rgba(31, 87, 219, 0.5), rgba(8, 17, 39, 0.94));
}

.wallet-line::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -52px;
  bottom: -56px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(107, 151, 255, 0.34), rgba(20, 224, 172, 0.18));
  transform: rotate(18deg);
}

.wallet-line span,
.metric-card span,
.metric-card small {
  color: var(--v2-muted);
}

.wallet-line strong {
  color: #d9ffe9;
  text-shadow: 0 0 22px rgba(50, 234, 164, 0.2);
}

.withdraw-inline {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  color: #06241d;
  background: linear-gradient(135deg, #8bffdf, #16caa4);
  box-shadow: 0 14px 28px rgba(18, 201, 162, 0.2);
}

.metric-card {
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 8%, rgba(92, 141, 255, 0.18), transparent 5rem),
    var(--v2-card);
}

.metric-card strong {
  color: #7df3d6;
}

.va-form-panel.compact,
.va-form-panel {
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 0%, rgba(93, 141, 255, 0.2), transparent 9rem),
    radial-gradient(circle at 92% 0%, rgba(245, 79, 134, 0.13), transparent 8rem),
    var(--v2-card-strong);
}

.va-form-panel.compact .form-heading h2,
.form-heading h2,
.view-title {
  color: var(--v2-text);
  letter-spacing: -0.02em;
}

.va-form-panel.compact .form-heading p,
.form-heading p,
.view-subtitle,
.muted {
  color: var(--v2-muted);
}

.va-form-panel.compact .history-shortcut {
  color: #70e9ff;
  background: rgba(112, 178, 255, 0.12);
  border-color: rgba(112, 178, 255, 0.24);
  border-radius: 14px;
}

.va-form-panel.compact .field-label {
  color: #dce7ff;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.va-form-panel.compact .bank-grid {
  gap: 9px;
}

.va-form-panel.compact .bank-tile {
  min-height: 46px;
  border-radius: 15px;
  border-color: rgba(119, 156, 229, 0.2);
  background: rgba(255, 255, 255, 0.055);
}

.va-form-panel.compact .bank-tile.selected {
  color: #fff;
  background: linear-gradient(135deg, #245ed9 0%, #0d867e 100%);
  border-color: rgba(156, 210, 255, 0.46);
  box-shadow:
    0 14px 26px rgba(18, 107, 199, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.va-form-panel.compact .bank-tile-logo .bank-logo {
  background: #fff;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.va-form-panel.compact .bank-tile-logo .bank-logo-bidv {
  background: #087869;
}

.va-form-panel.compact .bank-name {
  color: currentColor;
}

.va-form-panel.compact .mode-switch {
  border-radius: 14px;
  background: rgba(1, 6, 18, 0.48);
  border-color: rgba(119, 156, 229, 0.18);
}

.va-form-panel.compact .mode-switch button {
  border-radius: 11px;
  color: #8ea0c0;
}

.va-form-panel.compact .mode-switch button.active {
  background: linear-gradient(135deg, #4e78ff, #13caa8);
  box-shadow: 0 12px 24px rgba(19, 202, 168, 0.18);
}

.text-input,
.va-form-panel.compact .text-input {
  height: 50px;
  border-radius: 14px;
  color: #f8fbff;
  background: rgba(2, 8, 24, 0.62);
  border-color: rgba(119, 156, 229, 0.24);
}

.text-input:focus,
.va-form-panel.compact .text-input:focus {
  border-color: rgba(125, 243, 214, 0.56);
  box-shadow: 0 0 0 4px rgba(19, 202, 168, 0.12);
}

.primary-btn,
.va-form-panel.compact .primary-btn {
  height: 52px;
  border-radius: 16px;
  color: #061528;
  background: linear-gradient(135deg, #a3ffdf 0%, #4e78ff 56%, #f5689a 100%);
  box-shadow: 0 16px 32px rgba(78, 120, 255, 0.24);
}

.bottom-nav {
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: auto;
  border: 1px solid rgba(119, 156, 229, 0.18);
  border-radius: 24px;
  background: rgba(8, 15, 34, 0.82);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.nav-item {
  min-height: 58px;
  color: #7f91b2;
  border-radius: 18px;
}

.nav-item.active {
  color: #f8fbff;
  background: linear-gradient(135deg, rgba(78, 120, 255, 0.84), rgba(18, 185, 159, 0.78));
  box-shadow: 0 12px 26px rgba(18, 185, 159, 0.16);
}

.history-tools {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.compact-chips .chip {
  min-height: 31px;
  padding: 0 11px;
  font-size: 11px;
}

.date-input {
  width: 100%;
  color-scheme: dark;
}

.history-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.history-summary-grid .stat-card {
  min-height: 92px;
  border: 1px solid rgba(119, 156, 229, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 12%, rgba(125, 243, 214, 0.12), transparent 5rem),
    rgba(255, 255, 255, 0.045);
}

.history-summary-grid .stat-card strong {
  color: #7df3d6;
  font-size: 17px;
}

.help-modal {
  display: grid;
  max-height: calc(100vh - 72px);
}

.help-content {
  overflow-y: auto;
  max-height: min(620px, calc(100vh - 190px));
  padding: 4px 4px 2px;
  color: #d8e3ff;
  text-align: left;
  scrollbar-width: thin;
}

.help-content h3 {
  margin: 18px 0 8px;
  color: #7df3d6;
  font-size: 15px;
}

.help-content h4 {
  margin: 14px 0 8px;
  color: #f8fbff;
  font-size: 13px;
}

.help-content p,
.help-content li {
  color: #b6c4df;
  font-size: 12px;
  line-height: 1.6;
}

.help-content ul,
.help-content ol {
  padding-left: 20px;
  margin: 8px 0 12px;
}

.help-content figure {
  margin: 12px 0;
  padding: 8px;
  border: 1px solid rgba(119, 156, 229, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.help-content img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.help-content figcaption {
  margin-top: 8px;
  color: var(--v2-muted);
  font-size: 11px;
  text-align: center;
}

.rules-backdrop {
  z-index: 25;
  align-items: end;
  padding: 18px;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.26), rgba(4, 8, 18, 0.82));
}

.rules-card {
  width: min(420px, 100%);
  border-color: rgba(255, 202, 100, 0.3);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 202, 100, 0.15), transparent 9rem),
    rgba(9, 17, 38, 0.94);
}

.rules-list {
  display: grid;
  gap: 10px;
  margin: 2px 0 16px;
  padding-left: 20px;
  color: #f4dfb1;
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
}

.modal-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
}

.modal-actions .ghost-btn,
.modal-actions .primary-btn {
  margin-top: 0;
}

.nav-item.active::before {
  display: none;
}

.transaction-row,
.va-card,
.setting-row {
  border-radius: 16px;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 104, 151, 0.2), transparent 16rem),
    radial-gradient(circle at 92% 10%, rgba(42, 166, 255, 0.2), transparent 18rem),
    linear-gradient(155deg, #eef7ff 0%, #f8fbff 52%, #edf8f5 100%);
}

:root[data-theme="light"] .mini-app {
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(232, 242, 250, 0.98));
}

:root[data-theme="light"] .wallet-line,
:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .va-form-panel,
:root[data-theme="light"] .va-card,
:root[data-theme="light"] .transaction-row,
:root[data-theme="light"] .detail-panel,
:root[data-theme="light"] .setting-row {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(79, 117, 176, 0.14);
}

:root[data-theme="light"] .va-form-panel.compact .form-heading h2,
:root[data-theme="light"] .form-heading h2,
:root[data-theme="light"] .view-title,
:root[data-theme="light"] .va-form-panel.compact .field-label {
  color: #10264a;
}

.action-modal {
  position: relative;
  width: min(390px, calc(100vw - 28px));
  text-align: left;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #d8e3ff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-title-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 4px 40px 18px 0;
}

.modal-title-row h2 {
  margin: 0;
}

.modal-title-row p {
  margin: 4px 0 0;
  color: var(--v2-muted);
  font-size: 13px;
  line-height: 1.4;
}

.bank-select-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.bank-select-line img,
.linked-account-row img {
  width: 34px;
  height: 34px;
  padding: 5px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.select-input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9db4d8 50%),
    linear-gradient(135deg, #9db4d8 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.linked-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.linked-account-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(119, 156, 229, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.linked-account-row strong,
.linked-account-row small {
  display: block;
}

.linked-account-row small {
  margin-top: 2px;
  color: var(--v2-muted);
  font-size: 12px;
}

.compact-empty {
  padding: 12px;
  border-radius: 14px;
}

.status-pending {
  color: #ffca64;
  background: rgba(255, 202, 100, 0.12);
}

.status-completed,
.status-success {
  color: #7df3d6;
  background: rgba(125, 243, 214, 0.12);
}

.status-rejected,
.status-cancelled,
.status-unmatched {
  color: #ff8dab;
  background: rgba(245, 79, 134, 0.13);
}

button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.admin-screen {
  display: grid;
  gap: 14px;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-metric-grid .stat-card {
  min-height: 94px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(125, 243, 214, 0.1), transparent 5rem),
    var(--v2-card);
}

.admin-metric-grid .stat-card strong {
  color: #7df3d6;
}

.admin-tabs {
  padding: 1px 0 3px;
}

.admin-stack,
.admin-list,
.compact-list {
  display: grid;
  gap: 10px;
}

.admin-section-card,
.admin-card,
.notice-row {
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--v2-card);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.admin-section-card,
.admin-card {
  padding: 13px;
}

.section-title-row,
.admin-card-main,
.notice-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.section-title-row {
  margin-bottom: 10px;
}

.section-title-row strong {
  color: var(--v2-text);
  font-size: 14px;
}

.section-title-row span,
.admin-card small,
.notice-row small {
  color: var(--v2-muted);
  font-size: 11px;
}

.admin-card-main {
  grid-template-columns: auto 1fr auto;
}

.admin-card-main strong,
.notice-row strong {
  display: block;
  color: var(--v2-text);
  font-size: 13px;
}

.admin-card-main small,
.notice-row small {
  display: block;
  margin-top: 3px;
  line-height: 1.35;
}

.mini-avatar {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.admin-card-meta {
  margin-top: 10px;
  padding: 4px 0;
  border-top: 1px solid rgba(119, 156, 229, 0.12);
  border-bottom: 1px solid rgba(119, 156, 229, 0.12);
}

.admin-card-meta .detail-row {
  padding: 8px 0;
  border-bottom-color: rgba(119, 156, 229, 0.1);
}

.admin-card-meta .detail-row:last-child {
  border-bottom: 0;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.mini-btn {
  min-height: 40px;
  height: 40px;
  margin-top: 0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
}

.admin-row {
  border-radius: 16px;
}

.notice-row {
  grid-template-columns: auto 1fr;
  padding: 12px;
}

.admin-entry {
  border-color: rgba(125, 243, 214, 0.24);
  background:
    radial-gradient(circle at 92% 18%, rgba(125, 243, 214, 0.13), transparent 6rem),
    var(--v2-card);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tickerMove {
  to {
    transform: translateX(-200%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

@keyframes clothFlip {
  0% {
    transform: perspective(1000px) rotateY(0deg) skewY(0deg);
    filter: brightness(1);
  }

  38% {
    transform: perspective(1000px) rotateY(-4deg) skewY(1.2deg);
    filter: brightness(1.1) saturate(1.08);
  }

  68% {
    transform: perspective(1000px) rotateY(2deg) skewY(-0.8deg);
    filter: brightness(1.04) saturate(1.03);
  }

  100% {
    transform: perspective(1000px) rotateY(0deg) skewY(0deg);
    filter: brightness(1);
  }
}

:root.theme-flip .mini-app {
  transform-origin: left center;
  animation: clothFlip 0.56s cubic-bezier(0.2, 0.7, 0.22, 1) both;
}

:root.theme-flip .mini-app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 8%, rgba(255, 255, 255, 0.12) 42%, transparent 72%);
  transform: translateX(-120%);
  animation: clothSheen 0.56s cubic-bezier(0.2, 0.7, 0.22, 1) both;
}

@keyframes clothSheen {
  to {
    transform: translateX(120%);
  }
}

/* BANK CENTER visual system */
:root {
  --bc-bg: #020912;
  --bc-bg-soft: #071a2b;
  --bc-card: rgba(6, 24, 43, 0.78);
  --bc-card-strong: rgba(8, 31, 53, 0.92);
  --bc-line: rgba(90, 233, 255, 0.22);
  --bc-line-strong: rgba(90, 233, 255, 0.48);
  --bc-cyan: #63f5ff;
  --bc-blue: #3a9dff;
  --bc-mint: #62f2c8;
  --bc-text: #effcff;
  --bc-muted: #92b1c2;
}

body {
  background:
    linear-gradient(rgba(6, 28, 46, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 28, 46, 0.46) 1px, transparent 1px),
    linear-gradient(150deg, #020812 0%, #041525 48%, #02070f 100%);
  background-size: 46px 46px, 46px 46px, auto;
}

.mini-app {
  width: min(640px, 100%);
  background:
    linear-gradient(180deg, rgba(4, 19, 34, 0.98), rgba(2, 9, 18, 0.99)),
    var(--bc-bg);
  border: 1px solid rgba(99, 245, 255, 0.18);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(150, 248, 255, 0.08);
}

.topbar {
  background:
    linear-gradient(180deg, rgba(2, 12, 23, 0.96), rgba(4, 17, 30, 0.82)),
    linear-gradient(90deg, rgba(99, 245, 255, 0.08), transparent 42%, rgba(58, 157, 255, 0.1));
  border-bottom: 1px solid rgba(99, 245, 255, 0.12);
}

.brand-row {
  padding: 16px 2px 13px;
}

.bank-center-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bank-center-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--bc-cyan);
  border: 1px solid rgba(99, 245, 255, 0.46);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(99, 245, 255, 0.18), rgba(58, 157, 255, 0.08)),
    rgba(3, 18, 31, 0.82);
  box-shadow:
    0 0 24px rgba(99, 245, 255, 0.12),
    inset 0 0 16px rgba(99, 245, 255, 0.08);
}

.bank-center-brand__mark svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.bank-center-brand__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.bank-center-brand__copy strong {
  overflow: hidden;
  color: var(--bc-text);
  font-family: system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-center-brand__copy small {
  color: var(--bc-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
}

.toolbar-pill {
  min-height: 42px;
  gap: 8px;
  padding: 0 11px;
  border-color: rgba(99, 245, 255, 0.2);
  background: rgba(2, 13, 26, 0.78);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(150, 248, 255, 0.06);
}

.toolbar-pill > span {
  height: 20px;
  background: rgba(99, 245, 255, 0.16);
}

.tool-icon {
  color: #91bbcb;
}

.tool-icon.is-on,
.tool-icon:hover {
  color: var(--bc-cyan);
  background: rgba(99, 245, 255, 0.1);
}

.notice-ticker {
  margin-bottom: 5px;
  border-color: rgba(98, 242, 200, 0.22);
  background:
    linear-gradient(90deg, rgba(98, 242, 200, 0.11), rgba(58, 157, 255, 0.1)),
    rgba(2, 13, 26, 0.72);
}

.notice-ticker span {
  color: #d9fff7;
}

.content {
  padding: 18px 16px 104px;
}

.home-screen {
  display: grid;
  gap: 14px;
}

.bank-center-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 190px;
  border: 1px solid var(--bc-line-strong);
  border-radius: 24px;
  background: #031321;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.36),
    0 0 36px rgba(72, 222, 255, 0.1),
    inset 0 1px 0 rgba(222, 255, 255, 0.16);
  isolation: isolate;
}

.bank-center-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.01);
}

.bank-center-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(1, 10, 19, 0.24), transparent 42%, rgba(1, 8, 16, 0.72)),
    linear-gradient(90deg, rgba(1, 9, 17, 0.38), transparent 52%, rgba(1, 9, 17, 0.18));
  pointer-events: none;
}

.bank-center-hero__topline {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d8ffff;
  font-family: system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.bank-center-hero__topline {
  top: 14px;
  left: 16px;
  right: 16px;
  justify-content: space-between;
  font-size: 9px;
}

.bank-center-hero__topline span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid rgba(99, 245, 255, 0.26);
  border-radius: 999px;
  background: rgba(1, 12, 22, 0.56);
  backdrop-filter: blur(12px);
}

.bank-center-hero__topline svg {
  width: 12px;
  height: 12px;
  color: var(--bc-cyan);
}

.bank-center-hero__topline .hero-status {
  color: var(--bc-mint);
}

.bank-center-hero__wallet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 10px 8px 13px;
  border: 1px solid rgba(151, 255, 246, 0.34);
  border-radius: 17px;
  background:
    linear-gradient(100deg, rgba(4, 21, 37, 0.88), rgba(7, 54, 70, 0.76)),
    rgba(2, 15, 28, 0.82);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(72, 222, 255, 0.12),
    inset 0 1px 0 rgba(220, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(1.15);
}

.bank-center-hero__wallet-copy {
  min-width: 0;
}

.bank-center-hero__wallet-copy span,
.bank-center-hero__wallet-copy strong {
  display: block;
}

.bank-center-hero__wallet-copy span {
  color: #a7dce4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.bank-center-hero__wallet-copy strong {
  margin-top: 3px;
  overflow: hidden;
  color: #f4ffff;
  font-family: system-ui, sans-serif;
  font-size: clamp(18px, 4.8vw, 25px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(99, 245, 255, 0.32);
}

.hero-withdraw {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(99, 245, 255, 0.42);
  border-radius: 12px;
  font-size: 11px;
}

.hero-withdraw svg {
  width: 15px;
  height: 15px;
}

.bank-center-hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bc-cyan), transparent);
  box-shadow: 0 0 14px var(--bc-cyan);
  animation: bankScan 4.2s ease-in-out infinite;
}

.home-launchpad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.launchpad-action {
  min-width: 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  color: var(--bc-text);
  border: 1px solid var(--bc-line);
  border-radius: 16px;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(99, 245, 255, 0.08), rgba(58, 157, 255, 0.02)),
    var(--bc-card);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(218, 255, 255, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.launchpad-action:hover,
.launchpad-action:focus-visible {
  border-color: var(--bc-line-strong);
  background:
    linear-gradient(145deg, rgba(99, 245, 255, 0.16), rgba(58, 157, 255, 0.06)),
    var(--bc-card-strong);
  transform: translateY(-2px);
}

.launchpad-action:active {
  transform: translateY(1px);
}

.launchpad-action--primary {
  border-color: rgba(98, 242, 200, 0.45);
  background:
    linear-gradient(145deg, rgba(98, 242, 200, 0.18), rgba(58, 157, 255, 0.08)),
    var(--bc-card-strong);
}

.launchpad-action__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #031821;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--bc-cyan), var(--bc-mint));
  box-shadow: 0 0 18px rgba(99, 245, 255, 0.2);
}

.launchpad-action__icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

.launchpad-action strong,
.launchpad-action small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launchpad-action strong {
  color: var(--bc-text);
  font-size: 12px;
  font-weight: 800;
}

.launchpad-action small {
  margin-top: 4px;
  color: var(--bc-muted);
  font-size: 9px;
  font-weight: 700;
}

.home-stats-grid {
  gap: 10px;
}

.wallet-line,
.metric-card,
.stat-card,
.va-form-panel,
.va-card,
.transaction-row,
.setting-row,
.detail-panel,
.bank-tile,
.success-card,
.date-picker,
.chart-card {
  border-color: var(--bc-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    var(--bc-card);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(218, 255, 255, 0.045);
}

.wallet-line {
  min-height: 118px;
  border-color: rgba(98, 242, 200, 0.34);
  background:
    linear-gradient(135deg, rgba(12, 53, 69, 0.92), rgba(5, 22, 42, 0.96)),
    var(--bc-card);
}

.wallet-line span,
.metric-card span,
.metric-card small {
  color: var(--bc-muted);
}

.wallet-line strong,
.metric-card strong,
.stat-card strong {
  color: var(--bc-cyan);
  text-shadow: 0 0 22px rgba(99, 245, 255, 0.16);
}

.wallet-line strong {
  font-family: system-ui, sans-serif;
}

.withdraw-inline {
  color: #021c20;
  background: linear-gradient(135deg, var(--bc-cyan), var(--bc-mint));
  box-shadow: 0 14px 28px rgba(34, 220, 209, 0.16);
}

.metric-card {
  min-height: 92px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 8%, rgba(58, 157, 255, 0.14), transparent 5rem),
    var(--bc-card);
}

.metric-card:nth-child(3) strong,
.metric-card:nth-child(5) strong {
  color: var(--bc-mint);
}

.va-form-panel.compact,
.va-form-panel {
  margin-top: 0;
  border-color: rgba(99, 245, 255, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(10, 46, 67, 0.9), rgba(5, 19, 37, 0.97)),
    var(--bc-card-strong);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(218, 255, 255, 0.07);
}

.va-form-panel.compact .form-heading h2,
.form-heading h2,
.view-title {
  color: var(--bc-text);
}

.va-form-panel.compact .form-heading p,
.form-heading p,
.view-subtitle,
.muted,
.field-label {
  color: var(--bc-muted);
}

.va-form-panel.compact .history-shortcut {
  color: var(--bc-cyan);
  border-color: rgba(99, 245, 255, 0.26);
  background: rgba(99, 245, 255, 0.08);
}

.va-form-panel.compact .bank-tile {
  border-color: rgba(99, 245, 255, 0.18);
  background: rgba(2, 17, 31, 0.64);
}

.va-form-panel.compact .bank-tile.selected {
  border-color: rgba(99, 245, 255, 0.68);
  background: linear-gradient(135deg, #1468c9, #0b8f86);
  box-shadow:
    0 14px 26px rgba(16, 146, 190, 0.18),
    inset 0 1px 0 rgba(235, 255, 255, 0.18);
}

.mode-switch {
  border-color: rgba(99, 245, 255, 0.18);
  background: rgba(1, 10, 21, 0.56);
}

.mode-switch button {
  color: #87aabd;
}

.mode-switch button.active {
  color: #021822;
  background: linear-gradient(135deg, var(--bc-cyan), var(--bc-mint));
  box-shadow: 0 10px 22px rgba(26, 210, 201, 0.18);
}

.text-input,
.va-form-panel.compact .text-input {
  color: var(--bc-text);
  border-color: rgba(99, 245, 255, 0.2);
  background: rgba(1, 12, 24, 0.7);
}

.text-input:focus,
.va-form-panel.compact .text-input:focus {
  border-color: var(--bc-cyan);
  box-shadow: 0 0 0 4px rgba(99, 245, 255, 0.1), 0 0 20px rgba(99, 245, 255, 0.08);
}

.primary-btn,
.va-form-panel.compact .primary-btn {
  color: #021821;
  background: linear-gradient(135deg, var(--bc-cyan), var(--bc-blue) 58%, var(--bc-mint));
  box-shadow: 0 16px 30px rgba(45, 157, 255, 0.2);
}

.ghost-btn {
  color: var(--bc-cyan);
  border-color: rgba(99, 245, 255, 0.22);
  background: rgba(99, 245, 255, 0.05);
}

.bottom-nav {
  border-color: rgba(99, 245, 255, 0.2);
  background: rgba(2, 13, 25, 0.88);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(218, 255, 255, 0.06);
}

.nav-item {
  color: #7899ac;
}

.nav-item.active {
  color: #021a22;
  background: linear-gradient(135deg, var(--bc-cyan), var(--bc-mint));
  box-shadow: 0 12px 26px rgba(18, 206, 196, 0.16);
}

.history-summary-grid .stat-card,
.admin-metric-grid .stat-card {
  border-color: var(--bc-line);
  background:
    radial-gradient(circle at 90% 12%, rgba(99, 245, 255, 0.12), transparent 5rem),
    var(--bc-card);
}

.status-active,
.status-success,
.status-completed {
  color: var(--bc-mint);
  background: rgba(98, 242, 200, 0.12);
}

.status-pending {
  color: #ffe49b;
  background: rgba(255, 228, 155, 0.12);
}

@keyframes bankScan {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-18%);
  }

  50% {
    opacity: 1;
    transform: translateX(18%);
  }
}

@media (max-width: 460px) {
  .bank-center-brand__copy strong {
    font-size: 14px;
  }

  .bank-center-brand__copy small {
    font-size: 8px;
  }

  .toolbar-pill {
    gap: 5px;
    padding: 0 8px;
  }

  .bank-center-hero {
    min-height: 178px;
    border-radius: 20px;
  }

  .bank-center-hero__topline {
    top: 10px;
    left: 11px;
    right: 11px;
  }

  .bank-center-hero__topline span {
    padding: 6px 7px;
    font-size: 8px;
  }

  .bank-center-hero__wallet {
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 8px;
    min-height: 52px;
    padding: 7px 8px 7px 10px;
    border-radius: 15px;
  }

  .bank-center-hero__wallet-copy span {
    font-size: 8px;
  }

  .bank-center-hero__wallet-copy strong {
    font-size: clamp(16px, 4.7vw, 21px);
  }

  .hero-withdraw {
    min-height: 34px;
    padding: 0 9px;
    border-radius: 10px;
    font-size: 10px;
  }

  .launchpad-action {
    min-height: 64px;
    gap: 7px;
    padding: 8px;
  }

  .launchpad-action__icon {
    width: 28px;
    height: 28px;
  }

  .launchpad-action strong {
    font-size: 11px;
  }

  .launchpad-action small {
    font-size: 8px;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@media (max-width: 520px) {
  body {
    background:
      radial-gradient(circle at 100% 30%, rgba(71, 203, 255, 0.25), transparent 12rem),
      linear-gradient(180deg, #071026 0%, #050713 48%, #030612 100%);
  }

  .page-wrap {
    padding: 0;
    display: block;
  }

  .mini-app {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-title-row {
    display: none;
    padding-left: 30px;
    padding-right: 28px;
  }

  .brand-row {
    padding: 22px 18px 18px;
  }

  .content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .toolbar-pill {
    gap: 8px;
    min-height: 46px;
    padding: 0 12px;
  }

  .tool-icon {
    width: 23px;
  }

  .script-logo {
    font-size: 21px;
  }
}

/* Mobile shell: keep the mini app in a phone-sized viewport everywhere. */
body {
  overflow: hidden;
}

.page-wrap {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 0;
}

.mini-app,
.mini-app.expanded {
  width: min(430px, 100vw);
  max-width: 430px;
  height: 100dvh;
  min-height: 100dvh;
  max-height: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.topbar {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: calc(10px + env(safe-area-inset-top)) 12px 8px;
}

.notice-ticker {
  height: 28px;
  margin: 0 0 8px;
}

.notice-ticker span {
  font-size: 11px;
  animation-duration: 10s;
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 10px;
  padding: 10px 0 8px;
}

.script-logo {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(17px, 5vw, 20px);
  text-overflow: ellipsis;
}

.toolbar-pill {
  flex: 0 0 auto;
  min-height: 38px;
  gap: 4px;
  padding: 0 7px;
  border-radius: 15px;
}

.toolbar-pill > span {
  height: 18px;
}

.tool-icon {
  width: 20px;
  height: 20px;
}

.tool-icon svg {
  width: 15px;
  height: 15px;
}

.expand-theme {
  width: 30px;
  height: 20px;
}

.expand-theme.toggled {
  width: 32px;
}

.expand-theme__icon svg {
  width: 13px;
  height: 13px;
}

.lang-btn {
  min-width: 20px;
  font-size: 11px;
}

.content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 12px calc(90px + env(safe-area-inset-bottom));
}

.home-stats-grid,
.history-summary-grid,
.stats-grid {
  gap: 9px;
}

.wallet-line {
  min-height: 96px;
  padding: 16px;
  border-radius: 17px;
}

.wallet-line strong {
  font-size: clamp(20px, 7vw, 25px);
}

.withdraw-inline {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 13px;
  font-size: 12px;
}

.metric-card {
  min-height: 78px;
  padding: 12px;
  border-radius: 15px;
}

.metric-card strong {
  font-size: 17px;
}

.va-form-panel,
.va-form-panel.compact {
  margin-top: 12px;
  padding: 16px;
  border-radius: 20px;
}

.va-form-panel.compact .form-heading h2 {
  font-size: clamp(19px, 6vw, 23px);
}

.va-form-panel.compact .bank-grid {
  gap: 9px;
  margin-bottom: 14px;
}

.va-form-panel.compact .bank-tile {
  min-height: 52px;
  padding: 0 12px;
  border-radius: 15px;
}

.va-form-panel.compact .bank-name {
  font-size: clamp(17px, 5vw, 20px);
}

.va-form-panel.compact .mode-switch {
  margin-bottom: 16px;
}

.va-form-panel.compact .mode-switch button {
  min-height: 44px;
  font-size: 15px;
}

.va-form-panel.compact .field-label {
  font-size: 13px;
}

.text-input,
.va-form-panel.compact .text-input {
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
  border-radius: 14px;
}

.va-form-panel.compact .primary-btn,
.primary-btn {
  width: 100%;
  height: 48px;
  margin-top: 14px;
  border-radius: 15px;
  font-size: 15px;
}

.bottom-nav {
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  border-radius: 22px;
}

.nav-item {
  min-height: 54px;
  font-size: 10px;
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

.modal-backdrop {
  position: absolute;
  padding: 14px;
}

.action-modal {
  width: min(392px, calc(100vw - 24px));
}

.help-modal {
  max-height: calc(100dvh - 32px);
}

.help-content {
  max-height: calc(100dvh - 190px);
}

@media (min-width: 521px) {
  .page-wrap {
    padding: 16px;
  }

  .mini-app,
  .mini-app.expanded {
    height: min(900px, calc(100dvh - 32px));
    min-height: min(820px, calc(100dvh - 32px));
    border: 1px solid rgba(119, 156, 229, 0.18);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  }
}

/* shadcn/ui inspired skin layer: font, color tokens, and button styling only. */
:root {
  --hy-font-sans: system-ui, sans-serif;
  --hy-background: oklch(0.141 0.005 285.823);
  --hy-foreground: oklch(0.985 0 0);
  --hy-card: oklch(0.21 0.006 285.885);
  --hy-card-foreground: oklch(0.985 0 0);
  --hy-primary: oklch(0.723 0.219 149.579);
  --hy-primary-foreground: oklch(0.141 0.005 285.823);
  --hy-secondary: oklch(0.274 0.006 286.033);
  --hy-secondary-foreground: oklch(0.985 0 0);
  --hy-muted: oklch(0.274 0.006 286.033);
  --hy-muted-foreground: oklch(0.705 0.015 286.067);
  --hy-accent: oklch(0.274 0.006 286.033);
  --hy-accent-foreground: oklch(0.985 0 0);
  --hy-border: oklch(1 0 0 / 10%);
  --hy-input: oklch(1 0 0 / 15%);
  --hy-ring: oklch(0.723 0.219 149.579 / 52%);
  --hy-radius: 0.625rem;
}

:root[data-theme="light"] {
  --hy-background: oklch(1 0 0);
  --hy-foreground: oklch(0.141 0.005 285.823);
  --hy-card: oklch(1 0 0);
  --hy-card-foreground: oklch(0.141 0.005 285.823);
  --hy-primary: oklch(0.648 0.2 131.684);
  --hy-primary-foreground: oklch(0.986 0.031 120.757);
  --hy-secondary: oklch(0.967 0.001 286.375);
  --hy-secondary-foreground: oklch(0.21 0.006 285.885);
  --hy-muted: oklch(0.967 0.001 286.375);
  --hy-muted-foreground: oklch(0.552 0.016 285.938);
  --hy-accent: oklch(0.967 0.001 286.375);
  --hy-accent-foreground: oklch(0.21 0.006 285.885);
  --hy-border: oklch(0.92 0.004 286.32);
  --hy-input: oklch(0.92 0.004 286.32);
  --hy-ring: oklch(0.705 0.015 286.067 / 52%);
}

html,
body,
button,
input,
select {
  font-family: system-ui, sans-serif;
}

body {
  background:
    radial-gradient(circle at 10% 0%, oklch(0.723 0.219 149.579 / 18%), transparent 17rem),
    radial-gradient(circle at 100% 24%, oklch(0.488 0.243 264.376 / 18%), transparent 18rem),
    var(--hy-background);
  color: var(--hy-foreground);
}

.mini-app {
  background:
    radial-gradient(circle at 50% -10%, oklch(0.723 0.219 149.579 / 12%), transparent 13rem),
    var(--hy-background);
}

.wallet-line,
.metric-card,
.stat-card,
.va-form-panel,
.va-card,
.transaction-row,
.setting-row,
.detail-panel,
.bank-tile,
.success-card,
.date-picker,
.chart-card,
.profile-card,
.linked-account-row,
.history-summary-grid .stat-card {
  color: var(--hy-card-foreground);
  border-color: var(--hy-border);
  background:
    linear-gradient(180deg, oklch(1 0 0 / 5%), oklch(1 0 0 / 2%)),
    var(--hy-card);
  box-shadow: 0 1px 2px oklch(0 0 0 / 18%);
}

:root[data-theme="light"] .wallet-line,
:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .stat-card,
:root[data-theme="light"] .va-form-panel,
:root[data-theme="light"] .va-card,
:root[data-theme="light"] .transaction-row,
:root[data-theme="light"] .setting-row,
:root[data-theme="light"] .detail-panel,
:root[data-theme="light"] .bank-tile,
:root[data-theme="light"] .success-card,
:root[data-theme="light"] .date-picker,
:root[data-theme="light"] .chart-card,
:root[data-theme="light"] .profile-card,
:root[data-theme="light"] .linked-account-row,
:root[data-theme="light"] .history-summary-grid .stat-card {
  background: var(--hy-card);
  border-color: var(--hy-border);
  box-shadow: 0 1px 2px oklch(0 0 0 / 8%);
}

.wallet-line strong,
.metric-card strong,
.history-summary-grid .stat-card strong,
.stat-card strong {
  color: var(--hy-primary);
}

.wallet-line span,
.metric-card span,
.metric-card small,
.form-heading p,
.view-subtitle,
.muted,
.setting-row span,
.detail-row span,
.help-content p,
.help-content li {
  color: var(--hy-muted-foreground);
}

.view-title,
.form-heading h2,
.va-form-panel.compact .form-heading h2 {
  color: var(--hy-foreground);
}

.field-label,
.va-form-panel.compact .field-label {
  color: var(--hy-foreground);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.primary-btn,
.copy-btn,
.withdraw-inline,
.mode-switch button.active,
.chip.active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--hy-radius);
  color: var(--hy-primary-foreground);
  background: var(--hy-primary);
  box-shadow: 0 1px 2px oklch(0 0 0 / 12%);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  transition:
    color 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.primary-btn:hover,
.copy-btn:hover,
.withdraw-inline:hover,
.mode-switch button.active:hover,
.chip.active:hover {
  background: color-mix(in oklch, var(--hy-primary) 90%, var(--hy-background));
}

.bank-tile.selected,
.nav-item.active {
  color: var(--hy-primary-foreground);
  border-color: transparent;
  background: var(--hy-primary);
  box-shadow: 0 1px 2px oklch(0 0 0 / 12%);
  font-weight: 600;
}

.bank-tile.selected:hover,
.nav-item.active:hover {
  background: color-mix(in oklch, var(--hy-primary) 90%, var(--hy-background));
}

.ghost-btn,
.tool-icon,
.expand-theme,
.mode-switch button,
.chip,
.history-shortcut,
.modal-close,
.icon-btn {
  border: 1px solid var(--hy-border);
  border-radius: var(--hy-radius);
  color: var(--hy-foreground);
  background: transparent;
  box-shadow: 0 1px 2px oklch(0 0 0 / 6%);
  font-weight: 500;
  transition:
    color 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.ghost-btn:hover,
.tool-icon:hover,
.expand-theme:hover,
.mode-switch button:hover,
.chip:hover,
.history-shortcut:hover,
.modal-close:hover,
.icon-btn:hover {
  color: var(--hy-accent-foreground);
  background: var(--hy-accent);
}

.primary-btn:focus-visible,
.copy-btn:focus-visible,
.withdraw-inline:focus-visible,
.ghost-btn:focus-visible,
.tool-icon:focus-visible,
.expand-theme:focus-visible,
.mode-switch button:focus-visible,
.chip:focus-visible,
.bank-tile:focus-visible,
.nav-item:focus-visible,
.history-shortcut:focus-visible,
.modal-close:focus-visible,
.icon-btn:focus-visible,
.text-input:focus,
.select-input:focus {
  outline: none;
  border-color: var(--hy-ring);
  box-shadow: 0 0 0 3px var(--hy-ring);
}

.text-input,
.select-input,
.va-form-panel.compact .text-input {
  color: var(--hy-foreground);
  border: 1px solid var(--hy-input);
  border-radius: var(--hy-radius);
  background: color-mix(in oklch, var(--hy-card) 76%, transparent);
  box-shadow: 0 1px 2px oklch(0 0 0 / 6%);
}

.text-input::placeholder,
.va-form-panel.compact .text-input::placeholder {
  color: var(--hy-muted-foreground);
}

.bottom-nav,
.toolbar-pill {
  border-color: var(--hy-border);
  background: color-mix(in oklch, var(--hy-card) 88%, transparent);
  box-shadow: 0 1px 2px oklch(0 0 0 / 18%);
}

.toolbar-pill > span {
  background: var(--hy-border);
}

.nav-item {
  color: var(--hy-muted-foreground);
}

.bank-tile.selected .bank-name,
.nav-item.active span,
.nav-item.active svg {
  color: var(--hy-primary-foreground);
}

.nav-item.active {
  display: grid;
  gap: 3px;
}

.nav-item span {
  white-space: nowrap;
}

.va-form-panel.compact .primary-btn,
.va-form-panel.compact .mode-switch button.active,
.va-form-panel.compact .bank-tile.selected {
  color: var(--hy-primary-foreground);
  border: 1px solid transparent;
  background: var(--hy-primary);
  box-shadow: 0 1px 2px oklch(0 0 0 / 12%);
  font-weight: 600;
}

.va-form-panel.compact .primary-btn:hover,
.va-form-panel.compact .mode-switch button.active:hover,
.va-form-panel.compact .bank-tile.selected:hover {
  background: color-mix(in oklch, var(--hy-primary) 90%, var(--hy-background));
}

.va-form-panel.compact .mode-switch,
.va-form-panel.compact .bank-tile,
.va-form-panel.compact .mode-switch button {
  border-color: var(--hy-border);
  color: var(--hy-foreground);
  background: transparent;
  box-shadow: 0 1px 2px oklch(0 0 0 / 6%);
}

.va-form-panel.compact .bank-tile.selected .bank-name {
  color: var(--hy-primary-foreground);
}

/* Neo-Tactile mockup skin inspired by the provided reference image. */
:root {
  --neo-bg: #060b12;
  --neo-panel: rgba(176, 205, 227, 0.16);
  --neo-panel-strong: rgba(206, 227, 244, 0.2);
  --neo-panel-soft: rgba(214, 231, 246, 0.1);
  --neo-stroke: rgba(213, 236, 255, 0.26);
  --neo-stroke-soft: rgba(213, 236, 255, 0.13);
  --neo-text: #f4f8ff;
  --neo-muted: rgba(230, 240, 251, 0.66);
  --neo-blue: #4f82ff;
  --neo-blue-deep: #2d61e8;
  --neo-cyan: #6df7ff;
  --neo-shadow: rgba(0, 0, 0, 0.44);
  --hy-primary: var(--neo-blue);
  --hy-primary-foreground: #f7fbff;
  --hy-background: var(--neo-bg);
  --hy-foreground: var(--neo-text);
  --hy-card: var(--neo-panel);
  --hy-card-foreground: var(--neo-text);
  --hy-muted-foreground: var(--neo-muted);
  --hy-border: var(--neo-stroke-soft);
  --hy-ring: rgba(109, 247, 255, 0.54);
  --hy-radius: 1.25rem;
}

:root[data-theme="light"] {
  --neo-bg: #dcebf6;
  --neo-panel: rgba(255, 255, 255, 0.46);
  --neo-panel-strong: rgba(255, 255, 255, 0.62);
  --neo-panel-soft: rgba(255, 255, 255, 0.34);
  --neo-stroke: rgba(255, 255, 255, 0.68);
  --neo-stroke-soft: rgba(76, 106, 137, 0.18);
  --neo-text: #111827;
  --neo-muted: rgba(51, 65, 85, 0.64);
  --hy-primary: #3f76ff;
  --hy-primary-foreground: #f8fbff;
  --hy-background: var(--neo-bg);
  --hy-foreground: var(--neo-text);
  --hy-card: var(--neo-panel);
  --hy-card-foreground: var(--neo-text);
  --hy-muted-foreground: var(--neo-muted);
  --hy-border: var(--neo-stroke-soft);
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(223, 246, 255, 0.82), transparent 12rem),
    radial-gradient(circle at 20% 35%, rgba(73, 136, 255, 0.24), transparent 18rem),
    radial-gradient(circle at 78% 30%, rgba(109, 247, 255, 0.18), transparent 18rem),
    linear-gradient(125deg, #0b1420 0%, #070b12 46%, #111820 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, rgba(230, 246, 255, 0.12), transparent 42%),
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.14), transparent 14rem);
  filter: blur(1px);
}

body::after {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 36%, black, transparent 74%);
}

.page-wrap {
  perspective: 1400px;
}

.mini-app,
.mini-app.expanded {
  border: 1px solid var(--neo-stroke);
  background:
    linear-gradient(145deg, rgba(226, 244, 255, 0.2), rgba(85, 109, 133, 0.08) 34%, rgba(9, 15, 24, 0.76) 100%),
    radial-gradient(circle at 0% 0%, rgba(229, 250, 255, 0.24), transparent 12rem),
    rgba(13, 20, 30, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset -28px -30px 72px rgba(109, 247, 255, 0.08),
    inset 24px 20px 80px rgba(255, 255, 255, 0.07),
    0 34px 86px rgba(0, 0, 0, 0.5),
    18px 24px 62px rgba(0, 0, 0, 0.38),
    0 0 48px rgba(109, 247, 255, 0.16),
    18px 22px 56px rgba(109, 247, 255, 0.1);
  backdrop-filter: blur(28px) saturate(1.25);
  transform-style: preserve-3d;
}

.mini-app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.46), transparent 21%),
    radial-gradient(circle at 8% 5%, rgba(229, 255, 255, 0.32), transparent 13rem),
    linear-gradient(150deg, transparent 62%, rgba(109, 247, 255, 0.18));
  opacity: 0.62;
  mix-blend-mode: screen;
}

.mini-app::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 58%;
  height: 42%;
  pointer-events: none;
  border-radius: 45% 0 30px 0;
  background:
    radial-gradient(circle at 72% 76%, rgba(109, 247, 255, 0.66), transparent 42%),
    linear-gradient(135deg, transparent, rgba(109, 247, 255, 0.22));
  filter: blur(16px);
  opacity: 0.9;
  z-index: 0;
}

.topbar,
.content,
.bottom-nav {
  position: relative;
  z-index: 1;
}

.topbar {
  background: transparent;
  border-bottom: 0;
}

.notice-ticker {
  border-color: rgba(109, 247, 255, 0.24);
  background:
    linear-gradient(90deg, rgba(109, 247, 255, 0.18), rgba(79, 130, 255, 0.1)),
    rgba(160, 188, 210, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 26px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.script-logo {
  color: #f7fbff;
  text-shadow:
    0 1px 0 rgba(255, 115, 130, 0.8),
    0 8px 20px rgba(0, 0, 0, 0.46),
    0 0 18px rgba(109, 247, 255, 0.16);
}

.toolbar-pill,
.bottom-nav,
.wallet-line,
.metric-card,
.stat-card,
.va-form-panel,
.va-card,
.transaction-row,
.setting-row,
.detail-panel,
.bank-tile,
.success-card,
.date-picker,
.chart-card,
.profile-card,
.linked-account-row,
.history-summary-grid .stat-card {
  border-color: var(--neo-stroke-soft);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055) 42%, rgba(12, 18, 27, 0.2)),
    var(--neo-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -18px 34px rgba(0, 0, 0, 0.1),
    0 18px 34px var(--neo-shadow),
    10px 12px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px) saturate(1.2);
}

.wallet-line {
  background:
    radial-gradient(circle at 88% 36%, rgba(109, 247, 255, 0.16), transparent 5.4rem),
    linear-gradient(145deg, rgba(115, 160, 255, 0.2), rgba(255, 255, 255, 0.06) 38%, rgba(11, 17, 27, 0.28)),
    var(--neo-panel-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -16px 34px rgba(0, 0, 0, 0.13),
    0 22px 54px rgba(0, 0, 0, 0.36),
    14px 20px 42px rgba(0, 0, 0, 0.24);
}

.wallet-line::after {
  background:
    radial-gradient(circle at 48% 44%, rgba(85, 129, 255, 0.5), transparent 42%),
    linear-gradient(135deg, rgba(109, 247, 255, 0.28), rgba(79, 130, 255, 0.18));
  filter: blur(0.2px);
}

.wallet-line strong,
.metric-card strong,
.history-summary-grid .stat-card strong,
.stat-card strong,
.amount.positive {
  color: var(--neo-cyan);
  text-shadow: 0 0 18px rgba(109, 247, 255, 0.26);
}

.wallet-line span,
.metric-card span,
.metric-card small,
.form-heading p,
.view-subtitle,
.muted,
.setting-row span,
.detail-row span {
  color: var(--neo-muted);
}

.primary-btn,
.copy-btn,
.withdraw-inline,
.mode-switch button.active,
.chip.active,
.bank-tile.selected,
.nav-item.active,
.va-form-panel.compact .primary-btn,
.va-form-panel.compact .mode-switch button.active,
.va-form-panel.compact .bank-tile.selected {
  color: #f7fbff;
  border: 1px solid rgba(151, 190, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(119, 247, 255, 0.24), transparent 44%),
    linear-gradient(135deg, #5e94ff 0%, #2f67ff 78%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -12px 22px rgba(0, 34, 120, 0.18),
    0 16px 28px rgba(25, 63, 170, 0.3),
    0 8px 18px rgba(0, 0, 0, 0.24),
    10px 13px 24px rgba(0, 0, 0, 0.16);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.primary-btn:hover,
.copy-btn:hover,
.withdraw-inline:hover,
.mode-switch button.active:hover,
.chip.active:hover,
.bank-tile.selected:hover,
.nav-item.active:hover,
.va-form-panel.compact .primary-btn:hover,
.va-form-panel.compact .mode-switch button.active:hover,
.va-form-panel.compact .bank-tile.selected:hover {
  background:
    linear-gradient(145deg, rgba(119, 247, 255, 0.32), transparent 42%),
    linear-gradient(135deg, #70a1ff 0%, #356eff 78%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 20px 34px rgba(25, 63, 170, 0.36),
    0 0 26px rgba(109, 247, 255, 0.18);
  transform: translateY(-1px);
}

.ghost-btn,
.tool-icon,
.expand-theme,
.mode-switch button,
.chip,
.history-shortcut,
.modal-close,
.icon-btn,
.va-form-panel.compact .mode-switch,
.va-form-panel.compact .bank-tile,
.va-form-panel.compact .mode-switch button {
  color: var(--neo-text);
  border-color: var(--neo-stroke-soft);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(174, 197, 217, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 22px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.ghost-btn:hover,
.tool-icon:hover,
.expand-theme:hover,
.mode-switch button:hover,
.chip:hover,
.history-shortcut:hover,
.modal-close:hover,
.icon-btn:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.23), rgba(109, 247, 255, 0.08)),
    rgba(174, 197, 217, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 26px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(109, 247, 255, 0.12);
  transform: translateY(-1px);
}

.tool-icon.is-on,
.expand-theme.toggled {
  color: var(--neo-cyan);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(109, 247, 255, 0.18),
    0 0 20px rgba(109, 247, 255, 0.24);
}

.text-input,
.select-input,
.va-form-panel.compact .text-input {
  color: var(--neo-text);
  border-color: var(--neo-stroke-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(9, 14, 22, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(0, 0, 0, 0.22);
}

.primary-btn:focus-visible,
.copy-btn:focus-visible,
.withdraw-inline:focus-visible,
.ghost-btn:focus-visible,
.tool-icon:focus-visible,
.expand-theme:focus-visible,
.mode-switch button:focus-visible,
.chip:focus-visible,
.bank-tile:focus-visible,
.nav-item:focus-visible,
.history-shortcut:focus-visible,
.modal-close:focus-visible,
.icon-btn:focus-visible,
.text-input:focus,
.select-input:focus {
  box-shadow:
    0 0 0 3px rgba(109, 247, 255, 0.34),
    0 0 28px rgba(109, 247, 255, 0.18);
}

.bottom-nav {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(12, 17, 24, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 -2px 0 rgba(255, 255, 255, 0.02),
    0 22px 48px rgba(0, 0, 0, 0.42);
}

.nav-item.active {
  display: grid;
  border-radius: 17px;
}

.va-form-panel.compact {
  background:
    linear-gradient(150deg, rgba(117, 153, 255, 0.16), rgba(255, 255, 255, 0.045) 42%, rgba(109, 247, 255, 0.08)),
    rgba(13, 22, 42, 0.66);
}

.modal-backdrop {
  background: rgba(3, 8, 13, 0.62);
  backdrop-filter: blur(7px);
}

.rules-card,
.action-modal {
  border-color: rgba(213, 236, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.055)),
    rgba(20, 29, 40, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 28px 58px rgba(0, 0, 0, 0.44);
}

@keyframes neoFloatIn {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.985);
  }
}

.wallet-line,
.metric-card,
.va-form-panel,
.bottom-nav {
  animation: neoFloatIn 0.36s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.metric-card:nth-child(2),
.metric-card:nth-child(4) {
  transform: translateZ(8px);
}

.metric-card:nth-child(3),
.metric-card:nth-child(5) {
  transform: translateZ(14px);
}

/* Neo-Tactile V2 polish: dark solid neumorphic skin matching the mockup tone. */
:root {
  --neo-bg: #111a2d;
  --neo-panel: #182238;
  --neo-panel-strong: #202c45;
  --neo-panel-soft: #121b2e;
  --neo-stroke: rgba(127, 164, 204, 0.2);
  --neo-stroke-soft: rgba(122, 158, 198, 0.14);
  --neo-text: #f6fbff;
  --neo-muted: rgba(218, 230, 244, 0.62);
  --neo-blue: #376eff;
  --neo-blue-deep: #18336e;
  --neo-cyan: #15edf2;
  --neo-cyan-strong: #00d8df;
  --neo-shadow: rgba(2, 7, 17, 0.68);
  --neo-highlight: rgba(119, 151, 190, 0.2);
  --hy-primary: var(--neo-cyan);
  --hy-primary-foreground: #07121e;
  --hy-background: var(--neo-bg);
  --hy-foreground: var(--neo-text);
  --hy-card: var(--neo-panel);
  --hy-card-foreground: var(--neo-text);
  --hy-muted-foreground: var(--neo-muted);
  --hy-border: var(--neo-stroke-soft);
  --hy-ring: rgba(21, 237, 242, 0.5);
}

body {
  color: var(--neo-text);
  background:
    radial-gradient(circle at 8% 6%, rgba(91, 124, 179, 0.28), transparent 13rem),
    radial-gradient(circle at 84% 12%, rgba(21, 237, 242, 0.12), transparent 16rem),
    radial-gradient(circle at 18% 78%, rgba(29, 71, 158, 0.22), transparent 17rem),
    linear-gradient(135deg, #222d46 0%, #131d31 42%, #0e1728 100%);
}

body::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.1), transparent 11rem);
  opacity: 0.85;
}

body::after {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 38px 38px;
}

.mini-app,
.mini-app.expanded {
  border: 1px solid rgba(122, 158, 198, 0.22);
  background:
    radial-gradient(circle at 8% 3%, rgba(92, 126, 176, 0.22), transparent 13rem),
    radial-gradient(circle at 102% 18%, rgba(21, 237, 242, 0.12), transparent 12rem),
    linear-gradient(146deg, #24304a 0%, #162136 39%, #10192b 100%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.13),
    inset -24px -28px 56px rgba(2, 7, 17, 0.26),
    -16px -18px 42px rgba(91, 124, 179, 0.16),
    24px 28px 70px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(21, 237, 242, 0.05),
    0 0 42px rgba(21, 237, 242, 0.1);
  backdrop-filter: none;
}

.mini-app::before {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.14), transparent 24%),
    radial-gradient(circle at 12% 6%, rgba(255, 255, 255, 0.12), transparent 12rem);
  opacity: 0.72;
  mix-blend-mode: soft-light;
}

.mini-app::after {
  width: 48%;
  height: 36%;
  background:
    radial-gradient(circle at 78% 78%, rgba(21, 237, 242, 0.34), transparent 47%),
    linear-gradient(135deg, transparent, rgba(21, 237, 242, 0.12));
  filter: blur(20px);
  opacity: 0.72;
}

.notice-ticker,
.toolbar-pill,
.bottom-nav,
.wallet-line,
.metric-card,
.stat-card,
.va-form-panel,
.va-card,
.transaction-row,
.setting-row,
.detail-panel,
.bank-tile,
.success-card,
.date-picker,
.chart-card,
.profile-card,
.linked-account-row,
.history-summary-grid .stat-card,
.rules-card,
.action-modal {
  border-color: var(--neo-stroke-soft);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018) 42%, rgba(0, 0, 0, 0.08)),
    var(--neo-panel);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.1),
    inset -10px -12px 24px rgba(0, 0, 0, 0.22),
    -8px -9px 20px rgba(101, 134, 178, 0.12),
    13px 16px 30px rgba(0, 0, 0, 0.42);
  backdrop-filter: none;
}

.notice-ticker {
  background:
    linear-gradient(90deg, rgba(21, 237, 242, 0.11), rgba(49, 91, 180, 0.08)),
    #151f34;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.09),
    10px 12px 22px rgba(0, 0, 0, 0.32);
}

.script-logo {
  color: #ffffff;
  letter-spacing: -0.04em;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.28),
    0 0 18px rgba(21, 237, 242, 0.18);
}

.toolbar-pill {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.09)),
    #172137;
  border-radius: 999px;
  padding: 5px;
}

.toolbar-pill > span {
  background: rgba(21, 237, 242, 0.14);
  box-shadow: 0 0 10px rgba(21, 237, 242, 0.12);
}

.tool-icon,
.expand-theme,
.ghost-btn,
.mode-switch,
.mode-switch button,
.chip,
.history-shortcut,
.modal-close,
.icon-btn,
.va-form-panel.compact .mode-switch,
.va-form-panel.compact .bank-tile,
.va-form-panel.compact .mode-switch button {
  color: var(--neo-cyan);
  border-color: rgba(122, 158, 198, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(2, 7, 17, 0.22)),
    #172136;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.08),
    inset -8px -9px 18px rgba(0, 0, 0, 0.24),
    -7px -7px 15px rgba(101, 134, 178, 0.11),
    9px 11px 20px rgba(0, 0, 0, 0.42);
  backdrop-filter: none;
}

.tool-icon,
.expand-theme,
.history-shortcut,
.modal-close,
.icon-btn {
  border-radius: 17px;
}

.tool-icon:hover,
.expand-theme:hover,
.ghost-btn:hover,
.mode-switch button:hover,
.chip:hover,
.history-shortcut:hover,
.modal-close:hover,
.icon-btn:hover {
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(21, 237, 242, 0.14), rgba(3, 10, 23, 0.16)),
    #1a263e;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.1),
    -8px -8px 16px rgba(101, 134, 178, 0.14),
    12px 14px 24px rgba(0, 0, 0, 0.46),
    0 0 22px rgba(21, 237, 242, 0.12);
}

.tool-icon.is-on,
.expand-theme.toggled,
.chip.active,
.mode-switch button.active,
.nav-item.active,
.primary-btn,
.copy-btn,
.withdraw-inline,
.bank-tile.selected,
.va-form-panel.compact .primary-btn,
.va-form-panel.compact .mode-switch button.active,
.va-form-panel.compact .bank-tile.selected {
  color: #06202a;
  border-color: rgba(21, 237, 242, 0.48);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.04) 45%),
    linear-gradient(135deg, #20f6f6 0%, #08cbd4 82%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.42),
    inset -10px -12px 20px rgba(1, 105, 116, 0.2),
    0 0 0 1px rgba(21, 237, 242, 0.18),
    0 0 24px rgba(21, 237, 242, 0.26),
    12px 15px 28px rgba(0, 0, 0, 0.4);
  text-shadow: none;
}

.primary-btn:hover,
.copy-btn:hover,
.withdraw-inline:hover,
.mode-switch button.active:hover,
.chip.active:hover,
.bank-tile.selected:hover,
.nav-item.active:hover,
.va-form-panel.compact .primary-btn:hover,
.va-form-panel.compact .mode-switch button.active:hover,
.va-form-panel.compact .bank-tile.selected:hover {
  color: #041a22;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.05) 45%),
    linear-gradient(135deg, #39ffff 0%, #0ed8de 82%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.48),
    0 0 32px rgba(21, 237, 242, 0.34),
    14px 17px 30px rgba(0, 0, 0, 0.44);
}

.wallet-line {
  background:
    radial-gradient(circle at 88% 28%, rgba(21, 237, 242, 0.16), transparent 5rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.12)),
    #172139;
}

.wallet-line::after {
  background:
    radial-gradient(circle at 48% 44%, rgba(21, 237, 242, 0.64), transparent 43%),
    linear-gradient(135deg, rgba(21, 237, 242, 0.32), rgba(55, 110, 255, 0.16));
}

.metric-card,
.va-form-panel,
.wallet-line {
  transform-style: preserve-3d;
}

.metric-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(21, 237, 242, 0.13), transparent 4.8rem),
    linear-gradient(146deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.12)),
    #172137;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(21, 237, 242, 0.16), transparent 64%);
  pointer-events: none;
}

.wallet-line strong,
.metric-card strong,
.history-summary-grid .stat-card strong,
.stat-card strong,
.amount.positive {
  color: var(--neo-cyan);
  text-shadow:
    0 0 12px rgba(21, 237, 242, 0.34),
    0 2px 0 rgba(0, 0, 0, 0.18);
}

.text-input,
.select-input,
.va-form-panel.compact .text-input {
  color: var(--neo-text);
  border-color: rgba(122, 158, 198, 0.15);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.035)),
    #111a2d;
  box-shadow:
    inset 8px 9px 18px rgba(0, 0, 0, 0.36),
    inset -6px -6px 14px rgba(103, 137, 180, 0.09);
}

.text-input:focus,
.select-input:focus {
  border-color: rgba(21, 237, 242, 0.45);
  box-shadow:
    inset 8px 9px 18px rgba(0, 0, 0, 0.34),
    inset -6px -6px 14px rgba(103, 137, 180, 0.1),
    0 0 0 3px rgba(21, 237, 242, 0.18),
    0 0 24px rgba(21, 237, 242, 0.12);
}

.bottom-nav {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.12)),
    #161f34;
  border-radius: 25px 25px 0 0;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.09),
    0 -8px 26px rgba(0, 0, 0, 0.2),
    0 18px 42px rgba(0, 0, 0, 0.46);
}

.nav-item {
  color: rgba(218, 230, 244, 0.56);
}

.nav-item svg {
  filter: drop-shadow(0 0 8px rgba(21, 237, 242, 0.12));
}

.nav-item.active svg,
.nav-item.active span {
  color: #05202a;
}

.va-form-panel.compact,
.va-form-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(21, 237, 242, 0.12), transparent 7rem),
    linear-gradient(146deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.13)),
    #172137;
}

.bank-tile {
  min-height: 58px;
  border-radius: 21px;
}

.bank-tile-logo .bank-logo,
.va-form-panel.compact .bank-tile-logo .bank-logo {
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.22)),
    #111a2d;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.14),
    inset -6px -7px 13px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(21, 237, 242, 0.08),
    7px 8px 14px rgba(0, 0, 0, 0.3);
}

.bank-tile.selected .bank-logo {
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 22px rgba(21, 237, 242, 0.42);
}

.bank-tile.selected .bank-name,
.va-form-panel.compact .bank-tile.selected .bank-name {
  color: #06202a;
}

.field-label,
.view-title,
.form-heading h2,
.va-form-panel.compact .form-heading h2 {
  color: #ffffff;
}

.form-heading p,
.view-subtitle,
.metric-card span,
.metric-card small,
.wallet-line span,
.muted,
.setting-row span,
.detail-row span {
  color: var(--neo-muted);
}

.modal-backdrop {
  background: rgba(5, 10, 20, 0.68);
  backdrop-filter: blur(5px);
}

.rules-card,
.action-modal {
  background:
    radial-gradient(circle at 92% 8%, rgba(21, 237, 242, 0.14), transparent 9rem),
    linear-gradient(146deg, rgba(255, 255, 255, 0.065), rgba(0, 0, 0, 0.14)),
    #172137;
}

@media (max-width: 520px) {
  .mini-app,
  .mini-app.expanded {
    border-radius: 0;
    box-shadow:
      inset 1px 1px 0 rgba(255, 255, 255, 0.12),
      inset -18px -24px 48px rgba(2, 7, 17, 0.24);
  }
}

/* Mobile V3: native app layout, no phone mockup frame. */
html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 6%, rgba(21, 237, 242, 0.13), transparent 12rem),
    radial-gradient(circle at 5% 28%, rgba(80, 118, 190, 0.2), transparent 13rem),
    linear-gradient(160deg, #1d2941 0%, #111b2f 44%, #0b1324 100%);
}

#app,
.page-wrap,
.mini-app,
.mini-app.expanded {
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
}

.page-wrap {
  display: block;
  padding: 0;
  perspective: none;
}

.mini-app,
.mini-app.expanded {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 100% 4%, rgba(21, 237, 242, 0.16), transparent 12rem),
    radial-gradient(circle at 0% 18%, rgba(98, 132, 187, 0.18), transparent 12rem),
    linear-gradient(158deg, #202c46 0%, #121d32 42%, #0b1425 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mini-app::before {
  opacity: 0.48;
}

.mini-app::after {
  opacity: 0.38;
  width: 70%;
  height: 30%;
}

.topbar {
  position: relative;
  z-index: 3;
  padding: calc(8px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-left)) 8px max(12px, env(safe-area-inset-left));
}

.notice-ticker {
  height: 25px;
  margin-bottom: 8px;
  border-radius: 999px;
}

.notice-ticker span {
  font-size: 10.5px;
  line-height: 25px;
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0 4px;
}

.script-logo {
  font-size: clamp(16px, 4.8vw, 20px);
  line-height: 1.05;
  white-space: nowrap;
}

.toolbar-pill {
  min-height: 34px;
  gap: 3px;
  padding: 0 6px;
  border-radius: 999px;
}

.toolbar-pill > span {
  width: 1px;
  height: 16px;
}

.tool-icon {
  width: 22px;
  height: 22px;
  border-radius: 12px;
}

.tool-icon svg {
  width: 14px;
  height: 14px;
}

.expand-theme {
  width: 29px;
  height: 20px;
  border-radius: 999px;
}

.expand-theme.toggled {
  width: 31px;
}

.lang-btn {
  min-width: 22px;
  font-size: 10px;
}

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px max(12px, env(safe-area-inset-left)) calc(82px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  overscroll-behavior: contain;
  scroll-padding-bottom: 96px;
}

.screen {
  width: min(100%, 560px);
  margin: 0 auto;
}

.home-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.wallet-line {
  min-height: 82px;
  padding: 13px;
  border-radius: 18px;
}

.wallet-line strong {
  margin-top: 4px;
  font-size: clamp(21px, 7vw, 28px);
}

.withdraw-inline {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
}

.metric-card {
  min-height: 84px;
  padding: 11px;
  border-radius: 17px;
}

.metric-card span,
.metric-card small {
  font-size: 11px;
}

.metric-card strong {
  margin-top: 5px;
  font-size: clamp(16px, 5.2vw, 21px);
}

.va-form-panel,
.va-form-panel.compact,
.chart-card,
.profile-card,
.detail-panel,
.date-picker,
.transaction-row,
.va-card,
.setting-row,
.history-summary-grid .stat-card {
  border-radius: 20px;
}

.va-form-panel,
.va-form-panel.compact {
  padding: 14px;
}

.form-heading {
  gap: 10px;
  margin-bottom: 10px;
}

.va-form-panel.compact .form-heading h2,
.form-heading h2 {
  font-size: clamp(18px, 5.4vw, 22px);
}

.form-heading p {
  font-size: 11px;
}

.history-shortcut {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

.field-label {
  margin: 11px 0 7px;
  font-size: 12px;
}

.bank-grid,
.va-form-panel.compact .bank-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 9px 0 12px;
}

.bank-tile,
.va-form-panel.compact .bank-tile {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 17px;
}

.bank-tile-logo .bank-logo,
.va-form-panel.compact .bank-tile-logo .bank-logo {
  width: 31px;
  height: 31px;
}

.bank-name,
.va-form-panel.compact .bank-name {
  max-width: 92px;
  font-size: 15px;
}

.mode-switch,
.va-form-panel.compact .mode-switch {
  margin: 10px 0 13px;
  padding: 4px;
  border-radius: 17px;
}

.mode-switch button,
.va-form-panel.compact .mode-switch button {
  min-height: 40px;
  border-radius: 14px;
  font-size: 13px;
}

.text-input,
.select-input,
.va-form-panel.compact .text-input {
  height: 47px;
  border-radius: 16px;
  font-size: 14px;
}

.primary-btn,
.va-form-panel.compact .primary-btn {
  min-height: 48px;
  border-radius: 17px;
  font-size: 14px;
}

.bottom-nav {
  position: relative;
  z-index: 4;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 7px max(10px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
  border-radius: 22px 22px 0 0;
}

.nav-item {
  min-height: 50px;
  padding: 6px 2px;
  border-radius: 16px;
  font-size: 10px;
}

.nav-item svg {
  width: 17px;
  height: 17px;
}

.history-tools {
  gap: 9px;
}

.history-summary-grid,
.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  padding: 12px;
}

.action-modal,
.rules-card {
  width: min(100%, 420px);
  max-height: calc(100dvh - 28px);
  border-radius: 23px;
}

.help-content {
  max-height: calc(100dvh - 186px);
}

@media (min-width: 720px) {
  .content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar,
  .bottom-nav {
    padding-left: calc((100vw - 560px) / 2 + 18px);
    padding-right: calc((100vw - 560px) / 2 + 18px);
  }
}

@media (max-width: 370px) {
  .script-logo {
    font-size: 15px;
  }

  .toolbar-pill {
    gap: 2px;
    padding: 0 5px;
  }

  .tool-icon {
    width: 20px;
    height: 20px;
  }

  .wallet-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .withdraw-inline {
    width: 100%;
  }

  .hero-withdraw {
    width: auto;
    max-width: none;
  }

  .nav-item span {
    font-size: 9px;
  }
}

/* Mobile stability and light theme polish. */
html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body,
#app,
.page-wrap,
.mini-app,
.content {
  overscroll-behavior: none;
}

body,
button,
.nav-item,
.tool-icon,
.expand-theme,
.primary-btn,
.ghost-btn,
.copy-btn,
.withdraw-inline,
.bank-tile,
.chip,
.mode-switch button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mini-app {
  position: fixed;
  inset: 0;
  transform: translateZ(0);
  contain: layout paint size;
}

.content {
  -webkit-overflow-scrolling: touch;
}

:root[data-theme="light"] {
  --neo-bg: #eaf4fb;
  --neo-panel: #f8fcff;
  --neo-panel-strong: #ffffff;
  --neo-panel-soft: #e9f3fb;
  --neo-stroke: rgba(58, 101, 151, 0.18);
  --neo-stroke-soft: rgba(58, 101, 151, 0.12);
  --neo-text: #10243e;
  --neo-muted: rgba(50, 68, 92, 0.68);
  --neo-blue: #3477ff;
  --neo-blue-deep: #1d4ed8;
  --neo-cyan: #009eb0;
  --neo-cyan-strong: #00bcd4;
  --neo-shadow: rgba(48, 83, 124, 0.18);
  --hy-primary: #0ea5e9;
  --hy-primary-foreground: #ffffff;
  --hy-background: #eaf4fb;
  --hy-foreground: var(--neo-text);
  --hy-card: #ffffff;
  --hy-card-foreground: var(--neo-text);
  --hy-muted-foreground: var(--neo-muted);
  --hy-border: var(--neo-stroke-soft);
  color-scheme: light;
}

:root[data-theme="light"] body {
  color: var(--neo-text);
  background:
    radial-gradient(circle at 92% 4%, rgba(20, 184, 166, 0.22), transparent 12rem),
    radial-gradient(circle at 0% 24%, rgba(59, 130, 246, 0.2), transparent 14rem),
    linear-gradient(160deg, #f4fbff 0%, #e9f4fb 46%, #dbeaf5 100%);
}

:root[data-theme="light"] .mini-app,
:root[data-theme="light"] .mini-app.expanded {
  background:
    radial-gradient(circle at 96% 3%, rgba(14, 165, 233, 0.18), transparent 11rem),
    radial-gradient(circle at 5% 20%, rgba(20, 184, 166, 0.15), transparent 12rem),
    linear-gradient(158deg, #f8fcff 0%, #eef7fd 46%, #e3eff8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .mini-app::before {
  opacity: 0.42;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.76), transparent 30%),
    radial-gradient(circle at 12% 6%, rgba(255, 255, 255, 0.65), transparent 12rem);
}

:root[data-theme="light"] .notice-ticker,
:root[data-theme="light"] .toolbar-pill,
:root[data-theme="light"] .bottom-nav,
:root[data-theme="light"] .wallet-line,
:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .stat-card,
:root[data-theme="light"] .va-form-panel,
:root[data-theme="light"] .va-card,
:root[data-theme="light"] .transaction-row,
:root[data-theme="light"] .setting-row,
:root[data-theme="light"] .detail-panel,
:root[data-theme="light"] .bank-tile,
:root[data-theme="light"] .success-card,
:root[data-theme="light"] .date-picker,
:root[data-theme="light"] .chart-card,
:root[data-theme="light"] .profile-card,
:root[data-theme="light"] .linked-account-row,
:root[data-theme="light"] .history-summary-grid .stat-card,
:root[data-theme="light"] .rules-card,
:root[data-theme="light"] .action-modal {
  color: var(--neo-text);
  border-color: rgba(71, 112, 160, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(236, 247, 255, 0.66) 48%, rgba(214, 230, 243, 0.5)),
    #f8fcff;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.95),
    inset -10px -12px 22px rgba(181, 205, 225, 0.18),
    -8px -8px 18px rgba(255, 255, 255, 0.85),
    12px 14px 28px rgba(70, 108, 145, 0.18);
}

:root[data-theme="light"] .wallet-line,
:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .va-form-panel,
:root[data-theme="light"] .va-form-panel.compact {
  background:
    radial-gradient(circle at 96% 8%, rgba(14, 165, 233, 0.14), transparent 5rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 244, 253, 0.72)),
    #f8fcff;
}

:root[data-theme="light"] .script-logo,
:root[data-theme="light"] .field-label,
:root[data-theme="light"] .view-title,
:root[data-theme="light"] .form-heading h2,
:root[data-theme="light"] .va-form-panel.compact .form-heading h2,
:root[data-theme="light"] .wallet-line strong,
:root[data-theme="light"] .metric-card strong,
:root[data-theme="light"] .history-summary-grid .stat-card strong,
:root[data-theme="light"] .stat-card strong {
  color: #10243e;
  text-shadow: none;
}

:root[data-theme="light"] .wallet-line strong,
:root[data-theme="light"] .metric-card strong,
:root[data-theme="light"] .amount.positive {
  color: #007f91;
}

:root[data-theme="light"] .form-heading p,
:root[data-theme="light"] .view-subtitle,
:root[data-theme="light"] .metric-card span,
:root[data-theme="light"] .metric-card small,
:root[data-theme="light"] .wallet-line span,
:root[data-theme="light"] .muted,
:root[data-theme="light"] .setting-row span,
:root[data-theme="light"] .detail-row span,
:root[data-theme="light"] .linked-account-row small {
  color: rgba(50, 68, 92, 0.72);
}

:root[data-theme="light"] .tool-icon,
:root[data-theme="light"] .expand-theme,
:root[data-theme="light"] .ghost-btn,
:root[data-theme="light"] .mode-switch,
:root[data-theme="light"] .mode-switch button,
:root[data-theme="light"] .chip,
:root[data-theme="light"] .history-shortcut,
:root[data-theme="light"] .modal-close,
:root[data-theme="light"] .icon-btn,
:root[data-theme="light"] .va-form-panel.compact .mode-switch,
:root[data-theme="light"] .va-form-panel.compact .bank-tile,
:root[data-theme="light"] .va-form-panel.compact .mode-switch button {
  color: #0f6f86;
  border-color: rgba(71, 112, 160, 0.13);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(225, 239, 250, 0.76)),
    #f5fbff;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.96),
    inset -7px -8px 15px rgba(176, 202, 224, 0.18),
    -6px -6px 14px rgba(255, 255, 255, 0.9),
    8px 10px 19px rgba(71, 105, 138, 0.16);
}

:root[data-theme="light"] .tool-icon.is-on,
:root[data-theme="light"] .expand-theme.toggled,
:root[data-theme="light"] .chip.active,
:root[data-theme="light"] .mode-switch button.active,
:root[data-theme="light"] .nav-item.active,
:root[data-theme="light"] .primary-btn,
:root[data-theme="light"] .copy-btn,
:root[data-theme="light"] .withdraw-inline,
:root[data-theme="light"] .bank-tile.selected,
:root[data-theme="light"] .va-form-panel.compact .primary-btn,
:root[data-theme="light"] .va-form-panel.compact .mode-switch button.active,
:root[data-theme="light"] .va-form-panel.compact .bank-tile.selected {
  color: #ffffff;
  border-color: rgba(14, 165, 233, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04) 44%),
    linear-gradient(135deg, #11cfe2 0%, #0ea5e9 52%, #2563eb 100%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.4),
    0 12px 24px rgba(14, 165, 233, 0.28),
    8px 10px 20px rgba(59, 92, 128, 0.18);
}

:root[data-theme="light"] .text-input,
:root[data-theme="light"] .select-input,
:root[data-theme="light"] .va-form-panel.compact .text-input {
  color: #10243e;
  border-color: rgba(71, 112, 160, 0.16);
  background:
    linear-gradient(180deg, rgba(219, 234, 246, 0.9), rgba(255, 255, 255, 0.92)),
    #ffffff;
  box-shadow:
    inset 6px 7px 15px rgba(101, 137, 170, 0.15),
    inset -6px -6px 14px rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .text-input::placeholder {
  color: rgba(63, 83, 112, 0.56);
}

:root[data-theme="light"] .bank-tile.selected .bank-name,
:root[data-theme="light"] .va-form-panel.compact .bank-tile.selected .bank-name,
:root[data-theme="light"] .nav-item.active svg,
:root[data-theme="light"] .nav-item.active span {
  color: #ffffff;
}

:root[data-theme="light"] .bottom-nav {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(225, 238, 249, 0.8)),
    #f8fcff;
}

:root[data-theme="light"] .nav-item {
  color: rgba(44, 65, 94, 0.58);
}

:root[data-theme="light"] .nav-item svg {
  color: rgba(44, 65, 94, 0.58);
  filter: none;
}

/* V11 refinements: clean bank marks, brighter light nav, account icons, audio toolbar. */
.toolbar-pill {
  align-items: center;
  justify-content: center;
}

.tool-icon,
.expand-theme {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  line-height: 1;
}

.tool-icon svg,
.expand-theme svg {
  display: block;
  margin: 0;
}

.bank-tile-logo .bank-logo,
.va-form-panel.compact .bank-tile-logo .bank-logo {
  display: inline-grid;
  place-items: center;
  overflow: visible;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.88) 58%, rgba(218, 232, 246, 0.86));
}

.bank-mark {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  color: #0f2744;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.bank-mark-msb {
  position: relative;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 4px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(16, 36, 62, 0.08);
}

.bank-mark-msb span {
  width: 8px;
  height: 8px;
  border-radius: 2px 7px 2px 7px;
  transform: rotate(45deg);
}

.bank-mark-msb span:nth-child(1) {
  background: #e51b2b;
}

.bank-mark-msb span:nth-child(2) {
  background: #111827;
}

.bank-mark-msb span:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  background: #f59e0b;
}

.bank-mark-bidv {
  width: auto;
  min-width: 27px;
  height: 18px;
  padding: 0 3px;
  border-radius: 5px;
  color: #ffffff;
  background:
    linear-gradient(135deg, #0a8f6a 0%, #006d8f 100%);
  font-size: 6.5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 3px 8px rgba(0, 109, 143, 0.24);
}

:root[data-theme="light"] .bank-tile-logo .bank-logo,
:root[data-theme="light"] .va-form-panel.compact .bank-tile-logo .bank-logo {
  background:
    radial-gradient(circle at 35% 25%, #ffffff, #f2f8ff 64%, #ddebf6);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 16px rgba(59, 92, 128, 0.18);
}

:root[data-theme="light"] .bottom-nav {
  border-top: 1px solid rgba(76, 115, 160, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 253, 0.93)),
    #ffffff;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.96),
    0 -10px 30px rgba(68, 105, 145, 0.14);
}

:root[data-theme="light"] .nav-item {
  color: #49627f;
  background: rgba(255, 255, 255, 0.46);
}

:root[data-theme="light"] .nav-item svg,
:root[data-theme="light"] .nav-item span {
  color: #49627f;
}

:root[data-theme="light"] .nav-item.active {
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #20cfe0 0%, #0ea5e9 55%, #2563eb 100%);
  box-shadow:
    0 12px 24px rgba(14, 165, 233, 0.26),
    inset 1px 1px 0 rgba(255, 255, 255, 0.34);
}

:root[data-theme="light"] .nav-item.active svg,
:root[data-theme="light"] .nav-item.active span {
  color: #ffffff;
}

:root[data-theme="light"] .wallet-line,
:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .stat-card,
:root[data-theme="light"] .va-form-panel,
:root[data-theme="light"] .va-card,
:root[data-theme="light"] .transaction-row,
:root[data-theme="light"] .setting-row,
:root[data-theme="light"] .detail-panel,
:root[data-theme="light"] .date-picker,
:root[data-theme="light"] .chart-card,
:root[data-theme="light"] .profile-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.16), transparent 5.6rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 247, 255, 0.72) 55%, rgba(218, 235, 248, 0.7)),
    #ffffff;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.98),
    inset -14px -16px 30px rgba(181, 205, 225, 0.16),
    -9px -9px 18px rgba(255, 255, 255, 0.88),
    14px 17px 34px rgba(70, 108, 145, 0.2);
}

:root[data-theme="light"] .wallet-line::before,
:root[data-theme="light"] .metric-card::before,
:root[data-theme="light"] .va-form-panel::before,
:root[data-theme="light"] .setting-row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.8), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(20, 184, 166, 0.16), transparent 4.8rem);
}

:root[data-theme="light"] .setting-row {
  grid-template-columns: auto 1fr auto;
  min-height: 74px;
}

.setting-row .row-icon {
  border-radius: 18px;
}

.setting-list .setting-row:nth-child(1) .row-icon {
  background: linear-gradient(145deg, #0ea5e9, #2563eb);
}

.setting-list .setting-row:nth-child(2) .row-icon {
  background: linear-gradient(145deg, #14b8a6, #0f766e);
}

.setting-list .setting-row:nth-child(3) .row-icon {
  background: linear-gradient(145deg, #f59e0b, #ef4444);
}

:root[data-theme="light"] .setting-row .row-icon {
  color: #ffffff;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 20px rgba(14, 165, 233, 0.18);
}

/* V12 light contrast fix: remove washed-out veil and strengthen readable surfaces. */
:root[data-theme="light"] .mini-app::before {
  opacity: 0.12;
}

:root[data-theme="light"] .mini-app::after {
  opacity: 0.16;
}

:root[data-theme="light"] .profile-card,
:root[data-theme="light"] .setting-row,
:root[data-theme="light"] .wallet-line,
:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .va-form-panel,
:root[data-theme="light"] .chart-card,
:root[data-theme="light"] .stat-card {
  border-color: rgba(53, 93, 140, 0.18);
  background:
    radial-gradient(circle at 96% 0%, rgba(14, 165, 233, 0.18), transparent 5.8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(238, 248, 255, 0.92) 54%, rgba(222, 239, 251, 0.86)),
    #ffffff;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 1),
    -8px -8px 18px rgba(255, 255, 255, 0.92),
    12px 16px 32px rgba(53, 93, 140, 0.22);
}

:root[data-theme="light"] .profile-card strong,
:root[data-theme="light"] .setting-row strong,
:root[data-theme="light"] .linked-account-row strong,
:root[data-theme="light"] .tx-main strong,
:root[data-theme="light"] .va-main strong {
  color: #0f223a;
  opacity: 1;
}

:root[data-theme="light"] .profile-card .muted,
:root[data-theme="light"] .setting-row > span > span,
:root[data-theme="light"] .setting-row span span,
:root[data-theme="light"] .linked-account-row small {
  color: #52677f;
  opacity: 1;
}

:root[data-theme="light"] .bottom-nav {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(232, 244, 253, 0.98)),
    #ffffff;
}

:root[data-theme="light"] .nav-item,
:root[data-theme="light"] .nav-item svg,
:root[data-theme="light"] .nav-item span {
  color: #344760;
  opacity: 1;
}

:root[data-theme="light"] .profile-card .avatar {
  color: #ffffff;
  background: linear-gradient(145deg, #20cfe0, #2563eb);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.38),
    0 12px 24px rgba(14, 165, 233, 0.24);
}

/* V13 header/logo typography polish. */
html,
body,
button,
input,
select,
textarea {
  font-family: system-ui, sans-serif;
  text-rendering: geometricPrecision;
}

button,
input,
select,
textarea,
.nav-item,
.tool-icon,
.expand-theme,
.bank-tile,
.metric-card,
.wallet-line,
.setting-row,
.transaction-row {
  line-height: 1.2;
}

.topbar {
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-left)) 9px max(12px, env(safe-area-inset-right));
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 62%),
    linear-gradient(145deg, rgba(7, 13, 30, 0.9), rgba(11, 23, 47, 0.66));
}

.notice-ticker {
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(4, 12, 28, 0.18)),
    rgba(13, 25, 48, 0.66);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 22px rgba(0, 0, 0, 0.16);
}

.brand-row {
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 0 2px;
}

.script-logo {
  font-style: normal;
  font-family: system-ui, sans-serif;
  font-size: clamp(16px, 4.5vw, 19px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.22),
    0 0 16px rgba(21, 237, 242, 0.14);
}

.toolbar-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 6px;
  border-radius: 999px;
}

.toolbar-pill > span {
  align-self: center;
  height: 15px;
  margin: 0 1px;
}

.toolbar-pill .tool-icon,
.toolbar-pill .expand-theme {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 25px;
  min-width: 25px;
  height: 25px;
  min-height: 25px;
  padding: 0;
  border-radius: 999px;
  line-height: 1;
  vertical-align: middle;
}

.toolbar-pill .tool-icon svg,
.toolbar-pill .expand-theme svg {
  position: static;
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
  transform: none;
}

.toolbar-pill .expand-theme__halo,
.toolbar-pill .expand-theme__dot {
  display: none;
}

.toolbar-pill .expand-theme__icon {
  position: static;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  transform: none !important;
}

.toolbar-pill .lang-btn {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.va-form-panel.compact .form-heading h2,
.form-heading h2 {
  font-weight: 950;
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-transform: uppercase;
}

.form-heading p,
.field-label,
.bank-name,
.nav-item span,
.metric-card span,
.metric-card small,
.wallet-line span,
.setting-row strong,
.setting-row span {
  line-height: 1.25;
}

.bank-grid {
  align-items: stretch;
}

.bank-tile-logo,
.va-form-panel.compact .bank-tile-logo {
  min-height: 54px;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 20px;
}

.bank-tile-logo[data-bank="MSB"] {
  color: #ffffff;
  background:
    linear-gradient(100deg, #1f5fc9 0%, #1666b7 43%, #157878 100%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.24),
    inset -16px -12px 30px rgba(0, 64, 80, 0.2),
    0 16px 28px rgba(17, 94, 160, 0.24);
}

.bank-tile-logo[data-bank="BIDV"] {
  color: #83314f;
  background:
    radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.94), transparent 2.8rem),
    linear-gradient(100deg, rgba(255, 255, 255, 0.9) 0%, rgba(254, 242, 249, 0.9) 52%, rgba(247, 214, 229, 0.82) 100%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.82),
    inset -12px -14px 28px rgba(205, 131, 166, 0.13),
    0 16px 28px rgba(120, 60, 86, 0.16);
}

.bank-tile-logo .bank-logo,
.va-form-panel.compact .bank-tile-logo .bank-logo {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.9),
    0 7px 15px rgba(23, 38, 60, 0.2);
}

.bank-tile-logo .bank-name {
  color: currentColor;
  font-size: clamp(20px, 6vw, 29px);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1;
}

.bank-mark {
  width: 32px;
  height: 32px;
}

.bank-mark-msb {
  display: grid;
  grid-template-columns: 7px auto;
  column-gap: 2px;
  width: 32px;
  height: 32px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
}

.bank-mark-msb::after {
  content: "MSB";
  align-self: center;
  color: #111827;
  font-size: 6.5px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.bank-mark-msb span {
  grid-column: 1;
  width: 4px;
  height: 4px;
  border-radius: 1px 4px 1px 4px;
}

.bank-mark-msb span:nth-child(1) {
  align-self: end;
  background: #e51b2b;
}

.bank-mark-msb span:nth-child(2) {
  align-self: center;
  background: #e51b2b;
}

.bank-mark-msb span:nth-child(3) {
  grid-column: 1;
  align-self: start;
  justify-self: auto;
  background: #e51b2b;
}

.bank-mark-bidv {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  color: #00846f;
  background: #ffffff;
  font-size: 6.5px;
  font-weight: 950;
  letter-spacing: -0.045em;
  box-shadow: none;
}

.bank-mark-bidv::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 1px;
  border-radius: 999px;
  background: #f5bb18;
  box-shadow:
    3px 0 0 -1px #f5bb18,
    1px 3px 0 -1px #f5bb18;
}

:root[data-theme="light"] .topbar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(225, 244, 252, 0.72));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 30px rgba(68, 105, 145, 0.1);
}

:root[data-theme="light"] .notice-ticker {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 244, 252, 0.78));
}

:root[data-theme="light"] .bank-tile-logo[data-bank="MSB"],
:root[data-theme="light"] .bank-tile-logo[data-bank="BIDV"] {
  border-color: rgba(255, 255, 255, 0.42);
}

/* V14 compact header alignment, VNI typography and calmer click feedback. */
* {
  font-family: system-ui, sans-serif !important;
}

body,
.mini-app,
.content,
.screen,
.topbar,
.bottom-nav,
.wallet-line,
.metric-card,
.va-form-panel,
.transaction-row,
.setting-row,
.detail-panel,
.bank-tile {
  animation: none !important;
}

:root.theme-flip .mini-app,
:root.theme-flip .mini-app::before {
  animation: none !important;
}

.topbar {
  padding: calc(9px + env(safe-area-inset-top)) max(13px, env(safe-area-inset-left)) 8px max(13px, env(safe-area-inset-right));
  border-radius: 0 0 22px 22px;
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 6px 0 1px;
}

.script-logo {
  font-style: normal !important;
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 900;
  letter-spacing: -0.018em;
  line-height: 1.1;
  transform: none !important;
}

.toolbar-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 33px;
  padding: 3px 5px;
  border-radius: 999px;
  flex-wrap: nowrap;
}

.toolbar-pill > span {
  display: block;
  width: 1px;
  height: 13px;
  margin: 0;
  align-self: center;
  opacity: 0.72;
}

.toolbar-pill .tool-icon,
.toolbar-pill .expand-theme,
.toolbar-pill .expand-theme.toggled {
  display: inline-grid !important;
  place-items: center !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  text-align: center;
  transform: none;
  transition:
    transform 0.12s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.toolbar-pill .tool-icon svg,
.toolbar-pill .expand-theme svg,
.toolbar-pill .tool-icon i,
.toolbar-pill .expand-theme i {
  position: static !important;
  display: block !important;
  width: 13.5px !important;
  height: 13.5px !important;
  margin: 0 !important;
  transform: none !important;
}

.toolbar-pill .expand-theme__halo,
.toolbar-pill .expand-theme__dot {
  display: none !important;
}

.toolbar-pill .expand-theme__icon {
  position: static !important;
  display: grid !important;
  place-items: center !important;
  width: 13.5px !important;
  height: 13.5px !important;
  transform: none !important;
}

.toolbar-pill .lang-btn {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.tool-icon:active,
.expand-theme:active,
.nav-item:active,
.primary-btn:active,
.withdraw-inline:active,
.bank-tile:active,
.mode-switch button:active,
.history-shortcut:active,
.copy-btn:active,
.ghost-btn:active,
.icon-btn:active {
  transform: scale(0.94) !important;
  filter: brightness(1.08);
}

.screen,
.content,
.home-stats-grid,
.va-form-panel,
.bottom-nav {
  transition: none !important;
}

.va-form-panel.compact .form-heading {
  gap: 10px;
  align-items: flex-start;
}

.va-form-panel.compact .form-heading h2,
.form-heading h2 {
  font-size: clamp(17px, 4.9vw, 20px);
  font-weight: 950;
  letter-spacing: -0.018em;
  line-height: 1.14;
  text-transform: uppercase;
}

.va-form-panel.compact .form-heading p,
.form-heading p,
.field-label {
  font-size: 11.5px;
  line-height: 1.32;
}

.bank-grid {
  gap: 9px;
}

.bank-tile-logo,
.va-form-panel.compact .bank-tile-logo {
  min-height: 50px;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 18px;
}

.bank-tile-logo .bank-logo,
.va-form-panel.compact .bank-tile-logo .bank-logo {
  display: inline-grid !important;
  place-items: center !important;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  background: #ffffff !important;
}

.bank-tile-logo .bank-name {
  font-size: clamp(18px, 5.3vw, 26px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.bank-mark,
.bank-mark-msb,
.bank-mark-bidv {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.bank-mark-msb {
  grid-template-columns: 8px auto !important;
  column-gap: 2px;
  padding: 0 4px !important;
}

.bank-mark-msb::after {
  content: "MSB";
  align-self: center;
  justify-self: start;
  color: #161b24;
  font-size: 6.7px;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
}

.bank-mark-msb span {
  grid-column: 1 !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 1px 4px 1px 4px !important;
  background: #e31b2f !important;
  transform: rotate(45deg) !important;
}

.bank-mark-msb span:nth-child(1) {
  align-self: end;
}

.bank-mark-msb span:nth-child(2) {
  align-self: center;
}

.bank-mark-msb span:nth-child(3) {
  align-self: start;
  justify-self: auto !important;
}

.bank-mark-bidv {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px;
  color: #008574 !important;
  font-size: 6.5px !important;
  font-weight: 950 !important;
  letter-spacing: -0.055em !important;
  line-height: 1 !important;
}

.bank-mark-bidv::after {
  content: "";
  display: block;
  width: 4.5px;
  height: 4.5px;
  margin-left: 0;
  border-radius: 999px;
  background: #f6bd16;
  box-shadow:
    2.8px 0 0 -1px #f6bd16,
    1px 2.8px 0 -1px #f6bd16;
}

.wallet-line,
.metric-card,
.va-form-panel,
.transaction-row,
.setting-row,
.detail-panel,
.profile-card {
  border-radius: 18px;
}

.home-stats-grid {
  gap: 9px;
}

.metric-card {
  padding: 13px;
}

.metric-card span,
.wallet-line span,
.field-label,
.form-heading p,
.bank-name,
.nav-item span {
  word-break: keep-all;
}

/* V15 dark contrast: brighter secondary text and clearer surface separation. */
:root[data-theme="dark"] {
  --muted: #b7c8df;
  --v2-muted: #b9c9e2;
  --neo-muted: #b9c9e2;
  --neo-text: #f8fbff;
}

:root[data-theme="dark"] .mini-app {
  background:
    radial-gradient(circle at 16% 5%, rgba(54, 92, 180, 0.23), transparent 13rem),
    radial-gradient(circle at 93% 20%, rgba(17, 199, 203, 0.16), transparent 12rem),
    linear-gradient(180deg, #071222 0%, #091827 44%, #06101d 100%);
}

:root[data-theme="dark"] .topbar {
  background:
    linear-gradient(180deg, rgba(21, 37, 66, 0.94), rgba(9, 20, 36, 0.74));
  box-shadow:
    inset 0 -1px 0 rgba(133, 184, 230, 0.12),
    0 14px 32px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .notice-ticker,
:root[data-theme="dark"] .toolbar-pill {
  background:
    linear-gradient(145deg, rgba(31, 49, 82, 0.88), rgba(9, 22, 41, 0.92));
  border-color: rgba(113, 164, 216, 0.17);
}

:root[data-theme="dark"] .script-logo,
:root[data-theme="dark"] .field-label,
:root[data-theme="dark"] .view-title,
:root[data-theme="dark"] .form-heading h2,
:root[data-theme="dark"] .va-form-panel.compact .form-heading h2,
:root[data-theme="dark"] .setting-row strong,
:root[data-theme="dark"] .transaction-row strong,
:root[data-theme="dark"] .va-main strong,
:root[data-theme="dark"] .profile-card strong {
  color: #f8fbff;
}

:root[data-theme="dark"] .form-heading p,
:root[data-theme="dark"] .view-subtitle,
:root[data-theme="dark"] .metric-card span,
:root[data-theme="dark"] .metric-card small,
:root[data-theme="dark"] .wallet-line span,
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .setting-row span,
:root[data-theme="dark"] .detail-row span,
:root[data-theme="dark"] .va-main span,
:root[data-theme="dark"] .tx-main span,
:root[data-theme="dark"] .linked-account-row small {
  color: #b7c8df;
  opacity: 1;
}

:root[data-theme="dark"] .wallet-line,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .va-form-panel,
:root[data-theme="dark"] .va-card,
:root[data-theme="dark"] .transaction-row,
:root[data-theme="dark"] .setting-row,
:root[data-theme="dark"] .detail-panel,
:root[data-theme="dark"] .profile-card,
:root[data-theme="dark"] .history-summary-grid .stat-card {
  border-color: rgba(112, 164, 218, 0.18);
  background:
    radial-gradient(circle at 92% 10%, rgba(22, 199, 205, 0.16), transparent 5rem),
    linear-gradient(145deg, rgba(23, 41, 70, 0.94), rgba(10, 24, 43, 0.96));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.055),
    inset -12px -14px 28px rgba(0, 0, 0, 0.14),
    0 14px 30px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .wallet-line {
  background:
    radial-gradient(circle at 91% 18%, rgba(21, 237, 242, 0.22), transparent 5.8rem),
    linear-gradient(135deg, rgba(24, 63, 102, 0.96), rgba(12, 29, 54, 0.98) 54%, rgba(8, 22, 42, 0.98));
  border-color: rgba(21, 237, 242, 0.22);
}

:root[data-theme="dark"] .metric-card:nth-child(2),
:root[data-theme="dark"] .metric-card:nth-child(4) {
  background:
    radial-gradient(circle at 86% 18%, rgba(79, 140, 255, 0.18), transparent 5rem),
    linear-gradient(145deg, rgba(23, 39, 75, 0.95), rgba(10, 23, 43, 0.98));
}

:root[data-theme="dark"] .metric-card:nth-child(3),
:root[data-theme="dark"] .metric-card:nth-child(5) {
  background:
    radial-gradient(circle at 86% 18%, rgba(21, 237, 190, 0.16), transparent 5rem),
    linear-gradient(145deg, rgba(19, 51, 68, 0.95), rgba(8, 25, 41, 0.98));
}

:root[data-theme="dark"] .metric-card:nth-child(6) {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 186, 73, 0.16), transparent 5rem),
    linear-gradient(145deg, rgba(52, 42, 31, 0.95), rgba(19, 24, 37, 0.98));
}

:root[data-theme="dark"] .wallet-line strong,
:root[data-theme="dark"] .metric-card strong,
:root[data-theme="dark"] .stat-card strong,
:root[data-theme="dark"] .history-summary-grid .stat-card strong {
  color: #21eef2;
  text-shadow: 0 0 18px rgba(33, 238, 242, 0.18);
}

:root[data-theme="dark"] .metric-card:nth-child(3) strong,
:root[data-theme="dark"] .metric-card:nth-child(5) strong {
  color: #37e4bc;
  text-shadow: 0 0 18px rgba(55, 228, 188, 0.16);
}

:root[data-theme="dark"] .metric-card:nth-child(6) strong {
  color: #ffd27a;
  text-shadow: 0 0 18px rgba(255, 210, 122, 0.14);
}

:root[data-theme="dark"] .va-form-panel,
:root[data-theme="dark"] .va-form-panel.compact {
  background:
    radial-gradient(circle at 88% 5%, rgba(21, 237, 242, 0.16), transparent 6rem),
    radial-gradient(circle at 8% 92%, rgba(79, 140, 255, 0.13), transparent 7rem),
    linear-gradient(145deg, rgba(20, 38, 66, 0.98), rgba(8, 20, 38, 0.98));
}

:root[data-theme="dark"] .text-input,
:root[data-theme="dark"] .select-input,
:root[data-theme="dark"] .va-form-panel.compact .text-input {
  color: #f8fbff;
  border-color: rgba(130, 180, 230, 0.22);
  background:
    linear-gradient(145deg, rgba(29, 49, 78, 0.88), rgba(13, 27, 48, 0.94));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 18px rgba(0, 0, 0, 0.16);
}

:root[data-theme="dark"] .text-input::placeholder {
  color: #93a8c2;
  opacity: 1;
}

:root[data-theme="dark"] .mode-switch,
:root[data-theme="dark"] .mode-switch button,
:root[data-theme="dark"] .bank-tile,
:root[data-theme="dark"] .ghost-btn,
:root[data-theme="dark"] .history-shortcut {
  color: #c7d8ee;
  border-color: rgba(124, 174, 226, 0.18);
  background:
    linear-gradient(145deg, rgba(26, 45, 76, 0.9), rgba(12, 27, 49, 0.96));
}

:root[data-theme="dark"] .mode-switch button.active,
:root[data-theme="dark"] .bank-tile.selected,
:root[data-theme="dark"] .primary-btn,
:root[data-theme="dark"] .withdraw-inline {
  color: #ffffff;
  background:
    linear-gradient(135deg, #21d7e7 0%, #2289ff 58%, #4f6df6 100%);
  border-color: rgba(33, 238, 242, 0.32);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 26px rgba(34, 137, 255, 0.22);
}

:root[data-theme="dark"] .bank-tile-logo[data-bank="MSB"] {
  background:
    linear-gradient(100deg, #1d63d7 0%, #1577b6 45%, #168282 100%);
}

:root[data-theme="dark"] .bank-tile-logo[data-bank="BIDV"] {
  color: #873657;
  background:
    radial-gradient(circle at 75% 16%, rgba(255, 255, 255, 0.9), transparent 3.6rem),
    linear-gradient(100deg, rgba(255, 255, 255, 0.9), rgba(252, 230, 241, 0.88));
}

:root[data-theme="dark"] .bottom-nav {
  border-color: rgba(112, 164, 218, 0.18);
  background:
    linear-gradient(145deg, rgba(22, 38, 66, 0.96), rgba(9, 21, 39, 0.98));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.055),
    0 -12px 30px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .nav-item {
  color: #adc1dc;
  background: rgba(20, 35, 59, 0.36);
}

:root[data-theme="dark"] .nav-item svg,
:root[data-theme="dark"] .nav-item span {
  color: #adc1dc;
  opacity: 1;
}

:root[data-theme="dark"] .nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, #21d7e7, #2289ff);
}

:root[data-theme="dark"] .nav-item.active svg,
:root[data-theme="dark"] .nav-item.active span {
  color: #ffffff;
}

/* Final BANK CENTER overrides for the active dark theme. */
:root[data-theme="dark"] body {
  background:
    linear-gradient(rgba(6, 28, 46, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 28, 46, 0.46) 1px, transparent 1px),
    linear-gradient(150deg, #020812 0%, #041525 48%, #02070f 100%);
  background-size: 46px 46px, 46px 46px, auto;
}

:root[data-theme="dark"] .mini-app {
  background:
    linear-gradient(180deg, rgba(4, 19, 34, 0.98), rgba(2, 9, 18, 0.99)),
    var(--bc-bg);
  border-color: rgba(99, 245, 255, 0.18);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(150, 248, 255, 0.08);
}

:root[data-theme="dark"] .topbar {
  background:
    linear-gradient(180deg, rgba(2, 12, 23, 0.96), rgba(4, 17, 30, 0.82)),
    linear-gradient(90deg, rgba(99, 245, 255, 0.08), transparent 42%, rgba(58, 157, 255, 0.1));
  box-shadow: none;
}

:root[data-theme="dark"] .notice-ticker,
:root[data-theme="dark"] .toolbar-pill {
  border-color: rgba(99, 245, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(98, 242, 200, 0.11), rgba(58, 157, 255, 0.1)),
    rgba(2, 13, 26, 0.72);
}

:root[data-theme="dark"] .bank-center-brand__copy strong,
:root[data-theme="dark"] .bank-center-brand__copy small,
:root[data-theme="dark"] .bank-center-brand__mark {
  color: var(--bc-text);
}

:root[data-theme="dark"] .bank-center-brand__mark {
  color: var(--bc-cyan);
}

:root[data-theme="dark"] .wallet-line,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .va-form-panel,
:root[data-theme="dark"] .va-card,
:root[data-theme="dark"] .transaction-row,
:root[data-theme="dark"] .setting-row,
:root[data-theme="dark"] .detail-panel,
:root[data-theme="dark"] .date-picker,
:root[data-theme="dark"] .chart-card,
:root[data-theme="dark"] .bank-tile,
:root[data-theme="dark"] .success-card {
  border-color: var(--bc-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    var(--bc-card);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(218, 255, 255, 0.045);
}

:root[data-theme="dark"] .wallet-line {
  border-color: rgba(98, 242, 200, 0.34);
  background:
    linear-gradient(135deg, rgba(12, 53, 69, 0.92), rgba(5, 22, 42, 0.96)),
    var(--bc-card);
}

:root[data-theme="dark"] .va-form-panel,
:root[data-theme="dark"] .va-form-panel.compact {
  border-color: rgba(99, 245, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(10, 46, 67, 0.9), rgba(5, 19, 37, 0.97)),
    var(--bc-card-strong);
}

:root[data-theme="dark"] .metric-card strong,
:root[data-theme="dark"] .stat-card strong,
:root[data-theme="dark"] .wallet-line strong {
  color: var(--bc-cyan);
}

:root[data-theme="dark"] .metric-card:nth-child(3) strong,
:root[data-theme="dark"] .metric-card:nth-child(5) strong {
  color: var(--bc-mint);
}

:root[data-theme="dark"] .text-input,
:root[data-theme="dark"] .select-input,
:root[data-theme="dark"] .va-form-panel.compact .text-input {
  border-color: rgba(99, 245, 255, 0.2);
  background: rgba(1, 12, 24, 0.7);
}

:root[data-theme="dark"] .mode-switch,
:root[data-theme="dark"] .mode-switch button,
:root[data-theme="dark"] .ghost-btn,
:root[data-theme="dark"] .history-shortcut {
  border-color: rgba(99, 245, 255, 0.2);
  background: rgba(2, 17, 31, 0.64);
}

:root[data-theme="dark"] .mode-switch button.active,
:root[data-theme="dark"] .bank-tile.selected,
:root[data-theme="dark"] .primary-btn,
:root[data-theme="dark"] .withdraw-inline {
  color: #021821;
  border-color: rgba(99, 245, 255, 0.46);
  background: linear-gradient(135deg, var(--bc-cyan), var(--bc-blue) 58%, var(--bc-mint));
  box-shadow: 0 16px 30px rgba(45, 157, 255, 0.2);
}

:root[data-theme="dark"] .bottom-nav {
  border-color: rgba(99, 245, 255, 0.2);
  background: rgba(2, 13, 25, 0.88);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(218, 255, 255, 0.06);
}

:root[data-theme="dark"] .nav-item {
  color: #7899ac;
  background: transparent;
}

:root[data-theme="dark"] .nav-item.active,
:root[data-theme="dark"] .nav-item.active svg,
:root[data-theme="dark"] .nav-item.active span {
  color: #021821;
}

:root[data-theme="dark"] .nav-item.active {
  background: linear-gradient(135deg, var(--bc-cyan), var(--bc-mint));
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(rgba(1, 8, 17, 0.88), rgba(1, 8, 17, 0.96)),
    url("/assets/bank-center-banner.png") center / cover fixed no-repeat;
}

:root[data-theme="dark"] .mini-app::before {
  background:
    linear-gradient(180deg, rgba(2, 12, 23, 0.68), rgba(2, 9, 18, 0.9)),
    url("/assets/bank-center-banner.png") center 24% / cover no-repeat;
  opacity: 0.54;
  filter: saturate(0.82) brightness(0.72) contrast(0.94);
  mix-blend-mode: normal;
}

:root[data-theme="light"] body {
  background:
    linear-gradient(rgba(225, 242, 248, 0.88), rgba(237, 247, 251, 0.96)),
    url("/assets/bank-center-banner.png") center / cover fixed no-repeat;
}

:root[data-theme="light"] .mini-app::before {
  background:
    linear-gradient(180deg, rgba(237, 249, 252, 0.72), rgba(231, 245, 250, 0.9)),
    url("/assets/bank-center-banner.png") center 24% / cover no-repeat;
  opacity: 0.5;
  filter: saturate(0.72) brightness(1.08) contrast(0.9);
  mix-blend-mode: normal;
}

/* Final control alignment pass: shared sizes, centered icons and pill buttons. */
.tool-icon,
.expand-theme,
.icon-btn,
.modal-close,
.history-shortcut,
.launchpad-action__icon,
.action-icon,
.metric-icon,
.row-icon,
.tx-icon,
.success-icon {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  align-content: center;
  padding: 0;
  line-height: 0;
}

.tool-icon,
.expand-theme {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  border-radius: 999px;
  text-align: center;
}

.toolbar-pill .tool-icon,
.toolbar-pill .expand-theme,
.toolbar-pill .expand-theme.toggled {
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  border-radius: 999px !important;
}

.tool-icon > svg,
.tool-icon > i,
.expand-theme > svg,
.expand-theme > i,
.toolbar-pill .expand-theme__icon,
.toolbar-pill .expand-theme__icon > svg,
.toolbar-pill .expand-theme__icon > i {
  display: block;
  flex: 0 0 auto;
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  transform: none !important;
}

.toolbar-pill .expand-theme__icon {
  display: inline-grid !important;
  place-items: center !important;
  line-height: 0;
}

.toolbar-pill .expand-theme__halo,
.toolbar-pill .expand-theme__dot {
  display: none !important;
}

.toolbar-pill .lang-btn {
  line-height: 1 !important;
}

.icon-btn,
.history-shortcut {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 999px;
}

.modal-close {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 999px;
}

.icon-btn > svg,
.icon-btn > i,
.modal-close > svg,
.modal-close > i,
.history-shortcut > svg,
.history-shortcut > i {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  transform: none;
}

.action-icon,
.metric-icon,
.row-icon,
.tx-icon {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 50%;
}

.action-icon > svg,
.action-icon > i,
.metric-icon > svg,
.metric-icon > i,
.row-icon > svg,
.row-icon > i,
.tx-icon > svg,
.tx-icon > i {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  transform: none;
}

.detail-hero .tx-icon {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
}

.detail-hero .tx-icon > svg,
.detail-hero .tx-icon > i {
  width: 22px;
  height: 22px;
}

.success-icon {
  border-radius: 50%;
}

.success-icon > svg,
.success-icon > i {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0;
  transform: none;
}

.launchpad-action {
  align-items: center;
  line-height: 1.1;
}

.launchpad-action > span:last-child {
  min-width: 0;
}

.launchpad-action__icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 50%;
}

.launchpad-action__icon > svg,
.launchpad-action__icon > i {
  display: block;
  width: 17px;
  height: 17px;
  margin: 0;
  transform: none;
}

.bank-center-hero__topline span,
.hero-withdraw,
.primary-btn,
.ghost-btn,
.copy-btn,
.mini-btn,
.mode-switch button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.bank-center-hero__topline span {
  line-height: 1;
}

.bank-center-hero__topline span > svg,
.bank-center-hero__topline span > i,
.hero-withdraw > svg,
.hero-withdraw > i,
.primary-btn > svg,
.primary-btn > i,
.ghost-btn > svg,
.ghost-btn > i,
.copy-btn > svg,
.copy-btn > i {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  transform: none;
}

.hero-withdraw,
.primary-btn,
.ghost-btn,
.copy-btn,
.mini-btn,
.mode-switch button,
.chip {
  border-radius: 999px;
}

.hero-withdraw {
  gap: 6px;
  padding-inline: 14px;
}

.primary-btn,
.ghost-btn,
.copy-btn {
  gap: 8px;
  padding-inline: 18px;
}

.mini-btn {
  gap: 6px;
  padding-inline: 14px;
}

.mode-switch {
  border-radius: 999px;
}

.mode-switch button {
  padding-inline: 14px;
}

.chip {
  padding-inline: 13px;
}

.va-form-panel.compact .history-shortcut {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 999px !important;
}

.va-form-panel.compact .mode-switch {
  border-radius: 999px !important;
}

.va-form-panel.compact .mode-switch button,
.va-form-panel.compact .primary-btn,
.primary-btn.mini-btn,
.ghost-btn.mini-btn {
  border-radius: 999px !important;
}

.nav-item {
  display: grid;
  grid-template-rows: 20px auto;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 52px;
  border-radius: 999px;
  line-height: 1;
}

.nav-item.active {
  border-radius: 999px !important;
}

.nav-item > svg,
.nav-item > i {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  transform: none;
}

.nav-item > span {
  display: block;
  line-height: 1.1;
  text-align: center;
}

@media (max-width: 380px) {
  .toolbar-pill .tool-icon,
  .toolbar-pill .expand-theme,
  .toolbar-pill .expand-theme.toggled {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
  }

  .toolbar-pill .tool-icon > svg,
  .toolbar-pill .expand-theme > svg,
  .toolbar-pill .tool-icon > i,
  .toolbar-pill .expand-theme > i,
  .toolbar-pill .expand-theme__icon,
  .toolbar-pill .expand-theme__icon > svg,
  .toolbar-pill .expand-theme__icon > i {
    width: 14px !important;
    height: 14px !important;
  }

  .launchpad-action {
    gap: 7px;
    padding-inline: 9px;
  }

  .launchpad-action__icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .launchpad-action__icon > svg,
  .launchpad-action__icon > i {
    width: 15px;
    height: 15px;
  }

  .action-icon,
  .metric-icon,
  .row-icon,
  .tx-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .nav-item {
    min-height: 48px;
    gap: 3px;
  }

  .nav-item > svg,
  .nav-item > i {
    width: 17px;
    height: 17px;
  }
}

/* Final admin control alignment overrides. */
.admin-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-search-box {
  flex: 1;
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-modal {
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
}

@media (max-width: 380px) {
  .admin-actions {
    grid-template-columns: 1fr;
  }
}

/* Admin Command Center modules. */
.admin-summary-grid,
.admin-form-grid {
  display: grid;
  gap: 10px;
}

.admin-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-control-card {
  display: grid;
  gap: 12px;
}

.admin-summary-tile {
  min-height: 86px;
  margin: 0;
}

.admin-module-card {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 88px;
}

.admin-module-card em {
  align-self: start;
  min-width: 34px;
  padding: 5px 8px;
  border: 1px solid rgba(99, 245, 255, 0.26);
  border-radius: 999px;
  color: var(--bc-cyan);
  background: rgba(99, 245, 255, 0.08);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.admin-module-card.status-pending em,
.status-badge.status-pending,
.status-badge.status-queued,
.status-badge.status-setup {
  color: #ffe49b;
  background: rgba(255, 228, 155, 0.12);
}

.status-badge.status-disabled,
.status-badge.status-rejected,
.status-badge.status-cancelled {
  color: #ff9fb7;
  background: rgba(255, 120, 150, 0.12);
}

.admin-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 6px 5px 12px;
  border: 1px solid rgba(99, 245, 255, 0.18);
  border-radius: 999px;
  color: var(--bc-text);
  background: rgba(2, 17, 31, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.keyword-pill .mini-btn {
  min-height: 24px;
  padding-inline: 9px;
}

.compact-check {
  min-height: 48px;
  margin: 0;
}

.admin-section-card textarea.text-input {
  min-height: 92px;
  resize: vertical;
}

@media (max-width: 520px) {
  .admin-summary-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-module-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-module-card em {
    grid-column: 2;
    justify-self: start;
  }
}

/* Final typography alignment for the compact VA creation headings. */
.form-heading h2,
.va-form-panel.compact .form-heading h2 {
  font-family: system-ui, sans-serif !important;
  font-weight: 900 !important;
  border-radius: 10px !important;
}

/* CTV identity and home wallet placement. */
.bank-center-brand {
  flex: 1 1 auto;
}

.bank-center-brand__copy {
  flex: 1 1 auto;
  overflow: hidden;
}

.bank-center-brand__copy strong {
  letter-spacing: 0;
  line-height: 1.3;
}

.toolbar-pill {
  flex: 0 0 auto;
}

.bank-center-hero__wallet {
  top: 12px;
  bottom: auto;
}

@media (max-width: 460px) {
  .bank-center-hero__wallet {
    top: 10px;
    bottom: auto;
  }
}

/* Light surfaces need their own text and accent palette. */
:root[data-theme="light"] {
  --bc-text: #10243e;
  --bc-muted: #41566d;
  --bc-cyan: #006878;
  --bc-mint: #006b57;
  --bc-card: #f4faff;
  --bc-card-strong: #e5f3fb;
  --bc-line: rgba(25, 87, 123, 0.2);
  --bc-line-strong: rgba(25, 87, 123, 0.4);
}

:root[data-theme="light"] .notice-ticker span,
:root[data-theme="light"] .bank-center-brand__copy strong {
  color: #10243e;
  text-shadow: none;
}

:root[data-theme="light"] .launchpad-action {
  color: #10243e;
  background: linear-gradient(145deg, #ffffff, #e5f3fb);
  border-color: #b7d5e3;
  box-shadow: 0 8px 20px rgba(18, 72, 125, 0.12);
}

:root[data-theme="light"] .launchpad-action strong {
  color: #10243e;
}

:root[data-theme="light"] .launchpad-action small,
:root[data-theme="light"] .metric-card span,
:root[data-theme="light"] .metric-card small {
  color: #41566d;
  text-shadow: none;
}

:root[data-theme="light"] .metric-card strong {
  color: #006878;
  text-shadow: none;
}

/* Decorative highlights must not paint over card text. */
:root[data-theme="light"] .wallet-line::before,
:root[data-theme="light"] .metric-card::before,
:root[data-theme="light"] .va-form-panel::before,
:root[data-theme="light"] .setting-row::before {
  content: none;
}

:root[data-theme="light"] .launchpad-action__icon {
  color: #ffffff;
  background: linear-gradient(145deg, #007889, #007a65);
}

/* The wallet stays on a dark banner in both themes. */
.bank-center-hero__wallet-copy span {
  color: #c4edf3;
}

.bank-center-hero__wallet-copy strong,
.hero-withdraw {
  color: #ffffff;
}

.hero-withdraw {
  background: linear-gradient(145deg, #007b9c, #165fd1);
}

/* Compact admin workspace. */
.weather-entry { display:flex; align-items:center; gap:12px; width:100%; padding:16px; border:1px solid var(--bc-line-strong); border-radius:18px; background:var(--paper); color:var(--ink); text-align:left; }
.weather-entry > span:nth-child(2) { flex:1; min-width:0; }
.weather-entry strong,.weather-entry small { display:block; }
.weather-entry strong { font-size:14px; font-weight:650; }
.weather-entry small { margin-top:5px; font-size:12px; line-height:1.5; color:var(--muted); }
.weather-entry__icon { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:#0ea5e922; color:#0ea5e9; }
.weather-map-card { overflow:hidden; border-radius:20px; border:1px solid var(--line); }
.weather-map { display:block; width:100%; height:430px; border:0; background:#0b2836; }
.weather-panel { padding:18px; background:var(--paper); border:1px solid var(--line); border-radius:20px; }
.weather-panel__head { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.weather-panel__head strong { font-size:14px; }
.weather-current { margin:14px 0; font-size:13px; line-height:1.6; color:var(--muted); }
.weather-route { display:grid; gap:14px; }
.weather-route label { display:grid; gap:8px; font-size:13px; font-weight:600; }
.weather-route .text-input { width:100%; font-weight:400; }
.weather-route .primary-btn { margin:0; font-size:13px; }
.weather-attribution { color:var(--muted); font-size:11px; line-height:1.6; }
.weather-toast { position:fixed; bottom:100px; left:16px; right:16px; z-index:1000; padding:16px; border-radius:14px; background:#14384c; color:white; font-size:14px; }
/* VA creation: restrained typography and authentic bank artwork. */
.create-va-screen {
  --create-surface: #092232;
  --create-input: #041622;
  --create-text: #eff8ff;
  --create-muted: #aec3d3;
  --create-border: #2b495c;
}
:root[data-theme="light"] .create-va-screen {
  --create-surface: #ffffff;
  --create-input: #f5f9fc;
  --create-text: #142c40;
  --create-muted: #4b6375;
  --create-border: #c8d9e5;
}
.create-va-screen .view-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.35;
  color: var(--create-text);
  text-shadow: none;
}
.create-va-screen .view-subtitle { color: var(--create-muted); font-weight: 400; line-height: 1.6; }
.create-va-screen .va-create-panel {
  padding: 24px;
  margin-top: 4px;
  border: 1px solid var(--create-border);
  border-radius: 22px;
  color: var(--create-text);
  background: var(--create-surface);
  box-shadow: 0 12px 32px #0002;
  backdrop-filter: none;
}
.create-va-screen .va-create-panel::before,
.create-va-screen .va-create-panel::after { display: none; }
.create-va-screen .form-heading { margin-bottom: 24px; }
.create-va-screen .form-heading h2 {
  font-size: 20px;
  font-weight: 700 !important;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: -.2px;
  color: var(--create-text);
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.create-va-screen .form-heading p { font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--create-muted); }
.create-va-screen .field-label { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; margin: 0 0 10px; color: var(--create-text); }
.create-va-screen .bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.create-va-screen .bank-choice {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 88px;
  padding: 16px 24px;
  border: 2px solid #d7e0e7;
  border-radius: 14px;
  background: #ffffff !important;
  box-shadow: none !important;
  transform: none;
}
.create-va-screen .bank-choice::before,
.create-va-screen .bank-choice::after { display: none; }
.create-va-screen .bank-choice.selected { border-color: #10afba; box-shadow: 0 0 0 3px #10afba22 !important; }
.bank-choice__image { display: grid; place-items: center; width: 100%; height: 44px; overflow: hidden; }
.bank-choice__image img { display: block; width: 100%; max-width: 145px; height: 54px; object-fit: contain; transform: scale(1.28); }
.bank-choice__check { display: none; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: #087e88; color: #fff; }
.bank-choice.selected .bank-choice__check { display: grid; place-items: center; }
.bank-choice__check svg { width: 12px; height: 12px; }
.create-va-screen .mode-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 24px;
  border: 1px solid var(--create-border);
  border-radius: 12px;
  background: var(--create-input);
  box-shadow: none;
}
.create-va-screen .mode-switch button { flex: 1; min-height: 42px; padding: 8px; border: 0; border-radius: 8px; font-size: 13px; font-weight: 600; text-transform: none; color: var(--create-muted); background: transparent; box-shadow: none; }
.create-va-screen .mode-switch button.active { background: #087e88; color: #fff; box-shadow: none; }
.create-va-screen #displayName { height: 52px; padding: 14px 16px; border: 1px solid var(--create-border); border-radius: 12px; background: var(--create-input); color: var(--create-text); font-size: 15px; font-weight: 400; box-shadow: none; }
.create-va-screen #displayName::placeholder { color: var(--create-muted); opacity: 1; font-size: 14px; }
.create-va-screen #displayName:focus { outline: 2px solid #10afba; outline-offset: 2px; }
.create-va-screen [data-action="create-va"] { min-height: 52px; margin-top: 20px; border: 0; border-radius: 12px; background: #087e88; color: #fff; font-size: 15px; font-weight: 600; text-shadow: none; box-shadow: 0 6px 16px #087e8822; }
@media (max-width: 380px) {
  .create-va-screen .va-create-panel { padding: 18px; }
  .create-va-screen .bank-choice { min-height: 76px; padding: 12px 16px; }
  .create-va-screen .bank-grid { gap: 10px; }
  .create-va-screen .view-title { font-size: 22px; }
}
/* Home statistics share the banner with the wallet. */
.home-screen .bank-center-hero {
  display: grid;
  gap: 12px;
  aspect-ratio: auto;
  min-height: 0;
  padding: 12px;
}
.home-screen .bank-center-hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
}
.home-screen .bank-center-hero__wallet {
  position: relative;
  inset: auto;
  width: 100%;
}
.bank-center-hero .home-stats-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.bank-center-hero .metric-card { min-width: 0; margin: 0; }
.bank-center-hero .metric-card:last-child { grid-column: 1 / -1; }
.bank-center-hero .metric-card strong { overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .home-screen .bank-center-hero { padding: 10px; gap: 10px; }
  .bank-center-hero .home-stats-grid { gap: 8px; }
}
:root[data-theme="light"] {
  --v2-text: #10243e;
  --v2-muted: #41566d;
}
.admin-navigation {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.admin-navigation .field-label { margin: 0; }
.admin-navigation select { width: 100%; min-height: 46px; }
.admin-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.admin-shortcuts .chip { min-height: 36px; }
.admin-operational-strip { flex-wrap: wrap; gap: 8px; }
.admin-operational-strip .text-action { margin-left: auto; }
.admin-metric-grid--compact { display: none; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 2px; }
.admin-pagination > span { text-align: center; color: var(--bc-text); font-size: 12px; }
.admin-pagination small { display: block; margin-top: 4px; color: var(--bc-muted); }
.admin-screen button:disabled, .admin-modal button:disabled { opacity: .5; cursor: wait; }
.admin-pagination button:disabled { cursor: default; }
.admin-toast { position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%); z-index: 1000; width: max-content; max-width: calc(100vw - 32px); padding: 14px 18px; border-radius: 14px; background: #075440; color: #fff; box-shadow: 0 8px 30px #0005; font-size: 14px; line-height: 1.5; }
.admin-toast.is-error { background: #9d2639; }
.admin-screen .admin-card-main > span, .admin-screen .tx-main { min-width: 0; overflow-wrap: anywhere; }
.admin-screen .admin-card-main strong { overflow-wrap: anywhere; }
.admin-screen .admin-card-meta .detail-row { gap: 12px; }
.admin-screen .admin-card-meta .detail-row strong { overflow-wrap: anywhere; text-align: right; }
:root[data-theme="light"] .admin-section-card,
:root[data-theme="light"] .admin-card,
:root[data-theme="light"] .admin-quick-card,
:root[data-theme="light"] .admin-operational-strip,
:root[data-theme="light"] .admin-search-box,
:root[data-theme="light"] .admin-summary-tile {
  color: #10243e;
  background: linear-gradient(145deg, #fff, #eaf5fc);
  border-color: #b7d5e3;
  box-shadow: 0 6px 18px rgba(18,72,125,.08);
}
:root[data-theme="light"] .admin-screen .admin-card-main small,
:root[data-theme="light"] .admin-screen .admin-quick-card small,
:root[data-theme="light"] .admin-screen .admin-result-count,
:root[data-theme="light"] .admin-screen .admin-inline-meta { color: #41566d; }
:root[data-theme="light"] .admin-screen .admin-card-main strong,
:root[data-theme="light"] .admin-screen .admin-quick-card strong,
:root[data-theme="light"] .admin-screen .notice-row strong,
:root[data-theme="light"] .admin-screen .tx-main strong,
:root[data-theme="light"] .admin-screen .admin-operational-strip strong,
:root[data-theme="light"] .admin-screen .admin-operational-strip .text-action {
  color: #10243e;
  text-shadow: none;
}
:root[data-theme="light"] .admin-search-box .search-input {
  color: #10243e;
  background: #f4faff;
  border-color: #b7d5e3;
}
:root[data-theme="light"] .admin-search-box .search-input::placeholder { color: #41566d; opacity: 1; }
:root[data-theme="light"] .admin-screen .stat-card small { color: #41566d; text-shadow: none; }
:root[data-theme="light"] .admin-screen .status-badge,
:root[data-theme="light"] .admin-screen .admin-module-card em { color: #075440; background: #d8f2e8; }
:root[data-theme="light"] .admin-screen .status-pending,
:root[data-theme="light"] .admin-screen .status-queued { color: #754600; background: #fff0c4; }
:root[data-theme="light"] .admin-screen .status-rejected,
:root[data-theme="light"] .admin-screen .status-banned,
:root[data-theme="light"] .admin-screen .status-disabled,
:root[data-theme="light"] .admin-screen .status-locked { color: #9d2639; background: #ffe5e9; }
@media (max-width: 420px) {
  .admin-screen .admin-card-main { grid-template-columns: auto minmax(0,1fr); }
  .admin-screen .admin-card-main > .status-badge { grid-column: 2; justify-self: start; }
  .admin-screen .admin-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-screen .admin-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.weather-permission-backdrop{position:fixed;inset:0;z-index:900;display:grid;place-items:center;padding:24px;background:#020912bb;backdrop-filter:blur(6px)} .weather-permission{width:100%;max-width:380px;padding:26px;border-radius:24px;background:var(--paper);color:var(--ink);border:1px solid var(--line);box-shadow:0 20px 70px #0005;text-align:center} .weather-permission h2{font-size:21px;line-height:1.4;margin:16px 0 10px;font-weight:700} .weather-permission p,.weather-permission small{color:var(--muted);line-height:1.6;font-size:13px} .weather-permission small{display:block;margin-top:18px;font-size:11px} .weather-permission .primary-btn,.weather-decline{width:100%;margin-top:12px} .weather-decline:disabled{opacity:.45;cursor:wait} .weather-permission-icon{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:18px;background:#0ea5e922;color:#0ea5e9}
.weather-vehicles{display:flex;gap:8px}.weather-vehicles button{flex:1;padding:12px;border-radius:12px;background:var(--paper);color:var(--ink);border:1px solid var(--line)}.weather-vehicles button[aria-pressed=true]{background:#087e88;color:#fff}.weather-suggestions button{display:block;width:100%;text-align:left;padding:12px;background:var(--paper);color:var(--ink);border:1px solid var(--line);font-size:13px}.weather-route-result{font-size:13px;line-height:1.7;margin-top:16px;color:var(--ink)}
.va-create-panel .form-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.va-create-panel .history-shortcut{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;margin:0}.va-history-modal{width:min(560px,100%);max-height:85dvh;overflow:auto;text-align:left;padding:26px 20px}.va-history-modal h2{font-size:20px;margin:10px 30px 20px 0;line-height:1.4}.va-history-modal h3{font-size:14px;margin:18px 0 10px}.va-history-modal .chips{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.va-history-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}.va-history-filters select{min-width:0;font-size:12px}.va-history-item{padding:14px;border:1px solid var(--line);border-radius:14px;margin:10px 0;background:var(--paper)}.va-history-item>strong,.va-history-item>span,.va-history-item>small{display:block;overflow-wrap:anywhere}.va-history-item>span{font-size:14px;margin:7px 0}.va-history-item>small{color:var(--muted);font-size:12px}.va-history-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:12px}.va-history-actions button{margin:0;padding:8px;font-size:12px}.va-history-tx{display:flex;justify-content:space-between;align-items:center;width:100%;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);text-align:left;margin:8px 0}.va-history-tx small{display:block;margin-top:6px;color:var(--muted)}.va-history-modal .detail-row{gap:12px}.va-history-modal .detail-row strong{overflow-wrap:anywhere;text-align:right}
.history-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.history-category{position:relative;width:100%;min-width:0;text-align:left;color:var(--ink);cursor:pointer}.history-category.is-selected{outline:2px solid #0ba5b5;outline-offset:1px}.history-category-heading{display:flex;align-items:center;gap:7px;min-height:24px}.history-category-heading svg{width:17px;height:17px;flex-shrink:0}.history-category-heading>span{font-size:12px;font-weight:600}.history-category>small{display:block;color:var(--muted);font-size:12px;margin-top:8px;line-height:1.5}.history-new-badge{display:inline-grid;place-items:center;min-width:21px;height:21px;margin-left:auto;padding:0 5px;border-radius:20px;background:#e43961;color:#fff;font-size:11px;flex-shrink:0}.history-category:focus-visible{outline:3px solid #0ba5b5}
.records-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.records-filters label{display:grid;gap:7px;font-size:12px}.records-filters input,.records-filters select{width:100%;min-width:0;padding:10px;border-radius:10px;border:1px solid var(--line);background:var(--paper);color:var(--ink)}.records-table{max-width:100%;overflow-x:auto}.records-table table{width:100%;font-size:12px;border-collapse:collapse}.records-table th,.records-table td{padding:10px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}.records-actions{display:flex;align-items:center;gap:10px;margin:15px 0}.records-actions button{min-height:42px;padding:10px 15px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:10px}.live-payment-panel{padding:16px;border-radius:20px;background:var(--paper);border:1px solid var(--line)}[data-live-status]{font-size:11px}@media(max-width:600px){.records-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Grouped dashboard metrics and reusable full-result list filters */
.dashboard-metric{text-align:left;font:inherit;cursor:pointer;width:100%;min-width:0;color:inherit;transition:border-color .2s,transform .2s}
.dashboard-metric:hover{border-color:#48ccdb;transform:translateY(-2px)}
.dashboard-metric:focus-visible{outline:2px solid #48ccdb;outline-offset:3px}
.dashboard-metric .metric-today{font-size:clamp(23px,4.5vw,34px);line-height:1.25;overflow-wrap:anywhere}
.dashboard-metric .metric-all{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;font-size:12px;color:#9eb5c9;margin-top:12px}
.dashboard-metric .metric-all b{font-size:14px;font-weight:600;color:#c7d9e8;overflow-wrap:anywhere}
.result-filters{display:flex;flex-wrap:wrap;gap:10px;padding:12px;margin:12px 0;background:rgba(15,35,53,.6);border:1px solid rgba(89,147,175,.25);border-radius:14px;width:100%;box-sizing:border-box}
.result-filters label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#aec6d8;flex:1 1 130px;min-width:0}
.result-filters .result-search{flex-basis:100%}
.result-filters .text-input{width:100%;min-width:0;box-sizing:border-box}
.result-filters small{flex-basis:100%;font-size:11px;color:#91adbf}
.result-filters button{align-self:flex-end}
