:root {
  color-scheme: light;
  --bg: #eef2f7;
  --shell: #f7f9fc;
  --card: #ffffff;
  --card-soft: #f3f6fb;
  --line: rgba(18, 27, 38, 0.08);
  --line-strong: rgba(18, 27, 38, 0.12);
  --text: #101828;
  --muted: #667085;
  --accent: #2d7ff9;
  --accent-soft: rgba(45, 127, 249, 0.12);
  --positive: #20a46b;
  --shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[lang='bn'] {
  font-family: Inter, 'Noto Sans Bengali', 'Noto Serif Bengali', Vrinda, sans-serif;
}

html[lang='hi'] {
  font-family: Inter, 'Noto Sans Devanagari', 'Nirmala UI', 'Kohinoor Devanagari', Mangal, sans-serif;
}

html[lang='zh'] {
  font-family: Inter, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--tg-theme-bg-color, var(--bg));
  color: var(--tg-theme-text-color, var(--text));
  overflow-x: hidden;
}

.seo-content {
  background: var(--tg-theme-bg-color, var(--bg));
  color: var(--tg-theme-text-color, var(--text));
  margin: 0 auto;
  max-width: 760px;
  padding: 32px 20px 48px;
}

.seo-content article {
  margin: 0 auto;
}

.seo-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.seo-content h1,
.seo-content h2 {
  color: var(--text);
  line-height: 1.15;
}

.seo-content h1 {
  font-size: clamp(30px, 8vw, 44px);
  margin: 0 0 16px;
}

.seo-content h2 {
  font-size: 22px;
  margin: 28px 0 10px;
}

.seo-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.seo-content .seo-lead {
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  align-items: center;
  appearance: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.button-primary,
.swap-primary-button,
.deposit-copy-button-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(45, 127, 249, 0.2);
  color: #fff;
  font-weight: 700;
}

.deposit-copy-button.button-cancel {
  background: var(--card-soft);
  border-color: var(--line-strong);
  color: var(--muted);
  font-weight: 600;
}

.button-primary:hover:not(:disabled),
.swap-primary-button:hover:not(:disabled),
.deposit-copy-button-primary:hover:not(:disabled) {
  background: #1f6fe5;
  border-color: #1f6fe5;
  box-shadow: 0 10px 22px rgba(45, 127, 249, 0.26);
}

.button-cancel,
.swap-secondary-button {
  background: var(--card-soft);
  border-color: var(--line-strong);
  color: var(--muted);
  font-weight: 600;
}

.button-danger {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.28);
  color: #b42318;
  font-weight: 700;
}

.button-danger:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(220, 38, 38, 0.45);
}

@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--line-strong);
  }
}

button:focus {
  outline: none;
}

button:focus-visible {
  box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.18);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.status-chip,
.status-chip *,
.badge-muted,
.badge-muted *,
.badge,
.badge *,
.portfolio-toggle,
.portfolio-toggle * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.status-chip::selection,
.status-chip *::selection {
  background: transparent;
  color: inherit;
}

