:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #181819;
  --panel-strong: #202022;
  --panel-soft: rgba(26, 26, 27, 0.92);
  --text: #edeeee;
  --muted: #a7a7ad;
  --muted-2: #73737a;
  --green: #00f01f;
  --red: #ff000f;
  --purple: #afa4f3;
  --purple-dark: #a294ef;
  --line: rgba(255, 255, 255, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
  border: 0;
  cursor: default;
}

#app {
  min-height: 100dvh;
  background: #000;
}

#launch-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #a99af5 url("./assets/phantom-launch.png") center / cover no-repeat;
  animation: launchSplash 1280ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
  pointer-events: none;
}

@supports (background-image: image-set(url("./assets/phantom-launch.png") 1x)) {
  #launch-splash {
    background-image: image-set(
      url("./assets/phantom-launch.png") 1x,
      url("./assets/phantom-launch-1179x2556.png") 2x
    );
  }
}

.launch-ghost {
  display: none;
}

@keyframes launchSplash {
  0%,
  64% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  #launch-splash {
    animation-duration: 1ms;
  }
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 20% -6%, rgba(151, 112, 255, 0.08), transparent 22%),
    radial-gradient(circle at 92% 0%, rgba(70, 245, 128, 0.025), transparent 20%),
    #000;
  overflow-x: clip;
}

.top-chrome {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: max(67px, env(safe-area-inset-top)) 16px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.66) 72%, rgba(0, 0, 0, 0));
  backdrop-filter: blur(22px);
}

.top-tabs {
  display: grid;
  grid-template-columns: 40px 77px 75px 90px;
  gap: 8px;
  align-items: center;
  padding-top: 0;
}

.avatar {
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, #ff6f42 0 8%, transparent 9%),
    radial-gradient(circle at 64% 66%, #ff7b46 0 8%, transparent 9%),
    radial-gradient(circle at 76% 62%, #ff7b46 0 9%, transparent 10%),
    radial-gradient(circle at 50% 72%, #54d0aa 0 30%, transparent 31%),
    #ffdce5;
}

.tab {
  height: 40px;
  border-radius: 999px;
  background: rgba(36, 36, 37, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: #b5b5b9;
  font-size: 20px;
  font-weight: 500;
}

.tab.active {
  color: #111;
  background: var(--purple);
}

.home-content {
  padding: 0 20px 96px;
}

.balance-section {
  margin-top: 0;
}

.wallet-name {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.balance-value {
  display: block;
  width: max-content;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  margin-top: 5px;
  font-size: 45px;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 0.95;
}

.balance-value:active {
  transform: scale(0.99);
}

.balance-change {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--green);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.12;
  transform: translateY(8px);
}

.balance-pill {
  color: #071108;
  background: var(--green);
  border-radius: 7px;
  padding: 1px 7px 2px;
}

.cash-card,
.token-row,
.perp-card,
.prediction-card {
  background: linear-gradient(180deg, #1b1b1c, #181819);
  box-shadow: none;
}

.cash-card,
.token-row {
  width: calc(100% - 8px);
}

.cash-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  height: 70px;
  margin-top: 24px;
  border-radius: 24px;
  padding: 0 22px;
  transform: translateY(8px);
}

.cash-icon {
  width: 27px;
  height: 19px;
  position: relative;
  background: center / contain no-repeat url("./assets/cash-icon-ref.png");
}

.cash-icon::before,
.cash-icon::after {
  content: none;
}

.cash-label,
.cash-value {
  font-size: 17px;
}

.cash-label {
  font-weight: 520;
}

.cash-value {
  color: #e3e3e6;
  font-weight: 430;
}

.section-block,
.following-section,
.support-section {
  margin-top: 31px;
}

.section-title,
.following-section h2,
.support-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 580;
  letter-spacing: 0;
  line-height: 1.05;
}

.chevron {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-top: 2px solid #b7b7bd;
  border-right: 2px solid #b7b7bd;
  transform: rotate(45deg);
}

.chevron-down {
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-width: 1.3px;
  transform: translateY(-2px) rotate(135deg);
}

.token-row {
  display: grid;
  grid-template-columns: 53px minmax(0, 1fr);
  align-items: center;
  height: 68px;
  border-radius: 16px;
  padding: 0 24px 0 20px;
  position: relative;
  text-align: left;
}

.tokens-section .section-title {
  margin-bottom: 20px;
}

.token-logo {
  width: 48px;
  height: 48px;
  position: relative;
  flex: 0 0 auto;
  background: center / contain no-repeat url("./assets/usdt-token-ref.png");
}

.token-logo-main {
  display: none;
}

.token-chain-badge {
  display: none;
}

.token-copy {
  min-width: 0;
  padding-right: 142px;
}

.token-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.18;
}

.verified-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  background: center / contain no-repeat url("./assets/verified-badge-ref.png");
}

.token-amount,
.prediction-card p {
  color: var(--muted);
}

.token-amount {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-value {
  position: absolute;
  right: 24px;
  display: grid;
  gap: 4px;
  justify-items: end;
  font-size: 17px;
  font-weight: 400;
}

.token-delta {
  color: var(--green);
  font-size: 16px;
  font-weight: 400;
}

.horizontal-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 160px);
  gap: 8px;
  margin-left: -1px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0 22px 2px 0;
  margin-left: 0;
}

