:root {
  color-scheme: dark;
  --bg: #020806;
  --bg-2: #06100d;
  --panel: rgba(9, 22, 18, 0.78);
  --panel-2: rgba(4, 13, 12, 0.92);
  --line: rgba(126, 255, 143, 0.23);
  --line-cyan: rgba(86, 226, 245, 0.25);
  --text: #f0fff2;
  --muted: rgba(229, 255, 234, 0.62);
  --soft: rgba(229, 255, 234, 0.4);
  --green: #7dff73;
  --green-2: #42dc66;
  --cyan: #56e2f5;
  --amber: #f4b04e;
  --red: #ff6c63;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  --radius: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(80, 255, 121, 0.2), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(47, 212, 96, 0.16), transparent 28%),
    linear-gradient(180deg, #010302 0%, #05100c 100%);
  color: var(--text);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

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

.app-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(rgba(125, 255, 115, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 255, 115, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(0, 255, 128, 0.1), transparent 40%),
    #020806;
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.app-shell::before,
.app-shell::after {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  pointer-events: none;
  content: "";
}

.app-shell::before {
  background:
    radial-gradient(circle at 64% 10%, rgba(91, 255, 119, 0.2), transparent 18%),
    linear-gradient(120deg, transparent 0%, rgba(75, 255, 125, 0.08) 45%, transparent 70%);
  opacity: 0.9;
}

.app-shell::after {
  background-image:
    linear-gradient(transparent 96%, rgba(255, 255, 255, 0.035) 100%),
    linear-gradient(90deg, transparent 96%, rgba(255, 255, 255, 0.025) 100%);
  background-size: 100% 7px, 7px 100%;
  mix-blend-mode: screen;
  opacity: 0.24;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 20px 16px calc(94px + var(--safe-bottom));
}

.page.auth-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

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

.brand-mark,
.avatar,
.icon-tile {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--green);
  border: 1px solid rgba(125, 255, 115, 0.34);
  background:
    radial-gradient(circle at 30% 20%, rgba(125, 255, 115, 0.22), transparent 38%),
    rgba(8, 25, 18, 0.9);
  box-shadow: 0 0 24px rgba(96, 255, 117, 0.22), inset 0 0 18px rgba(125, 255, 115, 0.08);
}

.brand-mark {
  width: 38px;
  height: 38px;
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
}

.brand-name {
  min-width: 0;
}

.brand-name h1,
.page-title h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand-name p,
.page-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.status-pill,
.chip,
.small-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(125, 255, 115, 0.28);
  border-radius: 999px;
  background: rgba(11, 40, 22, 0.72);
  color: var(--green);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: inset 0 0 18px rgba(125, 255, 115, 0.08);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.asset-card,
.card,
.list-card,
.auth-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(125, 255, 115, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 0 28px rgba(125, 255, 115, 0.05);
  backdrop-filter: blur(18px);
}

.asset-card {
  position: relative;
  min-height: 222px;
  padding: 20px;
  overflow: hidden;
}

.asset-card::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 46%, rgba(86, 226, 245, 0.2), transparent 27%),
    radial-gradient(circle at 66% 56%, rgba(125, 255, 115, 0.16), transparent 35%);
  content: "";
}

.asset-main,
.asset-stats {
  position: relative;
  z-index: 1;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.ghost-button,
.icon-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid rgba(125, 255, 115, 0.22);
  border-radius: var(--radius);
  background: rgba(8, 23, 17, 0.74);
  color: var(--green);
}

.icon-button {
  width: 36px;
  padding: 0;
}

.text-button {
  padding: 0 12px;
}

.ghost-button {
  padding: 0 12px;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  border-radius: var(--radius);
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, #7dff73, #2edb68);
  color: #041008;
  box-shadow: 0 12px 32px rgba(80, 255, 112, 0.25);
}

.secondary-button {
  border: 1px solid rgba(86, 226, 245, 0.32);
  background: rgba(7, 25, 29, 0.82);
  color: var(--cyan);
}

.danger-button {
  border: 1px solid rgba(255, 108, 99, 0.36);
  background: rgba(45, 14, 14, 0.82);
  color: var(--red);
}

.primary-button.compact,
.secondary-button.compact,
.danger-button.compact {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.asset-value {
  margin: 12px 0 18px;
  color: var(--green);
  font-family: "DIN Alternate", "PingFang SC", sans-serif;
  font-size: clamp(40px, 12vw, 58px);
  font-weight: 800;
  line-height: 0.96;
  text-shadow: 0 0 28px rgba(125, 255, 115, 0.42);
}

.asset-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 280px;
}