.badge.success,
.badge.success *,
.badge-muted,
.badge-muted *,
.portfolio-toggle,
.portfolio-toggle *,
.asset-tier,
.asset-tier *,
.detail-tier,
.detail-tier * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.wallet-page {
  min-height: 100vh;
  min-height: var(--tg-viewport-height, 100vh);
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.wallet-shell {
  margin: 0 auto;
  max-width: 430px;
  min-height: calc(var(--tg-viewport-height, 100vh) - 32px);
  display: flex;
  justify-content: center;
}

.wallet-card {
  background: var(--tg-theme-secondary-bg-color, var(--shell));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  width: 100%;
  overflow-x: hidden;
}

.wallet-card * {
  box-sizing: border-box;
  min-width: 0;
}

.wallet-header,
.wallet-title-block,
.wallet-header-actions,
.hero-number-row,
.hero-wallet-row,
.hero-wallet-identity,
.hero-account-copy,
.hero-wallet-actions,
.hero-wallet-action,
.hero-account-control,
.promo-card,
.promo-side,
.section-head,
.asset-row,
.asset-left,
.asset-right,
.account-row,
.account-left,
.account-actions,
.details-grid,
.detail-row,
.bottom-nav,
.nav-item,
.icon-button,
.toggle-button,
.pill {
  display: flex;
  align-items: center;
}

.wallet-header,
.section-head {
  justify-content: space-between;
  gap: 12px;
}

.wallet-title-block {
  gap: 12px;
  min-width: 0;
}

.wallet-mark {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 16px;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 42px;
  flex: none;
}

.wallet-mark:focus-visible {
  box-shadow: 0 0 0 4px rgba(45, 127, 249, 0.18);
  outline: none;
}

.wallet-brand-name.is-highlighted,
.wallet-brand-name.is-highlighted-alt {
  animation: brand-highlight 620ms ease both;
}

.wallet-mark.is-highlighted,
.wallet-mark.is-highlighted-alt {
  animation: logo-highlight 620ms ease both;
}

.wallet-mark-inner {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.wallet-logo-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.wallet-brand-name,
.hero-number,
.section-head h2,
.tab-card-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.wallet-brand-name {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.wallet-subtitle {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 7px;
  font-size: 13px;
  margin-top: 3px;
  max-width: 100%;
  min-width: 0;
}

.wallet-subtitle > span:first-of-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-logo {
  border-radius: 999px;
  flex: none;
  object-fit: cover;
}

.network-logo-sm {
  height: 12px;
  width: 12px;
  min-height: 12px;
  min-width: 12px;
}

.network-logo-md {
  height: 16px;
  width: 16px;
  min-height: 16px;
  min-width: 16px;
}

.network-logo.coin-icon {
  height: 12px;
  width: 12px;
}

.network-logo.coin-icon-fallback {
  font-size: 8px;
}

.online-dot {
  background: var(--positive);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(32, 164, 107, 0.12);
  height: 8px;
  width: 8px;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.wallet-header-actions {
  gap: 8px;
  flex: none;
}

.wallet-header-actions > .portfolio-toggle,
.wallet-header-actions > .icon-button {
  flex: 0 0 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  width: 38px;
}

.badge-muted {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  min-height: 34px;
  padding: 0 11px;
}

.portfolio-toggle {
  gap: 6px;
}

.icon-button {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.icon-button-sm {
  height: 34px;
  width: 34px;
}

.hero-card {
  background: linear-gradient(180deg, rgba(45, 127, 249, 0.06), rgba(45, 127, 249, 0.02)), var(--card);
  border: 1px solid rgba(45, 127, 249, 0.08);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 16px 14px 13px;
}

.hero-balance-copy {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.hero-label {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 6px;
}

.hero-number {
  font-size: clamp(42px, 12vw, 50px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  white-space: nowrap;
}

.badge.success {
  background: rgba(32, 164, 107, 0.12);
  color: var(--positive);
}

.hero-number-row {
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-address,
.promo-text,
.muted-copy,
.empty-state span,
.asset-copy p,
.asset-copy span,
.asset-right span,
.account-subtitle {
  color: var(--muted);
}

.hero-account-icon {
  align-items: center;
  background: rgba(45, 127, 249, 0.1);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  flex: none;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.hero-account-copy {
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.hero-account-copy strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-address {
  line-height: 1.45;
}

.hero-wallet-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

.hero-account-control {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 127, 249, 0.18);
  border-radius: 17px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 50px;
  min-width: 0;
  padding: 5px 6px;
  width: 100%;
}

.hero-network-trigger {
  align-items: center;
  background: rgba(45, 127, 249, 0.1);
  border: 0;
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  flex: none;
  height: 40px;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  width: 40px;
}

.hero-network-trigger:hover:not(:disabled),
.hero-network-trigger:focus-visible {
  background: rgba(45, 127, 249, 0.16);
  border-color: transparent;
  transform: none;
}

.hero-account-address {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-copy-button {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  flex: none;
  height: 38px;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  width: 38px;
}

.hero-copy-button:hover:not(:disabled),
.hero-copy-button:focus-visible,
.hero-copy-button.copied {
  background: var(--accent-soft);
  border-color: rgba(45, 127, 249, 0.24);
  color: var(--accent);
  transform: none;
}

.hero-network-picker {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
}

.hero-network-picker .chain-strip-scroll {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 40px 6px 6px;
}

.hero-network-picker .chain-strip-fade {
  border-radius: 0 14px 14px 0;
  right: 1px;
  top: 1px;
  bottom: 1px;
}

.hero-wallet-actions {
  gap: 4px;
  justify-content: flex-end;
}

.hero-wallet-action {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  flex-direction: column;
  font-size: 9px;
  font-weight: 600;
  gap: 2px;
  min-height: 42px;
  padding: 4px 6px;
  text-decoration: none;
  white-space: nowrap;
}

.hero-wallet-action:hover:not(:disabled),
.hero-wallet-action:focus-visible {
  border-color: rgba(45, 127, 249, 0.24);
  color: var(--text);
  transform: none;
}

.hero-wallet-action svg {
  color: var(--accent);
  flex: none;
}

.hero-wallet-identity {
  flex: 1 1 auto;
  gap: 7px;
  min-width: 0;
}

.hero-wallet-address-line {
  align-items: center;
  display: flex;
  gap: 3px;
  max-width: 100%;
  min-width: 0;
}

.hero-address {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-wallet-copy {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  flex: none;
  justify-content: center;
  min-height: 24px;
  padding: 0;
  width: 24px;
}

.hero-wallet-copy:hover:not(:disabled),
.hero-wallet-copy:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
  transform: none;
}

.hero-subcopy {
  font-size: 13px;
  line-height: 1.45;
  margin: 8px 0 0;
  max-width: 340px;
}

.chain-strip {
  position: relative;
}

.chain-strip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 2px;
  padding-right: 44px;
  scrollbar-width: none;
}

.chain-strip-scroll::-webkit-scrollbar {
  display: none;
}

.chain-strip-fade {
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--card) 75%);
}

.chain-pill {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: none;
  font-size: 12px;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  scroll-snap-align: center;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.chain-pill.active {
  background: linear-gradient(180deg, #4d8dff 0%, #2d7ff9 100%);
  border-color: #2d7ff9;
  color: #fff;
}

.action-row {
  gap: 10px;
  justify-content: space-between;
}

.primary-nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.16);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: auto;
  min-height: 74px;
  padding: 6px;
  position: sticky;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  width: 100%;
  z-index: 20;
}

.primary-nav--with-p2p {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.primary-nav--without-p2p {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.primary-nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  gap: 6px;
  justify-content: center;
  min-height: 60px;
  min-width: 0;
  padding: 6px 4px;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.primary-nav-item.active {
  background: rgba(45, 127, 249, 0.11);
  color: var(--accent);
  font-weight: 700;
}

.primary-nav--with-p2p .primary-nav-item {
  font-size: 10px;
  gap: 5px;
}

.primary-nav--with-p2p .primary-nav-item svg {
  height: 21px;
  width: 21px;
}

.primary-nav-item:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .primary-nav-item:hover:not(:disabled) {
    background: rgba(45, 127, 249, 0.06);
    transform: none;
  }
}

@media (max-width: 359px) {
  .primary-nav {
    gap: 2px;
    min-height: 70px;
    padding: 5px;
  }

  .primary-nav-item,
  .primary-nav--with-p2p .primary-nav-item {
    font-size: 10px;
    gap: 4px;
    min-height: 58px;
    padding: 5px 2px;
  }

  .primary-nav-item svg,
  .primary-nav--with-p2p .primary-nav-item svg {
    height: 20px;
    width: 20px;
  }
}

.fiat-p2p-screen,
.fiat-p2p-screen * {
  box-sizing: border-box;
  min-width: 0;
}

.fiat-p2p-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.fiat-p2p-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 2px;
}

.fiat-p2p-head h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 2px 0 5px;
}

.fiat-p2p-head p:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  max-width: 300px;
}

.fiat-p2p-limit {
  background: var(--accent-soft);
  border: 1px solid rgba(45, 127, 249, 0.16);
  border-radius: 999px;
  color: var(--accent);
  flex: none;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 8px;
  white-space: nowrap;
}

.fiat-p2p-steps {
  align-items: center;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  padding: 9px;
}

.fiat-p2p-steps > div {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.fiat-p2p-steps > div > span,
.fiat-p2p-section-head > span {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: none;
  font-size: 10px;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.fiat-p2p-steps strong {
  font-size: 10px;
  line-height: 1.2;
}

.fiat-p2p-steps > svg {
  color: var(--muted);
}

.fiat-p2p-form,
.fiat-p2p-invoice,
.fiat-p2p-history {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  width: 100%;
}

.fiat-p2p-section-head {
  align-items: flex-start;
  display: flex;
  gap: 9px;
}

.fiat-p2p-section-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fiat-p2p-section-head strong {
  font-size: 15px;
}

.fiat-p2p-section-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.fiat-p2p-network-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  width: 100%;
}

.fiat-p2p-field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.fiat-p2p-network-control {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 127, 249, 0.18);
  border-radius: 17px;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 54px;
  padding: 6px 10px 6px 6px;
  text-align: left;
  width: 100%;
}

.fiat-p2p-network-control:hover:not(:disabled),
.fiat-p2p-network-control:focus-visible {
  background: var(--card);
  border-color: rgba(45, 127, 249, 0.34);
  transform: none;
}

.fiat-p2p-network-control > svg {
  color: var(--muted);
  transition: transform 140ms ease;
}

.fiat-p2p-network-control > svg.is-open {
  transform: rotate(180deg);
}

.fiat-p2p-network-icon {
  align-items: center;
  background: rgba(45, 127, 249, 0.1);
  border-radius: 999px;
  display: inline-flex;
  flex: none;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.fiat-p2p-network-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fiat-p2p-network-copy strong,
.fiat-p2p-network-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fiat-p2p-network-copy strong {
  font-size: 14px;
}

.fiat-p2p-network-copy small {
  color: var(--muted);
  font-size: 11px;
}

.fiat-p2p-network-picker {
  position: relative;
  width: 100%;
}

.fiat-p2p-network-picker .chain-strip-scroll {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 40px 6px 6px;
}

.fiat-p2p-network-picker .chain-strip-fade {
  border-radius: 0 14px 14px 0;
  bottom: 1px;
  right: 1px;
  top: 1px;
}

.fiat-p2p-token-options,
.fiat-p2p-payout-tabs {
  display: grid;
  gap: 7px;
}

.fiat-p2p-token-options {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.fiat-p2p-token-options button,
.fiat-p2p-payout-tabs button {
  align-items: center;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  min-height: 46px;
  padding: 6px 8px;
}

.fiat-p2p-token-options button.active,
.fiat-p2p-payout-tabs button.active {
  background: var(--accent-soft);
  border-color: rgba(45, 127, 249, 0.32);
  color: var(--accent);
}

.fiat-p2p-token-options .coin-icon {
  height: 24px;
  width: 24px;
}

.fiat-p2p-amount-field {
  position: relative;
}

.fiat-p2p-form .fiat-p2p-amount-field input {
  font-size: 22px;
  font-weight: 750;
  padding-right: 82px;
}

.fiat-p2p-amount-field em {
  bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  position: absolute;
  right: 12px;
}

.fiat-p2p-approximate-receive {
  color: var(--accent);
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  margin-top: 6px;
}

.fiat-p2p-divider {
  border-top: 1px solid var(--line);
}

.fiat-p2p-payout-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fiat-p2p-input-icon {
  align-items: center;
  display: flex;
  position: relative;
  width: 100%;
}

.fiat-p2p-input-icon > svg {
  color: var(--muted);
  left: 12px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.fiat-p2p-form .fiat-p2p-input-icon input {
  padding-left: 38px;
}

.fiat-p2p-safety,
.fiat-p2p-invoice-note {
  align-items: flex-start;
  background: rgba(45, 127, 249, 0.07);
  border: 1px solid rgba(45, 127, 249, 0.14);
  border-radius: 13px;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 1.4;
  padding: 10px;
}

.fiat-p2p-safety svg,
.fiat-p2p-invoice-note svg {
  color: var(--accent);
  flex: none;
}

.fiat-p2p-primary,
.fiat-p2p-secondary {
  align-items: center;
  border-radius: 14px;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.fiat-p2p-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 8px 18px rgba(45, 127, 249, 0.2);
  color: #fff;
}

.fiat-p2p-secondary {
  background: var(--card-soft);
  border: 1px solid var(--line);
  color: var(--text);
}

.fiat-p2p-error,
.fiat-p2p-message {
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.4;
  padding: 10px 12px;
}

.fiat-p2p-error {
  background: rgba(217, 45, 32, 0.08);
  border: 1px solid rgba(217, 45, 32, 0.18);
  color: #b42318;
}

.fiat-p2p-message {
  background: rgba(18, 183, 106, 0.08);
  border: 1px solid rgba(18, 183, 106, 0.18);
  color: #067647;
}

.fiat-p2p-invoice-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.fiat-p2p-invoice-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fiat-p2p-invoice-head span,
.fiat-p2p-invoice-head em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.fiat-p2p-invoice-head strong {
  font-size: 24px;
}

.fiat-p2p-status {
  border-radius: 999px;
  font-size: 10px !important;
  font-weight: 800;
  padding: 6px 8px;
  white-space: nowrap;
}

.fiat-p2p-status-awaiting_deposit {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309 !important;
}

.fiat-p2p-status-sweeping,
.fiat-p2p-status-pending_payout {
  background: var(--accent-soft);
  color: var(--accent) !important;
}

.fiat-p2p-status-completed {
  background: rgba(18, 183, 106, 0.1);
  color: #067647 !important;
}

.fiat-p2p-status-payment_submitted {
  background: var(--accent-soft);
  color: var(--accent) !important;
}

.fiat-p2p-status-deposit_detected {
  background: rgba(18, 183, 106, 0.1);
  color: #067647 !important;
}

.fiat-p2p-address {
  align-items: center;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 9px;
}

.fiat-p2p-address > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fiat-p2p-address span {
  color: var(--muted);
  font-size: 10px;
}

.fiat-p2p-address strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fiat-p2p-address > button,
.fiat-p2p-contract-actions > button,
.fiat-p2p-contract-actions > a,
.fiat-p2p-history-head button {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--accent);
  display: inline-flex;
  flex: none;
  height: 38px;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  width: 38px;
}

.fiat-p2p-contract {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px 9px 9px 12px;
}

.fiat-p2p-contract > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fiat-p2p-contract span,
.fiat-p2p-contract small {
  color: var(--muted);
  font-size: 10px;
}

.fiat-p2p-contract strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fiat-p2p-contract-actions {
  display: flex;
  gap: 6px;
}

.fiat-p2p-contract-actions > a {
  text-decoration: none;
}

.fiat-p2p-complete {
  align-items: flex-start;
  background: rgba(18, 183, 106, 0.08);
  border: 1px solid rgba(18, 183, 106, 0.16);
  border-radius: 14px;
  color: #067647;
  display: flex;
  gap: 9px;
  padding: 12px;
}

.fiat-p2p-deposit-check {
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid rgba(45, 127, 249, 0.16);
  border-radius: 14px;
  color: var(--accent);
  display: flex;
  gap: 9px;
  padding: 11px;
}

.fiat-p2p-deposit-check > svg {
  flex: none;
  margin-top: 1px;
}

.fiat-p2p-deposit-check > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fiat-p2p-deposit-check strong {
  font-size: 13px;
}

.fiat-p2p-deposit-check span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.fiat-p2p-deposit-check-matched {
  background: rgba(18, 183, 106, 0.08);
  border-color: rgba(18, 183, 106, 0.16);
  color: #067647;
}

.fiat-p2p-deposit-check-overpaid {
  background: rgba(217, 45, 32, 0.08);
  border-color: rgba(217, 45, 32, 0.18);
  color: #b42318;
}

.fiat-p2p-complete > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fiat-p2p-complete span {
  font-size: 12px;
  line-height: 1.4;
}

.fiat-p2p-text-button {
  align-self: center;
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 12px;
  min-height: 34px;
  padding: 0 8px;
}

.fiat-p2p-history {
  gap: 8px;
}

.fiat-p2p-history-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.fiat-p2p-history-head > strong {
  font-size: 14px;
}

.fiat-p2p-history-head button {
  height: 32px;
  min-height: 32px;
  width: 32px;
}

.fiat-p2p-order-row {
  align-items: center;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.fiat-p2p-order-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fiat-p2p-order-row strong {
  font-size: 13px;
}

.fiat-p2p-order-row span,
.fiat-p2p-order-row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.fiat-p2p-order-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fiat-p2p-order-row em {
  color: var(--accent);
  font-weight: 700;
  text-align: right;
}

.fiat-p2p-empty,
.fiat-p2p-loading {
  color: var(--muted);
  font-size: 12px;
  padding: 10px 2px;
  text-align: center;
}

.fiat-p2p-loading {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  min-height: 180px;
}

.fiat-p2p-loading svg {
  animation: spin 0.8s linear infinite;
}

.action-action {
  background: transparent;
  border: 0;
  color: inherit;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
  padding: 0;
}

.action-icon {
  align-items: center;
  background: rgba(45, 127, 249, 0.1);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.action-action span:last-child {
  font-size: 13px;
  font-weight: 500;
}

.tab-card,
.details-sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.wallet-tool-tab-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.wallet-tool-tab-card > .tab-card-head,
.wallet-tool-tab-card > .muted-copy,
.wallet-tool-tab-card > .swap-error,
.wallet-tool-tab-card > .swap-success {
  padding-left: 2px;
  padding-right: 2px;
}

.account-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.account-left {
  gap: 12px;
  min-width: 0;
}

.account-icon {
  align-items: center;
  background: rgba(45, 127, 249, 0.1);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
  flex: none;
}

.account-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.account-subtitle {
  font-size: 13px;
  margin: 2px 0 0;
}

.account-actions {
  gap: 8px;
}

.assets-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head {
  align-items: flex-end;
}

.section-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.assets-section-head {
  flex-wrap: nowrap;
}

.assets-section-head h2 {
  flex: 0 0 auto;
  white-space: nowrap;
}

.assets-section-head .section-head-actions {
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.section-head h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.toggle-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 1 auto;
  font-size: 12px;
  gap: 6px;
  max-width: 100%;
  min-height: 32px;
  min-width: 0;
  overflow: hidden;
  padding: 0 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assets-section-head .toggle-button {
  flex: 0 1 auto;
  min-width: 0;
}

.assets-section-head .asset-header-action {
  align-items: center;
  color: var(--text);
  background: var(--card);
  border-color: rgba(45, 127, 249, 0.28);
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.assets-section-head .asset-header-label {
  flex: 1 1 auto;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assets-section-head .asset-header-action svg {
  color: var(--accent);
  flex: 0 0 auto;
  opacity: 1;
}

.assets-section-head .asset-header-action:hover,
.assets-section-head .asset-header-action:focus-visible {
  border-color: var(--accent);
  color: var(--text);
}

.assets-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.asset-row {
  background: transparent;
  border-bottom: 1px solid rgba(18, 27, 38, 0.05);
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px;
}

.asset-row:last-child {
  border-bottom: 0;
}

.asset-row-clickable {
  cursor: pointer;
  transition: background-color 140ms ease;
}

.asset-row-clickable:hover,
.asset-row-clickable:focus-visible {
  background: var(--card-soft);
  outline: none;
}

.asset-details-sheet {
  gap: 16px;
}

.asset-details-title {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.asset-details-logo {
  align-items: center;
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 4px;
  width: 72px;
}

.asset-logo-update-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 0;
}

.asset-logo-update-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.asset-details-title > div {
  min-width: 0;
}

.asset-details-title h2 {
  overflow-wrap: anywhere;
}

.asset-details-list {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.asset-details-list > div {
  align-items: center;
  background: var(--card);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.asset-details-list span,
.asset-contract-details > span {
  color: var(--muted);
  font-size: 12px;
}

.asset-details-list strong {
  font-size: 14px;
  text-align: right;
}

.asset-price-update {
  display: grid;
  gap: 6px;
}

.asset-price-update-button {
  justify-content: center;
  min-height: 40px;
}

.asset-price-update-error {
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
}

.asset-contract-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-contract-details > strong {
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.asset-contract-details.suspicious {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 14px;
  padding: 12px;
}

.asset-contract-warning {
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.asset-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-details-actions .deposit-copy-button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  text-decoration: none;
}

.asset-details-native-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.asset-custom-actions {
  display: grid;
  gap: 8px;
}

.asset-logo-update-error {
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.asset-remove-token {
  justify-content: center;
  min-height: 42px;
  width: 100%;
}

.custom-token-notice,
.custom-token-warning {
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
}

.custom-token-notice {
  background: var(--card-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.custom-token-notice strong {
  color: var(--text);
  font-size: 13px;
}

.custom-token-warning {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
}

.custom-token-warning strong {
  font-size: 13px;
}

.custom-token-warning ul {
  margin: 0;
  padding-left: 18px;
}

.custom-token-input.suspicious {
  border-color: rgba(220, 38, 38, 0.65);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.custom-token-acknowledge {
  align-items: flex-start;
  color: #8f1d14;
  display: flex;
  gap: 9px;
  line-height: 1.35;
  margin-top: 4px;
}

.custom-token-acknowledge input {
  accent-color: #b42318;
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  width: 18px;
}

.asset-left {
  gap: 12px;
  min-width: 0;
}

.asset-copy {
  min-width: 0;
}

.asset-title-row {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.asset-copy strong,
.asset-right strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.asset-copy p,
.asset-copy span,
.asset-right span {
  font-size: 12px;
  margin: 2px 0 0;
}

.asset-copy p {
  margin-top: 3px;
}

.asset-copy span {
  display: block;
  margin-top: 4px;
}

.asset-tier,
.detail-tier {
  background: rgba(45, 127, 249, 0.1);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  margin-top: 0;
  padding: 4px 8px;
  text-transform: uppercase;
}

.asset-tier-core,
.detail-tier-core {
  background: rgba(32, 164, 107, 0.12);
  color: var(--positive);
}

.asset-tier-custom,
.detail-tier-custom {
  background: rgba(166, 94, 255, 0.12);
  color: #7a3cff;
}

.asset-tier-verified,
.detail-tier-verified {
  background: rgba(45, 127, 249, 0.1);
  color: var(--accent);
}

.asset-tier-discovered,
.detail-tier-discovered {
  background: rgba(245, 158, 11, 0.12);
  color: #c77700;
}

.asset-tier-suspicious,
.detail-tier-suspicious {
  background: rgba(217, 45, 32, 0.1);
  color: #b42318;
}

.asset-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.asset-price > span:first-child {
  color: var(--muted);
}

.asset-right {
  align-items: flex-end;
  flex-direction: column;
  flex: none;
  gap: 2px;
}

.asset-price {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.asset-price-change {
  color: var(--positive);
}

.asset-price-change.negative {
  color: #d92d20;
}

.empty-state {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  padding: 18px;
}

.empty-state p {
  margin: 0 0 4px;
}

.details-sheet,
.tab-card {
  margin-top: 2px;
}

.details-grid {
  gap: 8px;
  flex-wrap: wrap;
}

.detail-row {
  align-items: flex-start;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  flex: 1 1 48%;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}

.detail-row span {
  color: var(--muted);
  font-size: 12px;
}

.detail-row strong {
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-row-link {
  color: var(--text);
  text-decoration: none;
}

.detail-row-link strong {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.detail-row-link:hover {
  color: var(--accent);
}

.language-control {
  gap: 8px;
}

.language-control select {
  appearance: none;
  background: var(--card);
  border: 0;
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  min-height: 36px;
  min-width: 120px;
  padding: 0 10px;
}

.more-preferences {
  align-items: center;
  background: var(--card-soft);
  border-radius: 16px 16px 0 0;
  margin-top: 10px;
}

.settings-preference-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
}

.more-preferences-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.more-preferences-copy strong {
  font-size: 13px;
}

.more-preferences-copy span {
  color: var(--muted);
  font-size: 12px;
}

.more-preferences .language-control {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  flex: none;
  flex-direction: column;
  padding: 0;
}

.security-preferences {
  background: var(--card-soft);
  border-radius: 0 0 16px 16px;
  margin-top: 0;
}

.settings-preferences-icon,
.security-preferences-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 11px;
  color: var(--accent);
  display: flex;
  flex: none;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.security-preferences-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.security-preferences-copy strong {
  font-size: 13px;
}

.security-preferences-copy span,
.security-preferences-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.security-preferences-copy small {
  color: var(--accent);
  font-weight: 700;
}

.settings-toggle {
  background: var(--line-strong);
  border: 0;
  border-radius: 999px;
  flex: none;
  height: 28px;
  justify-content: flex-start;
  min-height: 28px;
  padding: 3px;
  width: 48px;
}

.settings-toggle span {
  background: var(--card);
  border-radius: 50%;
  display: block;
  height: 22px;
  transform: translateX(0);
  transition: transform 140ms ease;
  width: 22px;
}

.settings-toggle.active {
  background: var(--accent);
}

.settings-toggle.active span {
  transform: translateX(20px);
}

.settings-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.2);
}

.section-head-tight {
  align-items: center;
}

.registry-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.token-registry-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.token-registry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row-tight {
  background: var(--card);
  border-radius: 14px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
}

.detail-row-tight span {
  flex: 0 0 auto;
}

.detail-row-tight strong {
  flex: 1 1 auto;
  text-align: right;
}

.detail-row-tight em {
  font-style: normal;
  margin-left: 8px;
}

.mini-link-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--accent);
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  max-width: 100%;
  min-height: 30px;
  min-width: 0;
  padding: 0;
  white-space: nowrap;
  width: auto;
}

.empty-state-tight {
  padding: 14px;
}

.custom-token-sheet {
  gap: 12px;
}

.custom-token-form {
  display: grid;
  gap: 10px;
}

.wallet-withdraw-form {
  gap: 14px;
}

.wallet-withdraw-mode {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-withdraw-mode-tabs {
  display: flex;
  gap: 8px;
}

.wallet-withdraw-mode-tabs .wallet-segment-tab {
  flex: 1 1 0;
}

.wallet-gas-level-tab {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-height: 52px;
  text-align: left;
}

.wallet-gas-level-tab span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.wallet-gas-level-tab em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.risk-card {
  margin-top: 8px;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
}

.risk-card p {
  margin: 4px 0 0;
}

.risk-card--loading,
.risk-card--muted {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
}

.risk-card--safe {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.risk-card--info {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.risk-card--warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.risk-card--danger {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

.risk-card button {
  margin-top: 8px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.18);
  color: #991b1b;
}

.risk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.risk-modal {
  width: min(420px, 100%);
  border-radius: 22px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #0f172a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.risk-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.risk-modal p {
  margin: 0 0 12px;
  color: #64748b;
}

.risk-modal ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #b91c1c;
}

.risk-modal-actions {
  display: grid;
  gap: 8px;
}

.risk-modal-actions button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 11px 12px;
  font-weight: 700;
  background: #e2e8f0;
  color: #0f172a;
}

.risk-modal-actions button:last-child {
  background: #2563eb;
  color: #ffffff;
}

.wallet-form {
  width: 100%;
}

.token-lookup-hint {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.token-lookup-hint span {
  font-size: 12px;
  font-weight: 600;
}

.token-lookup-hint strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.form-field input {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-size: 16px;
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

.form-field select {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

.form-field input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.16);
  border-color: rgba(45, 127, 249, 0.42);
}

.custom-token-actions {
  justify-content: space-between;
}

.deposit-copy-button-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(45, 127, 249, 0.2);
  color: #fff;
  font-weight: 700;
}

.tab-card-head h2 {
  font-size: 18px;
  line-height: 1.2;
}

.muted-copy {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.bottom-nav {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 24px;
  gap: 6px;
  justify-content: space-between;
  margin-top: auto;
  padding: 9px 10px max(12px, env(safe-area-inset-bottom, 0px));
  position: sticky;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.2);
  backdrop-filter: blur(18px);
}

.nav-item {
  background: transparent;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-height: 58px;
  padding: 8px 6px;
}

.nav-item.active {
  background: rgba(45, 127, 249, 0.08);
  color: var(--accent);
}

.text-action {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 0;
}

.signout-inline {
  align-self: center;
  margin-top: 2px;
}

.swap-empty-state,
.swap-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.swap-panel {
  min-width: 0;
  width: 100%;
}

.swap-empty-state {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  padding: 16px;
}

.settings-sheet {
  display: block;
  gap: 0;
}

.swap-empty-state p,
.swap-empty-state span {
  margin: 0;
}

.swap-empty-state p {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.swap-empty-state span {
  font-size: 13px;
}

.swap-pair-label {
  align-self: flex-start;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  padding: 6px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swap-selector-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  position: relative;
  width: 100%;
}

.custom-token-warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 12px;
  color: #b91c1c;
  padding: 10px 12px;
}

.custom-token-warning strong {
  display: block;
  font-size: 13px;
}

.custom-token-warning ul {
  margin: 6px 0;
  padding-left: 18px;
}

.custom-token-warning label {
  align-items: center;
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.custom-token-warning input {
  min-height: auto;
  width: auto;
}

.swap-token-picker,
.swap-amount-card,
.swap-quote-card,
.swap-action-card,
.swap-status-line {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.swap-token-picker {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  min-height: 82px;
  min-width: 0;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.swap-token-picker:hover:not(:disabled) {
  border-color: rgba(45, 127, 249, 0.24);
  transform: none;
}

.swap-token-picker:focus-visible {
  border-color: rgba(45, 127, 249, 0.42);
  box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.16);
}

.swap-token-field-copy,
.swap-token-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.swap-token-field-copy {
  gap: 7px;
}

.swap-token-field-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.swap-token-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.swap-token-text strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swap-token-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swap-token-picker svg {
  flex: 0 0 auto;
}

.swap-custom-token-notice {
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.65;
  text-align: center;
}

.swap-provider-control {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.swap-provider-control > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.swap-provider-select {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  min-height: 40px;
  max-width: 100%;
  min-width: 0;
  padding: 0 10px;
}

.swap-flip-button {
  align-items: center;
  align-self: center;
  background: var(--card-soft);
  border: 4px solid var(--card);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin: -7px 0;
  min-height: 44px;
  padding: 0;
  position: relative;
  width: 44px;
  z-index: 2;
}

.swap-flip-button:disabled {
  opacity: 0.5;
}

.swap-token-sheet {
  inset: 0;
  position: fixed;
  z-index: 90;
}

.swap-token-sheet-backdrop {
  background: rgba(16, 24, 40, 0.48);
  border: 0;
  border-radius: 0;
  inset: 0;
  min-height: 100%;
  padding: 0;
  position: absolute;
  width: 100%;
}

.swap-token-sheet-card {
  background: var(--tg-theme-secondary-bg-color, var(--card));
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  left: 0;
  max-height: min(72vh, calc(var(--tg-viewport-height, 100vh) - 72px));
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  position: absolute;
  right: 0;
}

.swap-token-sheet-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.swap-token-sheet-close {
  background: transparent;
  border: 0;
  color: var(--accent);
  min-height: 40px;
  padding: 0 8px;
}

.swap-token-search {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-size: 16px;
  min-height: 48px;
  padding: 0 12px;
  width: 100%;
}

.swap-token-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.swap-token-option {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.swap-token-option.active {
  background: var(--accent-soft);
  border-color: rgba(45, 127, 249, 0.24);
}

.swap-token-option:disabled {
  opacity: 0.45;
}

.swap-token-options-empty {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  padding: 12px;
  text-align: center;
}

.swap-token-options-empty p,
.swap-token-options-empty span {
  margin: 0;
}

.swap-token-options-empty p {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.swap-token-options-empty span {
  font-size: 13px;
}

.swap-token-option .swap-token-meta {
  max-width: calc(100% - 28px);
}

.swap-token-option .swap-token-text em {
  max-width: 100%;
}

.coin-icon-sm {
  height: 30px;
  width: 30px;
}

.swap-amount-card {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding: 12px;
}

.swap-amount-card span {
  color: var(--muted);
  font-size: 12px;
  grid-column: 1 / -1;
}

.swap-amount-card input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  min-width: 0;
  outline: none;
  padding: 0;
}

.swap-amount-card input::placeholder {
  color: rgba(102, 112, 133, 0.6);
}

.swap-max-button {
  background: rgba(45, 127, 249, 0.1);
  border: 0;
  color: var(--accent);
  min-height: 34px;
  padding: 0 10px;
}

.swap-quote-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.swap-quote-row,
.swap-status-line {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.swap-quote-row span,
.swap-status-line span {
  color: var(--muted);
  font-size: 12px;
}

.swap-quote-row strong,
.swap-status-line strong,
.swap-action-card strong {
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.swap-error {
  background: rgba(217, 45, 32, 0.08);
  border: 1px solid rgba(217, 45, 32, 0.16);
  border-radius: 14px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
}

.swap-success {
  align-items: flex-start;
  background: rgba(32, 164, 107, 0.1);
  border: 1px solid rgba(32, 164, 107, 0.2);
  border-radius: 14px;
  color: #147a4b;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
}

.wallet-withdraw-copy-link {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 5px;
  line-height: 1.3;
  margin-top: 0;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-withdraw-copy-link svg {
  flex: 0 0 auto;
}

.wallet-withdraw-copy-link span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-withdraw-progress {
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid rgba(29, 78, 216, 0.14);
  border-radius: 14px;
  color: var(--text-muted);
  padding: 10px 12px;
}

.wallet-withdraw-progress-steps {
  display: flex;
  gap: 6px;
}

.wallet-withdraw-progress-steps span {
  background: rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: var(--text-muted);
  flex: 1 1 0;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 6px;
  text-align: center;
  white-space: nowrap;
}

.wallet-withdraw-progress-steps span.active {
  background: rgba(37, 99, 235, 0.16);
  color: #1d4ed8;
}

.wallet-withdraw-progress-steps span.done {
  background: rgba(32, 164, 107, 0.14);
  color: #147a4b;
}

.wallet-withdraw-progress p {
  font-size: 12px;
  margin: 8px 0 0;
}

.swap-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.swap-primary-button,
.swap-secondary-button {
  min-height: 44px;
}

.swap-primary-button {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(45, 127, 249, 0.2);
  color: #fff;
  font-weight: 700;
}

.swap-secondary-button {
  background: var(--card);
}

.swap-action-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.swap-action-card span {
  color: var(--muted);
  font-size: 12px;
}

.wallet-tool-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.wallet-segment-tab.active {
  background: rgba(45, 127, 249, 0.12);
  border-color: rgba(45, 127, 249, 0.18);
  color: var(--accent);
}

.wallet-tool-layout,
.wallet-tool-stack,
.wallet-tool-panel,
.tab-card,
.wallet-asset-picker,
.wallet-asset-picker-button,
.wallet-asset-picker-dropdown,
.wallet-asset-picker-dropdown-card,
.wallet-asset-picker-sheet-card,
.form-field,
.form-field input,
.form-field select,
.wallet-tool-panel-footer,
.wallet-tool-panel-footer button,
.wallet-list,
.wallet-list-row,
.wallet-list-main,
.wallet-form {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.wallet-tool-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  width: 100%;
  overflow: hidden;
}

.wallet-tool-stack .wallet-tool-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
  padding: 14px;
}

.wallet-tool-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wallet-tool-head h2 {
  margin: 0;
}

.wallet-tool-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.gas-sponsorship-status-card {
  background: linear-gradient(180deg, rgba(45, 127, 249, 0.1), rgba(45, 127, 249, 0.03)), var(--card-soft);
  border: 1px solid rgba(45, 127, 249, 0.14);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.gas-sponsorship-status-card > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gas-sponsorship-status-card span {
  color: var(--muted);
  font-size: 12px;
}

.gas-sponsorship-status-card strong {
  font-size: 14px;
  overflow: hidden;
  text-transform: capitalize;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rabby-gas-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.rabby-gas-card .wallet-status-actions {
  align-items: stretch;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.rabby-gas-card .wallet-status-actions > * {
  flex: 1 1 0;
}

.gas-account-actions-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gas-account-meta-row {
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
  padding: 10px 0;
}

.gas-account-meta-row strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
  text-align: right;
}

.gas-account-meta-row .mini-link-button {
  flex: 0 0 auto;
}

.rabby-gas-address-card {
  cursor: default;
  gap: 14px;
  min-width: 0;
}

.rabby-gas-address-copy {
  flex: 0 0 auto;
  height: 36px;
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  width: 36px !important;
}

.rabby-gas-address-copy.copied {
  color: var(--positive);
}

.rabby-gas-address-card .wallet-asset-picker-meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  width: auto !important;
}

.rabby-gas-address-card .wallet-asset-picker-meta > span {
  min-width: 0;
  overflow: hidden;
}

.rabby-gas-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rabby-gas-history-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-width: 0;
}

.rabby-gas-history-head > strong {
  color: var(--text);
  font-size: 14px;
}

.rabby-gas-history-toggle {
  flex: 0 0 auto;
  max-width: min(132px, 46%);
  min-height: 32px;
  width: auto;
}

.gas-cost-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.gas-cost-grid span {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  padding: 8px;
}

.wallet-field-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.wallet-asset-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-asset-picker-button,
.wallet-asset-option {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px 12px;
  width: 100%;
}

.wallet-asset-picker-button.active {
  border-color: rgba(45, 127, 249, 0.24);
}

.wallet-asset-picker-meta {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
}

.wallet-asset-picker-meta > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wallet-asset-picker-meta strong {
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-asset-picker-meta em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-asset-picker-dropdown {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.wallet-asset-picker-dropdown-card {
  gap: 8px;
  padding: 10px;
}

.wallet-asset-picker-sheet {
  inset: 0;
  position: fixed;
  z-index: 80;
}

.wallet-sheet-backdrop {
  background: rgba(16, 24, 40, 0.48);
  border: 0;
  border-radius: 0;
  inset: 0;
  min-height: 100%;
  padding: 0;
  position: absolute;
  width: 100%;
}

.wallet-asset-picker-sheet-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  left: 0;
  max-height: 70vh;
  overflow-y: auto;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  position: absolute;
  right: 0;
}

.wallet-sheet-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.wallet-asset-picker-search {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  min-height: 48px;
  padding: 0 12px;
  width: 100%;
}

.wallet-asset-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.wallet-asset-option {
  border-radius: 12px;
  min-height: 52px;
  text-align: left;
}

.wallet-asset-option.active {
  background: rgba(45, 127, 249, 0.08);
  border-color: rgba(45, 127, 249, 0.2);
}

.wallet-form-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.wallet-inline-card {
  margin-top: -2px;
}

.wallet-amount-card {
  grid-template-columns: 1fr auto;
}

.wallet-amount-card input {
  min-width: 0;
}

.wallet-status {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.wallet-status-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.wallet-status-head span {
  color: var(--muted);
  font-size: 12px;
}

.wallet-status-head strong {
  font-size: 13px;
}

.wallet-status-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.wallet-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-tool-panel-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-amount-card input,
.wallet-tool-panel .form-field input {
  font-size: 18px;
}

.wallet-tool-panel .form-field input,
.wallet-tool-panel .form-field select {
  min-height: 52px;
}

.wallet-list-row {
  align-items: flex-start;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.wallet-list-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wallet-list-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.wallet-list-main strong,
.wallet-list-main em {
  overflow-wrap: anywhere;
}

.wallet-list-main strong {
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.wallet-list-main em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.wallet-copy-button {
  flex: none;
  min-height: 32px;
}

.wallet-primary-button {
  width: 100%;
}

.wallet-segment-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.wallet-segment-tabs::-webkit-scrollbar {
  display: none;
}

.wallet-segment-tab {
  border-radius: 999px;
  flex: none;
  font-size: 13px;
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.wallet-form .form-field input,
.wallet-form .form-field select,
.wallet-form .swap-primary-button {
  font-size: 16px;
  min-height: 48px;
  width: 100%;
}

.receipt-box {
  background: #0f1720;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #dce7f4;
  max-height: 50vh;
  overflow: auto;
  padding: 14px;
}

.receipt-box pre {
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.deposit-modal {
  align-items: flex-end;
  background: rgba(16, 24, 40, 0.32);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 30;
}

.deposit-sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.24);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 390px;
  padding: 16px;
  width: 100%;
}

.deposit-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.deposit-sheet-head h2 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.deposit-sheet-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: -4px 0 0;
}

.deposit-crypto-sheet {
  max-height: calc(var(--tg-viewport-height, 100vh) - 32px);
  overflow-y: auto;
}

.deposit-modal-subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: -6px 0 0;
}

.deposit-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-left: 6px;
  margin-right: 6px;
}

.deposit-step {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 9px;
  padding: 14px 0;
  min-width: 0;
}

.deposit-step:first-child {
  border-top: 0;
  padding-top: 4px;
}

.deposit-step-number {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: none;
  font-size: 11px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.deposit-step-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.deposit-step-title {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.deposit-step-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.deposit-qr-layout {
  align-items: center;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.deposit-qr-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  flex: none;
  height: 102px;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  width: 102px;
}

.deposit-qr-image {
  height: 100%;
  width: 100%;
}

.deposit-qr-image svg {
  display: block;
  height: 100%;
  width: 100%;
}

.deposit-qr-card .deposit-qr-fallback {
  border-radius: 8px;
  height: 100%;
  width: 100%;
}

.deposit-address-control {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 48px;
  padding: 5px 6px;
  width: 100%;
}

.deposit-address-network-icon {
  border-radius: 999px;
  flex: none;
  height: 28px;
  width: 28px;
}

.deposit-address-text {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deposit-address-copy {
  align-items: center;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  flex: none;
  height: 36px;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  width: 36px;
}

.deposit-address-copy:hover:not(:disabled),
.deposit-address-copy:focus-visible,
.deposit-address-copy:active {
  background: var(--accent-soft);
  border-color: rgba(45, 127, 249, 0.24);
  color: var(--accent);
  transform: none;
}

.deposit-copy-feedback {
  align-items: center;
  align-self: center;
  background: rgba(32, 164, 107, 0.1);
  border-radius: 999px;
  color: var(--positive);
  display: inline-flex;
  font-size: 11px;
  gap: 3px;
  padding: 3px 8px;
}

.deposit-network-strip {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 3px 2px 5px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.deposit-network-strip::-webkit-scrollbar {
  display: none;
}

.deposit-network-item {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex: none;
  flex-direction: column;
  font-size: 10px;
  gap: 4px;
  min-width: 50px;
  scroll-snap-align: start;
}

.deposit-network-icon {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.deposit-network-name {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deposit-safety-note {
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid rgba(45, 127, 249, 0.14);
  border-radius: 13px;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 7px;
  line-height: 1.35;
  padding: 10px 11px;
}

.deposit-safety-note svg {
  color: var(--accent);
  flex: none;
  margin-top: 1px;
}

.deposit-qr {
  align-items: center;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding: 12px;
}

.deposit-qr-code {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  display: flex;
  aspect-ratio: 1;
  height: auto;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  width: 100%;
}

.deposit-qr-code svg {
  display: block;
  height: 100%;
  width: 100%;
}

.deposit-qr-fallback {
  align-items: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  display: flex;
  font-size: 14px;
  height: 220px;
  justify-content: center;
  width: 220px;
}

.deposit-qr-caption {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.deposit-qr-caption strong {
  color: var(--text);
  font-size: 13px;
}

.deposit-qr-caption span {
  color: var(--muted);
  font-size: 11px;
}

.deposit-address-card {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.deposit-address-card span {
  color: var(--muted);
  font-size: 12px;
}

.deposit-address-card strong {
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.deposit-address-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.deposit-copy-button {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
}

.deposit-copy-button.secondary {
  color: var(--muted);
}

.deposit-copy-button:disabled {
  opacity: 0.5;
}

.version-chip {
  align-items: center;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
}

.coin-icon {
  border-radius: 999px;
  height: 46px;
  object-fit: cover;
  width: 46px;
  flex: none;
}

.coin-icon-fallback {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(45, 127, 249, 0.16);
  color: var(--accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
}

.auth-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-height: var(--tg-viewport-height, 100vh);
  overflow-x: hidden;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
}

.auth-card {
  animation: auth-card-enter 200ms ease-out both;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  max-width: 390px;
  padding: 28px 26px 26px;
  width: 100%;
}

.auth-brand-visual {
  height: 135px;
  margin: -4px auto 8px;
  max-width: 330px;
  position: relative;
  width: 100%;
}

.auth-logo-wrap {
  align-items: center;
  display: flex;
  height: 82px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  z-index: 2;
}

.auth-logo {
  border-radius: 20px;
  height: 72px;
  object-fit: contain;
  width: 72px;
}

.auth-network-decoration {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(20, 45, 80, 0.08);
  display: flex;
  height: 29px;
  justify-content: center;
  position: absolute;
  width: 29px;
  z-index: 1;
}

.auth-network-decoration img {
  height: 23px;
  object-fit: contain;
  width: 23px;
}

.auth-network-decoration.is-hidden {
  display: none;
}

.auth-network-decoration-1 {
  left: 3%;
  top: 48%;
}

.auth-network-decoration-8453 {
  left: 27%;
  top: 4%;
}

.auth-network-decoration-10 {
  right: 25%;
  top: 4%;
}

.auth-network-decoration-137 {
  right: 4%;
  top: 46%;
}

.auth-network-decoration-42161 {
  bottom: 3%;
  left: 20%;
}

.auth-network-decoration-43114 {
  bottom: 5%;
  right: 18%;
}

.auth-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

.auth-title {
  color: var(--text);
  font-size: clamp(32px, 9vw, 38px);
  font-weight: 800;
  line-height: 1.05;
  margin: 6px 0 8px;
  text-align: center;
}

.auth-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 285px;
  text-align: center;
}

.auth-methods {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.auth-button {
  align-items: center;
  border-radius: 15px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  min-height: 52px;
  padding: 0 14px;
  width: 100%;
}

.auth-button-primary {
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(45, 127, 249, 0.2);
  color: #fff;
}

.auth-button-secondary {
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.auth-button-icon {
  flex: none;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 12px;
  color: #b42318 !important;
  font-size: 13px;
  line-height: 1.4;
  margin: 16px 0 12px;
  overflow-wrap: anywhere;
  padding: 10px 12px;
}

.auth-loader {
  animation: spin 0.8s linear infinite;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  height: 28px;
  width: 28px;
}

.auth-card > .auth-loader {
  display: block;
  margin: 20px auto 2px;
}

.auth-card > .auth-button + .auth-button {
  margin-top: 10px;
}

.auth-featured-badge {
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: block;
  filter: grayscale(1);
  opacity: 0.16;
  position: fixed;
  right: 12px;
  transition: filter 160ms ease, opacity 160ms ease;
  width: fit-content;
  z-index: 2;
}

.auth-featured-badge:hover,
.auth-featured-badge:focus-visible {
  filter: grayscale(0);
  opacity: 0.55;
}

.auth-featured-badge:has(a:focus-visible) {
  filter: grayscale(0);
  opacity: 0.55;
}

.auth-featured-badge img {
  display: block;
  height: 44px;
  max-width: 100%;
  width: auto;
}

.wallet-open .auth-featured-badge {
  display: none;
}

@keyframes auth-card-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 380px) {
  .auth-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .auth-brand-visual {
    height: 126px;
  }

  .auth-logo-wrap {
    height: 74px;
    width: 74px;
  }

  .auth-logo {
    height: 66px;
    width: 66px;
  }

  .auth-network-decoration {
    height: 26px;
    width: 26px;
  }

  .auth-network-decoration img {
    height: 21px;
    width: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card {
    animation: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  html,
  body,
  #root {
    max-width: 100%;
    overflow-x: hidden;
  }

  .wallet-page {
    padding: 8px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
  }

  .wallet-shell,
  .wallet-card,
  .tab-card {
    max-width: 100%;
    width: 100%;
  }

  .wallet-shell {
    min-height: calc(var(--tg-viewport-height, 100vh) - 24px);
  }

  .wallet-card {
    border-radius: 24px;
    padding: 12px;
  }

  .wallet-header {
    align-items: flex-start;
  }

  .wallet-header-actions {
    gap: 6px;
  }

  .tab-card {
    border-radius: 18px;
    padding: 12px;
  }

  .wallet-card *,
  .tab-card *,
  .wallet-tool-layout * {
    box-sizing: border-box;
    min-width: 0;
  }

  .wallet-segment-tabs::-webkit-scrollbar {
    display: none;
  }

  .wallet-segment-tab.active {
    background: rgba(45, 127, 249, 0.12);
    border-color: rgba(45, 127, 249, 0.18);
    color: var(--accent);
  }

  .wallet-tool-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .gas-account-actions-grid,
.wallet-form,
.custom-token-form {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .wallet-tool-panel {
    border-radius: 18px;
    gap: 12px;
    padding: 14px;
    width: 100%;
  }

  .wallet-tool-stack .wallet-tool-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: none;
    padding: 14px;
  }

  .wallet-status,
.token-lookup-hint {
    border-radius: 16px;
  }

  .token-registry-list,
  .custom-token-form {
    gap: 10px;
  }

  .wallet-list-row,
  .detail-row-tight {
    align-items: flex-start;
    border-radius: 12px;
    gap: 8px;
    padding: 12px;
  }

  .detail-row-tight {
    flex-direction: column;
  }

  .detail-row-tight strong,
  .detail-row-tight span,
  .wallet-list-main,
  .wallet-list-main strong,
  .wallet-list-main em {
    min-width: 0;
    text-align: left;
  }

  .wallet-segment-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .wallet-segment-tab {
    border-radius: 999px;
    flex: none;
    font-size: 13px;
    min-height: 36px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .tab-card-head h2,
  .wallet-tool-head h2 {
    font-size: 22px;
  }

  .muted-copy,
.wallet-tool-copy,
.wallet-form-note,
.wallet-list-main em,
.empty-state span {
    font-size: 13px;
  }

  .swap-primary-button,
  .swap-secondary-button,
.form-field input,
.form-field select,
.wallet-asset-picker-button,
.wallet-asset-option,
.wallet-asset-picker-search {
    width: 100%;
  }

  .assets-section-head {
    gap: 6px;
  }

  .assets-section-head .section-head-actions {
    gap: 4px;
  }

  .assets-section-head .toggle-button {
    font-size: 11px;
    gap: 4px;
    padding: 0 7px;
    width: auto;
  }

  .assets-section-head .asset-header-action svg {
    height: 15px;
    width: 15px;
  }

  .wallet-list-row .mini-link-button {
    min-height: 32px;
    width: auto;
  }

  .wallet-tool-panel-footer .mini-link-button,
  .wallet-tool-panel-footer .swap-primary-button {
    min-height: 48px;
  }

  .wallet-asset-picker-button .wallet-asset-picker-meta {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .wallet-asset-option,
  .wallet-asset-picker-button {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .wallet-asset-picker-meta > span {
    overflow: hidden;
  }

  .wallet-asset-picker-meta strong,
.wallet-asset-option-symbol,
.asset-title-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
  }

  .signout-inline {
    display: none !important;
  }

  .empty-state {
    border-radius: 12px;
    border-style: solid;
    padding: 10px 12px;
  }

  .empty-state p {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .empty-state span {
    display: block;
    font-size: 12px;
    line-height: 1.4;
  }

  .wallet-amount-card {
    border-radius: 12px;
  }
}

@media (max-width: 430px) {
  .hero-number-row {
    align-items: center;
  }

  .hero-wallet-row {
    gap: 8px;
    padding: 0;
  }

  .hero-wallet-actions {
    gap: 3px;
  }

  .hero-wallet-action {
    padding-left: 5px;
    padding-right: 5px;
  }

  .assets-section-head {
    gap: 6px;
    flex-wrap: wrap;
  }

  .assets-section-head .section-head-actions {
    width: 100%;
  }

  .assets-section-head .asset-header-action {
    flex: 1 1 0;
  }

  .account-row {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-side {
    justify-content: flex-start;
  }

  .detail-row {
    flex-basis: 100%;
  }

  .asset-row {
    padding: 18px 12px;
  }

  .chain-strip-fade {
    width: 34px;
  }

  .swap-actions {
    grid-template-columns: 1fr;
  }

  .deposit-modal {
    padding: 10px;
  }

  .deposit-sheet {
    border-radius: 24px;
    padding: 14px;
  }

  .deposit-qr-fallback {
    height: 196px;
    width: 196px;
  }

  .deposit-qr-code {
    height: auto;
    width: 100%;
  }

  .deposit-address-card strong {
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  .assets-section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .assets-section-head .section-head-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .assets-section-head .asset-header-action {
    flex: 1 1 0;
  }
}

@media (max-width: 340px) {
  .assets-section-head .section-head-actions {
    margin-left: auto;
    width: auto;
  }

  .assets-section-head .asset-header-action {
    flex: 0 0 36px;
    padding-left: 0;
    padding-right: 0;
    width: 36px;
  }

  .assets-section-head .asset-header-label {
    display: none;
  }

  .deposit-qr-layout {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .deposit-qr-card {
    grid-column: 2;
    height: 88px;
    justify-self: start;
    margin-top: 4px;
    width: 88px;
  }
}

@media (max-width: 374px) {
  .hero-wallet-action {
    font-size: 8px;
    min-height: 38px;
    padding-left: 2px;
    padding-right: 2px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }

  body {
    background: #0f1115;
    color: #edf1f7;
  }

  .wallet-card,
  .auth-card,
  .tab-card,
  .details-sheet,
  .account-row,
  .asset-row,
  .hero-card,
  .icon-button,
  .toggle-button,
  .chain-pill,
  .version-chip,
  .bottom-nav {
    background: #141922;
    border-color: rgba(255, 255, 255, 0.08);
  }

  .primary-nav,
  .hero-account-control,
  .hero-copy-button,
  .hero-wallet-action,
  .fiat-p2p-network-control {
    background: #141922;
    border-color: rgba(255, 255, 255, 0.08);
  }

  .hero-network-trigger,
  .fiat-p2p-network-icon {
    background: rgba(45, 127, 249, 0.16);
  }

  .wallet-card {
    background: #151a23;
  }

  .hero-card {
    background: linear-gradient(180deg, rgba(45, 127, 249, 0.12), rgba(45, 127, 249, 0.03)), #141922;
  }

  .detail-row {
    background: #10151d;
    border-color: rgba(255, 255, 255, 0.08);
  }

  .bottom-nav {
    background: rgba(20, 25, 34, 0.92);
  }
}

.deposit-crypto-sheet {
  overflow-y: auto;
}

.gas-top-up-button {
  margin-top: 6px;
}

/* Keep mobile surfaces quiet: separation comes from fills, shadows, and spacing. */
#root :where(*, *::before, *::after) {
  border-color: transparent !important;
}

/* Native Telegram-style page surfaces: use rhythm and hierarchy instead of nested cards. */
.wallet-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.hero-card {
  background: rgba(45, 127, 249, 0.045);
  border: 0;
  border-radius: 16px;
  box-shadow: none;
  padding: 16px 2px 14px;
}

.tab-card,
.details-sheet {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 20px;
  padding: 0;
}

.account-row,
.assets-list,
.wallet-tool-panel,
.wallet-tool-stack .wallet-tool-panel,
.fiat-p2p-form,
.fiat-p2p-invoice,
.fiat-p2p-history {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.account-row {
  padding: 12px 0;
}

.assets-section,
.wallet-tool-stack,
.fiat-p2p-screen {
  gap: 20px;
}

.assets-list {
  overflow: visible;
}

.asset-row {
  padding-left: 4px;
  padding-right: 4px;
}

.asset-row:not(:last-child) {
  border-bottom-color: rgba(18, 27, 38, 0.06) !important;
}

.detail-row {
  background: var(--card-soft);
  border: 0;
  border-radius: 12px;
}

.wallet-tool-panel,
.wallet-tool-stack .wallet-tool-panel {
  padding: 0;
  overflow: visible;
}

.fiat-p2p-form,
.fiat-p2p-invoice,
.fiat-p2p-history {
  padding: 0;
}

.wallet-list-row,
.fiat-p2p-order-row {
  border: 0;
  border-radius: 12px;
}

.wallet-list-row:not(:last-child),
.fiat-p2p-order-row:not(:last-child) {
  margin-bottom: 2px;
}

.wallet-card .tab-card-head:empty {
  display: none;
}

@keyframes brand-highlight {
  0% {
    color: var(--text);
    opacity: 0;
    text-shadow: none;
    transform: scale(0.96);
  }

  38% {
    color: var(--accent);
    opacity: 1;
    text-shadow: 0 0 16px rgba(45, 127, 249, 0.35);
    transform: scale(1.045);
  }

  100% {
    color: var(--text);
    opacity: 1;
    text-shadow: none;
    transform: scale(1);
  }
}

@keyframes logo-highlight {
  0%,
  100% {
    box-shadow: none;
    transform: scale(1);
  }

  38% {
    box-shadow: 0 0 0 5px rgba(45, 127, 249, 0.14);
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-brand-name.is-highlighted,
  .wallet-brand-name.is-highlighted-alt {
    animation: none;
  }

  .wallet-mark.is-highlighted,
  .wallet-mark.is-highlighted-alt {
    animation: none;
  }
}

@media (max-width: 600px) {
  .wallet-card {
    padding: 0;
  }

  .hero-card {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Floating surfaces keep a quiet edge so they remain distinct from the page. */
.deposit-sheet,
.risk-modal,
.wallet-asset-picker-dropdown-card,
.wallet-asset-picker-sheet-card,
.swap-token-sheet-card {
  border: 1px solid var(--line) !important;
}

/* Compact Telegram dialog and wallet control system. */
.wallet-dialog {
  background: var(--card);
  border-radius: 26px 26px 22px 22px;
  box-shadow: 0 18px 54px rgba(16, 24, 40, 0.22);
  display: flex;
  flex-direction: column;
  max-height: min(calc(var(--tg-viewport-height, 100vh) - 12px), calc(100dvh - 12px));
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.wallet-dialog--sheet {
  max-width: 430px;
}

.wallet-dialog-handle {
  background: var(--muted);
  border-radius: 999px;
  height: 4px;
  margin: 8px auto 4px;
  opacity: 0.45;
  width: 44px;
}

.wallet-dialog-header {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 8px 16px 14px;
}

.wallet-dialog-header-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  flex: none;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.wallet-dialog-heading {
  min-width: 0;
}

.wallet-dialog-heading h2 {
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}

.wallet-dialog-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 3px 0 0;
}

.wallet-icon-button {
  align-items: center;
  background: var(--card-soft);
  border: 0;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  display: inline-flex;
  flex: none;
  height: 40px;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  width: 40px;
}

.wallet-dialog-close:active,
.wallet-button:active {
  transform: scale(0.985);
}

.wallet-dialog-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 16px;
}

.wallet-dialog-footer {
  background: var(--card);
  box-shadow: inset 0 1px 0 var(--line);
  display: grid;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}

.wallet-button {
  align-items: center;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  line-height: 1;
  min-height: 48px;
  padding: 0 16px;
  transition: background 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 100ms ease;
  white-space: nowrap;
}

.wallet-button--primary {
  background: var(--accent);
  box-shadow: 0 7px 18px rgba(45, 127, 249, 0.2);
  color: #fff;
}

.wallet-button--secondary {
  background: var(--card-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
}

.wallet-button--danger {
  background: #ef4444;
  box-shadow: 0 7px 18px rgba(239, 68, 68, 0.18);
  color: #fff;
}

.wallet-button--ghost {
  background: rgba(45, 127, 249, 0.08);
  box-shadow: inset 0 0 0 1px rgba(45, 127, 249, 0.12);
  color: var(--accent);
}

.wallet-button--compact {
  border-radius: 11px;
  font-size: 12px;
  min-height: 40px;
  padding: 0 11px;
}

.wallet-button--full {
  width: 100%;
}

.wallet-button:disabled,
.wallet-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  pointer-events: none;
}

.wallet-button:focus-visible,
.wallet-icon-button:focus-visible,
.risk-confirmation:focus-within {
  box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.18);
  outline: none;
}

.wallet-dialog .custom-token-form {
  gap: 14px;
}

.wallet-dialog .custom-token-notice {
  align-items: flex-start;
  background: rgba(45, 127, 249, 0.06);
  border: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(45, 127, 249, 0.16);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 14px;
}

.wallet-dialog .custom-token-notice > svg {
  color: var(--accent);
  flex: none;
}

.wallet-dialog .custom-token-notice > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.wallet-dialog .custom-token-notice strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.wallet-dialog .custom-token-notice span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.wallet-dialog .form-field {
  gap: 7px;
}

.wallet-dialog .form-field > span,
.wallet-dialog .wallet-field-label {
  font-size: 12.5px;
  font-weight: 700;
}

.wallet-dialog .form-field input,
.wallet-dialog .form-field select {
  background: var(--card);
  border: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  min-height: 54px;
  padding: 0 14px;
}

.wallet-dialog .form-field input:focus-visible,
.wallet-dialog .form-field select:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(45, 127, 249, 0.7), 0 0 0 3px rgba(45, 127, 249, 0.16);
  outline: none;
}

.wallet-dialog .custom-token-input.suspicious {
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.68), 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.wallet-dialog .token-lookup-hint {
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
}

.wallet-dialog .custom-token-warning {
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
}

.custom-token-actions {
  grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1.25fr);
}

.wallet-withdraw-form {
  gap: 16px;
}

.wallet-withdraw-form .wallet-asset-picker-button {
  border: 0;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  min-height: 66px;
  padding: 9px 12px;
}

.wallet-withdraw-form .wallet-asset-picker-meta strong {
  font-size: 15px;
}

.wallet-withdraw-form .wallet-amount-card {
  border: 0;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  min-height: 62px;
}

.wallet-withdraw-form .wallet-amount-card input {
  background: transparent;
  box-shadow: none;
  font-size: 20px;
  font-weight: 700;
  min-height: 48px;
  padding: 0;
}

.wallet-withdraw-form .swap-max-button {
  margin-right: 2px;
}

.wallet-segmented-control {
  background: var(--card-soft);
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  width: 100%;
}

.wallet-segment-tab {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 650;
  gap: 7px;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 0 10px;
  white-space: normal;
}

.wallet-segment-tab.active {
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(45, 127, 249, 0.3), 0 2px 7px rgba(16, 24, 40, 0.06);
  color: var(--accent);
  font-weight: 750;
}

.wallet-segment-tab:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.wallet-gas-level-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wallet-gas-level-tabs--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-gas-level-tab {
  align-items: flex-start;
  gap: 2px;
  justify-content: center;
  min-height: 54px;
  text-align: left;
}

.wallet-gas-level-tab span {
  font-size: 12.5px;
}

.wallet-gas-level-tab em {
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.risk-modal-backdrop {
  align-items: flex-end;
  background: rgba(15, 23, 42, 0.44);
  display: flex;
  justify-content: center;
  padding: 10px;
  place-items: unset;
  backdrop-filter: blur(6px);
}

.risk-modal {
  background: var(--card);
  border: 0;
  border-radius: 26px 26px 22px 22px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  max-height: min(calc(var(--tg-viewport-height, 100vh) - 12px), calc(100dvh - 12px));
  overflow: hidden;
  padding: 0;
  width: min(430px, 100%);
}

.risk-modal-header-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.risk-modal--warning .risk-modal-header-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.risk-modal--info .risk-modal-header-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.risk-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.risk-modal-summary,
.risk-modal-details {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  padding: 14px;
}

.risk-modal-summary strong,
.risk-modal-details > strong {
  color: var(--text);
  display: block;
  font-size: 14px;
  font-weight: 750;
}

.risk-modal-summary p,
.risk-modal-details p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 5px 0 0;
}

.risk-modal-summary--danger,
.risk-modal-summary--forbidden {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.24);
}

.risk-modal-summary--warning {
  background: rgba(245, 158, 11, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.risk-modal-details {
  background: var(--card-soft);
}

.risk-modal-details ul {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  margin: 8px 0 0;
  padding-left: 18px;
}

.risk-modal-details li::marker {
  color: #dc2626;
}

.risk-modal-details--warning li::marker {
  color: #b45309;
}

.risk-confirmation {
  align-items: center;
  border-radius: 14px;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 6px 4px;
}

.risk-confirmation input {
  accent-color: var(--accent);
  flex: none;
  height: 18px;
  width: 18px;
}

.risk-confirmation span {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.risk-modal-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.risk-modal-actions:has(> :only-child) {
  grid-template-columns: 1fr;
}

.risk-modal-loading {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 170px;
  text-align: center;
}

.risk-modal-loading strong {
  color: var(--text);
  font-size: 15px;
}

.risk-modal-loading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.wallet-loading-spinner {
  border: 3px solid rgba(45, 127, 249, 0.18);
  border-radius: 50%;
  border-top-color: var(--accent);
  height: 28px;
  width: 28px;
  animation: wallet-dialog-spin 800ms linear infinite;
}

@keyframes wallet-dialog-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 350px) {
  .deposit-modal,
  .risk-modal-backdrop {
    padding: 6px;
  }

  .wallet-dialog-header,
  .wallet-dialog-body,
  .wallet-dialog-footer {
    padding-left: 13px;
    padding-right: 13px;
  }

  .wallet-dialog-header {
    gap: 10px;
  }

  .wallet-dialog-heading h2 {
    font-size: 20px;
  }

  .wallet-dialog-footer {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-button,
  .wallet-icon-button {
    transition: none;
  }

  .wallet-loading-spinner {
    animation: none;
  }
}

@media (prefers-color-scheme: dark) {
  .wallet-dialog,
  .risk-modal {
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
  }

  .wallet-button--danger {
    background: #dc2626;
  }

  .risk-modal-summary--danger,
  .risk-modal-summary--forbidden {
    background: rgba(239, 68, 68, 0.14);
  }
}

/* Form and workflow surfaces stay readable through fill, type, and spacing. */
.form-field input,
.form-field select,
.swap-provider-select,
.wallet-status,
.swap-empty-state,
.swap-quote-card,
.swap-action-card,
.swap-status-line,
.swap-token-options-empty,
.fiat-p2p-steps,
.fiat-p2p-address,
.fiat-p2p-contract,
.wallet-list-row,
.fiat-p2p-order-row {
  border: 0;
  box-shadow: none;
}

.form-field input,
.form-field select {
  border-radius: 12px;
}

.details-grid {
  gap: 0 18px;
}

.detail-row {
  background: transparent;
  border-bottom: 1px solid rgba(18, 27, 38, 0.06) !important;
  border-radius: 0;
  padding: 12px 0;
}

.detail-row:nth-last-child(-n + 2) {
  border-bottom-color: transparent !important;
}

.swap-empty-state,
.swap-quote-card,
.swap-action-card,
.swap-status-line,
.swap-token-options-empty {
  background: var(--card-soft);
  border-radius: 12px;
}

.swap-quote-card,
.swap-action-card,
.swap-status-line {
  padding-left: 0;
  padding-right: 0;
}

.fiat-p2p-steps {
  border-radius: 12px;
}

.fiat-p2p-address,
.fiat-p2p-contract,
.wallet-list-row,
.fiat-p2p-order-row {
  background: var(--card-soft);
  border-radius: 12px;
}

.gas-sponsorship-status-card {
  border: 0;
  box-shadow: none;
}

.wallet-asset-picker-dropdown,
.wallet-asset-picker-button,
.wallet-asset-option {
  box-shadow: none;
}

@media (prefers-color-scheme: dark) {
  .hero-card {
    background: rgba(45, 127, 249, 0.1);
  }

  .form-field input,
  .form-field select,
  .swap-provider-select,
  .swap-empty-state,
  .swap-quote-card,
  .swap-action-card,
  .swap-status-line,
  .swap-token-options-empty,
  .fiat-p2p-steps,
  .fiat-p2p-address,
  .fiat-p2p-contract,
  .wallet-list-row,
  .fiat-p2p-order-row {
    background: #10151d;
  }

  .detail-row {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  }
}

/* Concept 4: compact wallet hero and functional bottom navigation. */
.hero-card {
  border-radius: 18px;
  gap: 12px;
  padding: 16px 12px 12px;
}

.hero-wallet-row {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.hero-account-control {
  background: var(--card);
  border: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: 48px;
  padding: 5px 6px;
  width: 100%;
}

.hero-network-picker {
  width: 100%;
}

.hero-network-picker .chain-strip-scroll {
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 12px;
}

.hero-wallet-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: initial;
  width: 100%;
}

.hero-wallet-action {
  align-items: center;
  background: var(--card);
  border: 0;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  flex-direction: column;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  justify-content: center;
  min-height: 56px;
  min-width: 0;
  padding: 6px 4px;
  text-decoration: none;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.hero-wallet-action svg {
  color: var(--accent);
  flex: none;
}

.hero-wallet-action:hover:not(:disabled),
.hero-wallet-action:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(45, 127, 249, 0.32), 0 2px 8px rgba(16, 24, 40, 0.06);
  transform: none;
}

.hero-wallet-action:active:not(:disabled) {
  transform: scale(0.98);
}

.hero-wallet-action:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(45, 127, 249, 0.42), 0 0 0 3px rgba(45, 127, 249, 0.16);
}

.hero-wallet-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.assets-section {
  gap: 14px;
}

.assets-section-head {
  align-items: center;
  flex-wrap: wrap;
}

.assets-section-head .section-head-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
  width: 100%;
}

.assets-section-head .asset-header-action {
  background: transparent;
  border: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  flex: none;
  font-size: 11px;
  min-height: 38px;
  padding: 0 8px;
  width: 100%;
}

.assets-section-head .asset-header-action:hover,
.assets-section-head .asset-header-action:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(45, 127, 249, 0.32);
}

.asset-row {
  padding: 15px 4px;
}

.primary-nav {
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-radius: 18px;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(16, 24, 40, 0.1);
  gap: 0;
  min-height: 60px;
  padding: 4px 6px;
}

.primary-nav-item,
.primary-nav--with-p2p .primary-nav-item {
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 10px;
  gap: 3px;
  min-height: 52px;
  padding: 4px 2px;
}

.primary-nav-item.active {
  background: rgba(45, 127, 249, 0.045);
  color: var(--accent);
  font-weight: 700;
}

.primary-nav-item svg,
.primary-nav--with-p2p .primary-nav-item svg {
  height: 20px;
  width: 20px;
}

.primary-nav--with-p2p .primary-nav-item {
  font-size: 9.5px;
}

.primary-nav-balance {
  color: currentColor;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  opacity: 0.8;
}

.primary-nav-gas-label {
  align-items: baseline;
  display: inline-flex;
  gap: 3px;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.primary-nav-gas-icon--standalone {
  height: 22px !important;
  width: 22px !important;
}

.primary-nav--with-p2p .primary-nav-balance {
  font-size: 8px;
}

@media (max-width: 349px) {
  .hero-wallet-actions {
    gap: 6px;
  }

  .hero-wallet-action {
    font-size: 10px;
    padding-left: 2px;
    padding-right: 2px;
  }
}

@media (prefers-color-scheme: dark) {
  .hero-account-control,
  .hero-wallet-action,
  .primary-nav {
    background: #141922;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.24);
  }

  .hero-wallet-action:hover:not(:disabled),
  .hero-wallet-action:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(45, 127, 249, 0.42), 0 0 0 3px rgba(45, 127, 249, 0.16);
  }

  .primary-nav-item.active {
    background: rgba(45, 127, 249, 0.1);
  }
}
