:root {
  --bg: #05080b;
  --ink: #f7f1e3;
  --muted: #a7b1bf;
  --muted-2: #748294;
  --gold: #e8bd63;
  --gold-strong: #f4c76b;
  --gold-deep: #8e5d15;
  --green: #4fd18b;
  --red: #f05f6a;
  --blue: #7aa7ff;
  --cyan: #6db7d7;
  --steel: #18212a;
  --steel-2: #24303b;
  --glass: rgba(10, 15, 20, 0.72);
  --glass-bright: rgba(255, 255, 255, 0.08);
  --line: rgba(148, 165, 185, 0.22);
  --radius-lg: 28px;
  --radius-md: 20px;
  font-family: "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(232, 189, 99, 0.08), transparent 24%),
    radial-gradient(circle at 76% 24%, rgba(109, 183, 215, 0.08), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(55, 102, 160, 0.12), transparent 30%),
    linear-gradient(135deg, #020405 0%, #071017 48%, #03070b 100%);
}

body.capture-long {
  min-height: auto;
}

button, input { font: inherit; }
button { color: inherit; cursor: pointer; }

.studio {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(390px, 456px);
  justify-content: center;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: min(100%, 456px);
  padding: 13px;
  border-radius: 46px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), #070b10 44%, rgba(109, 183, 215, 0.16), rgba(232, 189, 99, 0.18));
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255,255,255,.12);
}

.device-light {
  position: absolute;
  inset: 7% -10%;
  border-radius: 46px;
  background: linear-gradient(90deg, transparent, rgba(109, 183, 215, 0.14), rgba(232, 189, 99, 0.1), transparent);
  filter: blur(30px);
}

.app-shell {
  position: relative;
  width: 100%; max-width: 430px;
  max-width: 100%;
  height: var(--shell-height, 932px);
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),
    radial-gradient(circle at 50% -4%, rgba(109, 183, 215, .09), transparent 28%),
    radial-gradient(circle at 84% 24%, rgba(232, 189, 99, .07), transparent 24%),
    var(--bg);
  background-size: 30px 30px, 30px 30px, auto, auto, auto;
}

body.capture-long .studio {
  width: max-content;
  min-height: auto;
  padding: 0;
}

body.capture-long .phone-frame {
  width: 100%; max-width: 456px;
  margin: 0;
}

body.capture-long .app-shell {
  width: 100%; max-width: 430px;
  height: var(--capture-shell-height, 932px);
}

body.capture-long .screen.is-active {
  overflow: visible;
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.032), transparent 34%, rgba(109,183,215,.045) 62%, rgba(232,189,99,.035) 78%, transparent);
  pointer-events: none;
}

.app-header {
  position: relative;
  z-index: 2;
  height: 82px;
  padding: 16px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark, .hero-logo, .profile-logo, .modal-token {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 18%, #fff0b6, var(--gold) 42%, #8e5d15);
  color: #1d1203;
  box-shadow: 0 0 28px rgba(232,189,99,.34);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-family: "Unbounded", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.brand-lockup b {
  display: block;
  font-size: 16px;
}

.brand-lockup small {
  display: block;
  color: #b9bec8;
  font-size: 10px;
}

.icon-btn, .mini-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(18px) saturate(150%);
}

.icon-btn svg, .mini-btn svg { width: 19px; height: 19px; }
.has-dot { position: relative; }
.has-dot::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-strong);
  box-shadow: 0 0 14px var(--gold-strong);
}

.screen {
  position: absolute;
  inset: 82px 0 68px;
  display: none;
  padding: 0 18px 92px;
  overflow: auto;
  scrollbar-width: none;
  z-index: 1;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.is-active {
  display: block;
  z-index: 2;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.glass-panel {
  border: 1px solid rgba(148,165,185,.14);
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018) 38%, rgba(109,183,215,.035), rgba(232,189,99,.025)),
    var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(109,183,215,.035),
    0 22px 55px rgba(0,0,0,.42);
  backdrop-filter: blur(16px) saturate(132%);
}

.hero-dashboard,
.home-hero {
  padding: 18px;
  border-radius: 30px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 20px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 44%, rgba(232,189,99,.15), transparent 24%),
    radial-gradient(circle at 18% 0%, rgba(109,183,215,.08), transparent 34%),
    linear-gradient(145deg, rgba(17, 22, 27, .94), rgba(4, 7, 10, .9) 50%, rgba(18, 18, 15, .78));
  border-color: rgba(148,165,185,.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(109,183,215,.055),
    0 22px 55px rgba(0,0,0,.38);
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109,183,215,.22), rgba(232,189,99,.16), transparent);
  opacity: .7;
}

.hero-brand {
  position: relative;
  z-index: 1;
}

.hero-brand {
  display: block;
}

.hero-brand h1,
.asset-header h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.15;
}

.hero-brand span,
.asset-header span {
  color: var(--muted);
  font-size: 12px;
}

.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(79,209,139,.2);
  border-radius: 999px;
  color: var(--green) !important;
  background: rgba(79,209,139,.08);
}

.secure-pill svg {
  width: 14px;
  height: 14px;
}

.risk-pill {
  position: relative;
  z-index: 2;
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #cceefc;
  background: rgba(109,183,215,.12);
  border: 1px solid rgba(109,183,215,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 12px;
}

.risk-pill svg {
  width: 15px;
  height: 15px;
}

.asset-hero-copy,
.asset-summary {
  position: relative;
  z-index: 2;
}

.asset-hero-copy {
  width: min(100%, 252px);
}

.asset-summary {
  margin-top: 28px;
  padding-right: 108px;
}

.asset-hero-copy > span {
  display: block;
  margin-top: 20px;
}

.asset-summary span,
.asset-summary em,
.asset-hero-copy > span,
.asset-hero-copy em {
  display: block;
  color: #b8bfca;
  font-size: 13px;
  font-style: normal;
}

.asset-summary strong,
.asset-hero-copy strong {
  display: block;
  margin: 7px 0;
  font-family: "Unbounded", sans-serif;
  font-size: 28px;
  line-height: 1.05;
}

.asset-summary b,
.asset-hero-copy b {
  color: var(--green);
}

.asset-illustration {
  position: absolute;
  z-index: 1;
  right: -20px;
  bottom: 10px;
  width: 146px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.38));
}

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

