:root {
  color-scheme: dark;
  --bg: #050713;
  --panel: rgba(255, 255, 255, 0.12);
  --panel-strong: rgba(255, 255, 255, 0.18);
  --stroke: rgba(255, 255, 255, 0.22);
  --text: #f7fbff;
  --muted: rgba(236, 243, 255, 0.68);
  --cyan: #74f7ff;
  --green: #69f6a4;
  --gold: #ffd166;
  --pink: #ff6fb1;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 15% -5%, rgba(116, 247, 255, 0.22), transparent 30%),
    radial-gradient(circle at 85% 8%, rgba(255, 111, 177, 0.18), transparent 28%),
    linear-gradient(180deg, #07091d 0%, #050713 48%, #090b18 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(116, 247, 255, 0.35) 0 1px, transparent 1.5px);
  background-position: 0 0, 44px 58px;
  background-size: 140px 140px, 190px 190px;
  opacity: 0.18;
}

button {
  font: inherit;
}

.app-shell {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px 104px;
  position: relative;
}

.hero {
  min-height: 330px;
  margin: 0 -16px;
  padding: max(env(safe-area-inset-top), 14px) 16px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__media,
.hero__media img,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero__shade {
  background:
    linear-gradient(180deg, rgba(5, 7, 19, 0.22) 0%, rgba(5, 7, 19, 0.48) 44%, #050713 100%),
    linear-gradient(90deg, rgba(5, 7, 19, 0.62), rgba(5, 7, 19, 0.12));
}

.topbar,
.hero__content {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(5, 7, 19, 0.34);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.brand__mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.icon-button,
.small-button,
.action,
.bottom-nav__item {
  border: 1px solid var(--stroke);
  color: var(--text);
  background: var(--panel);
  backdrop-filter: blur(22px);
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.hero__content {
  max-width: 360px;
  padding-top: 96px;
}

.eyebrow,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 800;
}

.wallet-chip {
  width: max-content;
  max-width: 100%;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
  font-weight: 700;
}

.wallet-chip__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.glass {
  border: 1px solid var(--stroke);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(14, 19, 38, 0.58);
  backdrop-filter: blur(26px) saturate(145%);
  box-shadow: var(--shadow);
}

.balance-card {
  margin-top: -52px;
  position: relative;
  z-index: 2;
  border-radius: 24px;
  padding: 18px;
}

.balance-card__head,
.section-title,
.market-row,
.feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.balance-card__head strong {
  display: block;
  margin-top: 5px;
  font-size: 34px;
  line-height: 1;
}

.small-button {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
}

.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.asset {
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 10px;
}

.asset__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.asset__icon--spc {
  background: rgba(255, 209, 102, 0.18);
}

.asset__icon--gram {
  background: rgba(116, 247, 255, 0.16);
}

.asset span,
.asset small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.asset strong {
  display: block;
  margin: 4px 0;
  font-size: 17px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.action {
  min-height: 78px;
  border-radius: 20px;
  padding: 10px 6px;
  display: grid;
  place-items: center;
  gap: 4px;
  font-size: 12px;
}

.action span {
  width: 31px;
  height: 31px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 20px;
}

.action--primary {
  border-color: rgba(105, 246, 164, 0.48);
  background: rgba(105, 246, 164, 0.16);
}

.market,
.feature {
  border-radius: 22px;
}

.market {
  padding: 18px;
}

h2 {
  margin-top: 4px;
  font-size: 22px;
}

.status-pill {
  padding: 7px 11px;
  border-radius: 999px;
  color: #08130d;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.market-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.market-row {
  min-height: 54px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
}

.market-row span,
.market-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.market-row b {
  margin-left: auto;
}

.feature-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.feature {
  justify-content: flex-start;
  padding: 15px;
}

.feature__icon {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 23px;
}

.feature h3 {
  font-size: 16px;
}

.feature p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(env(safe-area-inset-bottom), 12px);
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 440px);
  min-height: 70px;
  padding: 9px;
  border-radius: 26px;
  border: 1px solid var(--stroke);
  background: rgba(7, 10, 26, 0.72);
  backdrop-filter: blur(28px) saturate(150%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  box-shadow: var(--shadow);
}

.bottom-nav__item {
  min-width: 0;
  border-radius: 19px;
  padding: 8px 4px;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 11px;
}

.bottom-nav__item span {
  font-size: 19px;
  line-height: 1;
}

.bottom-nav__item.is-active {
  color: #061016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-color: transparent;
}

@media (max-width: 370px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero {
    margin-left: -12px;
    margin-right: -12px;
  }

  h1 {
    font-size: 30px;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }
}
