:root {
  color-scheme: dark;
  --bg: #02040a;
  --panel: rgba(9, 18, 32, 0.68);
  --panel-strong: rgba(11, 24, 43, 0.86);
  --line: rgba(125, 211, 252, 0.16);
  --line-strong: rgba(125, 211, 252, 0.34);
  --text: #edf7ff;
  --muted: #88a5ba;
  --muted-2: #5f7b90;
  --cyan: #65e8ff;
  --cyan-soft: rgba(101, 232, 255, 0.16);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.18);
  --red: #ff6b8a;
  --green: #37f0b2;
  --gold: #f6d58b;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background:
    linear-gradient(rgba(101, 232, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 232, 255, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse at top, rgba(31, 78, 121, 0.35), transparent 56%),
    var(--bg);
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
  color: var(--text);
  font-family:
    Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.screen {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
  position: relative;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(101, 232, 255, 0.045), transparent),
    linear-gradient(180deg, rgba(167, 139, 250, 0.08), transparent 32%, rgba(101, 232, 255, 0.06));
  opacity: 0.75;
}

.stage {
  position: relative;
  width: min(100vw, calc(100vh * 9 / 16));
  height: min(100vh, calc(100vw * 16 / 9));
  aspect-ratio: 9 / 16;
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1.28fr) 10px minmax(0, 0.9fr) auto;
  gap: 10px;
  overflow: hidden;
}

.stage.layout-landscape {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  padding: 16px 18px;
  grid-template-rows: auto auto auto minmax(0, 1.05fr) 8px minmax(0, 0.58fr) auto;
  gap: 9px;
}

.stage.lower-collapsed {
  grid-template-rows: auto auto auto minmax(0, 1fr) 0 48px auto;
}

.stage.layout-landscape.lower-collapsed {
  grid-template-rows: auto auto auto minmax(0, 1fr) 0 44px auto;
}

.glass {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.title-block {
  min-width: 0;
}

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

.eyebrow {
  color: var(--cyan);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin-top: 5px;
  font-size: 31px;
  font-weight: 820;
  color: #f5fbff;
  text-shadow: 0 0 22px rgba(101, 232, 255, 0.2);
}

h2 {
  font-size: 16px;
  font-weight: 760;
}

.subtitle,
.disclaimer,
.time-text,
.panel-subtitle {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.disclaimer {
  margin-top: 3px;
  color: rgba(246, 213, 139, 0.76);
}

.hero-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-items: end;
  gap: 7px;
  max-width: 52%;
}

.stage.layout-landscape .hero {
  min-height: 72px;
}

.stage.layout-landscape .hero-side {
  align-items: flex-start;
  max-width: 48%;
}

.stage.layout-landscape h1 {
  font-size: 36px;
}

.member-strip {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 6px;
  min-width: 0;
}

.member-zone-btn,
.member-login-btn,
.plan-btn,
.pay-action,
#sendCodeBtn {
  border: 1px solid rgba(101, 232, 255, 0.28);
  border-radius: 8px;
  background: rgba(5, 12, 22, 0.68);
  color: var(--text);
  font-size: 11px;
  font-weight: 820;
}

.member-zone-btn {
  height: 28px;
  padding: 0 10px;
  color: #061019;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(101, 232, 255, 0.22);
}

.member-login-btn {
  height: 28px;
  padding: 0 9px;
}