.asset-quick-grid button {
  position: relative;
  overflow: hidden;
  min-height: 78px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  grid-template-rows: 47px auto;
  gap: 3px;
  padding: 6px 5px 8px;
  background:
    radial-gradient(circle at 50% 32%, rgba(109,183,215,.11), transparent 42%),
    radial-gradient(circle at 50% 75%, rgba(232,189,99,.08), transparent 32%),
    radial-gradient(circle at 8px 76px, rgba(148,165,185,.12) 1px, transparent 1.3px),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.012)),
    rgba(9,14,19,.82);
  background-size: auto, auto, 8px 8px, auto, auto;
}

.asset-quick-grid button::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 23px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109,183,215,.2), rgba(232,189,99,.16), transparent);
  pointer-events: none;
}

.quick-illustration {
  position: relative;
  z-index: 1;
  width: 62px;
  max-width: 118%;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.32));
}

.asset-quick-grid span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 9px 0;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 10px 11px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr 18px;
  grid-template-rows: 58px auto auto;
  gap: 2px 8px;
  align-items: end;
  text-align: left;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 52% 40%, rgba(109,183,215,.1), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(232,189,99,.12), transparent 34%),
    radial-gradient(circle at 14px 100px, rgba(148,165,185,.13) 1px, transparent 1.4px),
    linear-gradient(145deg, rgba(255,255,255,.065), transparent 52%);
  background-size: auto, auto, 9px 9px, auto;
  pointer-events: none;
}

.feature-card > svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  grid-row: 2 / 4;
  grid-column: 2;
  align-self: center;
  position: relative;
  z-index: 2;
}

.feature-illustration {
  position: relative;
  z-index: 1;
  grid-column: 1 / 3;
  width: 116px;
  max-width: 116%;
  height: 66px;
  justify-self: center;
  align-self: center;
  object-fit: contain;
  transform: translateY(-2px);
  pointer-events: none;
}

.feature-card b {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 13px;
  grid-column: 1;
}

.feature-card small {
  position: relative;
  z-index: 2;
  color: #aeb5c0;
  font-size: 10px;
  line-height: 1.4;
  grid-column: 1;
}

.invite-card {
  position: relative;
  overflow: hidden;
  min-height: 134px;
  padding: 18px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 14px;
  align-items: center;
}

.invite-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 78% 46%, rgba(109,183,215,.13), transparent 34%),
    radial-gradient(circle at 76% 92%, rgba(232,189,99,.12), transparent 28%),
    radial-gradient(circle at 12px 105px, rgba(148,165,185,.12) 1px, transparent 1.4px);
  background-size: auto, auto, 9px 9px;
  pointer-events: none;
}

.profile-invite {
  margin-bottom: 12px;
}

.invite-card h2 {
  font-size: 20px;
}

.invite-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.inline-cta {
  min-height: 34px;
  margin-top: 13px;
  padding: 0 12px;
  border: 1px solid rgba(232,189,99,.24);
  border-radius: 12px;
  color: #f4d58d;
  background: linear-gradient(135deg, rgba(232,189,99,.12), rgba(109,183,215,.06));
  font-size: 12px;
}

.invite-card > div,
.invite-card > img {
  position: relative;
  z-index: 1;
}

.invite-illustration {
  width: 130px;
  max-width: 128%;
  height: auto;
  justify-self: end;
  transform: translate(16px, 2px);
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.36));
  pointer-events: none;
}

.home-market-chart {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 12%, rgba(79,209,139,.08), transparent 30%),
    radial-gradient(circle at 14% 0%, rgba(109,183,215,.07), transparent 34%),
    rgba(7,12,17,.48);
  border: 1px solid rgba(148,165,185,.12);
}

.chart-meta div {
  min-width: 0;
}

.chart-meta div span,
.chart-meta div b {
  display: block;
}

.chart-meta div b {
  margin-top: 3px;
  font-family: "Unbounded", sans-serif;
  font-size: 18px;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.market-stats span {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 12px;
  color: #aeb5c0;
  background: rgba(255,255,255,.032);
  font-size: 10px;
}

.market-stats b {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.mini-periods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 7px;
  width: 172px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(148,165,185,.085);
  border: 1px solid rgba(148,165,185,.08);
}

.mini-periods button {
  min-height: 24px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}

.mini-periods .is-active {
  color: #10130f;
  background: linear-gradient(135deg, #d9f7e5, var(--green));
}

#homeTrendChart {
  height: 118px;
  margin-top: 5px;
}

.compact-axis {
  margin-top: -2px;
  font-size: 10px;
  color: var(--muted-2);
}

.home-ticker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.ticker-card {
  position: relative;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(148,165,185,.12);
  border-radius: 16px;
  text-align: left;
  background: rgba(8,13,18,.46);
}

.ticker-card b,
.ticker-card span,
.ticker-card em {
  display: block;
}

.ticker-card b {
  font-size: 12px;
}

.ticker-card span {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 800;
}

.ticker-card em {
  margin-top: 3px;
  font-size: 11px;
  font-style: normal;
}

.home-news {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.news-row {
  min-height: 62px;
  padding: 0 14px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.news-row span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(232,189,99,.1), rgba(109,183,215,.08));
}

.news-row svg {
  width: 18px;
  height: 18px;
}

.news-row b,
.news-row small {
  display: block;
}

.news-row b {
  font-size: 13px;
}

.news-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: "Unbounded", sans-serif;
  font-size: 10px;
  letter-spacing: 0;
}

