:root {
  --bg: #0d1117;
  --surface: #111821;
  --surface-2: #171f2a;
  --surface-3: #202a36;
  --text: #f5f7fb;
  --muted: #96a2b2;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #f3ba2f;
  --gold-2: #d99a1b;
  --green: #28c986;
  --red: #ff6b67;
  --blue: #5d8cff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(243, 186, 47, 0.08), transparent 360px),
    radial-gradient(circle at top left, rgba(243, 186, 47, 0.16), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(320px, 460px);
  justify-content: center;
  align-items: start;
  gap: 28px;
  padding: 32px;
}

.phone-frame {
  width: 100%;
  max-width: 430px;
  min-height: calc(100vh - 64px);
  border: 1px solid rgba(243, 186, 47, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(243, 186, 47, 0.04), transparent 240px),
    linear-gradient(180deg, #111820 0%, #0b1016 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px;
}

.app-header,
.brand-lockup,
.wallet-topline,
.wallet-actions,
.section-title,
.section-title.compact,
.risk-strip,
.pitch-grid {
  display: flex;
  align-items: center;
}

.app-header {
  justify-content: space-between;
  margin-bottom: 16px;
}

.brand-lockup {
  gap: 10px;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  font-size: 15px;
}

.brand-lockup span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.token-mark,
.hero-coin {
  display: grid;
  place-items: center;
  background: rgba(243, 186, 47, 0.12);
  border: 1px solid rgba(243, 186, 47, 0.28);
}

.token-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.token-mark img {
  width: 25px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
}

.hero-panel,
.wallet-card,
.performance-card,
.wallet-test-card,
.testnet-card,
.control-card,
.chart-card,
.ai-card,
.timeline-card,
.investor-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: var(--surface);
  margin-bottom: 12px;
  padding: 16px;
}

.hero-panel {
  min-height: 188px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 12px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(243, 186, 47, 0.28), rgba(243, 186, 47, 0.04) 52%, rgba(40, 201, 134, 0.08)),
    #111821;
}

.eyebrow {
  display: inline-flex;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 9px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 27px;
  line-height: 1.12;
  max-width: 250px;
}

h2 {
  font-size: 17px;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy p {
  margin-top: 10px;
  font-size: 13px;
  max-width: 244px;
}

.hero-coin {
  width: 104px;
  height: 104px;
  border-radius: 28px;
}

.hero-coin img {
  width: 72px;
}

.wallet-card {
  background:
    linear-gradient(135deg, rgba(243, 186, 47, 0.16), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, #19222e, #111820);
}

.profit-grid,
.strategy-status-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profit-grid article,
.strategy-status-panel > div {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 12px;
}

.profit-grid span,
.profit-grid small,
.strategy-status-panel span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.profit-grid strong,
.strategy-status-panel strong {
  display: block;
  font-size: 21px;
  margin-top: 8px;
}

.profit-grid small {
  margin-top: 5px;
}

.strategy-status-panel {
  margin-top: 10px;
}

.completed-trades {
  display: grid;
  gap: 10px;
}

.completed-trade-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 12px;
}

.completed-trade-item strong,
.completed-trade-item span,
.completed-trade-item em {
  display: block;
}

.completed-trade-item span,
.completed-trade-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 5px;
}

.wallet-test-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  margin-bottom: 12px;
  padding: 16px;
}

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

.wallet-test-grid div,
.testnet-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 12px;
  min-width: 0;
}

.wallet-test-grid span,
.testnet-grid span,
.safety-note {
  color: var(--muted);
  font-size: 12px;
}

.wallet-test-grid strong,
.testnet-grid strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.safety-note {
  margin-top: 12px;
}

