:root {
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: #f7f4fb;
  --app: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0e9fa;
  --surface-3: #e9e2f4;
  --field: #f7f3fb;
  --text: #251447;
  --muted: #746785;
  --line: #ddd1eb;
  --accent: #e32786;
  --accent-2: #10a991;
  --accent-soft: rgb(227 39 134 / 13%);
  --success: #0a9a75;
  --danger: #d72466;
  --warning: #b45c00;
  --coin-bg: #ffffff;
  --coin-text: #0a9a75;
  --shadow: 0 22px 60px rgb(35 18 72 / 14%);
  --radius: 8px;
  --tap: 44px;
  --shell-width: 430px;
}

[data-theme="dark"] {
  --page: #f4f3f6;
  --app: #241042;
  --surface: #301653;
  --surface-2: #41205f;
  --surface-3: #533078;
  --field: #4a2b69;
  --text: #fcf8ff;
  --muted: #c5b8d9;
  --line: #603b85;
  --accent: #ff2a86;
  --accent-2: #25c7a4;
  --accent-soft: rgb(255 42 134 / 15%);
  --success: #25c7a4;
  --danger: #ff6d98;
  --warning: #ffbd59;
  --coin-bg: #eefcff;
  --coin-text: #12a982;
  --shadow: 0 28px 60px rgb(9 4 22 / 35%);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  min-height: var(--tap);
  border: 0;
  cursor: pointer;
}

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

.app-shell {
  position: relative;
  width: min(100vw, var(--shell-width));
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--app);
  box-shadow: var(--shadow);
}

.screen {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--app);
}

.topbar {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 8px;
  background: var(--app);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

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

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
}