h1, h2, p { margin: 0; }

.hero-top h1 {
  margin: 0 0 8px;
  font-family: "Unbounded", sans-serif;
  font-size: 32px;
  line-height: 1.05;
}

.delta {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #d9f7e5;
  background: rgba(79,209,139,.11);
  border: 1px solid rgba(79,209,139,.2);
  font-size: 12px;
}

.up { color: var(--green); }
.down { color: var(--red); }

.hero-logo {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border-radius: 28px;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  position: relative;
}
.hero-logo span { font-size: 25px; }
.hero-logo small {
  position: absolute;
  bottom: 10px;
  font-size: 9px;
  color: rgba(29,18,3,.7);
}

.liquid-chart-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.08);
}

.chart-meta, .section-title, .table-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-meta span, .chart-meta em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.chart-meta b { font-family: "Unbounded", sans-serif; font-size: 16px; }

canvas { width: 100%; display: block; }
#overviewChart { height: 156px; margin-top: 8px; }
#tradeChart { height: 210px; margin-top: 10px; }

.chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 10px;
}

.action-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
  border-radius: 24px;
}
.action-dock button {
  min-height: 68px;
  border: 0;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
.action-dock svg { color: var(--gold); width: 22px; height: 22px; }
.action-dock span { display: block; margin-top: 7px; font-size: 12px; }

.market-panel, .insight-panel, .market-table, .trade-hero, .pro-chart, .order-ticket, .order-book, .profile-hero, .vip-progress {
  border-radius: 24px;
  padding: 14px;
}

.market-panel {
  padding: 13px;
}

.section-title h2 { font-size: 18px; line-height: 1.2; }
.text-link {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 13px;
}

.quote-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quote-card {
  min-width: 0;
  min-height: 118px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  text-align: left;
  background: rgba(0,0,0,.2);
}
.coin {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #191005;
  font-weight: 800;
}
.btc { background: linear-gradient(145deg, #ffd782, #f7931a); }
.eth { color: #fff; background: linear-gradient(145deg, #9db5ff, #5264d9); }
.sol { color: #fff; background: linear-gradient(145deg, #1fd6b0, #7d4dff); }

.coin-logo {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.08);
}

.coin-logo.small {
  width: 24px;
  height: 24px;
  margin-bottom: 7px;
}

.quote-card b, .quote-card strong, .quote-card em { display: block; }
.quote-card b { margin-top: 10px; font-size: 13px; }
.quote-card strong { margin-top: 6px; font-size: 13px; }
.quote-card em { margin-top: 4px; font-style: normal; font-size: 11px; }

.insight-panel {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 14px;
  align-items: center;
}
.insight-panel span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.search-glass {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
}
.search-glass svg { width: 18px; color: var(--muted); }
.search-glass input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.segmented, .buy-sell, .period-tabs {
  display: grid;
  gap: 6px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(148,165,185,.08);
  border: 1px solid rgba(148,165,185,.08);
}
.segmented { grid-template-columns: repeat(4, 1fr); margin: 12px 0; }
.segmented button, .buy-sell button, .period-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}
.segmented .is-active, .buy-sell .is-active, .period-tabs .is-active {
  color: #10130f;
  background: linear-gradient(135deg, #d9f7e5, var(--green));
}

.market-filter-rail {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
  overflow: auto;
  scrollbar-width: none;
}

.market-filter-rail::-webkit-scrollbar {
  display: none;
}

.market-filter-rail button {
  min-width: 72px;
  min-height: 32px;
  border: 1px solid rgba(148,165,185,.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(148,165,185,.055);
  font-size: 12px;
}

.market-filter-rail .is-active {
  color: #10130f;
  border-color: rgba(79,209,139,.58);
  background: linear-gradient(135deg, #d9f7e5, var(--green));
  box-shadow: 0 10px 24px rgba(79,209,139,.16);
}

.market-lead-card {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-radius: 24px;
  margin-bottom: 10px;
  background:
    radial-gradient(circle at 82% 16%, rgba(79,209,139,.13), transparent 32%),
    radial-gradient(circle at 10% 0%, rgba(109,183,215,.1), transparent 34%),
    linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.018) 42%, rgba(7,12,17,.74));
}

.market-lead-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,209,139,.22), rgba(232,189,99,.12), transparent);
  pointer-events: none;
}

.market-lead-top,
.lead-price-row,
.market-lead-stats {
  position: relative;
  z-index: 1;
}

.market-lead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.market-pair {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-logo.lead {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.market-pair b,
.market-pair small {
  display: block;
}

.market-pair b {
  font-size: 14px;
}

.market-pair small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.lead-change {
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(79,209,139,.1);
  font-size: 12px;
  font-weight: 800;
}

.lead-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.lead-price-row strong {
  font-family: "Unbounded", sans-serif;
  font-size: 23px;
  line-height: 1;
  color: var(--green);
}

.lead-price-row span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

#marketHeroChart {
  position: relative;
  z-index: 1;
  height: 74px;
  margin: 0;
}

.market-lead-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.market-lead-stats span {
  min-width: 0;
  padding: 5px 7px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font-size: 9px;
}

.market-lead-stats b {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-table {
  padding: 0;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012) 48%, rgba(109,183,215,.015)),
    rgba(6,11,15,.54);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 16px 36px rgba(0,0,0,.28);
}

.market-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px 9px;
  border-bottom: 1px solid rgba(148,165,185,.1);
}

.market-list-head b,
.market-list-head small {
  display: block;
}

