:root {
  color-scheme: dark;
  --bg: #080b12;
  --surface: #111722;
  --surface-2: #182232;
  --surface-3: #202c3d;
  --line: #263244;
  --text: #f7f9fd;
  --muted: #91a0b6;
  --blue: #2f7df6;
  --blue-2: #58a5ff;
  --green: #31d19a;
  --red: #ff6a7a;
  --yellow: #f1c85b;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 22% 10%, rgba(47, 125, 246, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 72%, rgba(49, 209, 154, 0.12), transparent 24rem),
    var(--bg);
  color: var(--text);
}

html {
  width: 100%;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  width: min(1180px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 30% 12%, rgba(47, 125, 246, 0.24), transparent 24rem),
    rgba(6, 9, 15, 0.92);
  backdrop-filter: blur(18px);
}

.auth-gate[hidden] {
  display: none;
}

.auth-card {
  width: min(430px, 100%);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #121b2a 0%, #0e141f 100%);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.5);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand strong {
  font-size: 1.08rem;
}

.auth-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.auth-tabs button.active {
  background: var(--surface-2);
  color: var(--text);
}

.auth-fields {
  display: grid;
  gap: 12px;
}

.phone {
  min-height: min(850px, calc(100vh - 56px));
  max-height: 900px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, #101826 0%, #0d121b 100%);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
}

.topbar,
.quick-actions,
.tabs,
.bottom-nav,
.widget-title,
.amount-row,
.quote-box,
.asset-row,
.address-row,
.history-row,
.defi-card,
.status-line,
.check-row {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  padding: 18px 18px 10px;
}

.brand-lockup {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.brand-lockup strong {
  max-width: 190px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-lockup span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.icon-button,
.wallet-address button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
}

.avatar {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 800;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-logo {
  background: #05070c;
}

.network-pill,
.fee-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font-weight: 700;
}

.network-dot,
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
}

.network-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-panel {
  margin: 8px 18px 0;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(47, 125, 246, 0.96), rgba(33, 91, 202, 0.88)),
    var(--blue);
  box-shadow: 0 22px 60px rgba(47, 125, 246, 0.28);
}

.status-line {
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.dot.live {
  background: var(--green);
}

.dot.error {
  background: var(--red);
}

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

.balance-panel .muted {
  color: rgba(255, 255, 255, 0.74);
}

.connect-strip {
  padding: 12px 18px 0;
}

.connect-strip .primary {
  min-height: 44px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: 0;
}

.quick-actions {
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
}

.quick-actions button {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.quick-actions b,
.security-card b {
  font-weight: 750;
}

.quick-actions span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--blue-2);
  font-size: 1.3rem;
}

.tabs {
  gap: 8px;
  padding: 0 18px 12px;
}

.tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 750;
}

.tabs button.active {
  background: var(--surface-2);
  color: var(--text);
}

.tab-panel {
  display: none;
  flex: 1;
  overflow: auto;
  padding: 0 18px 18px;
}

.tab-panel.active {
  display: block;
}

.asset-list,
.history-list,
.address-list {
  display: grid;
  gap: 10px;
}

.asset-row,
.history-row,
.empty-state,
.address-row,
.address-note,
.earn-card,
.defi-card,
.metric-grid article,
.nft-grid article,
.swap-widget,
.security-card,
.send-modal {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(17, 23, 34, 0.86);
}

.asset-row,
.history-row,
.address-row,
.defi-card {
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.asset-row {
  cursor: pointer;
}

.asset-row:hover,
.asset-row:focus-visible {
  border-color: rgba(88, 165, 255, 0.34);
  outline: none;
  background: rgba(24, 34, 50, 0.96);
}

.address-note {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 14px;
}

.back-button {
  width: 100%;
  min-height: 42px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 850;
}

.address-note span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

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

.address-row div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.address-row span,
.address-row code {
  color: var(--muted);
  font-size: 0.82rem;
}

.address-row code {
  max-width: 230px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-row button {
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--blue-2);
  padding: 0 12px;
  font-weight: 800;
}

.empty-state {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
}

.empty-state span {
  color: var(--muted);
  font-size: 0.9rem;
}

.asset-main,
.history-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.asset-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  overflow: hidden;
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 800;
}

.asset-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-name,
.history-title {
  display: block;
  font-weight: 800;
}

.asset-symbol,
.history-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.asset-value {
  text-align: right;
  min-width: 86px;
}

.asset-value strong {
  display: block;
  overflow-wrap: anywhere;
}

.asset-value span,
.positive,
.negative {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
}

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

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

.metric-grid,
.nft-grid,
.earn-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid article,
.nft-grid article,
.earn-stats article {
  min-height: 96px;
  padding: 14px;
}

.metric-grid span,
.earn-stats span,
.earn-balance span {
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-grid strong,
.earn-stats strong {
  display: block;
  margin-top: 12px;
  font-size: 1.3rem;
}

.earn-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  text-align: center;
}

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

.earn-head h2 {
  margin-top: 4px;
}