.horizontal-rail::-webkit-scrollbar {
  display: none;
}

.perp-card {
  height: 144px;
  margin-top: 0;
  border-radius: 24px;
  padding: 26px 20px 16px;
  position: relative;
}

.perp-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  background: #101519;
  transform: translateY(-6px);
}

.perp-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.logo-sndk {
  background: #e52a20;
}

.logo-intc {
  background: #53bdf2;
  font-size: 17px;
  font-weight: 760;
}

.logo-rklb {
  background:
    linear-gradient(90deg, transparent 0 42%, #fb2d24 43% 50%, transparent 51%),
    #030303;
}

.provider-badge {
  position: absolute;
  top: 50px;
  left: 46px;
  width: 21px;
  height: 21px;
  color: #090909;
  background: #fff;
  border: 2.5px solid #1c1c1c;
  border-radius: 8px;
  font-size: 0;
}

.provider-badge::before {
  content: "";
  position: absolute;
  inset: 4px 3px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath d='M18 5C9 5 4 12 4 16s5 11 14 11c7 0 12-5 14-11 2 6 7 11 14 11 9 0 14-7 14-11S55 5 46 5c-7 0-12 5-14 11C30 10 25 5 18 5Z' fill='none' stroke='%23000000' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.perps-section .section-title {
  transform: translateY(-4px);
}

.perp-symbol-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  transform: translateY(-7px);
}

.perp-symbol {
  font-size: 17px;
  font-weight: 500;
}

.leverage-pill {
  color: #f1f1f3;
  background: #262629;
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 13px;
  font-weight: 500;
}

.perp-change {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 400;
  transform: translateY(-10px);
}

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

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

.prediction-rail {
  grid-auto-columns: minmax(224px, 224px);
  padding-top: 0;
  transform: translateY(0);
}

.predictions-section .section-title {
  transform: translateY(-3px);
}

.prediction-card {
  height: 150px;
  border-radius: 22px;
  padding: 18px 18px 16px;
}

.prediction-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 54px;
}

.prediction-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  overflow: hidden;
}