.market-list-head b {
  font-size: 14px;
}

.market-list-head small,
.market-list-head span {
  color: var(--muted-2);
  font-size: 10px;
}

.asset-row {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px minmax(118px, 1fr) 62px 92px;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 0;
  border-top: 1px solid rgba(148,165,185,.1);
  text-align: left;
  background:
    linear-gradient(90deg, rgba(255,255,255,.012), transparent 62%);
  transition: background .22s ease, transform .22s ease;
}

.asset-row:first-of-type {
  border-top: 0;
}

.asset-row.market-up:hover {
  background: linear-gradient(90deg, rgba(79,209,139,.052), rgba(255,255,255,.01) 58%);
  transform: translateX(2px);
}

.asset-row.market-down:hover {
  background: linear-gradient(90deg, rgba(240,95,106,.052), rgba(255,255,255,.01) 58%);
  transform: translateX(2px);
}

.market-rank {
  color: rgba(167,177,191,.54);
  font-family: "Unbounded", sans-serif;
  font-size: 10px;
}

.market-coin {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.market-coin .coin-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.market-coin b,
.market-coin small {
  display: block;
}

.market-coin b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-coin em {
  color: var(--muted-2);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}

.market-coin small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.1;
}

.market-spark {
  display: grid;
  place-items: center;
}

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

.price b {
  display: block;
  overflow: visible;
  font-family: "Unbounded", sans-serif;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0;
}

.price small {
  width: fit-content;
  min-height: 17px;
  margin: 5px 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.price small.up {
  color: var(--green);
  background: rgba(79,209,139,.095);
}

.price small.down {
  color: var(--red);
  background: rgba(240,95,106,.095);
}

.asset-row.market-up .price b {
  color: var(--green);
  text-shadow: none;
}

.asset-row.market-down .price b {
  color: var(--red);
  text-shadow: none;
}

.spark {
  width: 62px;
  height: 24px;
  display: block;
  overflow: visible;
  justify-self: center;
  opacity: .92;
}

.spark-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px currentColor);
}

.spark-fill {
  fill: currentColor;
  opacity: .055;
}

.spark-dot {
  fill: currentColor;
  stroke: rgba(255,255,255,.78);
  stroke-width: 1;
}

.spark.up {
  color: var(--green);
}

.spark.down {
  color: var(--red);
}

.trade-hero { display: flex; justify-content: space-between; align-items: center; }
.trade-hero h2 { font-size: 20px; }
.trade-hero strong { display:block; margin: 6px 0; font-family: "Unbounded", sans-serif; font-size: 26px; }
.trade-hero span { font-size: 12px; }
.pro-chart { margin-top: 12px; }
.period-tabs { grid-template-columns: repeat(5, 1fr); }
.trade-layout {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 12px;
  margin-top: 12px;
}
.buy-sell { grid-template-columns: repeat(2, 1fr); }
.order-ticket label { display:block; margin-top: 10px; }
.order-ticket label span { display:block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.order-ticket input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 0 10px;
  color: var(--ink);
  outline: 0;
  background: rgba(0,0,0,.23);
}
.percent-row { display:grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 10px 0; }
.percent-row button {
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  font-size: 10px;
}
.primary-cta {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  color: #211403;
  font-weight: 800;
  background: linear-gradient(135deg, #f6e2a3, var(--gold) 52%, #9b681e);
  box-shadow: 0 14px 30px rgba(232,189,99,.22);
}
.primary-cta.sell {
  color: #fff;
  background: linear-gradient(135deg, #ff9091, #db4046);
  box-shadow: 0 14px 30px rgba(241,100,104,.22);
}
.order-book h2 { margin-bottom: 12px; font-size: 16px; }
.book-row {
  position: relative;
  display:flex;
  justify-content: space-between;
  overflow:hidden;
  margin: 7px 0;
  font-size: 11px;
}
.book-row b {
  position:absolute;
  inset: 0 0 0 auto;
  width: var(--w);
  opacity: .16;
}
.book-row.ask span { color: var(--red); }
.book-row.ask b { background: var(--red); }
.book-row.bid span { color: var(--green); }
.book-row.bid b { background: var(--green); }
.book-row em { font-style: normal; color: var(--muted); }
.mid-price {
  display:block;
  padding: 9px 0;
  border-block: 1px solid rgba(148,165,185,.12);
  color: var(--gold);
  text-align:center;
}

.page-title { margin-bottom: 12px; }

.staking-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.staking-title h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.staking-title > span {
  padding: 6px 10px;
  border: 1px solid rgba(232,189,99,.18);
  border-radius: 999px;
  color: #d8c18d;
  background: rgba(232,189,99,.07);
  font-size: 10px;
  white-space: nowrap;
}

.staking-stack {
  display: grid;
  gap: 12px;
  padding-bottom: 0;
}

.staking-card {
  position: relative;
  overflow: hidden;
  min-height: 144px;
  padding: 13px 14px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 88px minmax(104px, 1fr) 104px;
  grid-template-rows: 32px 66px 30px;
  gap: 5px 10px;
  align-items: center;
  color: var(--tier);
  border-color: color-mix(in srgb, var(--tier) 26%, rgba(148,165,185,.18));
  background:
    radial-gradient(circle at 22% 70%, color-mix(in srgb, var(--tier) 15%, transparent), transparent 30%),
    radial-gradient(circle at 72% 20%, color-mix(in srgb, var(--tier) 9%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.012) 45%, rgba(7,12,17,.74));
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.staking-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,.12), transparent 18% 100%),
    radial-gradient(circle at 112px 34px, var(--tier), transparent 34%);
  opacity: .14;
  pointer-events: none;
  transition: opacity .22s ease;
}

