:root {
  color-scheme: dark;
  --bg: #070512;
  --bg-2: #0d0820;
  --panel: rgba(36, 18, 68, 0.48);
  --panel-strong: rgba(45, 22, 86, 0.62);
  --line: rgba(190, 114, 255, 0.34);
  --line-soft: rgba(190, 114, 255, 0.16);
  --text: #fbf7ff;
  --muted: #b8a7ce;
  --faint: #786993;
  --purple: #b95cff;
  --violet: #7c3dff;
  --pink: #ff4fd8;
  --cyan: #4ee7ff;
  --green: #4dffbf;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(185, 92, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 12% 28%, rgba(255, 79, 216, 0.16), transparent 22rem),
    radial-gradient(circle at 88% 70%, rgba(78, 231, 255, 0.11), transparent 20rem),
    linear-gradient(180deg, var(--bg), #05030d 80%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  content: "";
  background-image:
    linear-gradient(rgba(190, 114, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 114, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(180deg, rgba(4, 3, 10, 0.15), rgba(4, 3, 10, 0.78)),
    radial-gradient(circle at 68% 25%, rgba(185, 92, 255, 0.16), transparent 16rem);
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg,
canvas {
  display: block;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.phone-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 440px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  border-inline: 1px solid rgba(190, 114, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(13, 7, 32, 0.86), rgba(5, 3, 13, 0.9)),
    var(--bg);
  box-shadow: 0 0 80px rgba(124, 61, 255, 0.18);
}

#network-bg {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: -1;
  width: min(100%, 440px);
  height: 100vh;
  opacity: 0.82;
  pointer-events: none;
  transform: translateX(-50%);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 112px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(190, 114, 255, 0.18);
  background: rgba(5, 4, 14, 0.86);
  backdrop-filter: blur(18px) saturate(1.28);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--pink), var(--purple) 48%, var(--cyan));
  color: #10051c;
  font-size: 30px;
  font-weight: 950;
  box-shadow: 0 0 32px rgba(185, 92, 255, 0.5);
}

.brand span:last-child {
  color: #f7eaff;
  font-size: 30px;
  font-weight: 880;
  line-height: 1;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.round-button,
.profile-button,
.logout-button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(190, 114, 255, 0.34);
  border-radius: 999px;
  background: rgba(31, 15, 58, 0.54);
  color: #d8b4ff;
  cursor: pointer;
  box-shadow: inset 0 0 22px rgba(185, 92, 255, 0.08);
}

.round-button {
  width: 58px;
  height: 58px;
}

.profile-button {
  width: 62px;
  height: 62px;
  border-color: rgba(255, 79, 216, 0.55);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(255, 79, 216, 0.2);
}

.logout-button {
  width: 42px;
  height: 42px;
  border-color: transparent;
  background: transparent;
  color: #9889ae;
}

.round-button:hover,
.profile-button:hover,
.logout-button:hover,
.round-button:focus-visible,
.profile-button:focus-visible,
.logout-button:focus-visible {
  border-color: rgba(78, 231, 255, 0.55);
  color: #fff;
  outline: 0;
}

.welcome-block {
  padding: 54px 20px 24px;
}

.welcome-block p {
  margin: 0;
  color: #b8a7ce;
  font-size: 32px;
  font-weight: 760;
  line-height: 1.1;
}

.welcome-block h1 {
  margin: 10px 0 0;
  background: linear-gradient(135deg, #fff, #f3bcff 42%, var(--pink));
  background-clip: text;
  color: transparent;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(83, 37, 137, 0.44), rgba(18, 10, 43, 0.58)),
    rgba(28, 14, 54, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 55px rgba(185, 92, 255, 0.08),
    var(--shadow);
  backdrop-filter: blur(22px) saturate(1.38);
}

.wallet-card {
  position: relative;
  min-height: 378px;
  margin: 30px 18px 24px;
  padding: 48px 26px 30px;
  overflow: hidden;
}

.wallet-card::before,
.wallet-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.wallet-card::before {
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 86% 22%, rgba(255, 79, 216, 0.22), transparent 12rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 30%);
}

.wallet-card::after {
  right: -38px;
  top: -4px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.wallet-orbit {
  position: absolute;
  right: -22px;
  top: -58px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(190, 114, 255, 0.22);
  border-radius: 999px;
}

.card-kicker {
  position: relative;
  z-index: 1;
  color: #bfa6d9;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.wallet-amount {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 16px;
  color: #f7eaff;
  font-size: 76px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(185, 92, 255, 0.34);
}

.wallet-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.wallet-row article {
  min-height: 122px;
  padding: 22px 18px;
  border: 1px solid rgba(190, 114, 255, 0.2);
  border-radius: 22px;
  background: rgba(7, 5, 18, 0.5);
}

.wallet-row span,
.wallet-row strong,
.stat-card strong,
.stat-card p,
.stat-card small {
  display: block;
}

.wallet-row span {
  color: #a99abb;
  font-size: 24px;
  line-height: 1.25;
}

.wallet-row strong {
  margin-top: 12px;
  color: #f3d8ff;
  font-size: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 26px 18px 130px;
}

.stat-card {
  min-height: 292px;
  padding: 32px 18px 24px;
}

.stat-card.muted-card {
  border-color: rgba(190, 114, 255, 0.16);
  background: rgba(9, 9, 23, 0.7);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 79, 216, 0.42);
  border-radius: 22px;
  background: rgba(255, 79, 216, 0.12);
  color: #ff7fe5;
  box-shadow: 0 0 28px rgba(255, 79, 216, 0.16);
}

.stat-card strong {
  margin-top: 34px;
  color: #f7eaff;
  font-size: 42px;
  line-height: 1;
}

.stat-card p {
  margin: 14px 0 0;
  color: #9f8fb6;
  font-size: 24px;
  line-height: 1.25;
}

.stat-card small {
  margin-top: 10px;
  color: #e06dff;
  font-size: 20px;
  line-height: 1.35;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 440px);
  min-height: 104px;
  padding: 12px 8px 16px;
  border-top: 1px solid rgba(190, 114, 255, 0.24);
  background: rgba(5, 4, 14, 0.94);
  backdrop-filter: blur(20px) saturate(1.3);
  transform: translateX(-50%);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 76px;
  border-radius: 18px;
  color: #7f7293;
  font-size: 14px;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.bottom-nav svg {
  width: 30px;
  height: 30px;
}

.bottom-nav a.is-active {
  color: #ff73e3;
  text-shadow: 0 0 18px rgba(255, 79, 216, 0.7);
}

.bottom-nav a.is-active::after {
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 0 18px var(--pink);
  content: "";
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 122px;
  z-index: 50;
  min-width: 170px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 79, 216, 0.42);
  border-radius: 18px;
  background: rgba(13, 7, 32, 0.9);
  color: #f7d7ff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(14px);
}

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

