.asset-summary {
  position: relative;
  min-height: 154px;
  padding-top: 42px;
}

.phone-page[data-assets-page],
body[data-page="assets"] .phone-page {
  padding-bottom: calc(136px + env(safe-area-inset-bottom));
}

.asset-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7f7f7f;
  font-size: 15px;
}

.asset-label svg {
  width: 16px;
  height: 16px;
}

.asset-label .balance-visibility-toggle {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #7f7f7f;
}

.asset-label .balance-visibility-toggle svg {
  width: 15px;
  height: 15px;
}

.asset-total {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 100%;
  margin-top: 12px;
}

.asset-total strong {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 48px);
  overflow: hidden;
  font-size: clamp(30px, 9vw, 42px);
  line-height: 1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-total span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin-bottom: 5px;
  padding: 2px 6px;
  border-radius: 7px;
  background: #f2f2f2;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.today-profit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #777777;
  font-size: 16px;
}

.spark-card {
  display: none;
}

.spark-card::before {
  content: "";
  position: absolute;
  inset: 8px 22px 8px 0;
  background-image: radial-gradient(#ff7aa4 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.38;
}

.spark-line {
  position: absolute;
  right: 0;
  top: 18px;
  width: 88px;
  height: 38px;
  border-top: 3px solid #ff4f89;
  border-right: 3px solid #ff4f89;
  filter: drop-shadow(0 0 5px rgba(255, 79, 137, 0.42));
}

.spark-line::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -3px;
  width: 18px;
  border-top: 3px solid #ff4f89;
}

.asset-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 2px 0 28px;
}

.asset-shortcuts a {
  display: grid;
  place-items: center;
  gap: 9px;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.asset-shortcuts i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-style: normal;
}

.asset-shortcuts svg {
  width: 25px;
  height: 25px;
}

.asset-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.asset-hub-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 13px 12px;
  color: inherit;
  text-decoration: none;
}

.asset-hub-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.2;
}

.asset-hub-card span {
  display: block;
  overflow: hidden;
  color: #7a7a7a;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-hub-card svg {
  width: 22px;
  height: 22px;
  color: #111111;
}

.portfolio-title {
  margin-top: 2px;
}

.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 26px;
}

.account-card {
  display: block;
  color: #111111;
  min-width: 0;
  min-height: 104px;
  padding: 12px 9px;
  overflow: hidden;
  text-decoration: none;
}

.account-card svg {
  width: 18px;
  height: 18px;
  color: #222222;
}

.account-card span {
  display: block;
  min-height: 16px;
  margin: 10px 0 8px;
  color: #7d7d7d;
  font-size: 13px;
  line-height: 1.2;
}

.account-card strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(13px, 3.9vw, 18px);
  font-weight: 900;
  line-height: 1.12;
  white-space: normal;
  word-break: break-word;
}

.token-head,
.token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(108px, 42%);
  align-items: center;
  column-gap: 8px;
}

.token-head {
  margin-bottom: 14px;
  color: #999999;
  font-size: 13px;
}

.token-head span:last-child {
  text-align: right;
}

.token-row {
  min-height: 76px;
  overflow: hidden;
}

.token-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.token-main > div {
  min-width: 0;
}

.token-main strong {
  display: inline-block;
  max-width: 78px;
  overflow: hidden;
  margin-right: 7px;
  font-size: 19px;
  letter-spacing: 1px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.yield-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: #eaffef;
  color: #4bb265;
  font-size: 12px;
  font-weight: 800;
}

.token-main small {
  display: block;
  max-width: 150px;
  overflow: hidden;
  margin-top: 6px;
  color: #8a8a8a;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-value {
  min-width: 0;
  text-align: right;
  font-weight: 900;
}

.token-value strong,
.token-value small {
  display: block;
}