.staking-card::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 86px;
  height: 14px;
  border-radius: 50%;
  background: var(--tier);
  filter: blur(16px);
  opacity: .18;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.staking-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tier) 52%, rgba(255,255,255,.12));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 20px 46px rgba(0,0,0,.34),
    0 0 24px color-mix(in srgb, var(--tier) 14%, transparent);
}

.staking-card:hover::before {
  opacity: .22;
}

.staking-card:hover::after {
  opacity: .34;
  transform: scaleX(1.14);
}

.tier-experience {
  --tier: #8ec8ff;
  --tier-soft: rgba(142,200,255,.14);
  --tier-deep: #2f6d9d;
}

.tier-steady {
  --tier: #6fd8d0;
  --tier-soft: rgba(111,216,208,.14);
  --tier-deep: #247974;
}

.tier-advanced {
  --tier: #e8bd63;
  --tier-soft: rgba(232,189,99,.15);
  --tier-deep: #8e5d15;
}

.tier-starter {
  --tier: #f7d77d;
  --tier-soft: rgba(247,215,125,.17);
  --tier-deep: #a16d18;
}

.tier-vip {
  --tier: #d9af79;
  --tier-soft: rgba(217,175,121,.15);
  --tier-deep: #6f4b27;
  min-height: 150px;
  background:
    radial-gradient(circle at 22% 70%, rgba(217,175,121,.14), transparent 30%),
    radial-gradient(circle at 74% 20%, rgba(217,175,121,.09), transparent 34%),
    linear-gradient(135deg, rgba(203,168,111,.07), rgba(255,255,255,.014) 48%, rgba(8,8,7,.82));
}

.staking-badge,
.staking-rate,
.staking-limits,
.staking-lock,
.staking-cta {
  position: relative;
  z-index: 1;
}

.staking-badge {
  grid-column: 1 / 3;
  align-self: start;
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 8px;
  border-radius: 13px;
  color: color-mix(in srgb, var(--tier) 78%, var(--ink));
  background:
    linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.035)),
    color-mix(in srgb, var(--tier) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tier) 42%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.staking-badge svg {
  width: 15px;
  height: 15px;
  color: currentColor;
}

.staking-badge b {
  font-size: 14px;
}

.staking-rate {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  white-space: nowrap;
}

.staking-rate strong {
  display: inline-block;
  color: var(--tier);
  font-family: "Unbounded", sans-serif;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 18px color-mix(in srgb, var(--tier) 24%, transparent);
  transition: text-shadow .22s ease, transform .22s ease;
}

.staking-rate small {
  margin-left: 4px;
  color: color-mix(in srgb, var(--tier) 44%, #cfd4dc);
  font-size: 12px;
}

.staking-card:hover .staking-rate strong {
  transform: translateY(-1px);
  text-shadow: 0 0 24px color-mix(in srgb, var(--tier) 42%, transparent);
}

.staking-rate em,
.staking-rate p {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.staking-rate em {
  margin-top: 7px;
  font-size: 12px;
}

.staking-rate p {
  margin-top: 3px;
  font-size: 10px;
}

.staking-limits {
  grid-column: 3;
  grid-row: 2;
  display: grid;
  gap: 6px;
  justify-items: end;
  color: var(--muted);
  font-size: 10px;
  align-self: stretch;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid rgba(148,165,185,.1);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    color-mix(in srgb, var(--tier) 5%, transparent);
}

.staking-limits span,
.staking-limits b {
  display: block;
}

.staking-limits span {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: rgba(196,205,217,.74);
  white-space: nowrap;
}

.staking-limits b {
  margin-top: 0;
  color: color-mix(in srgb, var(--tier) 42%, var(--ink));
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.staking-cta {
  grid-column: 3;
  grid-row: 3;
  justify-self: end;
  width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--tier) 36%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--tier) 54%, var(--ink));
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.022)),
    color-mix(in srgb, var(--tier) 8%, rgba(255,255,255,.045));
  font-size: 11px;
  font-weight: 800;
  transition: background .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.staking-card:hover .staking-cta {
  border-color: color-mix(in srgb, var(--tier) 64%, transparent);
  color: #10130f;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tier) 52%, #ffffff), var(--tier));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--tier) 18%, transparent);
}

.staking-cta.locked {
  display: none;
}

.staking-lock {
  grid-column: 2 / 4;
  grid-row: 3;
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(232,189,99,.24);
  border-radius: 12px;
  color: #e8bd63;
  background: rgba(232,189,99,.07);
  font-size: 10px;
}

.staking-lock svg {
  width: 14px;
  height: 14px;
}

.staking-record {
  min-height: 72px;
  padding: 0 15px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--muted);
}

.staking-record span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(148,165,185,.08);
}

.staking-record svg {
  width: 20px;
  height: 20px;
}

.staking-record b {
  color: var(--muted);
  font-size: 14px;
}

.staking-overview {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 12px;
  align-items: center;
  border-color: rgba(148,165,185,.2);
  background:
    radial-gradient(circle at 82% 34%, rgba(232,189,99,.17), transparent 34%),
    radial-gradient(circle at 18% 0%, rgba(109,183,215,.11), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.014) 46%, rgba(7,12,17,.8));
}

.staking-overview::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 58px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,189,99,.42), rgba(109,183,215,.2), transparent);
  pointer-events: none;
}

.staking-overview-copy,
.staking-overview img,
.staking-overview-stats {
  position: relative;
  z-index: 1;
}