.member-badge {
  max-width: 176px;
  overflow: hidden;
  color: rgba(246, 213, 139, 0.92);
  font-size: 10px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-stack {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.brand-logo {
  min-width: 142px;
  height: 31px;
  padding: 4px 8px 4px 5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  border: 1px solid rgba(101, 232, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 12, 22, 0.58);
  color: #dff8ff;
  font-size: 11px;
  font-weight: 760;
  box-shadow: 0 0 22px rgba(101, 232, 255, 0.08);
  white-space: nowrap;
}

.brand-mark {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #061019;
  font-size: 9px;
  font-weight: 900;
}

.site-footer {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(136, 165, 186, 0.86);
  font-size: 10px;
  line-height: 1.2;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #dff8ff;
  font-weight: 800;
}

.site-footer .brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 8px;
}

.site-footer a {
  color: rgba(136, 165, 186, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cyan);
}

.switch-stack {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.lang-toggle,
.layout-toggle {
  width: 86px;
  height: 28px;
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 12, 22, 0.58);
}

.lang-btn,
.layout-btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.layout-btn {
  font-size: 10px;
}

.lang-btn.active,
.layout-btn.active {
  color: #061019;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

.status-stack {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.status-chip {
  min-height: 25px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.status-chip.live {
  color: var(--green);
  background: rgba(55, 240, 178, 0.12);
  box-shadow: 0 0 18px rgba(55, 240, 178, 0.16);
}

.status-chip.warm {
  color: var(--gold);
  background: rgba(246, 213, 139, 0.12);
}

.metrics {
  min-height: 66px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stage.layout-landscape .metrics {
  min-height: 58px;
  gap: 10px;
}

.stage.layout-landscape .metric {
  padding: 9px 11px;
}

.stage.layout-landscape .metric strong {
  font-size: 14px;
}

.metric {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(101, 232, 255, 0.08), rgba(167, 139, 250, 0.05));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.metric strong {
  display: block;
  min-width: 0;
  margin-top: 6px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.15;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.stage.layout-landscape .toolbar {
  min-height: 36px;
  flex-wrap: nowrap;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 116px;
  height: 34px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.segmented.single {
  grid-template-columns: 1fr;
  width: 70px;
}

.segment {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.segment.active {
  color: #061019;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(101, 232, 255, 0.24);
}

.control {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.control select,
.panel-head input[type="search"] {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 12, 22, 0.62);
  color: var(--text);
  outline: none;
}

.control select {
  max-width: 98px;
  padding: 0 22px 0 8px;
}

.chart-count-control select {
  max-width: 68px;
}

.history-date-control select {
  max-width: 105px;
}

.replay-speed-control select {
  max-width: 74px;
}

.filter-control {
  position: relative;
}

.filter-btn,
.filter-top button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 12, 22, 0.62);
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
}

.filter-btn {
  min-width: 78px;
  padding: 0 9px;
}

.filter-btn.active {
  color: #061019;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(101, 232, 255, 0.2);
}

.filter-panel {
  position: absolute;
  z-index: 18;
  top: 39px;
  left: 0;
  width: min(292px, calc(100vw - 34px));
  max-height: 360px;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(5, 12, 22, 0.96);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45), 0 0 28px rgba(101, 232, 255, 0.12);
}

.filter-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 7px;
}

.filter-top input {
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

.filter-top button {
  padding: 0;
  color: var(--cyan);
}

.filter-summary {
  padding: 8px 2px 6px;
  color: var(--muted);
  font-size: 11px;
}

.filter-list {
  max-height: 270px;
  overflow: auto;
  display: grid;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(101, 232, 255, 0.34) transparent;
}

.filter-item {
  min-height: 32px;
  padding: 6px 7px;
  border-radius: 7px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.filter-item input {
  width: 14px;
  height: 14px;
  accent-color: var(--cyan);
}

.filter-item small {
  color: var(--muted);
  font-size: 10px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  margin-left: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 12, 22, 0.62);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 0 14px rgba(101, 232, 255, 0.08);
}

.icon-btn.small {
  width: 31px;
  height: 31px;
  margin-left: 0;
}

.icon-btn:hover,
.control select:focus,
.panel-head input[type="search"]:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(101, 232, 255, 0.08);
}

.toolbar #refreshBtn {
  margin-left: auto;
}

.chart-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.chart-resizer {
  min-height: 10px;
  cursor: row-resize;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent, rgba(101, 232, 255, 0.35), transparent),
    rgba(101, 232, 255, 0.045);
  box-shadow: 0 0 18px rgba(101, 232, 255, 0.08);
  position: relative;
}

.stage.layout-landscape .chart-resizer {
  min-height: 8px;
}

.chart-resizer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 2px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(195, 223, 238, 0.58);
}

.stage.lower-collapsed .chart-resizer {
  display: none;
}

.panel-head {
  min-height: 52px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.panel-head.compact {
  min-height: 56px;
}

.stage.layout-landscape .panel-head {
  min-height: 44px;
  padding: 8px 10px;
}

.stage.layout-landscape .panel-head.compact {
  min-height: 48px;
}

.stage.layout-landscape h2 {
  font-size: 15px;
}

.clock {
  min-width: 60px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 14px;
  font-weight: 780;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.canvas-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#flowCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hover-tip {
  position: absolute;
  z-index: 6;
  max-width: 210px;
  padding: 8px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(4, 12, 23, 0.92);
  color: var(--text);
  box-shadow: 0 0 28px rgba(101, 232, 255, 0.14);
  font-size: 11px;
  pointer-events: none;
}

.chart-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(4, 12, 23, 0.88);
  color: var(--muted);
  font-size: 12px;
}

.lower-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.stage.layout-landscape .lower-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.24fr);
}