.prediction-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.soccer_world_cup {
  background: linear-gradient(135deg, #e77df0 0 49%, #111 50% 54%, #80c4f4 55% 100%);
}

.soccer-ball {
  width: 31px;
  height: 31px;
  display: block;
  border: 3px solid #111;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #111 0 4px, transparent 5px),
    repeating-conic-gradient(from 0deg, #fff 0deg 38deg, #d8d8d8 38deg 72deg);
}

.pro_basketball,
.pro_baseball {
  background: linear-gradient(135deg, #3b6ef5 0 49.3%, #0c0c0f 49.3% 50.7%, #c238d6 50.7% 100%);
}

.prediction-sport-icon {
  width: 38px;
  height: 38px;
  display: block;
}

.grid-mark-svg {
  width: 44px;
  height: 44px;
  display: block;
}

.prediction-date {
  color: var(--muted);
  font-size: 16px;
  white-space: nowrap;
  padding-top: 4px;
}

.prediction-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff3b4e;
  font-size: 16px;
  font-weight: 560;
  white-space: nowrap;
  padding-top: 4px;
}

.prediction-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b4e;
}

.prediction-card h3 {
  margin: 13px 0 3px;
  font-size: 15px;
  line-height: 1.14;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prediction-card p {
  margin: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.following-section {
  min-height: 332px;
}

.empty-following {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 42px 4px 0;
}

.heart-tile {
  width: 58px;
  height: 58px;
  display: block;
  border-radius: 16px;
  background: var(--purple);
  position: relative;
}

.heart-tile::before,
.heart-tile::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23060606' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.heart-tile::after {
  content: none;
}

.empty-following h3 {
  margin: 22px 0 0;
  font-size: 21px;
  line-height: 1.15;
}

.empty-following p {
  max-width: 356px;
  margin: 18px 0 0;
  color: #dedee3;
  font-size: 20px;
  line-height: 1.3;
}

.empty-following button {
  margin-top: 22px;
  padding: 9px 20px 10px;
  border-radius: 999px;
  color: #d6d6da;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 20px;
  font-weight: 760;
}

.support-section {
  padding-bottom: 8px;
}

.support-section button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0;
  background: transparent;
  color: #eeeeef;
  text-align: left;
  font-size: 19px;
  font-weight: 620;
}

.support-section .chevron {
  width: 10px;
  height: 10px;
  border-width: 2px;
}

.support-section .disclosure-link {
  margin-top: 10px;
  color: #6f6f76;
  font-size: 18px;
  font-weight: 500;
}

.info-dot {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #6f6f76;
  border-radius: 50%;
  font-size: 11px;
}

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: max(30px, env(safe-area-inset-bottom));
  z-index: 10;
  width: min(calc(100vw - 40px), 386px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 14px;
  transform: translateX(-50%);
  pointer-events: none;
}

.token-shell {
  min-height: 100dvh;
  padding-bottom: 118px;
}

.token-page {
  padding: max(112px, env(safe-area-inset-top)) 22px 0;
}

.asset-header {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: calc(-1 * max(112px, env(safe-area-inset-top))) -22px 0;
  padding: max(76px, env(safe-area-inset-top)) 22px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7) 78%, rgba(0, 0, 0, 0));
  backdrop-filter: blur(22px);
}

.asset-header.compact {
  margin-bottom: 8px;
}

.sheet-handle {
  width: 38px;
  height: 6px;
  display: block;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #8d8d8f;
}

.asset-headline {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 48px;
  align-items: center;
  gap: 12px;
}

.asset-logo {
  width: 48px;
  height: 48px;
}

.asset-headline h1,
.detail-nav h1 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  font-weight: 640;
}

.asset-headline p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
}

.asset-headline p span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62ec6d;
}

.follow-button {
  height: 38px;
  padding: 0 14px;
  border-radius: 15px;
  background: #202022;
  font-size: 19px;
  font-weight: 640;
}

.share-button,
.back-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1d1d1f;
  position: relative;
}

.share-button::before {
  content: "";
  position: absolute;
  inset: 13px 15px;
  border: 3px solid #eeeeef;
  border-top: 0;
  border-radius: 6px;
}

.share-button::after {
  content: "↑";
  position: absolute;
  left: 15px;
  top: 5px;
  color: #eeeeef;
  font-size: 28px;
  line-height: 1;
}

.detail-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-button::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 15px;
  width: 15px;
  height: 15px;
  border-left: 3px solid #f1f1f2;
  border-bottom: 3px solid #f1f1f2;
  transform: rotate(45deg);
}

.token-price-panel {
  min-height: 356px;
  padding-top: 32px;
}

.asset-price {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 58px;
  font-weight: 680;
  line-height: 0.95;
}

.asset-change {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--red);
  font-size: 21px;
  font-weight: 620;
}

.asset-change-pill {
  padding: 2px 8px 3px;
  border-radius: 8px;
  color: #060606;
  background: var(--red);
}

.asset-change.is-positive .asset-change-pill {
  background: var(--green);
}

.asset-chart {
  height: 170px;
  display: flex;
  align-items: flex-end;
  margin: 48px -22px 0;
}

.asset-chart span {
  width: calc(100% - 18px);
  height: 8px;
  display: block;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(255, 0, 15, 0.1);
}