.staking-overview-copy span,
.staking-overview-copy p {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.staking-overview-copy strong {
  display: block;
  margin: 7px 0 8px;
  font-family: "Unbounded", sans-serif;
  font-size: 24px;
  line-height: 1.08;
}

.staking-overview img {
  width: 136px;
  max-width: none;
  justify-self: end;
  transform: translate(14px, -2px);
  filter: drop-shadow(0 20px 26px rgba(0,0,0,.44));
  pointer-events: none;
}

.staking-overview-stats {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2px;
}

.staking-overview-stats span {
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid rgba(148,165,185,.11);
  border-radius: 14px;
  color: rgba(196,205,217,.78);
  background: rgba(255,255,255,.035);
  font-size: 10px;
}

.staking-overview-stats b {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staking-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 12px;
  padding: 5px;
  border: 1px solid rgba(148,165,185,.11);
  border-radius: 18px;
  background: rgba(148,165,185,.065);
}

.staking-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.staking-tabs .is-active {
  color: #10130f;
  background: linear-gradient(135deg, #d9f7e5, var(--green));
  box-shadow: 0 10px 20px rgba(79,209,139,.15);
}

.staking-stack {
  gap: 10px;
}

.staking-card {
  min-height: 120px;
  padding: 14px;
  border-radius: 22px;
  grid-template-columns: 1fr 118px;
  grid-template-rows: auto auto auto;
  gap: 10px 12px;
  align-items: stretch;
  background:
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--tier) 11%, transparent), transparent 28%),
    radial-gradient(circle at 4% 90%, color-mix(in srgb, var(--tier) 10%, transparent), transparent 26%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 48%, rgba(7,12,17,.78));
}

.staking-card::before {
  opacity: .08;
  background:
    linear-gradient(120deg, rgba(255,255,255,.11), transparent 18% 100%),
    radial-gradient(circle at 88% 22%, var(--tier), transparent 34%);
}

.staking-card::after {
  left: auto;
  right: 22px;
  bottom: 18px;
  width: 72px;
  height: 12px;
  opacity: .12;
}

.tier-vip {
  min-height: 128px;
}

.staking-card-head {
  position: relative;
  z-index: 1;
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staking-badge {
  grid-column: auto;
  align-self: auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
}

.staking-badge b {
  font-size: 13px;
}

.staking-rate {
  grid-column: auto;
  grid-row: auto;
  text-align: right;
}

.staking-rate strong {
  font-size: 30px;
}

.staking-meta {
  position: relative;
  z-index: 1;
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}

.staking-meta span,
.staking-meta em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(148,165,185,.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font-size: 11px;
  font-style: normal;
}

.staking-meta em {
  color: color-mix(in srgb, var(--tier) 56%, var(--ink));
  background: color-mix(in srgb, var(--tier) 8%, transparent);
}

.staking-limits {
  grid-column: 2;
  grid-row: 2 / 4;
  gap: 7px;
  align-self: stretch;
  padding: 10px;
  border-radius: 15px;
  font-size: 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.018)),
    color-mix(in srgb, var(--tier) 6%, transparent);
}

.staking-limits b {
  font-size: 11px;
}

.staking-cta {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  width: 124px;
  min-height: 34px;
  font-size: 12px;
}

.staking-lock {
  grid-column: 1;
  grid-row: 3;
  min-height: 34px;
  font-size: 11px;
}

.staking-checkin {
  display: grid;
  gap: 9px;
  margin-top: 4px;
  padding-bottom: 4px;
}

.staking-section-title {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staking-section-title h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
}

.staking-section-title span {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(79,209,139,.18);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--green);
  background: rgba(79,209,139,.07);
  font-size: 11px;
  white-space: nowrap;
}

.checkin-card {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 14px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  align-items: center;
  gap: 12px;
  background:
    radial-gradient(circle at 88% 50%, rgba(79,209,139,.08), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.01) 48%, rgba(6,10,14,.72));
}

.checkin-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,209,139,.2), rgba(232,189,99,.12), transparent);
  pointer-events: none;
}

.checkin-card b,
.checkin-card small,
.checkin-card em {
  position: relative;
  z-index: 1;
  display: block;
}

.checkin-card b {
  color: #dce8f2;
  font-size: 13px;
  line-height: 1.2;
}

.checkin-card small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.checkin-card em {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #ccebd7;
  font-size: 11px;
  font-style: normal;
}

.checkin-card em svg {
  width: 14px;
  height: 14px;
  padding: 2px;
  border-radius: 4px;
  color: #072012;
  background: var(--green);
}

.checkin-card em span {
  color: var(--muted-2);
}

.checkin-card button {
  position: relative;
  z-index: 1;
  width: 88px;
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  color: #1d1203;
  background: linear-gradient(135deg, #fff0b8, var(--gold) 58%, #a96a14);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(232,189,99,.18);
}

.checkin-card.is-pending {
  border-color: rgba(232,189,99,.18);
  background:
    radial-gradient(circle at 88% 50%, rgba(232,189,99,.1), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 48%, rgba(7,10,13,.74));
}

.checkin-card.is-pending em svg {
  color: #1d1203;
  background: var(--gold);
}

.checkin-service {
  min-height: 58px;
  padding: 9px 10px 9px 14px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
  background:
    radial-gradient(circle at 88% 50%, rgba(232,189,99,.14), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 48%, rgba(6,10,14,.75));
}

.checkin-service span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c7d0dd;
  font-size: 11px;
}

.checkin-service span svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex: 0 0 auto;
}

.checkin-service button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  gap: 1px;
  color: #1d1203;
  background: radial-gradient(circle at 34% 22%, #fff2b9, var(--gold) 52%, #8e5d15);
  box-shadow: 0 12px 28px rgba(232,189,99,.24);
  font-size: 9px;
  font-weight: 800;
}

.checkin-service button svg {
  width: 15px;
  height: 15px;
}

.checkin-service button b {
  line-height: 1.05;
}