.list-panel,
.limit-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.panel-head input[type="search"] {
  width: 76px;
  padding: 0 8px;
  font-size: 12px;
}

.sector-list,
.stock-list {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(101, 232, 255, 0.34) transparent;
}

.sector-list {
  padding: 4px 0;
}

.sector-row {
  width: 100%;
  min-height: 46px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid rgba(125, 211, 252, 0.08);
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  text-align: left;
}

.stage.layout-landscape .sector-row {
  min-height: 36px;
  padding: 5px 8px;
}

.stage.layout-landscape .sector-main {
  gap: 2px;
}

.stage.layout-landscape .sector-name {
  font-size: 12px;
}

.sector-row:hover,
.sector-row.selected {
  background: linear-gradient(90deg, rgba(101, 232, 255, 0.11), rgba(167, 139, 250, 0.05));
}

.sector-row.selected {
  box-shadow: inset 2px 0 0 var(--cyan);
}

.sector-row.charted {
  background-image: linear-gradient(90deg, rgba(101, 232, 255, 0.07), transparent 42%);
}

.rank-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 10px currentColor;
}

.sector-row.positive .rank-dot {
  color: var(--red);
  background: var(--red);
}

.sector-row.negative .rank-dot {
  color: var(--green);
  background: var(--green);
}