.asset-chart span::after {
  content: "";
  width: 10px;
  height: 10px;
  display: block;
  margin-left: auto;
  transform: translate(15px, -1px);
  border-radius: 50%;
  background: var(--red);
}

.asset-time-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  margin-top: 52px;
  color: #b8b8bd;
  font-size: 18px;
  font-weight: 650;
  text-align: center;
}

.asset-time-tabs strong {
  justify-self: center;
  min-width: 66px;
  padding: 9px 0;
  border-radius: 12px;
  color: var(--purple);
  background: #1d1d1f;
}

.asset-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 28px;
}

.asset-actions button {
  height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, #1b1b1c, #181819);
  color: #b8b8bd;
  font-size: 17px;
  font-weight: 650;
}

.action-icon {
  width: 28px;
  height: 28px;
  display: block;
  color: var(--purple);
  position: relative;
}

.action-send::before {
  content: "▷";
  position: absolute;
  inset: -4px 0 0;
  font-size: 34px;
  transform: rotate(-44deg);
}

.action-receive::before {
  content: "⌘";
  position: absolute;
  inset: -8px 0 0;
  font-size: 35px;
}

.action-more::before {
  content: "•••";
  position: absolute;
  inset: -5px 0 0;
  font-size: 30px;
  letter-spacing: 3px;
}

.asset-section {
  margin-top: 34px;
}

.asset-section h2,
.asset-section-title-row h2 {
  margin: 0 0 14px;
  color: #c7c7cc;
  font-size: 21px;
  font-weight: 650;
}

.position-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.metric-card {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1b1b1c, #181819);
}

.metric-card.wide {
  grid-column: 1 / -1;
  min-height: 64px;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.metric-card span {
  color: var(--muted);
  font-size: 18px;
}

.metric-card strong {
  color: var(--text);
  font-size: 19px;
  font-weight: 640;
}

.metric-card.wide strong {
  color: var(--green);
}

.chip-row,
.link-chips {
  display: flex;
  gap: 10px;
}

.chip-row span,
.link-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 18px;
  background: #1d1d1f;
  color: var(--text);
  font-size: 19px;
  font-weight: 650;
}

.info-table {
  overflow: hidden;
  border-radius: 23px;
  background: linear-gradient(180deg, #1b1b1c, #181819);
}

.info-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  border-bottom: 1px solid #080808;
}

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

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

.info-row strong,
.info-row em {
  color: var(--text);
  font-size: 20px;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}

.performance-table .info-row em {
  color: var(--red);
}

.copy-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-left: 9px;
  border: 2px solid #b7b7bd;
  border-radius: 4px;
  vertical-align: -3px;
  position: relative;
}

.copy-icon::before {
  content: "";
  position: absolute;
  right: -7px;
  top: 5px;
  width: 14px;
  height: 14px;
  border: 2px solid #b7b7bd;
  border-radius: 4px;
}

.about-section p {
  margin: 0;
  color: #b4b4b9;
  font-size: 20px;
  line-height: 1.3;
}

.about-section button {
  margin-top: 12px;
  padding: 0;
  background: transparent;
  color: var(--purple);
  font-size: 20px;
}

.link-chips {
  margin-top: 28px;
}

.asset-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asset-section-title-row button {
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 20px;
}

.activity-row {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 0 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #1b1b1c, #181819);
  text-align: left;
}

.activity-token {
  width: 52px;
  height: 52px;
  position: relative;
}

.activity-token i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 2px solid #1c1c1c;
  border-radius: 50%;
  background: var(--purple);
  color: #050505;
  font-style: normal;
  font-size: 19px;
}

.activity-token .badge-received::before {
  content: "↓";
}

.activity-token .badge-sent {
  background: #5f96f6;
}

.activity-token .badge-sent::before {
  content: "↗";
  color: #fff;
}

.activity-token .badge-swap {
  background: #050505;
}

.activity-token .badge-swap::before {
  content: "≋";
  color: #8c7aff;
}

.activity-copy,
.activity-amount {
  display: grid;
  gap: 6px;
}

.activity-copy strong,
.activity-amount strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
}