.profile-hero {
  display: grid;
  grid-template-columns: 58px 1fr 42px;
  align-items: center;
  gap: 12px;
}
.profile-logo {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-family:"Unbounded", sans-serif;
  font-weight: 800;
}
.profile-hero p, .vip-progress p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.vip-progress { margin: 12px 0; }
.progress {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.progress b { display:block; height:100%; border-radius:inherit; background: linear-gradient(90deg, var(--green), #d9f7e5); }
.menu-stack { display:grid; gap: 10px; }
.menu-stack button {
  min-height: 58px;
  padding: 0 14px;
  border-radius: 18px;
  display:grid;
  grid-template-columns: 28px 1fr auto;
  align-items:center;
  gap: 10px;
  text-align:left;
}
.menu-stack svg { color: var(--cyan); width: 19px; }
.menu-stack b { color: var(--muted); font-size: 12px; }

.welfare-screen {
  padding-top: 0;
  padding-bottom: 92px;
}

.welfare-back {
  min-height: 34px;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  background: transparent;
  font-size: 15px;
}

.welfare-back svg {
  width: 19px;
  height: 19px;
}

.welfare-title {
  margin-bottom: 14px;
}

.welfare-title h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1;
}

.welfare-title p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.welfare-title::after {
  content: "";
  display: block;
  width: 150px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(232,189,99,.18), rgba(232,189,99,.8), transparent);
  box-shadow: 0 0 18px rgba(232,189,99,.45);
}

.welfare-hero {
  position: relative;
  overflow: hidden;
  min-height: 158px;
  padding: 20px 18px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 4px;
  border-color: rgba(232,189,99,.28);
  background:
    radial-gradient(circle at 82% 50%, rgba(232,189,99,.17), transparent 36%),
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.06), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.014) 44%, rgba(7,10,13,.76));
}

.welfare-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,189,99,.65), transparent);
}

.welfare-hero h3 {
  margin: 3px 0 9px;
  font-size: 22px;
  line-height: 1.1;
}

.welfare-hero h3 b {
  color: var(--gold);
  font-family: "Unbounded", sans-serif;
}

.welfare-hero span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.welfare-hero button {
  min-height: 38px;
  margin-top: 14px;
  padding: 0 13px;
  border: 1px solid rgba(232,189,99,.32);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f5d992;
  background: rgba(232,189,99,.08);
  font-weight: 800;
}

.welfare-hero button svg {
  width: 16px;
}

.welfare-hero img {
  width: 148px;
  max-width: none;
  transform: translateX(8px);
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.4));
}

.welfare-section-title {
  min-height: 32px;
  margin: 14px 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.welfare-section-title svg {
  width: 19px;
  height: 19px;
  color: var(--gold);
}

.welfare-section-title h3 {
  margin: 0;
  font-size: 17px;
}

.activity-stack {
  display: grid;
  gap: 9px;
}

.activity-card {
  position: relative;
  min-height: 96px;
  padding: 12px 13px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: center;
  background:
    radial-gradient(circle at 12% 50%, rgba(232,189,99,.1), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 48%, rgba(6,10,14,.72));
}

.activity-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232,189,99,.28);
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 35%, rgba(232,189,99,.22), transparent 58%),
    rgba(232,189,99,.06);
}

.activity-icon svg {
  width: 21px;
  height: 21px;
}

.activity-copy {
  min-width: 0;
}

.activity-copy b,
.activity-copy small,
.activity-copy em {
  display: block;
}

.activity-copy b {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-copy small {
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-copy em {
  overflow: hidden;
  margin-top: 5px;
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-action {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.activity-action strong {
  min-height: 21px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(79,209,139,.08);
  font-size: 10px;
}

.activity-action button {
  width: 72px;
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  color: #1d1203;
  background: linear-gradient(135deg, #fff0b8, var(--gold) 58%, #a96a14);
  font-size: 11px;
  font-weight: 800;
}

.welfare-footnote {
  margin: 16px 0 8px;
  color: var(--muted-2);
  text-align: center;
  font-size: 11px;
}

.subpage-title {
  margin-bottom: 18px;
}

.subpage-title h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1;
}

.subpage-title::after {
  content: "";
  display: block;
  width: 154px;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(232,189,99,.22), rgba(232,189,99,.88), transparent);
  box-shadow: 0 0 18px rgba(232,189,99,.42);
}

.level-stack {
  display: grid;
  gap: 10px;
  padding-bottom: 0;
}

.level-card {
  --level: var(--gold);
  --level-deep: #172334;
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 14px 12px 14px 14px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 86px;
  gap: 11px;
  align-items: center;
  color: var(--level);
  border-color: color-mix(in srgb, var(--level) 34%, rgba(148,165,185,.16));
  background:
    radial-gradient(circle at 86% 42%, color-mix(in srgb, var(--level) 14%, transparent), transparent 33%),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.065), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--level-deep) 26%, rgba(7,11,15,.91)), rgba(9,13,19,.84) 48%, rgba(4,6,10,.9));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -22px 54px rgba(0,0,0,.22),
    0 14px 34px rgba(0,0,0,.22);
}

.level-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 24%, rgba(255,255,255,.58) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 58%, color-mix(in srgb, var(--level) 54%, white) 0 1px, transparent 2px),
    radial-gradient(circle at 93% 70%, rgba(255,255,255,.36) 0 1px, transparent 2px),
    linear-gradient(102deg, transparent 0 58%, color-mix(in srgb, var(--level) 7%, transparent) 59%, transparent 78%);
  opacity: .48;
  pointer-events: none;
}

.level-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--level) 70%, transparent), color-mix(in srgb, var(--level) 12%, transparent), transparent);
  pointer-events: none;
}