.wallet-topline {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.wallet-topline span:last-child,
.section-title > span,
.section-title.compact span {
  color: var(--gold);
  border: 1px solid rgba(243, 186, 47, 0.25);
  background: rgba(243, 186, 47, 0.08);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.wallet-value {
  margin-top: 12px;
  font-size: 38px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.wallet-change {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

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

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

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

.compact-actions {
  margin-top: 12px;
}

.compact-actions .secondary-button {
  flex: 1;
  min-width: 0;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 14px;
  font-weight: 800;
}

.primary-button {
  flex: 1;
  border: 0;
  background: linear-gradient(180deg, #f6c744, #f3ba2f);
  color: #151009;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric-grid article,
.risk-strip div,
.score-list > div,
.pitch-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)), var(--surface-2);
  padding: 13px;
}

.metric-grid span,
.metric-grid small,
.field span,
.risk-strip span,
.score-list span,
.pitch-grid span {
  color: var(--muted);
  font-size: 12px;
}

.metric-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 20px;
  color: #fff;
}

.metric-grid small {
  display: block;
  margin-top: 4px;
}

.section-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title.compact {
  justify-content: space-between;
}

.section-title p {
  margin-top: 4px;
  font-size: 12px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a1017;
  color: var(--text);
  padding: 0 12px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.segmented button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
}

.segmented button.selected {
  color: #151009;
  background: linear-gradient(180deg, #f6c744, #f3ba2f);
  border-color: transparent;
}

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

.chart-card canvas {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #0b1118;
}

.score-list {
  display: grid;
  gap: 10px;
}

.score-list > div {
  display: grid;
  grid-template-columns: 64px 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.score-list strong {
  text-align: right;
}

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

.score-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.risk-strip {
  gap: 10px;
  margin-bottom: 12px;
}

.risk-strip div {
  flex: 1;
  min-width: 0;
}

.risk-strip strong {
  display: block;
  margin-top: 6px;
}

.timeline {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
}

.launch-steps {
  display: grid;
  gap: 10px;
}

.plan-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.amount-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.amount-presets button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 900;
}

.amount-presets button:hover {
  border-color: rgba(240, 185, 11, 0.55);
}

.plan-summary,
.plan-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 12px;
}

.plan-summary strong,
.plan-summary span,
.plan-item b,
.plan-item span {
  display: block;
}

.plan-summary span,
.plan-item span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.plan-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.plan-item > strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.plan-item.enabled > strong {
  background: rgba(40, 201, 134, 0.18);
  color: var(--green);
}

.plan-item.blocked > strong {
  background: rgba(255, 107, 103, 0.14);
  color: var(--red);
}

.plan-action-button {
  min-height: 34px;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: #171009;
  font-weight: 900;
  padding: 0 12px;
}

.launch-steps div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 10px;
}

.launch-steps strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.launch-steps span {
  color: #dce3ee;
  font-size: 13px;
}

.launch-steps .done strong {
  background: var(--gold);
  color: #151009;
}

.log-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 12px;
}

.log-time {
  color: var(--gold);
  font-size: 12px;
}

.log-text {
  color: #dce3ee;
  font-size: 13px;
  line-height: 1.45;
}

.investor-card {
  margin-bottom: 0;
}

.investor-card h2 {
  line-height: 1.3;
  margin-bottom: 14px;
}

.pitch-grid {
  gap: 8px;
}

.pitch-grid div {
  flex: 1;
}

.pitch-grid strong,
.pitch-grid span {
  display: block;
}

.pitch-grid strong {
  margin-bottom: 5px;
}

.deck-panel {
  position: sticky;
  top: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(243, 186, 47, 0.08), transparent 280px),
    rgba(17, 24, 33, 0.86);
  padding: 24px;
  box-shadow: var(--shadow);
}

.deck-panel span {
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
}

.deck-panel h2 {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.15;
}

.deck-panel p {
  margin-top: 14px;
}

.deck-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #dce3ee;
  line-height: 1.8;
}

@media (max-width: 920px) {
  .phone-stage {
    grid-template-columns: minmax(0, 430px);
    padding: 0;
  }

  .phone-frame {
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .deck-panel {
    display: none;
  }
}

@media (max-width: 390px) {
  .phone-frame {
    padding: 14px;
  }

  h1 {
    font-size: 23px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-coin {
    display: none;
  }

  .select-grid,
  .risk-strip,
  .testnet-grid,
  .pitch-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