.tap-coin {
  position: relative;
  width: min(240px, 76vw);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border: 8px solid rgba(88, 165, 255, 0.28);
  border-radius: 28px;
  background: var(--surface-2);
  color: white;
  box-shadow: 0 24px 70px rgba(47, 125, 246, 0.36);
  font-size: clamp(1.45rem, 9vw, 2.15rem);
  font-weight: 950;
  letter-spacing: 0;
  padding: 0;
}

.tap-coin img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.tap-coin span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 11, 18, 0.78);
  color: white;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.tap-coin.tapped {
  animation: tapPulse 180ms ease-out;
}

.tap-coin[data-mood="kind"] {
  border-color: rgba(49, 209, 154, 0.58);
  box-shadow: 0 24px 75px rgba(49, 209, 154, 0.25);
}

.tap-coin[data-mood="kind"] img {
  filter: saturate(1.16) brightness(1.04);
}

.tap-coin[data-mood="kind"] span {
  background: rgba(28, 132, 99, 0.86);
}

.tap-coin[data-mood="angry"] {
  border-color: rgba(255, 106, 122, 0.7);
  box-shadow: 0 24px 75px rgba(255, 106, 122, 0.24);
}

.tap-coin[data-mood="angry"] img {
  filter: saturate(1.28) contrast(1.08);
  transform: scale(1.03);
}

.tap-coin[data-mood="angry"] span {
  background: rgba(156, 50, 66, 0.88);
}

.earn-balance strong {
  display: block;
  margin-top: 5px;
  font-size: 2rem;
}

.energy-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.energy-bar span {
  width: 0%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue-2));
  transition: width 180ms ease;
}

@keyframes tapPulse {
  0% {
    transform: scale(1);
  }

  55% {
    transform: scale(0.96) rotate(-1deg);
  }

  100% {
    transform: scale(1);
  }
}

.defi-card {
  margin-top: 10px;
}

.defi-card strong {
  display: block;
  margin-top: 4px;
}

.defi-card button,
.primary {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: white;
  padding: 0 16px;
  font-weight: 800;
}

.nft-grid article {
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.28), rgba(49, 209, 154, 0.18)),
    var(--surface);
}

.nft-grid span {
  font-weight: 800;
}

.bottom-nav {
  justify-content: space-around;
  gap: 4px;
  padding: 9px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 11, 18, 0.72);
}