.asset-stat {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.asset-stat:last-child {
  border-right: 0;
}

.asset-stats-wide {
  max-width: 330px;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
}

.metric-value {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-family: "DIN Alternate", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.orbit-visual {
  position: absolute;
  right: -8px;
  bottom: 10px;
  width: 172px;
  height: 146px;
  opacity: 0.92;
}

.orbit-ring,
.orbit-ring::before,
.orbit-ring::after {
  position: absolute;
  left: 22px;
  bottom: 12px;
  width: 116px;
  height: 46px;
  border: 1px solid rgba(86, 226, 245, 0.48);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(86, 226, 245, 0.24);
  content: "";
}

.orbit-ring::before {
  left: 14px;
  bottom: 12px;
  width: 88px;
  height: 34px;
}

.orbit-ring::after {
  left: -18px;
  bottom: 24px;
  width: 150px;
  height: 60px;
  opacity: 0.45;
}

.bar-field {
  position: absolute;
  right: 28px;
  bottom: 34px;
  display: flex;
  align-items: end;
  gap: 7px;
}

.bar-field span {
  width: 10px;
  border: 1px solid rgba(86, 226, 245, 0.6);
  background: linear-gradient(180deg, rgba(86, 226, 245, 0.78), rgba(125, 255, 115, 0.18));
  box-shadow: 0 0 18px rgba(86, 226, 245, 0.34);
}

.arrow-line {
  position: absolute;
  right: 10px;
  bottom: 78px;
  width: 116px;
  height: 64px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.section-head .more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.horizontal-scroll {
  display: grid;
  grid-auto-columns: minmax(238px, 78%);
  grid-auto-flow: column;
  gap: 12px;
  margin: 0 -16px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.strategy-card,
.news-card,
.rank-card,
.stat-card,
.profile-action,
.invite-row,
.record-row,
.message-row,
.news-ticker-card,
.history-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(125, 255, 115, 0.085), transparent 30%),
    rgba(8, 18, 16, 0.78);
}

.strategy-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 184px;
  padding: 16px;
}

.strategy-card.selected {
  border-color: rgba(125, 255, 115, 0.34);
  box-shadow: inset 0 0 24px rgba(125, 255, 115, 0.08);
}

.strategy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

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

.icon-tile {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
}

.strategy-name h3,
.news-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.strategy-name p,
.news-card p,
.muted {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.strategy-metrics,
.summary-grid,
.trade-grid,
.invite-stats,
.points-grid {
  display: grid;
  gap: 10px;
}

.strategy-metrics {
  grid-template-columns: repeat(3, 1fr);
}

.summary-grid,
.trade-grid,
.points-grid {
  grid-template-columns: repeat(2, 1fr);
}

.invite-stats {
  grid-template-columns: repeat(4, 1fr);
}

.mini-metric,
.stat-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.mini-metric strong,
.stat-card strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-family: "DIN Alternate", "PingFang SC", sans-serif;
  font-size: 20px;
  line-height: 1;
}

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

.cyan {
  color: var(--cyan) !important;
}

.amber {
  color: var(--amber) !important;
}

.red {
  color: var(--red) !important;
}

.sparkline {
  width: 100%;
  height: 34px;
  overflow: visible;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card-actions.tri {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-actions.quad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-actions.tri .primary-button,
.card-actions.tri .secondary-button,
.card-actions.tri .danger-button,
.card-actions.quad .primary-button,
.card-actions.quad .secondary-button,
.card-actions.quad .danger-button {
  min-width: 0;
  gap: 5px;
  padding: 0 6px;
  font-size: 12px;
}

.ranking-list,
.news-list,
.record-list,
.action-list {
  display: grid;
  gap: 10px;
}

.rank-row,
.invite-row,
.record-row,
.message-row,
.profile-action {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 12px;
}

.message-row {
  text-align: left;
}

.message-row.unread {
  border-color: rgba(125, 255, 115, 0.28);
  background:
    linear-gradient(135deg, rgba(125, 255, 115, 0.12), transparent 35%),
    rgba(8, 18, 16, 0.84);
}

.rank-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 800;
}

.rank-index.top {
  color: #1b1205;
  border-color: rgba(255, 210, 92, 0.58);
  background: linear-gradient(135deg, #fff0a8, #d99832);
}

.rank-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.mini-avatar,
.avatar {
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 255, 255, 0.35), transparent 24%),
    linear-gradient(135deg, #153c22, #07110e 70%);
}

.mini-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(125, 255, 115, 0.32);
  color: var(--green);
  font-weight: 800;
}

.rank-user h3,
.profile-action h3,
.invite-row h3,
.record-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.rank-user p,
.profile-action p,
.invite-row p,
.record-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.rank-value,
.record-value {
  flex: 0 0 auto;
  text-align: right;
  font-family: "DIN Alternate", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.segment {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(2, 8, 6, 0.76);
}

.segment button {
  min-height: 34px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.segment button.active {
  background: rgba(125, 255, 115, 0.18);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(125, 255, 115, 0.22);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
  overflow: visible;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-row .chip {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.filter-row .chip.active {
  color: var(--green);
  background: rgba(125, 255, 115, 0.14);
}

.news-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.news-ticker-card {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  overflow: hidden;
}

.news-ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.news-ticker-window {
  height: 54px;
  overflow: hidden;
}

.news-ticker-track {
  display: grid;
  gap: 8px;
  animation: ticker-slide 14s linear infinite;
}

.news-ticker-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.news-ticker-item strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-ticker-item em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

@keyframes ticker-slide {
  0%,
  18% {
    transform: translateY(0);
  }
  25%,
  43% {
    transform: translateY(-62px);
  }
  50%,
  68% {
    transform: translateY(-124px);
  }
  75%,
  93% {
    transform: translateY(-186px);
  }
  100% {
    transform: translateY(-248px);
  }
}

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

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(86, 226, 245, 0.22);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(86, 226, 245, 0.07);
  white-space: nowrap;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar {
  width: 64px;
  height: 64px;
  font-size: 22px;
  font-weight: 900;
}

.profile-hero h1 {
  margin: 0;
  font-size: 24px;
}

.profile-hero p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.setup-card,
.notice-card,
.position-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(125, 255, 115, 0.1), transparent 36%),
    rgba(8, 18, 16, 0.82);
  box-shadow: var(--shadow), inset 0 0 24px rgba(125, 255, 115, 0.045);
  backdrop-filter: blur(18px);
}

.setup-card {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
}

.setup-head,
.notice-card,
.section-inline,
.position-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.setup-head {
  align-items: flex-start;
  flex-wrap: wrap;
}

.setup-head > div {
  min-width: 0;
  flex: 1 1 100%;
}

.setup-head > .primary-button.compact {
  width: 100%;
}

.setup-head h3,
.notice-card h3,
.section-inline h3 {
  margin: 7px 0 0;
  font-size: 17px;
  line-height: 1.25;
}

.setup-head p,
.notice-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.notice-card {
  margin-bottom: 14px;
  padding: 14px;
  flex-wrap: wrap;
}

.inline-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(125, 255, 115, 0.18);
  border-radius: var(--radius);
  background: rgba(125, 255, 115, 0.06);
}

.inline-notice h3 {
  margin: 7px 0 0;
  font-size: 16px;
}

.inline-notice p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.notice-card > .primary-button.compact,
.notice-card > .secondary-button.compact,
.notice-card > .danger-button.compact,
.notice-card > .text-button {
  width: 100%;
}

.notice-card.warning {
  border-color: rgba(244, 176, 78, 0.28);
  background:
    linear-gradient(135deg, rgba(244, 176, 78, 0.12), transparent 36%),
    rgba(23, 17, 8, 0.86);
}

.notice-card.ready {
  border-color: rgba(86, 226, 245, 0.28);
}

.notice-main {
  min-width: 0;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(125, 255, 115, 0.42);
}

.step-list {
  display: grid;
  gap: 9px;
}

.path-grid,
.check-list,
.running-list {
  display: grid;
  gap: 10px;
}

.running-strategy-card {
  display: grid;
  gap: 12px;
}

.guide-choice-head {
  margin-bottom: 14px;
}

.guide-choice-head h3 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.25;
}

.guide-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.guide-progress div {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 0;
  padding: 9px 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.guide-progress div.active {
  border-color: rgba(125, 255, 115, 0.34);
  color: var(--green);
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 255, 115, 0.18), transparent 55%),
    rgba(125, 255, 115, 0.06);
}