.sector-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sector-name {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-meta {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-values {
  min-width: 56px;
  display: grid;
  gap: 3px;
  justify-items: end;
  font-variant-numeric: tabular-nums;
}

.money {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pct {
  font-size: 10px;
  white-space: nowrap;
}

.limit-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.limit-grid > div {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr);
}

.limit-grid > div + div {
  border-left: 1px solid var(--line);
}

.limit-title {
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 780;
}

.limit-title.up {
  color: var(--red);
  background: rgba(255, 107, 138, 0.08);
}

.limit-title.down {
  color: var(--green);
  background: rgba(55, 240, 178, 0.08);
}

.stock-list {
  padding: 6px;
}

.stock-row {
  min-height: 52px;
  padding: 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  display: grid;
  gap: 5px;
  margin-bottom: 6px;
}

.stage.layout-landscape .stock-row {
  min-height: 42px;
  padding: 6px;
  margin-bottom: 5px;
}

.stock-row.up {
  box-shadow: inset 0 0 0 1px rgba(255, 107, 138, 0.22), 0 0 18px rgba(255, 107, 138, 0.08);
}

.stock-row.down {
  box-shadow: inset 0 0 0 1px rgba(55, 240, 178, 0.22), 0 0 18px rgba(55, 240, 178, 0.08);
}

.stock-top,
.stock-bottom {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.stock-name {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-code,
.stock-bottom {
  color: var(--muted);
  font-size: 10px;
}

.empty-note {
  padding: 12px 8px;
  color: var(--muted);
  font-size: 12px;
}

.stage.lower-collapsed .lower-grid {
  overflow: hidden;
}

.stage.lower-collapsed .sector-list,
.stage.lower-collapsed .limit-grid {
  display: none;
}

.stage.lower-collapsed .list-panel,
.stage.lower-collapsed .limit-panel {
  grid-template-rows: 1fr;
}

.stage.lower-collapsed .panel-head {
  min-height: 46px;
  padding: 7px 9px;
  border-bottom: 0;
}

.stage.lower-collapsed .panel-subtitle {
  display: none;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1, 5, 12, 0.62);
  backdrop-filter: blur(14px);
}

.modal-panel {
  position: relative;
  width: min(980px, calc(100vw - 28px));
  max-height: min(86vh, 780px);
  overflow: auto;
  padding: 28px;
}

.login-panel,
.pay-panel {
  width: min(460px, calc(100vw - 28px));
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 22px;
}

.modal-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.28em;
}

.modal-panel h2 {
  margin-top: 10px;
  font-size: 28px;
}

.modal-subtitle {
  max-width: 760px;
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  position: relative;
  min-height: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(101, 232, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 18, 32, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.plan-card.monthly {
  border-color: rgba(125, 211, 252, 0.24);
}

.plan-card.yearly {
  border-color: rgba(246, 213, 139, 0.56);
}

.plan-card.yearly.hot {
  box-shadow: 0 18px 52px rgba(255, 198, 39, 0.12), 0 18px 48px rgba(0, 0, 0, 0.28);
}

.plan-tag,
.hot-pill {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(101, 232, 255, 0.13);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 920;
}

.hot-pill {
  position: absolute;
  top: 22px;
  right: 18px;
  background: rgba(255, 75, 72, 0.95);
  color: white;
}

.plan-card h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.plan-price {
  margin: 18px 0;
  color: var(--cyan);
  font-size: 38px;
  font-weight: 950;
}

.plan-card.monthly .plan-price {
  color: #ff573d;
}

.plan-card.yearly .plan-price {
  color: #ffc627;
}

.plan-price span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
}

.discount-line {
  margin-top: -12px;
  color: #ffc627;
  font-size: 13px;
  font-weight: 850;
}

.plan-card ul {
  min-height: 128px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  color: #c8d8e6;
  font-size: 13px;
  line-height: 2.05;
}

.plan-card .plan-btn {
  margin-top: auto;
}

.plan-card li::before {
  content: "✦";
  margin-right: 8px;
  color: var(--cyan);
}

.plan-card.yearly li::before {
  color: #ffc627;
}

.plan-btn,
.pay-action {
  width: 100%;
  height: 40px;
  color: #061019;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

.plan-btn.gold {
  background: linear-gradient(135deg, #ffe08a, #ffb21f);
}

.plan-btn.muted {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.login-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.login-field input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 12, 22, 0.68);
  color: var(--text);
  outline: none;
  padding: 0 11px;
}

.code-field div {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 8px;
}

.wechat-pay-box {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.qr-frame {
  width: 168px;
  height: 168px;
  padding: 12px;
  border-radius: 8px;
  background: #eef7fb;
}

.qr-mock {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background:
    linear-gradient(90deg, #07111f 12px, transparent 12px) 0 0 / 24px 24px,
    linear-gradient(#07111f 12px, transparent 12px) 0 0 / 24px 24px,
    radial-gradient(circle at 30px 30px, #07111f 0 22px, transparent 23px),
    radial-gradient(circle at 114px 30px, #07111f 0 22px, transparent 23px),
    radial-gradient(circle at 30px 114px, #07111f 0 22px, transparent 23px),
    white;
  mix-blend-mode: multiply;
}

.qr-mock.alipay-manual {
  display: grid;
  place-items: center;
  gap: 4px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(22, 119, 255, 0.2), transparent 38%),
    linear-gradient(135deg, #f8fdff, #e5f5ff);
  color: #0877ff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  mix-blend-mode: normal;
}

.qr-mock.alipay-manual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.qr-mock.alipay-manual strong {
  font-size: 24px;
  letter-spacing: 0;
}

.pay-amount {
  color: var(--cyan);
  font-size: 34px;
  font-weight: 950;
}

.pay-meta {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .plan-grid,
  .wechat-pay-box {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    padding: 20px;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  width: min(430px, calc(100vw - 24px));
  transform: translateX(-50%);
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 138, 0.26);
  border-radius: 8px;
  background: rgba(18, 7, 19, 0.92);
  color: #ffd5df;
  box-shadow: var(--shadow);
  font-size: 12px;
}

#sendCodeBtn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.limit-burst {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 40;
  width: min(480px, calc(100vw - 28px));
  min-height: 92px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.limit-burst[hidden] {
  display: none;
}

.burst-label {
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff3f5;
  background: rgba(255, 0, 48, 0.72);
  box-shadow: 0 0 34px rgba(255, 30, 72, 0.58);
  font-size: 13px;
  font-weight: 900;
  animation: burst-pop 2s ease both;
}

.limit-burst.down .burst-label {
  background: rgba(0, 174, 118, 0.74);
  box-shadow: 0 0 34px rgba(55, 240, 178, 0.48);
}

.burst-text {
  margin-top: 7px;
  color: #ff1f3f;
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 950;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 28px rgba(255, 26, 64, 0.86);
  animation: burst-pop 2s ease both;
}

.limit-burst.down .burst-text {
  color: #37f0b2;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.62), 0 0 28px rgba(55, 240, 178, 0.78);
}

.burst-fireworks {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.spark {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--spark-color, #ff4d63);
  box-shadow: 0 0 14px var(--spark-color, #ff4d63);
  transform: translate(-50%, -50%);
  animation: spark-fly 920ms cubic-bezier(0.16, 0.75, 0.28, 1) forwards;
}

@keyframes spark-fly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.15);
  }
}

@keyframes burst-pop {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.88);
  }
  12% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
  }
  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
}

@media (max-height: 820px) {
  .stage {
    gap: 7px;
    padding: 10px;
  }

  h1 {
    font-size: 27px;
  }

  .metrics {
    min-height: 58px;
  }

  .metric {
    padding: 8px;
  }
}