.activity-copy small,
.activity-amount small {
  color: var(--muted);
  font-size: 18px;
}

.activity-amount {
  justify-items: end;
  color: var(--text);
}

.activity-amount.is-positive strong {
  color: #60eb63;
}

.trade-dock {
  position: fixed;
  left: 50%;
  bottom: max(30px, env(safe-area-inset-bottom));
  z-index: 9;
  width: min(calc(100vw - 44px), 386px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  transform: translateX(-50%);
}

.trade-dock button,
.solscan-button {
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #b6a4fe;
  color: #080808;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.history-date {
  margin: 16px 0 18px;
  color: #c7c7cc;
  font-size: 21px;
  font-weight: 650;
}

.activity-detail-hero {
  display: grid;
  justify-items: center;
  padding: 20px 0 28px;
}

.detail-token-logo .activity-token {
  width: 96px;
  height: 96px;
}

.detail-token-logo .activity-token i {
  width: 37px;
  height: 37px;
  font-size: 28px;
}

.activity-detail-hero h1 {
  margin: 24px 0 0;
  color: var(--text);
  font-size: 51px;
  line-height: 1.04;
  font-weight: 720;
  white-space: nowrap;
}

.activity-detail-hero h1.is-positive {
  color: #60eb63;
  white-space: normal;
  justify-self: start;
  font-size: 52px;
}

.detail-table .info-row {
  min-height: 56px;
}

.solscan-button {
  position: fixed;
  left: 50%;
  bottom: max(30px, env(safe-area-inset-bottom));
  width: min(calc(100vw - 44px), 386px);
  transform: translateX(-50%);
}

.balance-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.source-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 16;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(7px);
}

.balance-editor {
  position: fixed;
  left: 50%;
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px));
  z-index: 19;
  width: min(calc(100vw - 44px), 386px);
  max-height: min(560px, calc(100dvh - 132px));
  overflow-y: auto;
  transform: translateX(-50%);
  padding: 18px;
  border-radius: 24px;
  background: rgba(29, 29, 30, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.72);
}

.source-panel {
  position: fixed;
  left: 50%;
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px));
  z-index: 17;
  width: min(calc(100vw - 44px), 386px);
  max-height: min(590px, calc(100dvh - 132px));
  overflow-y: auto;
  transform: translateX(-50%);
  padding: 18px;
  border-radius: 24px;
  background: rgba(29, 29, 30, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.72);
}

.balance-editor[hidden],
.balance-editor-backdrop[hidden],
.source-panel[hidden],
.source-panel-backdrop[hidden] {
  display: none;
}

.balance-editor-header,
.source-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.balance-editor h2,
.source-panel h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.balance-editor-header button,
.source-panel-header button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2a2d;
  position: relative;
}

.balance-editor-header button::before,
.balance-editor-header button::after,
.source-panel-header button::before,
.source-panel-header button::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #d9d9dd;
  transform: rotate(45deg);
}

.balance-editor-header button::after,
.source-panel-header button::after {
  transform: rotate(-45deg);
}

.source-mode-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: #111112;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.source-mode-control button {
  height: 42px;
  border-radius: 12px;
  color: #b9b9bf;
  background: transparent;
  font-size: 16px;
  font-weight: 760;
}

.source-mode-control button[aria-pressed="true"] {
  color: #09070f;
  background: var(--purple);
}

.source-raw-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  margin-top: 12px;
  padding: 0 2px;
  color: #e6e6ea;
  font-size: 16px;
  font-weight: 720;
}

.source-raw-toggle input {
  width: 42px;
  height: 24px;
  appearance: none;
  border-radius: 999px;
  background: #3a3a3e;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.source-raw-toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4f4f7;
  transition: transform 140ms ease;
}

.source-raw-toggle input:checked {
  background: var(--purple);
}

.source-raw-toggle input:checked::after {
  transform: translateX(18px);
}

.source-status-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.source-capture-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  margin-top: 4px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(170, 152, 246, 0.12);
  box-shadow: inset 0 0 0 1px rgba(170, 152, 246, 0.24);
}

.source-capture-status span,
.source-capture-status strong {
  font-size: 14px;
  line-height: 1.1;
}

.source-capture-status span {
  color: #eeeaff;
  font-weight: 780;
}

