/* Wallet screens follow the Continental reference; financial states stay real. */
.wallet-screen, .services-screen, .profile-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.wallet-screen .wallet-top { min-height: 40px; padding: 12px 0 0; margin: 0; }
.wallet-screen .wallet-top .avatar { flex-shrink: 0; }
.wallet-screen .balance { padding: 14px 0 6px; }
.wallet-screen .balance-number { line-height: 1; }
.wallet-screen .actions button { min-height: 92px; font-size: 0.8125rem; padding: 14px 2px 12px; }
.wallet-screen .feature-banner, .wallet-screen .asset-group { margin: 0; }
.wallet-screen .feature-banner .feature-icon { width: 48px; height: 48px; }
.wallet-screen .feature-banner .feature-caption strong { color: #A9B2CC; font-size: 0.8125rem; font-weight: 500; }
.wallet-screen .feature-banner .feature-caption small { color: #8BC0FF; font-size: .8125rem; font-weight: 600; }
.wallet-screen .asset { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(60px, .7fr); gap: 4px 12px; padding: 10px 16px; }
.wallet-screen .asset > img { grid-row: 1; }
.wallet-screen .asset-caption { gap: 2px; }
.wallet-screen .asset-caption span { font-size: .8125rem; line-height: 1.4; }
.wallet-screen .asset-rate { color: var(--muted); font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.wallet-screen .asset-value { width: 100%; max-width: none; min-width: 0; font-size: 0.9375rem; font-weight: 600; }
.wallet-screen .asset-value small { font-weight: 400; margin-top: 2px; }
.wallet-screen .asset-unavailable { grid-column: 2 / 4; display: flex; gap: 5px; align-items: center; color: var(--muted); font-size: .8125rem; }
.wallet-screen .asset-unavailable .ui-symbol { width: 12px; height: 12px; }
.wallet-activity-row { display: flex; align-items: center; width: 100%; gap: 12px; padding: 10px 16px; background: transparent; text-align: left; }
.activity-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; background: #22253B; color: var(--accent); }
.activity-icon .ui-symbol { width: 20px; height: 20px; }
.activity-caption { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.activity-caption strong { font-size: 0.9375rem; }
.activity-caption small { font-size: .8125rem; }
.activity-amount { display: flex; flex-direction: column; gap: 3px; max-width: 40%; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.activity-amount strong { font-size: 0.9375rem; }
.activity-amount small { font-size: .8125rem; }
.wallet-empty { padding: 16px; margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.wallet-screen > .text-button, .wallet-screen > .footnote { margin-top: 0; }
.wallet-soon { display: inline-flex; align-items: center; font-size: .8125rem; color: var(--muted); background: #22253B; border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
.services-screen .page-title { padding: 20px 0 0; }
.services-screen .page-title h1 { margin: 0; }
.services-screen .feature-banner { margin: 0; }
.services-screen .feature-banner .feature-icon { width: 48px; height: 48px; }
.services-screen .service-list { margin: 0; }
.services-screen .service-card { gap: 10px; min-height: 144px; }
.services-screen .service-card .feature-icon { width: 40px; height: 40px; border-radius: 12px; }
.services-screen .service-card:nth-child(n+3) .feature-icon { background: #22253B; color: #8BC0FF; }
.services-screen .feature-caption { gap: 4px; }
.services-screen .feature-caption small { font-size: 0.8125rem; line-height: 1.35; }
.services-screen .service-unavailable { opacity: .6; cursor: not-allowed; }
.profile-screen .profile-identity { padding: 20px 0 0; }
.profile-screen .profile-identity h1 { font-size: 1.25rem; }
.profile-screen .settings-group { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.profile-screen .settings-group > .section-label { padding: 0 4px; font-size: 0.8125rem; }
.profile-screen .settings-row { min-height: 52px; font-size: 0.9375rem; }
.profile-screen .settings-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.profile-screen .settings-value { font-size: 0.8125rem; line-height: 1.4; }
.settings-switch { position: relative; width: 36px; height: 22px; flex-shrink: 0; border-radius: 20px; background: #363744; }
.settings-switch::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: var(--text); transition: transform .12s; }
[role=switch][aria-checked=true] .settings-switch { background: var(--primary); }
[role=switch][aria-checked=true] .settings-switch::after { transform: translateX(14px); }
.linked-wallet-status { display: flex; align-items: center; gap: 10px; padding: 16px; color: var(--muted); font-size: .875rem; }
.linked-wallet-status .ui-symbol { width: 18px; height: 18px; color: var(--accent); }
.profile-screen > .secondary { margin-top: 0; }
.profile-screen > .footnote { margin-top: 0; }
.wallet-flow { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.wallet-flow .page-title { padding: 8px 0 4px; }
.wallet-flow .page-title h1 { font-size: 1.375rem; margin: 0; text-align: center; }
.wallet-flow > .text-button { padding: 4px 0; align-self: flex-start; font-size: 0.8125rem; }
.wallet-flow .primary, .wallet-flow .secondary { font-size: 0.9375rem; margin: 0; }
.wallet-flow .section-label { padding: 0 4px; font-size: 0.8125rem; }
.wallet-flow .footnote { margin-top: 0; }
.wallet-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; min-height: 46px; padding: 0 14px; }
.search-glyph { font-size: 1.625rem; color: var(--muted); }
.wallet-search input { flex: 1; min-width: 0; width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 1rem; padding: 10px 0; }
.wallet-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.wallet-flow .deposit-networks { margin: 0; border-radius: 18px; }
.wallet-flow .deposit-network { padding: 12px 16px; min-height: 64px; gap: 12px; }
.wallet-flow .deposit-network > img { width: 40px; height: 40px; flex-shrink: 0; }
.wallet-flow .deposit-network > div { min-width: 0; gap: 2px; }
.wallet-flow .deposit-network strong { font-size: 0.9375rem; }
.wallet-flow .deposit-network small { font-size: 0.8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.wallet-flow .deposit-network > .ui-symbol { width: 16px; height: 16px; color: var(--muted); }
.wallet-flow .deposit-network:disabled { cursor: not-allowed; }
.network-token { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; font-size: 0.9375rem; font-weight: 700; color: white; }
.network-token > img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.wallet-callout { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 16px; background: #13203B; color: #B7C3E0; font-size: 0.875rem; line-height: 1.45; text-align: left; }
.wallet-callout-action > span { flex: 1; }
.wallet-callout-action > .ui-symbol { width: 20px; height: 20px; }
.wallet-callout-warning { background: #2A2213; color: #F1D39A; }
.receive-intro { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.receive-intro h2 { font-size: 1.375rem; margin: 0; }
.receive-intro p { margin: 0; font-size: 0.875rem; line-height: 1.4; }
.receive-token { width: 60px; height: 60px; position: relative; margin: 8px 0; }
.receive-token .receive-coin { width: 60px; height: 60px; margin: 0; }
.receive-token .network-token { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border: 3px solid var(--background); font-size: .75rem; }
.receive-screen .address-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px; margin: 0; border-radius: 20px; }
.receive-screen .qr-code { width: min(192px, 100%); height: auto; margin: 0; border-radius: 16px; background: white; }
.receive-screen .wallet-address { width: 100%; margin: 0; padding: 4px 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; line-height: 1.5; }
.receive-address-actions { display: flex; gap: 8px; width: 100%; }
.receive-address-actions .primary { display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0; gap: 8px; min-height: 48px; padding: 12px 8px; }
.receive-address-actions .primary img { width: 18px; height: 18px; }
.receive-share { width: 48px; min-height: 48px; flex-shrink: 0; background: #22253B; border-radius: 14px; font-size: 1.5625rem; }
.wallet-info-card { overflow: hidden; background: var(--surface); border-radius: 18px; }
.wallet-info-card .detail-row { padding: 14px 16px; border-bottom-color: #22253B; font-size: 0.875rem; }
.wallet-info-card .detail-row:last-child { border: 0; }
.wallet-info-card .detail-row strong { font-weight: 500; }
.wallet-faq { border-radius: 18px; background: var(--surface); overflow: hidden; }
.wallet-faq details + details { border-top: 1px solid #22253B; }
.wallet-faq summary { min-height: 52px; padding: 14px 16px; font-size: 0.875rem; font-weight: 500; line-height: 1.5; }
.wallet-faq p { padding: 0 16px 16px; margin: 0; font-size: 0.8125rem; }
.withdrawal-screen form { display: flex; flex-direction: column; gap: 14px; }
.withdrawal-screen .field { margin: 0; }
.withdrawal-screen .field select { min-width: 0; max-width: 100%; background: var(--surface); border-radius: 14px; }
.withdrawal-recipient-form { min-height: min(520px, calc(100dvh - 210px - var(--safe-top) - var(--safe-bottom))); }
.withdrawal-asset-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.withdrawal-asset-chips button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #22253B; background: var(--surface); font-size: 0.875rem; font-weight: 600; }
.withdrawal-asset-chips img { width: 22px; height: 22px; }
.withdrawal-asset-chips .selected { background: #13203B; color: #8BC0FF; border-color: #243A66; }
.withdrawal-address-entry { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 14px; padding: 6px; }
.withdrawal-address-entry input { min-width: 0; width: 100%; border: 0; background: transparent; padding: 12px 8px; color: var(--text); font-size: 1rem; }
.withdrawal-paste { min-height: 44px; padding: 0 12px; border-radius: 10px; background: #22253B; color: #8BC0FF; font-size: 0.8125rem; font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.wallet-recipient-list { background: var(--surface); border-radius: 18px; overflow: hidden; }
.wallet-recipient { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; min-height: 64px; background: transparent; text-align: left; }
.wallet-recipient + .wallet-recipient { border-top: 1px solid #22253B; }
.wallet-recipient > span:nth-child(2) { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.wallet-recipient strong { font-size: 0.875rem; overflow-wrap: anywhere; }
.wallet-recipient small { font-size: 0.8125rem; }
.wallet-recipient > .ui-symbol { width: 16px; height: 16px; color: var(--muted); }
.wallet-flow-next { margin-top: auto !important; }
.withdrawal-recipient-summary { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 14px; background: var(--surface); border-radius: 14px; }
.withdrawal-recipient-summary > span { flex: 1; min-width: 0; font-size: 0.8125rem; overflow-wrap: anywhere; }
.withdrawal-recipient-summary .ui-symbol { width: 18px; height: 18px; color: var(--accent); }
.withdrawal-screen .withdrawal-amount-form > .field { text-align: center; padding-top: 24px; }
.withdrawal-screen .field .withdrawal-amount-input { text-align: center; font-size: 2.75rem; font-weight: 700; line-height: 1.3; letter-spacing: -1.5px; min-height: 74px; border: 0; padding: 4px; border-radius: 12px; background: transparent; font-variant-numeric: tabular-nums; }
.withdrawal-amount-unit { text-align: center; color: var(--muted); font-size: 1.125rem; font-weight: 600; margin: -6px 0 12px; }
.withdrawal-available { align-items: center; }
.withdrawal-available-value { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.withdrawal-available-value strong { max-width: none; font-variant-numeric: tabular-nums; }
.withdrawal-max { flex-shrink: 0; min-height: 44px; padding: 0 8px; background: transparent; color: var(--accent); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.withdrawal-max:disabled { cursor: default; }
.withdrawal-flow-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: minmax(104px, .35fr) minmax(0, 1fr); gap: 8px; padding: 8px 0; background: var(--background); z-index: 1; }
.withdrawal-flow-actions .secondary { padding-inline: 12px; white-space: nowrap; }
.withdrawal-flow-actions .wallet-flow-next { margin-top: 0 !important; }
body:has(nav:not([hidden])) .withdrawal-flow-actions { bottom: calc(76px + var(--safe-bottom)); }
.withdrawal-review-amount { text-align: center; display: flex; flex-direction: column; gap: 4px; padding: 16px 0 8px; }
.withdrawal-review-amount > strong { font-size: 2rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.withdrawal-history-card { margin-bottom: 2px; }
.withdrawal-history-heading { display: flex; align-items: center; gap: 12px; padding: 16px; }
.withdrawal-history-heading > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.withdrawal-history-heading strong { font-size: 1rem; }
.withdrawal-history-heading small { font-size: 0.8125rem; }
.withdrawal-history-card > .text-button { display: block; padding: 12px 16px; }
@media (max-width: 350px) {
  .wallet-screen .actions { gap: 8px; }
  .wallet-screen .actions button { font-size: .8125rem; }
  .wallet-screen .asset { padding: 10px 12px; gap: 4px 9px; }
  .wallet-screen .asset-value { font-size: 0.8125rem; }
  .wallet-screen .feature-banner { padding: 14px; gap: 10px; }
  .services-screen .service-card { padding: 14px; }
  .profile-screen .settings-row { font-size: 0.875rem; padding: 14px; gap: 8px; }
  .profile-screen .settings-value { font-size: .8125rem; }
  .wallet-flow .wallet-callout { font-size: 0.8125rem; }
  .wallet-info-card .detail-row { gap: 10px; }
}
@media (max-height: 560px) {
  .withdrawal-screen { gap: 10px; }
  .withdrawal-screen form { gap: 10px; }
  .withdrawal-screen .withdrawal-amount-form > .field { padding-top: 4px; }
  .withdrawal-screen .field .withdrawal-amount-input { min-height: 54px; font-size: 2rem; }
  .withdrawal-amount-unit { margin-bottom: 2px; font-size: 0.9375rem; }
  .withdrawal-screen .wallet-info-card .detail-row { padding: 10px 14px; }
}