.level-blue { --level: #9ecbff; --level-deep: #102238; }
.level-gold { --level: #e8bd63; --level-deep: #2f2414; }
.level-purple { --level: #b987ff; --level-deep: #251b39; }
.level-orange { --level: #f0a447; --level-deep: #33200f; }
.level-violet { --level: #c08dff; --level-deep: #22172f; }

.member-medal,
.level-copy,
.level-tier-art {
  position: relative;
  z-index: 1;
}

.member-medal {
  width: 62px;
  height: 68px;
  display: grid;
  place-items: center;
  transform: translateX(-2px);
  filter: drop-shadow(0 11px 15px rgba(0,0,0,.3)) drop-shadow(0 0 14px color-mix(in srgb, var(--level) 18%, transparent));
}

.member-medal img {
  width: 70px;
  height: 76px;
  display: block;
}

.level-copy {
  min-width: 0;
}

.level-copy b,
.level-copy span,
.level-copy em {
  display: block;
}

.level-copy b {
  overflow: hidden;
  color: color-mix(in srgb, var(--level) 72%, var(--ink));
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-copy span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.level-copy em {
  width: fit-content;
  margin-top: 8px;
  padding: 5px 7px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--level) 58%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--level) 26%, transparent);
  background: color-mix(in srgb, var(--level) 10%, transparent);
  font-size: 11px;
  font-style: normal;
}

.level-tier-art {
  width: 86px;
  height: 78px;
  display: grid;
  place-items: center;
  justify-self: end;
  transform: translateX(0);
  filter: drop-shadow(0 14px 17px rgba(0,0,0,.36)) drop-shadow(0 0 12px color-mix(in srgb, var(--level) 18%, transparent));
}

.level-tier-art img {
  width: 94px;
  height: 82px;
  display: block;
  pointer-events: none;
}

.team-hero {
  position: relative;
  overflow: hidden;
  min-height: 316px;
  padding: 20px 18px 22px;
  border-radius: 24px;
  text-align: center;
  border-color: rgba(232,189,99,.26);
  background:
    radial-gradient(circle at 50% 24%, rgba(232,189,99,.16), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 48%, rgba(7,11,15,.78));
}

.team-orbit {
  width: 176px;
  height: 118px;
  margin: -2px auto 4px;
  display: grid;
  place-items: center;
  background: none;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.38));
}

.team-node-visual {
  width: 170px;
  max-width: none;
  height: auto;
  display: block;
  pointer-events: none;
}

.team-hero h3 {
  margin: 0;
  color: var(--gold);
  font-size: 24px;
}

.team-metrics {
  display: grid;
  gap: 9px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

.team-metrics span b {
  margin-left: 8px;
  color: var(--gold);
  font-family: "Unbounded", sans-serif;
}

.invite-code-row {
  width: min(100%, 250px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 10px;
  align-items: center;
}

.invite-code-row span {
  color: var(--muted);
  text-align: left;
}

.invite-code-row b {
  color: var(--ink);
  font-weight: 700;
}

.invite-code-row button {
  min-height: 42px;
  border: 1px solid rgba(232,189,99,.26);
  border-radius: 12px;
  color: #f5d992;
  background: rgba(232,189,99,.07);
  font-weight: 800;
}

.team-progress {
  margin-top: 12px;
  padding: 16px;
  border-radius: 22px;
}

.team-progress h3 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}

.team-progress h3 b {
  color: var(--gold);
}

.team-target {
  margin-top: 12px;
}

.team-target span,
.team-target em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.team-target em {
  margin-top: 7px;
}

.team-bar {
  height: 9px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(232,189,99,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
}

.team-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8e5d15, var(--gold));
}

.bottom-nav {
  position:absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  height: 58px;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: 22px;
  z-index: 3;
  background: rgba(6, 10, 14, .86);
  border: 1px solid rgba(148,165,185,.14);
  backdrop-filter: blur(14px) saturate(130%);
}
.bottom-nav button {
  border: 0;
  border-radius: 15px;
  display:grid;
  place-items:center;
  gap: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}
.bottom-nav svg { width: 20px; height:20px; }
.bottom-nav .is-active {
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 14%, rgba(232,189,99,.22), transparent 56%),
    radial-gradient(circle at 50% 92%, rgba(109,183,215,.12), transparent 58%);
}

.modal-backdrop {
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  padding:24px;
  background: rgba(0,0,0,.66);
  backdrop-filter: blur(16px);
  z-index: 10;
}
.modal-backdrop.is-open { display:grid; }
.benefit-modal {
  position:relative;
  width:min(360px, 100%);
  padding: 30px 22px 22px;
  border-radius: 30px;
  text-align:center;
}
.benefit-modal .close-modal.icon-btn { position:absolute; top: 12px; right: 12px; }
.modal-token {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 8px auto 18px;
  font-family:"Unbounded", sans-serif;
  font-size: 28px;
  font-weight: 800;
}
.benefit-modal p { margin: 10px auto 18px; color: var(--muted); line-height: 1.6; }
.benefit-modal dl { display:grid; gap: 8px; margin: 0 0 18px; }
.benefit-modal dl div { display:flex; justify-content:space-between; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); }
.benefit-modal dt, .benefit-modal dd { margin:0; color: var(--muted); font-size: 13px; }
.benefit-modal dd { color: var(--gold); font-weight: 800; }

@media (max-width: 860px) {
  .studio { padding: 18px; min-height: 100vh; }
  .phone-frame { margin-inline:auto; }
}

@media (max-width: 480px) {
  .studio { padding: 0; }
  .phone-frame { width:100%; min-height:100vh; padding:0; border-radius:0; }
  .app-shell { width:100%; height:100vh; border-radius:0; border:0; }
  .trade-layout { grid-template-columns: 1fr; }
}

/* 表格文字强制横排 */
table, th, td {
  white-space: nowrap;
}

/* 强制表格文字横排 */
#screen-bills table,
#screen-bills th,
#screen-bills td {
  writing-mode: horizontal-tb !important;
  white-space: nowrap;
  text-align: left;
}
