/* Dashboard wallet: shared mobile/desktop presentation. */
body.dashboard-page .fintech-balance-panel {
  --balance-accent: #a4edce;
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 28px;
  border: 1px solid #304d46;
  border-radius: 22px;
  color: #edf7f4;
  background: radial-gradient(ellipse at 100% 0, #1d403836, transparent 55%), linear-gradient(135deg, #142723, #101d24 65%);
  box-shadow: 0 18px 44px #00000026, inset 0 1px 0 #ffffff08;
  overflow: visible;
}
body.dashboard-page .fintech-balance-panel::before,
body.dashboard-page .fintech-balance-panel::after { display: none; }
body.dashboard-page .mkd-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.dashboard-page .mkd-summary-grid > .fintech-balance-panel { grid-column: 1 / -1; }
.fintech-balance-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 25px; }
.fintech-balance-heading > div { min-width: 0; }
.fintech-balance-eyebrow { color: #91b4a7; font-size: 9px; font-weight: 600; letter-spacing: 2px; }
.fintech-balance-heading h2 { color: #f0faf6; font: inherit; font-size: clamp(19px, 2vw, 25px); font-weight: 650; letter-spacing: -.5px; line-height: 1.35; margin: 9px 0 7px; }
.fintech-balance-heading p { margin: 0; color: #a0b5b0; font-size: 12px; line-height: 1.6; }
.fintech-balance-visibility { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; margin-top: 3px; border: 1px solid #446055; border-radius: 12px; background: #a4edce0a; color: #c1ded3; cursor: pointer; }
.fintech-balance-visibility svg { width: 19px; height: 19px; }
.fintech-balance-visibility .balance-eye-hidden { display: none; }
.fintech-balance-visibility[aria-pressed="true"] .balance-eye-hidden { display: block; }
.fintech-balance-visibility[aria-pressed="true"] .balance-eye-visible { display: none; }
.fintech-balance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; margin: 0; }
.fintech-asset { --asset-color: #69d5c1; display: flex; flex-direction: column; min-width: 0; padding: 21px 18px 16px; border: 1px solid #ffffff12; border-radius: 15px; background: linear-gradient(155deg, #ffffff05, transparent), #0a141bb8; box-shadow: inset 0 1px 0 #ffffff05; }
.fintech-asset[data-balance-asset="usdt"] { --asset-color: #76d4aa; }
.fintech-asset[data-balance-asset="mzusd"] { --asset-color: #7bdcd9; }
.fintech-asset[data-balance-asset="bnb"] { --asset-color: #f1cf78; }
.fintech-asset-header { display: flex; align-items: center; gap: 11px; min-width: 0; }
.fintech-asset-icon { display: grid; place-items: center; width: 41px; height: 41px; flex-shrink: 0; border: 1px solid #ffffff0f; border-radius: 50%; background: #ffffff06; }
.fintech-asset-icon img { display: block; width: 32px; height: 32px; object-fit: contain; }
.fintech-asset-header > div { flex: 1; min-width: 0; }
.fintech-asset-header h3 { margin: 0 0 4px; color: #eaf4ef; font: inherit; font-size: 14px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.fintech-asset-header > div > span { font-size: 10px; color: #8eaaa3; line-height: 1.4; }
.fintech-asset-network { color: var(--asset-color); font-size: 8px; font-weight: 600; letter-spacing: .8px; padding: 5px 6px; border: 1px solid #ffffff10; border-radius: 5px; flex-shrink: 0; }
.fintech-asset-available { display: flex; flex-direction: column; gap: 9px; margin: 25px 0 22px; flex: 1; min-width: 0; }
.fintech-amount-label { color: #98ada8; font-size: 10px; letter-spacing: .2px; }
.fintech-asset-available > strong { display: block; color: #f4faf7; font-size: 27px; font-weight: 600; line-height: 1.35; letter-spacing: -.65px; font-variant-numeric: tabular-nums; }
.fintech-asset-locked { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: 12px; row-gap: 7px; padding-top: 14px; border-top: 1px solid #ffffff0c; color: #94aca4; font-size: 11px; line-height: 1.6; }
.fintech-asset-locked > span { display: inline-flex; align-items: center; gap: 6px; }
.fintech-asset-locked svg { width: 12px; height: 12px; }
.fintech-asset-locked > strong { min-width: 0; max-width: 100%; font-weight: 500; color: #bcd2c9; font-variant-numeric: tabular-nums; }
/* No ellipsis, horizontal scrolling or fixed heights on financial values. */
.fintech-balance-panel [data-mobile-balance-private],
.fintech-balance-panel [data-mkd-balance-private] { max-width: 100%; min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; word-break: normal; }
.fintech-balance-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; margin-top: 24px; border-top: 1px solid #ffffff10; }
.fintech-balance-caption { display: flex; align-items: flex-start; gap: 9px; color: #c4dbd0; font-size: 11px; line-height: 1.7; }
.fintech-caption-mark { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #96d6b6; margin-top: 6px; }
.fintech-balance-caption small { color: #90aa9f; font-size: 10px; }
.fintech-balance-actions { display: flex; gap: 10px; }
.fintech-balance-actions button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 12px 20px; border: 1px solid #456255; border-radius: 10px; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: background .15s; }
.fintech-fund-button { background: #a4edce; color: #123126; border-color: #a4edce !important; }
.fintech-fund-button > span { font-size: 18px; line-height: 1; font-weight: 400; }
.fintech-fund-button:hover { background: #c2f6e0; }
.fintech-withdraw-button { background: #ffffff04; color: #d9ebe2; }
.fintech-withdraw-button:hover { background: #ffffff0c; }
.fintech-withdraw-button svg { width: 16px; height: 16px; }
.fintech-balance-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 21px; }
.fintech-balance-links a, .fintech-balance-links button { padding: 0; border: 0; background: transparent; color: #9fc5b5; font: inherit; font-size: 11px; line-height: 1.6; cursor: pointer; }
.fintech-balance-links a > span { margin-left: 6px; }
.fintech-staking-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 21px; padding-top: 18px; border-top: 1px solid #ffffff0c; color: #a7beb4; font-size: 11px; }
.fintech-staking-summary strong { margin-left: auto; color: #dbeae1; font-size: 12px; overflow-wrap: anywhere; max-width: 100%; }
.fintech-balance-panel button:focus-visible, .fintech-balance-panel a:focus-visible { outline: 2px solid #baf5da; outline-offset: 4px; }
@media (max-width: 760px) {
  body.dashboard-page .fintech-balance-panel { padding: 23px 20px; border-radius: 20px; }
  .fintech-balance-heading { gap: 12px; margin-bottom: 22px; }
  .fintech-balance-heading h2 { font-size: 21px; }
  .fintech-balance-heading p { font-size: 11px; }
  .fintech-balance-footer { gap: 18px; margin-top: 22px; padding-top: 21px; }
  .fintech-balance-actions { width: 100%; }
  .fintech-balance-actions button { flex: 1; padding: 13px 14px; }
}
@media (max-width: 600px) {
  .fintech-balance-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fintech-asset { padding: 19px 19px 15px; }
  .fintech-asset-available { margin: 19px 0 18px; gap: 7px; }
  .fintech-asset-available > strong { font-size: 29px; }
  .fintech-asset-locked { padding-top: 12px; }
}
@media (max-width: 360px) {
  body.dashboard-page .fintech-balance-panel { padding: 20px 15px; }
  .fintech-balance-heading h2 { font-size: 19px; }
  .fintech-balance-eyebrow { letter-spacing: 1.3px; font-size: 8px; }
  .fintech-balance-visibility { width: 36px; height: 36px; flex-basis: 36px; }
  .fintech-asset { padding: 17px 15px 14px; }
  .fintech-asset-available > strong { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { .fintech-balance-actions button { transition: none; } }

/* Native touch scrolling keeps the mobile wallet compact without truncating amounts. */
[data-balance-context="dashboard-mobile"] .fintech-balance-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 16px;
}
[data-balance-context="dashboard-mobile"] .fintech-balance-grid::-webkit-scrollbar { display: none; }
[data-balance-context="dashboard-mobile"] .fintech-balance-grid:focus-visible { outline: 2px solid #baf5da; outline-offset: 3px; }
[data-balance-context="dashboard-mobile"] .fintech-asset {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: radial-gradient(ellipse at top right, #a4edce10, transparent 65%), linear-gradient(145deg, #192f2d, #0c1a22);
  border-color: #ffffff1a;
}
.fintech-carousel-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.fintech-carousel-hint, .fintech-carousel-count { color: #a0bdb1; font-size: 10px; }
.fintech-carousel-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fintech-carousel-dots { display: flex; align-items: center; }
.fintech-carousel-dots button { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.fintech-carousel-dots button span { width: 5px; height: 5px; border-radius: 9px; background: #607a70; transition: width .18s, background .18s; }
.fintech-carousel-dots button[aria-current="true"] span { width: 20px; background: #a4edce; }
[data-balance-context="dashboard-mobile"] .fintech-balance-footer { margin-top: 8px; padding-top: 18px; }
@media (prefers-reduced-motion: reduce) { .fintech-carousel-dots button span { transition: none; } }