.token-value strong {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(15px, 4.7vw, 20px);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-value small {
  max-width: 100%;
  overflow: hidden;
  margin-top: 5px;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-assets {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 10px;
  background: #f4f4f4;
  color: #777777;
  text-align: center;
  font-size: 14px;
}

.fiat-row .yield-tag {
  background: #eef6ff;
  color: #3273dc;
}

/* 2026 UI refresh */
.asset-summary,
.asset-shortcuts,
.asset-hub-card,
.account-card,
.token-row,
.empty-assets {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.asset-summary {
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(15, 143, 111, 0.1), rgba(37, 99, 235, 0.08)),
    #ffffff;
}

.asset-shortcuts,
.asset-hub-card,
.account-card,
.token-row {
  border-radius: 18px;
}

.asset-shortcuts a i,
.account-card svg,
.asset-hub-card svg {
  color: var(--green);
}

.yield-tag {
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--green);
}

.fiat-row .yield-tag {
  background: #eff6ff;
  color: #2563eb;
}

.token-main small,
.token-value small,
.empty-assets {
  color: var(--muted);
}

/* Tech blue refinement */
.asset-summary {
  background:
    radial-gradient(circle at 88% 12%, rgba(84, 184, 255, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(36, 124, 255, 0.1), rgba(172, 221, 255, 0.18)),
    #ffffff;
}

.asset-shortcuts a i,
.account-card svg,
.asset-hub-card svg {
  color: #247cff;
}

.yield-tag,
.fiat-row .yield-tag {
  background: #edf7ff;
  color: #1b65d8;
}

/* Coordination pass */
.asset-summary {
  min-height: 150px;
  padding: 28px 18px 18px;
}

.asset-total {
  margin-top: 10px;
}

.today-profit {
  margin-top: 12px;
  font-size: 14px;
}

.asset-shortcuts {
  gap: 8px;
  margin: 10px 0 30px;
  padding: 10px 8px 12px;
}

.asset-shortcuts a {
  gap: 7px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.1;
}

.asset-shortcuts i {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, #2f86ff, #5fc0ff);
  box-shadow: 0 10px 20px rgba(36, 124, 255, 0.18);
}

.asset-shortcuts svg {
  width: 20px;
  height: 20px;
}

.asset-hub-card {
  min-height: 72px;
  padding: 14px 12px;
}

.portfolio-cards {
  gap: 10px;
}

.account-card {
  min-height: 104px;
  padding: 14px 10px;
}

.account-card svg {
  color: #247cff;
}

@media (max-width: 380px) {
  .asset-shortcuts {
    gap: 6px;
    padding-inline: 6px;
  }

  .asset-shortcuts a {
    font-size: 11px;
  }

  .asset-shortcuts i {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }
}

/* Asset page fit pass */
.portfolio-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-card {
  min-height: 96px;
  padding: 13px 12px;
}

.account-card strong {
  overflow: hidden;
  font-size: clamp(15px, 4.1vw, 17px);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.token-head,
.token-row {
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
}

.token-head {
  padding: 0 2px;
}

.token-row {
  height: 82px;
  min-height: 82px;
  margin-bottom: 10px;
  padding: 12px 10px;
  column-gap: 8px;
}

.token-row:last-child {
  margin-bottom: 0;
}

.token-main {
  gap: 9px;
}

.token-main > div {
  display: block;
  min-height: 44px;
}

.token-main strong {
  max-width: 62px;
  margin-right: 5px;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 22px;
}

.token-main small {
  display: block;
  max-width: 104px;
  font-size: 13px;
  margin-top: 6px;
  line-height: 18px;
}

.yield-tag {
  display: inline-flex;
  min-height: 18px;
  margin-left: 0;
  padding: 0 6px;
  font-size: 11px;
  line-height: 18px;
  vertical-align: middle;
}

.token-value strong {
  font-size: clamp(15px, 4.3vw, 18px);
  letter-spacing: 0;
}

.token-value small {
  font-size: 11px;
}

@media (max-width: 380px) {
  .portfolio-cards {
    gap: 8px;
  }

  .account-card {
    padding: 12px 10px;
  }

  .account-card strong {
    font-size: 14px;
  }

  .token-row {
    padding: 10px 8px;
  }

  .token-main {
    gap: 8px;
  }

  .token-main strong {
    max-width: 54px;
    font-size: 17px;
  }

  .token-main small {
    max-width: 92px;
  }

  .token-value strong {
    font-size: 15px;
  }
}

/* Oh bits assets mockup alignment */
.asset-summary {
  position: relative;
  min-height: 176px;
  margin-top: 18px;
  padding: 30px 20px;
  border-color: rgba(247, 167, 7, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 38%, rgba(247, 167, 7, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(24, 31, 41, 0.96), rgba(8, 12, 18, 0.98));
  box-shadow: var(--shadow);
}

.asset-summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 32px;
  width: 122px;
  height: 96px;
  opacity: 0.72;
  background:
    linear-gradient(135deg, transparent 40%, rgba(247, 167, 7, 0.24) 41% 42%, transparent 43%),
    radial-gradient(circle at 24% 78%, #f7931a 0 18px, transparent 19px),
    radial-gradient(circle at 54% 82%, #313843 0 16px, transparent 17px),
    linear-gradient(135deg, transparent 0 34%, #1b212a 35% 68%, transparent 69%);
}

.asset-label,
.today-profit {
  color: var(--muted);
  font-weight: 700;
}

.asset-total {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.asset-total strong {
  color: var(--text);
  font-size: clamp(44px, 13vw, 56px);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.asset-total span {
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.asset-shortcuts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.asset-shortcuts a {
  min-height: 58px;
  border: 1px solid #303741;
  border-radius: 12px;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
  color: var(--text);
  font-size: 15px;
}

.asset-shortcuts a:first-child {
  border: 0;
  background: linear-gradient(180deg, #ffbe1a 0%, #f7a707 100%);
  color: #080b10;
}

.asset-shortcuts i {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.asset-shortcuts a:nth-child(n+4) {
  display: none;
}

.asset-hub-grid,
.portfolio-cards,
.token-head {
  display: none;
}

.portfolio-title {
  margin-top: 6px;
}

.portfolio-title h2,
.section-title h2 {
  color: var(--muted);
  font-size: 20px;
}

.token-row {
  height: 82px;
  min-height: 82px;
  border-color: #303741;
  border-radius: 14px;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
  box-shadow: none;
}

.token-main strong,
.token-value strong {
  color: var(--text);
}

.token-main small,
.token-value small {
  color: var(--muted);
}

.yield-tag,
.fiat-row .yield-tag {
  border: 1px solid #3a424d;
  background: transparent;
  color: var(--muted);
}