@media (min-width: 720px) {
  body {
    padding: 28px 0;
  }

  .phone-shell {
    min-height: calc(100svh - 56px);
    border: 1px solid rgba(190, 114, 255, 0.18);
    border-radius: 28px;
  }

  .bottom-nav {
    bottom: 28px;
    border-inline: 1px solid rgba(190, 114, 255, 0.18);
    border-radius: 0 0 28px 28px;
  }
}

@media (max-width: 420px) {
  .app-header {
    min-height: 94px;
    padding: 18px 16px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 23px;
  }

  .brand span:last-child {
    font-size: 22px;
  }

  .header-actions {
    gap: 5px;
  }

  .round-button {
    width: 40px;
    height: 40px;
  }

  .profile-button {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }

  .logout-button {
    width: 30px;
    height: 30px;
  }

  .round-button svg,
  .profile-button svg,
  .logout-button svg {
    width: 19px;
    height: 19px;
  }

  .welcome-block {
    padding-top: 44px;
  }

  .welcome-block p {
    font-size: 27px;
  }

  .wallet-card {
    min-height: 330px;
    margin-inline: 16px;
    padding: 40px 22px 24px;
  }

  .wallet-card::after {
    right: 0;
    top: 0;
    width: 148px;
    height: 148px;
  }

  .wallet-orbit {
    right: 0;
    top: -34px;
    width: 178px;
    height: 178px;
  }

  .card-kicker {
    font-size: 20px;
    letter-spacing: 4px;
  }

  .wallet-amount {
    font-size: 62px;
  }

  .wallet-row {
    gap: 12px;
    margin-top: 42px;
  }

  .wallet-row article {
    min-height: 104px;
    padding: 18px 14px;
  }

  .wallet-row span {
    font-size: 19px;
  }

  .wallet-row strong {
    font-size: 25px;
  }

  .stats-grid {
    gap: 18px;
    padding-inline: 16px;
  }

  .stat-card {
    min-height: 246px;
    padding: 26px 16px 20px;
  }

  .icon-box {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .stat-card strong {
    margin-top: 28px;
    font-size: 34px;
  }

  .stat-card p {
    font-size: 20px;
  }

  .stat-card small {
    font-size: 16px;
  }

  .bottom-nav {
    min-height: 94px;
  }

  .bottom-nav a {
    font-size: 12px;
  }

  .bottom-nav svg {
    width: 27px;
    height: 27px;
  }
}

@media (max-width: 360px) {
  .brand span:last-child {
    font-size: 22px;
  }

  .round-button:nth-child(2) {
    display: none;
  }

  .wallet-row {
    grid-template-columns: 1fr;
  }

  .wallet-card {
    min-height: auto;
  }

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

/* Compact professional mobile scale */
.phone-shell {
  width: min(100%, 430px);
}

#network-bg {
  width: min(100%, 430px);
}

.app-header {
  min-height: 76px;
  padding: 14px 14px;
  gap: 10px;
}

.brand {
  gap: 9px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 21px;
}

.brand span:last-child {
  font-size: 22px;
}

.header-actions {
  gap: 6px;
}

.round-button {
  width: 36px;
  height: 36px;
}

.profile-button {
  width: 40px;
  height: 40px;
  font-size: 17px;
}

.logout-button {
  width: 30px;
  height: 30px;
}

.round-button svg,
.profile-button svg,
.logout-button svg {
  width: 17px;
  height: 17px;
}

.welcome-block {
  padding: 28px 16px 8px;
}

.welcome-block p {
  font-size: 20px;
  font-weight: 720;
}

.welcome-block h1 {
  margin-top: 5px;
  font-size: 30px;
}

.glass-card {
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 34px rgba(185, 92, 255, 0.07),
    0 16px 42px rgba(0, 0, 0, 0.32);
}

.wallet-card {
  min-height: 188px;
  margin: 14px 14px 12px;
  padding: 20px 16px 14px;
}

.wallet-card::after {
  right: 8px;
  top: -14px;
  width: 96px;
  height: 96px;
}

.wallet-orbit {
  right: 8px;
  top: -34px;
  width: 118px;
  height: 118px;
}

.card-kicker {
  font-size: 12px;
  letter-spacing: 3px;
}

.wallet-amount {
  margin-top: 8px;
  font-size: 42px;
}

.wallet-row {
  gap: 10px;
  margin-top: 18px;
}

.wallet-row article {
  min-height: 66px;
  padding: 11px 12px;
  border-radius: 14px;
}

.wallet-row span {
  font-size: 12px;
}

.wallet-row strong {
  margin-top: 6px;
  font-size: 17px;
}

.stats-grid {
  gap: 12px;
  padding: 12px 14px 88px;
}

.stat-card {
  min-height: 132px;
  padding: 14px 12px 12px;
  border-radius: 18px;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.icon-box svg {
  width: 20px;
  height: 20px;
}

.stat-card strong {
  margin-top: 16px;
  font-size: 24px;
}

.stat-card p {
  margin-top: 7px;
  font-size: 13px;
}

.stat-card small {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.25;
}

.bottom-nav {
  width: min(100%, 430px);
  min-height: 70px;
  padding: 6px 6px 8px;
}

.bottom-nav a {
  min-height: 56px;
  gap: 4px;
  border-radius: 14px;
  font-size: 10.5px;
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
}

.bottom-nav a.is-active::after {
  width: 30px;
  height: 3px;
  margin-top: 2px;
}

.toast {
  bottom: 84px;
}

@media (min-width: 720px) {
  .phone-shell {
    border-radius: 24px;
  }

  .bottom-nav {
    bottom: 28px;
    border-radius: 0 0 24px 24px;
  }
}

@media (max-width: 420px) {
  .app-header {
    min-height: 72px;
    padding: 12px 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 19px;
  }

  .brand span:last-child {
    font-size: 20px;
  }

  .round-button {
    width: 34px;
    height: 34px;
  }

  .profile-button {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .logout-button {
    width: 28px;
    height: 28px;
  }

  .welcome-block {
    padding: 24px 14px 7px;
  }

  .wallet-card {
    min-height: 180px;
    margin-inline: 12px;
    padding: 18px 14px 13px;
  }

  .wallet-amount {
    font-size: 38px;
  }

  .wallet-row {
    margin-top: 16px;
  }

  .wallet-row article {
    min-height: 62px;
    padding: 10px;
  }

  .stats-grid {
    gap: 10px;
    padding-inline: 12px;
  }

  .stat-card {
    min-height: 122px;
    padding: 12px 10px 10px;
  }

  .icon-box {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .stat-card strong {
    margin-top: 14px;
    font-size: 22px;
  }

  .stat-card p {
    font-size: 12.5px;
  }

  .bottom-nav {
    min-height: 66px;
  }

  .bottom-nav a {
    min-height: 52px;
    font-size: 10px;
  }

  .bottom-nav svg {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 360px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand span:last-child {
    font-size: 18px;
  }

  .round-button:nth-child(2) {
    display: none;
  }
}

/* Combined user, referral, and wallet card */
.wallet-card {
  display: grid;
  gap: 10px;
  min-height: 244px;
}

.wallet-profile,
.wallet-actions,
.wallet-balance {
  position: relative;
  z-index: 1;
}

.wallet-profile {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.user-copy span,
.user-copy small,
.ref-panel span {
  display: block;
  color: #b8a7ce;
}

.user-copy span {
  font-size: 12px;
  font-weight: 720;
}

.user-copy h1 {
  margin: 3px 0 0;
  background: linear-gradient(135deg, #fff, #f4c1ff 45%, var(--pink));
  background-clip: text;
  color: transparent;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;
}

.user-copy small {
  margin-top: 5px;
  font-size: 11px;
}

.ref-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 79, 216, 0.35);
  border-radius: 999px;
  background: rgba(255, 79, 216, 0.1);
  color: #ffd8f7;
  font-size: 10px;
  font-weight: 850;
  box-shadow: 0 0 16px rgba(255, 79, 216, 0.12);
}

.ref-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(190, 114, 255, 0.2);
  border-radius: 13px;
  background: rgba(7, 5, 18, 0.46);
}

.ref-panel span {
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.ref-panel strong {
  display: block;
  margin-top: 4px;
  color: #f7eaff;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(190, 114, 255, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #f4d9ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.mini-action svg {
  width: 15px;
  height: 15px;
}

.mini-action:hover,
.mini-action:focus-visible {
  border-color: rgba(78, 231, 255, 0.5);
  outline: 0;
}

.wallet-balance {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding-top: 2px;
}

.wallet-balance .card-kicker {
  font-size: 10px;
  letter-spacing: 2px;
}

.wallet-balance .wallet-amount {
  margin-top: 0;
  font-size: 30px;
  text-align: right;
}

.wallet-row {
  margin-top: 0;
}

@media (max-width: 420px) {
  .wallet-card {
    min-height: 236px;
  }

  .user-copy h1 {
    font-size: 23px;
  }

  .wallet-balance .wallet-amount {
    font-size: 28px;
  }
}

@media (max-width: 360px) {
  .ref-badge {
    display: none;
  }

  .wallet-profile {
    grid-template-columns: 1fr;
  }
}

/* Live market chart */
.stats-grid {
  padding-bottom: 12px;
}

.market-section {
  padding: 0 14px 88px;
}

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

.market-head,
.market-picker {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.market-head span,
.market-picker label span,
.market-price span {
  display: block;
  color: #b8a7ce;
  font-size: 10px;
  font-weight: 780;
  text-transform: uppercase;
}

.market-head h2 {
  margin: 3px 0 0;
  color: #fbf7ff;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(77, 255, 191, 0.34);
  border-radius: 999px;
  background: rgba(77, 255, 191, 0.1);
  color: #92ffd9;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.market-tabs button {
  min-height: 34px;
  border: 1px solid rgba(190, 114, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #b8a7ce;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.market-tabs button.is-active {
  border-color: rgba(255, 79, 216, 0.48);
  background: rgba(255, 79, 216, 0.14);
  color: #ffe6fb;
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.14);
}

.market-picker label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.market-picker select {
  width: min(190px, 100%);
  min-height: 36px;
  border: 1px solid rgba(190, 114, 255, 0.24);
  border-radius: 12px;
  background: rgba(7, 5, 18, 0.7);
  color: #fbf7ff;
  outline: 0;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
}

.market-picker select:focus {
  border-color: rgba(78, 231, 255, 0.5);
}

.market-price {
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid rgba(190, 114, 255, 0.18);
  border-radius: 12px;
  background: rgba(7, 5, 18, 0.45);
  text-align: right;
}

.market-price strong {
  display: block;
  margin-top: 3px;
  color: #f7eaff;
  font-size: 15px;
  line-height: 1;
}

.chart-frame {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(190, 114, 255, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 79, 216, 0.14), transparent 12rem),
    rgba(4, 3, 12, 0.82);
}

.chart-frame iframe,
#market-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#market-fallback {
  z-index: 1;
}

.chart-frame iframe {
  z-index: 2;
  background: transparent;
}

@media (max-width: 420px) {
  .market-section {
    padding-inline: 12px;
  }

  .market-card {
    padding: 12px;
  }

  .market-head h2 {
    font-size: 17px;
  }

  .chart-frame {
    min-height: 238px;
  }
}

@media (max-width: 360px) {
  .market-picker {
    grid-template-columns: 1fr;
  }

  .market-price {
    min-width: 0;
    text-align: left;
  }

  .market-picker select {
    width: 100%;
  }
}