.source-capture-status strong {
  color: var(--purple);
  font-weight: 800;
}

.source-capture-status small {
  grid-column: 1 / -1;
  color: #aaa1e9;
  font-size: 12px;
  line-height: 1.25;
}

.source-rule-summary {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #111112;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.source-audit-summary {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(98, 222, 112, 0.08);
  box-shadow: inset 0 0 0 1px rgba(98, 222, 112, 0.2);
}

.source-audit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.source-rule-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.source-audit-heading span,
.source-audit-heading strong,
.source-rule-heading span,
.source-rule-heading strong {
  font-size: 14px;
  line-height: 1.1;
}

.source-audit-heading span,
.source-rule-heading span {
  color: #eeeaff;
  font-weight: 780;
}

.source-audit-heading strong,
.source-rule-heading strong {
  color: var(--purple);
  font-weight: 800;
  white-space: nowrap;
}

.source-audit-summary small,
.source-rule-summary small {
  color: #8d8d94;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.source-audit-summary b,
.source-rule-summary b {
  color: #c4bbff;
  font-weight: 760;
}

.source-status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding: 12px;
  border-radius: 14px;
  background: #111112;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.source-status-row span,
.source-status-row strong {
  font-size: 15px;
  line-height: 1.1;
}

.source-status-row strong {
  color: var(--green);
  font-weight: 780;
}

.source-status-row small {
  grid-column: 1 / -1;
  color: #8d8d94;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.source-status-row .source-metadata {
  color: #c4bbff;
}

.source-error,
.source-loading {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.25;
}

.source-error {
  color: var(--red);
}

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

.source-debug {
  max-height: 174px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 14px;
  color: #d8d8de;
  background: #0d0d0e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.balance-editor form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.balance-editor label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.balance-editor label span {
  color: #b7b7bd;
  font-size: 13px;
  font-weight: 650;
}

.balance-editor input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  border-radius: 12px;
  color: var(--text);
  background: #111112;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  padding: 0 12px;
  font-size: 17px;
}

.balance-editor input:focus {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 3px rgba(170, 152, 246, 0.24);
}

.balance-editor-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.balance-editor-actions button {
  height: 46px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 780;
}

.balance-editor-actions .secondary {
  color: #e2e2e6;
  background: #2b2b2e;
}

.balance-editor-actions .primary {
  color: #09070f;
  background: var(--purple);
}

.bottom-dock::before {
  content: "";
  position: absolute;
  inset: -28px -24px -34px;
  z-index: -1;
  background:
    radial-gradient(ellipse at 36% 48%, rgba(43, 38, 46, 0.48), transparent 58%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.74) 42%, #000 100%);
  filter: blur(12px);
  opacity: 0.98;
}

.search-pill,
.add-button {
  pointer-events: auto;
  height: 48px;
  border-radius: 999px;
}

.search-pill {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 18px;
  background: rgba(30, 30, 31, 0.96);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

.search-icon {
  width: 27px;
  height: 27px;
  display: block;
  background: center / contain no-repeat url("./assets/search-icon-ref.png");
  position: relative;
  flex: 0 0 auto;
}

.search-icon::after {
  content: none;
}

.search-pill input {
  min-width: 0;
  width: 100%;
  margin-left: 14px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.search-pill input::placeholder {
  color: #6e6e6e;
  opacity: 1;
}

.add-button {
  background: #b6a4fe;
  position: relative;
}

.add-button::before,
.add-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 1.5px;
  background: #070707;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.add-button::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

@media (min-width: 560px) {
  body {
    background: #101011;
  }

  .phone-shell {
    min-height: 932px;
    margin-block: 18px;
    border-radius: 38px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  }
}

@media (max-width: 390px) {
  .top-tabs {
    grid-template-columns: 40px 77px 75px 90px;
    gap: 8px;
  }

  .tab {
    font-size: 20px;
  }

  .home-content {
    padding-inline: 18px;
  }

  .horizontal-rail {
    grid-auto-columns: minmax(160px, 160px);
  }

  .prediction-rail {
    grid-auto-columns: minmax(252px, 252px);
  }

  .bottom-dock {
    width: min(calc(100vw - 36px), 360px);
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 12px;
  }
}