.guide-progress div.done {
  color: var(--cyan);
  border-color: rgba(86, 226, 245, 0.24);
}

.guide-progress strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 12px;
}

.guide-progress span {
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-card,
.check-item {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.path-card {
  display: grid;
  gap: 9px;
  width: 100%;
  padding: 14px;
  text-align: left;
}

.path-card.active {
  border-color: rgba(125, 255, 115, 0.32);
  background:
    linear-gradient(135deg, rgba(125, 255, 115, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.path-card h3 {
  margin: 0;
  font-size: 16px;
}

.path-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
}

.check-item > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(125, 255, 115, 0.28);
  border-radius: 50%;
  color: var(--green);
}

.check-item h4 {
  margin: 0;
  font-size: 14px;
}

.check-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.check-item.done {
  border-color: rgba(125, 255, 115, 0.25);
  background: rgba(125, 255, 115, 0.07);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.step-item.done {
  border-color: rgba(125, 255, 115, 0.24);
  background: rgba(125, 255, 115, 0.07);
}

.step-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(125, 255, 115, 0.28);
  border-radius: 50%;
  color: var(--green);
}

.step-item h4 {
  margin: 0;
  font-size: 14px;
}

.step-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.position-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
}

.position-title h3 {
  margin: 0;
  font-size: 16px;
}

.position-title > div {
  min-width: 0;
}

.position-title > strong {
  max-width: 108px;
  flex: 0 0 auto;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.position-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.compact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.mini-ranking {
  margin-top: 10px;
}

.section-inline {
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.timeline div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.timeline strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgba(86, 226, 245, 0.28);
  border-radius: 50%;
  color: var(--cyan);
}

.timeline span {
  min-width: 0;
}

.timeline b {
  color: var(--text);
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.check-line input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--green);
}

.small-pill.amber,
.chip.amber {
  border-color: rgba(244, 176, 78, 0.32);
  background: rgba(61, 38, 8, 0.72);
  color: var(--amber);
}

.small-pill.red,
.chip.red {
  border-color: rgba(255, 108, 99, 0.32);
  background: rgba(61, 15, 12, 0.72);
  color: var(--red);
}

.small-pill.cyan,
.chip.cyan {
  border-color: rgba(86, 226, 245, 0.32);
  background: rgba(8, 39, 45, 0.72);
  color: var(--cyan);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-action {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 94px;
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: center;
}

.quick-action svg {
  color: var(--green);
}

.code-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(125, 255, 115, 0.26);
  border-radius: var(--radius);
  background: rgba(125, 255, 115, 0.07);
}

.code-box strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-family: "DIN Alternate", "PingFang SC", sans-serif;
  font-size: 24px;
}

.form-card,
.auth-card,
.card {
  padding: 16px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  outline: none;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 0 12px;
}

.field textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(125, 255, 115, 0.45);
  box-shadow: 0 0 0 3px rgba(125, 255, 115, 0.08);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.auth-switch {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.auth-switch button {
  background: transparent;
  color: var(--green);
}

.detail-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-title h1 {
  margin: 0;
  font-size: 24px;
}

.detail-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.article {
  color: rgba(240, 255, 242, 0.82);
  font-size: 15px;
  line-height: 1.85;
}

.article h2 {
  margin: 20px 0 8px;
  font-size: 18px;
}

.bottom-nav {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 10, 8, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.4);
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 54px;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(240, 255, 242, 0.56);
  font-size: 12px;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.nav-item.active {
  color: var(--green);
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 255, 115, 0.22), transparent 58%),
    rgba(125, 255, 115, 0.06);
}

.toast {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: calc(96px + var(--safe-bottom));
  left: 20px;
  max-width: 390px;
  min-height: 42px;
  margin: 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(125, 255, 115, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 14, 10, 0.94);
  color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

.toast.show {
  display: flex;
  animation: toast-in 0.18s ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 374px) {
  .page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .asset-card {
    padding: 16px;
  }

  .asset-stats,
  .strategy-metrics,
  .summary-grid,
  .trade-grid,
  .points-grid {
    grid-template-columns: 1fr;
  }

  .invite-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .orbit-visual {
    opacity: 0.42;
  }
}

@media (min-width: 431px) {
  body {
    background:
      radial-gradient(circle at 50% 15%, rgba(81, 255, 128, 0.13), transparent 30%),
      #020806;
  }

  .app-shell {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 34px 90px rgba(0, 0, 0, 0.55);
  }
}