.wallet-topbar .brand-logo {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.wallet-topbar .brand h1 {
  font-size: 14px;
  font-weight: 500;
}

.brand-mark {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  transform: rotate(45deg);
  border: 1.5px solid currentColor;
  border-radius: 3px;
  color: var(--muted);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  inset: 3px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.brand-mark::after {
  top: 2px;
  left: 50%;
  width: 1px;
  height: 9px;
  background: currentColor;
  transform: translateX(-50%);
}

.brand h1,
.brand h2,
.hero h1,
.page-title {
  margin: 0;
  letter-spacing: 0;
}

.brand h1,
.brand h2 {
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand p,
.muted,
.field-hint,
.asset-meta,
.tx-meta,
.small {
  margin: 0;
  color: var(--muted);
}

.brand p {
  margin-top: 3px;
  font-size: 12px;
  text-transform: none;
}

.top-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--text);
}

.icon-button,
.plain-icon,
.tab-button {
  display: inline-grid;
  min-width: var(--tap);
  height: var(--tap);
  place-items: center;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
}

.back-button {
  min-width: 32px;
  width: 32px;
  height: 32px;
  background: var(--surface-2);
}

.icon-button:hover,
.tab-button:hover,
.secondary-button:hover,
.plain-icon:hover {
  filter: brightness(0.97);
}

[data-theme="dark"] .icon-button:hover,
[data-theme="dark"] .tab-button:hover,
[data-theme="dark"] .secondary-button:hover,
[data-theme="dark"] .plain-icon:hover {
  filter: brightness(1.12);
}

.symbol {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.theme-switch {
  display: inline-flex;
  min-width: 58px;
  width: 58px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.theme-switch-track {
  position: relative;
  width: 58px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
  box-shadow: inset 0 1px 2px rgb(22 12 44 / 10%);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.theme-switch-track::before,
.theme-switch-track::after {
  position: absolute;
  top: 50%;
  content: "";
  transform: translateY(-50%);
  transition: opacity 160ms ease;
}

.theme-switch-track::before {
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffbb52;
  box-shadow: 0 0 0 3px rgb(255 187 82 / 18%);
  opacity: 0.92;
}

.theme-switch-track::after {
  right: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 30%, transparent 0 4px, #f5efff 4.2px 100%);
  opacity: 0.38;
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #f5efff 100%);
  box-shadow: 0 3px 10px rgb(19 10 39 / 18%);
  transition: transform 160ms ease, background 160ms ease;
}

.theme-switch.is-dark .theme-switch-track {
  border-color: #6d4b95;
  background: linear-gradient(180deg, #4a2c75 0%, #2f194f 100%);
  box-shadow: inset 0 1px 3px rgb(5 2 14 / 28%);
}

.theme-switch.is-dark .theme-switch-track::before {
  opacity: 0.34;
}

.theme-switch.is-dark .theme-switch-track::after {
  opacity: 1;
}

.theme-switch.is-dark .theme-switch-thumb {
  transform: translateX(26px);
  background: linear-gradient(180deg, #fff 0%, #eaddff 100%);
}

.theme-switch:hover .theme-switch-track {
  filter: brightness(0.98);
}

[data-theme="dark"] .theme-switch:hover .theme-switch-track {
  filter: brightness(1.08);
}

.mini-icon,
.close-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--text);
}

.mini-icon.bell::before {
  position: absolute;
  right: 3px;
  bottom: 2px;
  left: 3px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  content: "";
}

.mini-icon.bell::after {
  position: absolute;
  right: 1px;
  bottom: 1px;
  left: 1px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.mini-icon.users::before,
.mini-icon.users::after {
  position: absolute;
  bottom: 1px;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 2px 2px;
  content: "";
}

.mini-icon.users::before {
  left: 0;
}

.mini-icon.users::after {
  right: 0;
  opacity: 0.72;
}

.mini-icon.help::before {
  position: absolute;
  inset: -2px 0 0;
  color: currentColor;
  content: "?";
  font-size: 16px;
  line-height: 1;
}

.close-icon {
  min-width: 18px;
  width: 18px;
  height: 18px;
}

.close-icon::before,
.close-icon::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.close-icon::before {
  transform: rotate(45deg);
}

.close-icon::after {
  transform: rotate(-45deg);
}

.content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 10px 16px 20px;
}

.wallet-screen .content {
  padding-bottom: 20px;
}

.hero {
  display: flex;
  min-height: 176px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.hero h1 {
  max-width: 12ch;
  font-size: 36px;
  font-weight: 700;
  line-height: 0.98;
}

.hero p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 600;
  text-align: center;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

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

.danger-button {
  border: 1px solid rgb(255 42 134 / 42%);
  background: var(--accent-soft);
  color: var(--danger);
}

.ghost-button {
  background: transparent;
  color: var(--accent);
}

.balance-panel {
  display: grid;
  gap: 14px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(85 58 123 / 52%) 0%, rgb(67 37 101 / 92%) 100%);
}

.balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.balance-label {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.balance-value {
  margin: 0;
  color: var(--text);
  font-size: 46px;
  font-weight: 300;
  line-height: 0.92;
}

.balance-sub {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.eye-icon {
  position: relative;
  width: 24px;
  height: 14px;
  color: var(--muted);
}

.eye-icon::before {
  position: absolute;
  inset: 1px 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.eye-icon::after {
  position: absolute;
  top: 5px;
  left: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.toolbar-secondary {
  margin-top: -2px;
}

.tool {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.tool-secondary {
  background: var(--surface);
}

.arrow-icon {
  position: relative;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
}

.arrow-icon::before,
.arrow-icon::after {
  position: absolute;
  background: currentColor;
  content: "";
}

.arrow-icon::before {
  top: 1px;
  right: 1px;
  width: 7px;
  height: 1.5px;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.arrow-icon::after {
  top: 0;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  background: transparent;
}

.asset-list,
.tx-list,
.settings-list,
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asset-row,
.tx-row,
.setting-row,
.admin-row,
.network-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(83 54 121 / 72%) 0%, rgb(68 37 101 / 88%) 100%);
  text-align: left;
}

.asset-left,
.tx-left,
.network-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.coin {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid rgb(0 0 0 / 4%);
  border-radius: 50%;
  background: var(--coin-bg);
  color: var(--coin-text);
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 -6px 12px rgb(18 169 130 / 10%);
}

.coin.asset-coin {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.coin.asset-coin svg {
  display: block;
  width: 36px;
  height: 36px;
}

.asset-name,
.tx-title,
.network-name {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 600;
}

.asset-meta,
.tx-meta,
.field-hint,
.small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.asset-balance,
.tx-amount,
.network-status {
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.asset-focus-card {
  display: grid;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(87 60 124 / 46%) 0%, rgb(69 38 102 / 84%) 100%);
}

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

.asset-focus-balance {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.asset-balance-value {
  font-size: 44px;
}

.asset-history-block {
  display: grid;
  gap: 8px;
}

.manage-link {
  min-height: 24px;
  align-self: center;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.86;
}

.manage-link:hover {
  opacity: 1;
}

.compact-notice {
  padding: 12px;
}

.positive {
  color: var(--success);
}

.negative {
  color: var(--danger);
}

.warning {
  color: var(--warning);
}

.tx-row {
  align-items: flex-start;
}

.tx-right {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.tx-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-score-pill {
  display: inline-flex;
  min-width: 44px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.tx-score-pill.good {
  background: rgb(224 255 246 / 92%);
  color: #2c5560;
}

.tx-score-pill.danger {
  background: rgb(255 229 235 / 96%);
  color: #c85478;
}

.tx-status-text {
  font-size: 11px;
  font-weight: 600;
}

.tx-status-text.good {
  color: var(--accent-2);
}

.tx-status-text.danger {
  color: #ff7fa6;
}

.tabs {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 9;
  display: grid;
  width: min(100vw, var(--shell-width));
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: #12122d;
  transform: translateX(-50%);
}

[data-theme="light"] .tabs {
  background: #f7f3fb;
}

.tab-button {
  width: 100%;
  min-width: 0;
  height: 42px;
  border-radius: var(--radius);
  color: var(--muted);
}

.tab-button.active {
  color: var(--accent);
}

.nav-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.nav-icon::before {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: currentColor;
  font-size: 22px;
  line-height: 1;
}

.nav-home::before {
  content: "◇";
}

.nav-wallet::before {
  content: "▱";
}

.nav-money::before {
  content: "$";
  font-size: 20px;
  font-weight: 700;
}

.nav-list::before {
  content: "▤";
  font-size: 19px;
}

.nav-chart::before {
  content: "▥";
  font-size: 20px;
}

.tab-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.page-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.form-panel,
.seed-panel,
.notice,
.verify-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-panel,
.seed-panel,
.notice {
  padding: 14px;
}

.notice {
  display: flex;
  gap: 12px;
  background: var(--surface-2);
}

.notice > strong {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.notice p strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

.seed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.seed-word {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
}

.seed-word b {
  min-width: 22px;
  color: var(--muted);
  font-size: 12px;
}

.field-stack {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.verify-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.choice-button {
  min-height: 46px;
  overflow-wrap: anywhere;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font-weight: 700;
}

.choice-button.selected {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #10102a;
}

.field label {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: var(--field);
  color: var(--text);
}

.textarea {
  min-height: 118px;
  padding: 12px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(255 42 134 / 18%);
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 4px;
}

.pin-dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.pin-dot.filled {
  border-color: var(--accent);
  background: var(--accent);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.keypad button {
  height: 58px;
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line);
  transition: 160ms ease;
}

.switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
  content: "";
  transition: 160ms ease;
}

.switch input:checked + span {
  background: var(--accent);
}

.switch input:checked + span::after {
  transform: translateX(22px);
}

.address-box {
  display: grid;
  gap: 10px;
}

.receive-shell,
.send-shell {
  display: grid;
  gap: 14px;
}

.receive-label {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.receive-panel,
.send-hero,
.destination-card,
.aml-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.receive-panel,
.send-hero {
  background: linear-gradient(180deg, rgb(82 53 119 / 58%) 0%, rgb(65 35 98 / 86%) 100%);
}

.receive-panel {
  display: grid;
  gap: 14px;
  padding: 16px 14px 18px;
}

.receive-qr {
  width: min(148px, 52vw);
  margin: 0 auto;
  padding: 10px;
}

.address-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(64 31 95 / 85%);
}

.address-pill-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-pill-button {
  min-width: 34px;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  background: rgb(255 255 255 / 5%);
}

.copy-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.copy-icon::before,
.copy-icon::after {
  position: absolute;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  content: "";
}

.copy-icon::before {
  inset: 3px 0 0 3px;
}

.copy-icon::after {
  inset: 0 3px 3px 0;
}

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

.receive-status-button {
  background: rgb(255 255 255 / 6%);
}

.send-hero {
  display: grid;
  gap: 18px;
  padding: 14px;
}

.send-amount-hero {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.send-amount-editor {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.send-amount-input {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 46px;
  font-weight: 300;
  line-height: 0.95;
  text-align: center;
}

.send-amount-input:focus {
  box-shadow: none;
}

.send-amount-code {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.send-converted {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.destination-card {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 12px;
  background: rgb(80 50 116 / 75%);
}

.destination-input {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.destination-input::placeholder {
  color: var(--muted);
}

.destination-input:focus {
  box-shadow: none;
}

.aml-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: transparent;
}

.aml-title {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.aml-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.network-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: #291747;
  font-size: 11px;
  font-weight: 700;
}

.aml-address,
.aml-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.risk-meter {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 4px;
}

.risk-arc {
  position: relative;
  width: 150px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.risk-arc::before {
  position: absolute;
  inset: 0;
  border-radius: 160px 160px 0 0;
  background: #f2eff6;
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 54px, #000 55px);
  mask: radial-gradient(circle at 50% 100%, transparent 0 54px, #000 55px);
  content: "";
}

.risk-arc::after {
  position: absolute;
  inset: 0;
  border-radius: 160px 160px 0 0;
  background: #27c7a7;
  clip-path: polygon(0 0, 34% 0, 56% 100%, 0 100%);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 54px, #000 55px);
  mask: radial-gradient(circle at 50% 100%, transparent 0 54px, #000 55px);
  content: "";
}

.risk-value {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 1;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  transform: translateX(-50%);
}

.risk-caption {
  margin: 0;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
}

.figma-next-button {
  background: rgb(255 255 255 / 8%);
  color: var(--text);
}

.address-value {
  min-height: 58px;
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
}

.qr-placeholder {
  display: none;
}

.qr-code {
  display: grid;
  width: min(184px, 58vw);
  aspect-ratio: 1;
  place-items: center;
  margin: 10px auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

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

.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  z-index: 12;
  width: max-content;
  max-width: min(400px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 650;
  text-align: center;
  transform: translateX(-50%);
}

.wallet-screen .toast {
  bottom: 16px;
}

.hidden {
  display: none !important;
}

@media (min-width: 720px) {
  body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
  }

  .app-shell,
  .screen {
    min-height: min(820px, calc(100vh - 48px));
  }

  .app-shell {
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .tabs {
    bottom: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

@media (max-width: 360px) {
  .content,
  .topbar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero h1,
  .balance-value {
    font-size: 30px;
  }

  .choice-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }
}