.bottom-nav button {
  width: 25%;
  display: grid;
  gap: 4px;
  justify-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.bottom-nav button.active {
  color: var(--blue-2);
}

.bottom-nav span {
  font-size: 1.1rem;
}

.desktop-panel {
  display: grid;
  gap: 16px;
}

.swap-widget,
.security-card {
  padding: 22px;
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.widget-title {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.widget-title h2 {
  margin-top: 4px;
  font-size: 2rem;
}

.field {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}

.amount-row {
  gap: 10px;
}

input,
select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

select {
  max-width: 142px;
}

input:focus,
select:focus {
  border-color: var(--blue-2);
}

.flip {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 14px auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--blue-2);
}

.quote-box {
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.quote-box strong {
  color: var(--text);
  text-align: right;
}

.primary {
  width: 100%;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(4, 7, 12, 0.72);
  backdrop-filter: blur(14px);
}

.modal-backdrop.open {
  display: grid;
}

.toast {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  z-index: 60;
  width: min(420px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.success-toast {
  border: 1px solid rgba(48, 209, 88, 0.42);
  background: linear-gradient(135deg, rgba(19, 132, 73, 0.96), rgba(28, 166, 91, 0.96));
  color: #fff;
}

.toast span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
  font-size: 1.3rem;
}

.toast strong,
.toast p {
  margin: 0;
}

.toast p {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.35;
}

.send-modal {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.46);
}

.asset-modal {
  width: min(480px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
}

.asset-summary,
.asset-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.asset-summary article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.asset-summary span {
  color: var(--muted);
  font-size: 0.84rem;
}

.asset-summary strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.asset-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 850;
}

.asset-actions button:hover {
  border-color: var(--blue-2);
  color: var(--blue-2);
}

.gold-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(241, 200, 91, 0.2);
  border-radius: 16px;
  background: rgba(241, 200, 91, 0.07);
}

.gold-panel .quote-box {
  margin: 0;
}

.gold-panel[hidden] {
  display: none;
}

.modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-title h2 {
  margin-top: 4px;
}

.send-status {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.security-card h3 {
  margin-bottom: 16px;
}

.check-row {
  gap: 10px;
  min-height: 36px;
  color: var(--muted);
}

.check-row span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100vw;
    min-height: 100svh;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    background: var(--bg);
  }

  .app-shell {
    width: 100%;
    max-width: 100vw;
    height: 100svh;
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    overflow: hidden;
    touch-action: pan-y;
    padding: 0;
  }

  .phone {
    width: min(560px, 100%);
    max-width: 100vw;
    height: 100svh;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    touch-action: pan-y;
    margin: 0 auto;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .phone * {
    max-width: 100%;
  }

  .topbar,
  .balance-panel,
  .connect-strip,
  .quick-actions,
  .tabs,
  .tab-panel,
  .bottom-nav,
  .asset-list,
  .history-list,
  .address-list,
  .swap-widget,
  .asset-row,
  .history-row,
  .address-row,
  .empty-state,
  .defi-card,
  .security-card,
  .send-modal {
    max-width: 100%;
  }

  .tab-panel {
    overflow-x: hidden;
  }

  .mobile-swap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    gap: 14px;
    padding: 16px;
    box-shadow: none;
    backdrop-filter: none;
  }

  .mobile-swap .widget-title {
    min-width: 0;
    margin-bottom: 2px;
  }

  .mobile-swap .widget-title > div {
    min-width: 0;
  }

  .mobile-swap .widget-title h2 {
    overflow: hidden;
    font-size: 1.35rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-swap .field,
  .mobile-swap .amount-row,
  .mobile-swap input,
  .mobile-swap select,
  .mobile-swap .quote-box,
  .mobile-swap .send-status,
  .mobile-swap .primary {
    min-width: 0;
    max-width: 100%;
  }

  .desktop-panel {
    display: none;
  }

  .topbar {
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .tab-panel {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 460px) {
  .app-shell {
    width: 100%;
    max-width: 100vw;
    padding: 0;
  }

  .phone {
    width: 100%;
    max-width: 100vw;
    height: 100svh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .desktop-panel {
    display: none;
  }

  .topbar {
    padding: 14px 14px 8px;
  }

  .icon-button,
  .wallet-address button {
    width: 38px;
    height: 38px;
  }

  .brand-lockup strong {
    max-width: 172px;
    font-size: 0.88rem;
  }

  .balance-panel {
    margin: 6px 14px 0;
    padding: 18px;
    border-radius: 20px;
  }

  .status-line {
    margin-bottom: 16px;
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(2.05rem, 12vw, 2.55rem);
  }

  .connect-strip {
    padding: 10px 14px 0;
  }

  .connect-strip .primary {
    min-height: 42px;
    border-radius: 13px;
    font-size: 0.92rem;
  }

  .quick-actions {
    gap: 6px;
    padding: 14px;
  }

  .quick-actions button {
    overflow: hidden;
    gap: 7px;
    font-size: 0.72rem;
  }

  .quick-actions b {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .quick-actions span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.12rem;
  }

  .tabs {
    width: 100%;
    max-width: 100vw;
    gap: 6px;
    overflow-x: auto;
    padding: 0 14px 10px;
    scrollbar-width: none;
  }

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

  .tabs button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.84rem;
  }

  .tab-panel {
    width: 100%;
    padding: 0 14px 16px;
  }

  .mobile-swap {
    border-radius: 16px;
  }

  .mobile-swap .amount-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(86px, 29%);
    gap: 8px;
  }

  .mobile-swap input,
  .mobile-swap select {
    width: 100%;
    max-width: none;
  }

  .mobile-swap .quote-box {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: center;
    margin: 0;
  }

  .mobile-swap .quote-box strong,
  .mobile-swap .send-status {
    overflow-wrap: anywhere;
  }

  .asset-list,
  .history-list,
  .address-list {
    width: 100%;
    gap: 8px;
  }

  .asset-row {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .asset-main {
    gap: 10px;
  }

  .asset-icon {
    width: 40px;
    height: 40px;
  }

  .asset-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .asset-symbol {
    max-width: 172px;
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .asset-value {
    min-width: 82px;
    max-width: 112px;
    font-size: 0.88rem;
  }

  .asset-value span,
  .positive,
  .negative {
    font-size: 0.76rem;
  }

  .address-row {
    flex-wrap: wrap;
    padding: 12px;
    border-radius: 16px;
  }

  .address-row div {
    flex: 1 1 190px;
  }

  .address-row code {
    max-width: min(100%, 270px);
  }

  .address-row button {
    flex: 0 0 auto;
  }

  .address-note,
  .empty-state,
  .defi-card,
  .earn-card,
  .metric-grid article,
  .nft-grid article {
    border-radius: 16px;
  }

  .metric-grid,
  .nft-grid,
  .earn-stats {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    position: sticky;
    bottom: 0;
    z-index: 5;
    width: 100%;
    max-width: 100vw;
  }

  .bottom-nav button {
    font-size: 0.68rem;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
    overflow-y: auto;
  }

  .send-modal {
    width: 100%;
    max-width: 100vw;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  }

  .asset-modal {
    max-height: 96svh;
    overflow: auto;
  }

  .asset-modal .amount-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(82px, 28%);
    gap: 8px;
  }

  input,
  select {
    min-height: 50px;
    border-radius: 14px;
  }
}

@media (max-width: 360px) {
  .brand-lockup strong {
    max-width: 140px;
  }

  .quick-actions span {
    width: 38px;
    height: 38px;
  }

  .asset-symbol {
    max-width: 138px;
  }

  .asset-value {
    max-width: 96px;
  }
}
