:root {
  color-scheme: dark;
  --bg: #020606;
  --ink: #061512;
  --green: #13bfa8;
  --cyan: #25f2d0;
  --blue: #1e8cff;
  --metal: #dce8ea;
  --muted: #7894a8;
  --gold: #f5b64a;
  --red: #ff5d5d;
  --panel: rgba(5, 20, 18, 0.84);
  --line: rgba(37, 242, 208, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(37, 242, 208, 0.16), transparent 32rem),
    radial-gradient(circle at 12% 80%, rgba(30, 140, 255, 0.1), transparent 24rem),
    linear-gradient(150deg, #020606 0%, #061512 56%, #010303 100%);
  color: var(--metal);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(115deg, transparent 0 44%, rgba(37, 242, 208, 0.2) 45%, transparent 46% 100%),
    linear-gradient(rgba(220, 232, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 242, 208, 0.05) 1px, transparent 1px);
  background-size: 90px 90px, 42px 42px, 42px 42px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: #020606;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader[hidden] {
  display: none;
}

.app-shell[data-loaded="true"] .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-video-frame {
  position: relative;
  width: min(390px, 100vw);
  height: min(844px, 100svh);
  min-height: 100svh;
  overflow: hidden;
  background: #020606;
  box-shadow:
    0 0 0 1px rgba(37, 242, 208, 0.18),
    0 0 54px rgba(37, 242, 208, 0.2);
}

.loader-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.loader-video-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 6, 0.1) 0%, rgba(2, 6, 6, 0) 42%, rgba(2, 6, 6, 0.84) 100%),
    radial-gradient(circle at 50% 76%, rgba(37, 242, 208, 0.18), transparent 13rem);
}

.loader-copy {
  position: absolute;
  left: 50%;
  bottom: max(34px, env(safe-area-inset-bottom));
  z-index: 2;
  width: min(330px, calc(100vw - 48px));
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(2, 10, 9, 0.14), rgba(2, 10, 9, 0.74));
  border: 1px solid rgba(37, 242, 208, 0.14);
  border-radius: 16px;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.loader-copy strong {
  font-size: 18px;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(37, 242, 208, 0.45);
}

.loader-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.phone {
  width: min(390px, 100%);
  min-height: min(880px, calc(100svh - 24px));
  position: relative;
  overflow: hidden;
  padding: 18px 16px 96px;
  border: 1px solid rgba(37, 242, 208, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 14%, rgba(37, 242, 208, 0.14), transparent 14rem),
    radial-gradient(circle at 84% 62%, rgba(30, 140, 255, 0.11), transparent 16rem),
    linear-gradient(150deg, rgba(6, 21, 18, 0.98), rgba(2, 6, 6, 0.98) 58%, rgba(5, 18, 17, 0.98));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(220, 232, 234, 0.04);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 16px, rgba(220, 232, 234, 0.08) 17px, transparent 18px 36px),
    radial-gradient(circle at 50% 44%, rgba(37, 242, 208, 0.18), transparent 10rem);
}

.topbar,
.view,
.bottom-nav {
  position: relative;
  z-index: 1;
}

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

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

.brand-button img {
  width: 58px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgba(37, 242, 208, 0.42));
}

.brand-button span {
  display: grid;
  gap: 2px;
  text-align: left;
}

.brand-button strong {
  font-size: 22px;
  font-weight: 950;
}

.brand-button em {
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.lang-trigger,
.wallet-btn {
  height: 36px;
  border: 1px solid rgba(37, 242, 208, 0.38);
  background: rgba(5, 22, 20, 0.74);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  font-weight: 950;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  color: var(--cyan);
  font-size: 12px;
}

.wallet-btn {
  max-width: 116px;
  padding: 0 10px;
  color: #02110f;
  background: linear-gradient(135deg, #d8fff8, var(--cyan), var(--blue));
  font-size: 11px;
}

.view {
  display: none;
  margin-top: 18px;
}

.view.active {
  display: block;
}

.pool-hero {
  min-height: 376px;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  overflow: hidden;
}

.chain-lines {
  position: absolute;
  inset: 16px 0 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    radial-gradient(ellipse at center, transparent 0 38%, rgba(37, 242, 208, 0.26) 39%, transparent 41% 100%),
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(220, 232, 234, 0.2) 23px, transparent 24px 46px);
  mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
}

.pool-hero > :not(.chain-lines) {
  position: relative;
  z-index: 1;
}

.a-core {
  width: 214px;
  height: 214px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(220, 232, 234, 0.14), transparent 44%),
    radial-gradient(circle, rgba(37, 242, 208, 0.11), rgba(2, 6, 6, 0.9) 66%);
  border: 1px solid rgba(37, 242, 208, 0.42);
  box-shadow: 0 0 44px rgba(37, 242, 208, 0.16), inset 0 0 26px rgba(220, 232, 234, 0.06);
}

.a-core span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37, 242, 208, 0.26);
}

.a-core span:nth-child(1) {
  inset: 10px;
  border-top-color: var(--cyan);
  border-right-color: rgba(30, 140, 255, 0.76);
  animation: spin 10s linear infinite;
}

.a-core span:nth-child(2) {
  inset: 34px;
  border-style: dashed;
  border-bottom-color: var(--gold);
  animation: spinReverse 13s linear infinite;
}

.a-core img {
  width: 168px;
  max-height: 156px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(37, 242, 208, 0.45));
}

.pool-balance {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.pool-balance span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.pool-balance strong {
  color: #f4fbfc;
  font-size: clamp(34px, 9.2vw, 44px);
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 0 24px rgba(37, 242, 208, 0.18);
}

.pool-balance em {
  color: var(--cyan);
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
}

.pool-balance small {
  max-width: 100%;
  margin-top: 3px;
  color: #8fb3bd;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

.primary-action,
.action-bay button,
.modal-actions button {
  min-height: 50px;
  border: 1px solid rgba(220, 232, 234, 0.36);
  color: #02110f;
  background: linear-gradient(135deg, #e4fffb, var(--cyan) 42%, var(--blue));
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  font-weight: 950;
  box-shadow: 0 0 24px rgba(37, 242, 208, 0.22);
  position: relative;
  overflow: hidden;
}

.modal-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: grayscale(0.45);
  box-shadow: none;
}

.action-bay button:disabled,
.action-bay button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
  filter: grayscale(0.4);
  box-shadow: none;
}

.primary-action {
  width: 188px;
  font-size: 18px;
}

.primary-action::after,
.action-bay button::after,
.modal-actions button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-110%);
}

.primary-action:active::after,
.action-bay button:active::after,
.modal-actions button:active::after {
  animation: ripple 0.55s ease;
}

.stat-grid,
.income-grid,
.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-grid article,
.income-grid article,
.rights-grid article,
.protocol-strip,
.mini-orbit,
.matrix-card,
.risk-panel,
.insurance-panel {
  border: 1px solid rgba(37, 242, 208, 0.18);
  background: linear-gradient(145deg, rgba(5, 22, 20, 0.86), rgba(2, 8, 8, 0.78));
  box-shadow: inset 0 0 0 1px rgba(220, 232, 234, 0.03);
}

.stat-grid article,
.income-grid article,
.rights-grid article {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 13px 12px;
  clip-path: polygon(13px 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
}

.stat-grid span,
.income-grid span,
.rights-grid span,
.protocol-strip span,
.risk-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.stat-grid strong,
.income-grid strong,
.rights-grid strong {
  min-width: 0;
  font-size: 19px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.income-grid em {
  color: var(--cyan);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.income-grid article.disabled {
  opacity: 0.68;
}

.income-grid article.disabled em {
  color: var(--gold);
}

.protocol-strip,
.mini-orbit,
.risk-panel,
.matrix-card,
.insurance-panel {
  margin-top: 14px;
  padding: 15px;
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

.protocol-strip div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.protocol-strip strong {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
}

.protocol-strip p,
.risk-panel p {
  margin: 10px 0 0;
  color: #b6c7cd;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 780;
}

.rules-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(37, 242, 208, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 242, 208, 0.11), transparent 55%),
    linear-gradient(145deg, rgba(5, 22, 20, 0.78), rgba(2, 8, 8, 0.7));
}

.rules-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.rules-card summary::-webkit-details-marker {
  display: none;
}

.rules-card summary span {
  color: #f1f7f8;
  font-size: 15px;
  font-weight: 950;
}

.rules-card summary strong {
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid rgba(37, 242, 208, 0.2);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(37, 242, 208, 0.08);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.rules-grid article {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid rgba(37, 242, 208, 0.18);
  border-radius: 8px;
  background: rgba(2, 10, 10, 0.52);
}

.rules-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.rules-grid strong {
  color: #f1f7f8;
  font-size: 14px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.rules-grid em {
  color: rgba(37, 242, 208, 0.8);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
}

.section-head,
.matrix-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.section-head strong,
.matrix-head strong {
  font-size: 16px;
  font-weight: 950;
}

.section-head button,
.matrix-head span {
  color: var(--cyan);
  background: rgba(37, 242, 208, 0.08);
  border: 1px solid rgba(37, 242, 208, 0.2);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
}

.insurance-head span {
  color: var(--cyan);
  background: rgba(37, 242, 208, 0.08);
  border: 1px solid rgba(37, 242, 208, 0.2);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
}

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

.insurance-grid article,
.insurance-record {
  border: 1px solid rgba(37, 242, 208, 0.16);
  background: rgba(2, 10, 10, 0.48);
  padding: 12px;
}

.insurance-grid article {
  display: grid;
  gap: 7px;
}

.insurance-grid span,
.insurance-record span,
.insurance-record em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.insurance-grid strong,
.insurance-record strong {
  color: #f1f7f8;
  font-size: 15px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.insurance-record {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.insurance-record em {
  color: var(--gold);
}

.orbit-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
}

.orbit-row i,
.timeline-node > i {
  width: 15px;
  height: 15px;
  display: block;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(37, 242, 208, 0.9);
}

.orbit-row div {
  display: grid;
  gap: 3px;
}

.orbit-row strong,
.orbit-row em {
  font-style: normal;
  font-weight: 950;
}

.orbit-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.orbit-row em {
  color: var(--blue);
  font-size: 12px;
}

.page-title {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.page-title span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 2px;
}

.page-title strong {
  font-size: 25px;
  font-weight: 950;
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.filter-tabs button {
  height: 38px;
  color: var(--muted);
  background: rgba(5, 22, 20, 0.74);
  border: 1px solid rgba(37, 242, 208, 0.18);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  font-size: 13px;
  font-weight: 950;
}

.filter-tabs button.active {
  color: #f3fffd;
  border-color: rgba(37, 242, 208, 0.36);
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 242, 208, 0.14), transparent 56%),
    linear-gradient(180deg, rgba(7, 50, 44, 0.98), rgba(3, 19, 17, 0.98));
  text-shadow: 0 0 10px rgba(37, 242, 208, 0.28);
}

.order-orbit {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 12px;
}

.order-orbit::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(var(--cyan), rgba(37, 242, 208, 0.08));
  box-shadow: 0 0 12px rgba(37, 242, 208, 0.46);
}

.timeline-node {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  position: relative;
}

.timeline-node > i {
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.timeline-node.active > i {
  animation: nodePulse 1.8s ease-in-out infinite;
}

.node-card {
  padding: 15px;
  border: 1px solid rgba(37, 242, 208, 0.22);
  background: linear-gradient(145deg, rgba(5, 22, 20, 0.9), rgba(2, 8, 8, 0.82));
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

.chain-empty .node-card,
.empty-card {
  min-height: 118px;
  display: grid;
  align-content: center;
}

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

.node-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 13px;
}

.node-card header strong {
  font-size: 18px;
  font-weight: 950;
}

.node-card header small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.node-card header span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
}

.node-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.node-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.node-card dd {
  margin: 7px 0 0;
  font-size: 14px;
  font-weight: 950;
}

.order-progress {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(37, 242, 208, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 242, 208, 0.08), rgba(30, 140, 255, 0.04)),
    rgba(2, 10, 10, 0.6);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.progress-meta span,
.order-progress em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.progress-meta strong {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 950;
  text-shadow: 0 0 12px rgba(37, 242, 208, 0.55);
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(37, 242, 208, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(220, 232, 234, 0.06), rgba(37, 242, 208, 0.08)),
    rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.42);
}

.progress-track span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--blue));
  box-shadow: 0 0 14px rgba(37, 242, 208, 0.7);
  transition: width 0.35s ease;
}

.order-progress.complete .progress-track span {
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.order-progress.complete .progress-meta strong {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(245, 182, 74, 0.46);
}

.quota-overview {
  margin-top: 12px;
}

.account-progress {
  margin-top: 0;
  margin-bottom: 10px;
}

.order-detail-grid {
  margin-top: 12px;
}

.order-detail-grid article {
  padding: 10px;
}

.order-actions {
  grid-template-columns: 1fr;
}

.order-actions button {
  min-height: 44px;
}

.queue-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.queue-actions button {
  min-height: 56px;
  padding-inline: 10px;
}

.queue-actions button:first-child {
  color: var(--cyan);
  border: 1px solid rgba(37, 242, 208, 0.4);
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 242, 208, 0.16), transparent 62%),
    rgba(37, 242, 208, 0.08);
  box-shadow: inset 0 0 14px rgba(37, 242, 208, 0.08);
}

.node-dividend-progress {
  margin-top: 12px;
}

.action-bay {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.action-bay button {
  width: 100%;
  font-size: 15px;
}

.action-bay button.locked {
  color: #a7b2b8;
  background: rgba(7, 18, 18, 0.9);
  border-color: rgba(245, 182, 74, 0.36);
  box-shadow: none;
}

.node-rights {
  margin-top: 12px;
}

.bottom-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(37, 242, 208, 0.2);
  background: rgba(1, 7, 7, 0.78);
  backdrop-filter: blur(14px);
  clip-path: polygon(22px 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.bottom-nav button span {
  font-size: 9px;
  letter-spacing: 1px;
}

.bottom-nav button strong {
  font-size: 13px;
}

.bottom-nav button.active {
  color: var(--cyan);
  background: rgba(37, 242, 208, 0.1);
  border: 1px solid rgba(37, 242, 208, 0.2);
  border-radius: 999px;
  box-shadow: inset 0 0 16px rgba(37, 242, 208, 0.08), 0 0 18px rgba(37, 242, 208, 0.16);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  width: min(362px, 100%);
  position: relative;
  padding: 20px;
  border: 1px solid rgba(37, 242, 208, 0.3);
  background:
    linear-gradient(rgba(37, 242, 208, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 242, 208, 0.05) 1px, transparent 1px),
    linear-gradient(145deg, rgba(6, 21, 18, 0.98), rgba(2, 6, 6, 0.98));
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), 0 0 30px rgba(37, 242, 208, 0.12);
  clip-path: polygon(24px 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 32px;
  height: 32px;
  color: var(--cyan);
  background: rgba(37, 242, 208, 0.08);
  border: 1px solid rgba(37, 242, 208, 0.2);
  font-size: 20px;
  font-weight: 950;
}

.modal-title {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.modal-title span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.6px;
}

.modal-title strong {
  font-size: 22px;
  font-weight: 950;
}

.language-list {
  display: grid;
  gap: 8px;
}

.language-list button {
  height: 42px;
  padding: 0 14px;
  text-align: left;
  color: #d5e3e7;
  background: rgba(5, 22, 20, 0.74);
  border: 1px solid rgba(37, 242, 208, 0.15);
  font-weight: 900;
}

.language-list button.active {
  color: #02110f;
  background: linear-gradient(135deg, #e4fffb, var(--cyan), var(--blue));
}

.join-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.join-panel label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.join-panel input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(37, 242, 208, 0.28);
  color: var(--metal);
  background: rgba(1, 8, 8, 0.72);
  outline: 0;
  font-weight: 950;
}

.join-panel input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(37, 242, 208, 0.09);
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: -2px 0 12px;
}

.quick-amounts button {
  min-height: 34px;
  color: var(--cyan);
  background: rgba(37, 242, 208, 0.08);
  border: 1px solid rgba(37, 242, 208, 0.2);
  font-size: 12px;
  font-weight: 950;
}

.limit-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(37, 242, 208, 0.18);
  background: linear-gradient(145deg, rgba(5, 22, 20, 0.78), rgba(1, 8, 8, 0.66));
}

.limit-panel div {
  display: grid;
  gap: 5px;
}

.limit-panel span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.limit-panel strong {
  color: var(--metal);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.limit-panel p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--gold);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 800;
}

.queue-panel {
  width: min(370px, 100%);
}

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

.queue-summary article,
.queue-result {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(37, 242, 208, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 242, 208, 0.1), transparent 58%),
    rgba(2, 10, 10, 0.64);
}

.queue-summary span,
.queue-result span,
.burn-mode > strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.queue-summary strong,
.queue-result strong {
  color: #f1f7f8;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.burn-mode {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(37, 242, 208, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(5, 22, 20, 0.8), rgba(1, 8, 8, 0.7));
}

.burn-mode label {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 8px;
  row-gap: 3px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(37, 242, 208, 0.16);
  border-radius: 8px;
  background: rgba(1, 8, 8, 0.48);
}

.burn-mode input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.burn-mode label span {
  color: var(--metal);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.burn-mode label em {
  grid-column: 2;
  color: rgba(37, 242, 208, 0.78);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.3;
}

.queue-result {
  margin-bottom: 2px;
  border-color: rgba(245, 182, 74, 0.3);
}

.queue-result.direct {
  border-color: rgba(37, 242, 208, 0.38);
}

.queue-result em {
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.3;
}

.field-hint {
  min-height: 18px;
  margin: -2px 0 12px;
  color: var(--green);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 850;
}

.field-hint.error {
  color: var(--red);
}

.field-hint.warn {
  color: var(--gold);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.join-panel .modal-actions {
  grid-template-columns: 1fr 1fr;
}

.join-panel .modal-actions button:last-child {
  grid-column: 1 / -1;
}

.modal-actions button:first-child {
  color: var(--cyan);
  background: rgba(37, 242, 208, 0.08);
}

.tx-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.tx-spinner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(37, 242, 208, 0.18);
  border-top-color: var(--cyan);
  animation: spin 1s linear infinite;
}

.tx-panel strong {
  font-size: 21px;
  font-weight: 950;
}

.tx-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 108px;
  z-index: 25;
  width: min(340px, calc(100vw - 44px));
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  color: #02110f;
  background: linear-gradient(135deg, #e4fffb, var(--cyan), var(--blue));
  clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
  font-size: 13px;
  font-weight: 950;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.app-shell {
  background:
    radial-gradient(circle at 50% -8%, rgba(37, 242, 208, 0.2), transparent 27rem),
    radial-gradient(circle at 14% 74%, rgba(30, 140, 255, 0.1), transparent 22rem),
    #020606;
}

.phone {
  height: min(902px, calc(100svh - 24px));
  min-height: min(680px, calc(100svh - 24px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: 16px 16px 14px;
  border-color: rgba(37, 242, 208, 0.58);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 10%, rgba(37, 242, 208, 0.2), transparent 13rem),
    linear-gradient(rgba(37, 242, 208, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 242, 208, 0.035) 1px, transparent 1px),
    linear-gradient(158deg, rgba(3, 15, 14, 0.99), rgba(2, 6, 6, 0.99) 48%, rgba(4, 18, 16, 0.99));
  background-size: auto, 28px 28px, 28px 28px, auto;
  box-shadow:
    0 34px 88px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(220, 232, 234, 0.08),
    inset 0 0 42px rgba(37, 242, 208, 0.08);
  scrollbar-width: none;
}

.phone::-webkit-scrollbar {
  display: none;
}

.phone > .view.active {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 18px;
  scrollbar-width: none;
}

.phone > .view.active::-webkit-scrollbar {
  display: none;
}

.phone::before {
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 15px, rgba(220, 232, 234, 0.07) 16px, transparent 17px 34px),
    radial-gradient(circle at 50% 42%, rgba(37, 242, 208, 0.22), transparent 12rem);
}

.topbar {
  min-height: 52px;
  min-width: 0;
}

.brand-button img {
  width: 62px;
  height: 42px;
}

.brand-button strong {
  font-size: 18px;
  letter-spacing: 0.7px;
}

.lang-trigger,
.wallet-btn {
  clip-path: none;
  border-radius: 8px;
  box-shadow: inset 0 0 14px rgba(37, 242, 208, 0.08);
}

.wallet-btn {
  max-width: 104px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eafdfb;
  text-shadow: 0 0 10px rgba(37, 242, 208, 0.6);
  background:
    linear-gradient(135deg, rgba(220, 232, 234, 0.16), rgba(37, 242, 208, 0.2)),
    rgba(2, 12, 11, 0.88);
}

.pool-hero {
  min-height: 350px;
  margin-top: 2px;
  padding: 20px 14px 18px;
  gap: 13px;
  align-content: center;
  border: 1px solid rgba(37, 242, 208, 0.76);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 14%, rgba(37, 242, 208, 0.18), transparent 8rem),
    linear-gradient(145deg, rgba(5, 28, 24, 0.86), rgba(2, 8, 8, 0.76));
  box-shadow:
    inset 0 0 0 1px rgba(220, 232, 234, 0.04),
    inset 0 0 42px rgba(37, 242, 208, 0.08),
    0 0 24px rgba(37, 242, 208, 0.1);
}

.pool-hero::before,
.pool-hero::after,
.modal-panel::before,
.node-card::before,
.matrix-card::before,
.risk-panel::before,
.mini-orbit::before,
.protocol-strip::before,
.insurance-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(37, 242, 208, 0.08);
}

.pool-hero::after {
  inset: auto 28px -1px;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 18px rgba(37, 242, 208, 0.8);
}

.chain-lines {
  inset: 0;
  opacity: 0.2;
  background:
    repeating-linear-gradient(126deg, transparent 0 25px, rgba(220, 232, 234, 0.16) 26px, transparent 28px 56px),
    radial-gradient(ellipse at 50% 45%, transparent 0 39%, rgba(37, 242, 208, 0.34) 40%, transparent 42% 100%);
}

.a-core {
  width: 136px;
  height: 136px;
  margin-top: -4px;
  background:
    radial-gradient(circle at 50% 52%, rgba(220, 232, 234, 0.2), transparent 34%),
    radial-gradient(circle, rgba(37, 242, 208, 0.22), rgba(2, 6, 6, 0.94) 67%);
  box-shadow:
    0 0 30px rgba(37, 242, 208, 0.22),
    inset 0 0 32px rgba(220, 232, 234, 0.08);
}

.a-core img {
  width: 112px;
  max-height: 104px;
}

.a-core b {
  position: relative;
  z-index: 1;
  color: rgba(220, 232, 234, 0.95);
  font-size: 92px;
  line-height: 1;
  font-weight: 950;
  font-family: Arial Black, Inter, "PingFang SC", sans-serif;
  text-shadow:
    0 0 12px rgba(220, 232, 234, 0.36),
    0 0 30px rgba(37, 242, 208, 0.5);
}

.a-core b::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 51%;
  width: 86px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(37, 242, 208, 0.9), transparent);
  box-shadow: 0 0 16px rgba(37, 242, 208, 0.6);
}

.pool-balance {
  width: min(100%, 320px);
  margin-top: -3px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(37, 242, 208, 0.3);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(2, 15, 14, 0.82), rgba(5, 28, 24, 0.62));
}

.pool-balance strong {
  max-width: 100%;
  margin-top: 2px;
  font-size: clamp(30px, 8vw, 38px);
  letter-spacing: 0;
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.pool-balance em {
  margin-top: -2px;
  font-size: 14px;
}

.pool-balance small {
  color: rgba(220, 232, 234, 0.72);
  text-shadow: 0 0 12px rgba(37, 242, 208, 0.12);
}

.join-limit-chip {
  width: min(100%, 238px);
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(37, 242, 208, 0.28);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(2, 12, 11, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.join-limit-chip strong {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(37, 242, 208, 0.42);
}

.primary-action {
  width: min(100%, 292px);
  min-height: 56px;
  margin-top: 2px;
  border-radius: 8px;
  clip-path: none;
  font-size: 20px;
}

.primary-action,
.action-bay button,
.modal-actions button,
.quick-amounts button,
.section-head button,
.matrix-head span,
.language-list button,
.filter-tabs button {
  border-radius: 8px;
  clip-path: none;
}

.primary-action,
.action-bay button:not(.locked),
.modal-actions button:last-child {
  border-color: rgba(220, 232, 234, 0.58);
  background:
    linear-gradient(180deg, rgba(238, 255, 252, 0.95), rgba(37, 242, 208, 0.9) 44%, rgba(19, 191, 168, 0.92)),
    var(--cyan);
  box-shadow:
    0 0 22px rgba(37, 242, 208, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    inset 0 -10px 20px rgba(2, 6, 6, 0.18);
}

.stat-grid {
  margin-top: 12px;
}

.stat-grid article,
.income-grid article,
.rights-grid article,
.protocol-strip,
.mini-orbit,
.matrix-card,
.risk-panel,
.insurance-panel,
.node-card,
.limit-panel {
  position: relative;
  clip-path: none;
  border-color: rgba(37, 242, 208, 0.48);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 242, 208, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(6, 28, 24, 0.88), rgba(2, 8, 8, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(220, 232, 234, 0.035),
    inset 0 0 24px rgba(37, 242, 208, 0.045);
}

.stat-grid article,
.income-grid article,
.rights-grid article {
  min-height: 88px;
  padding: 14px 14px;
}

.stat-grid strong,
.income-grid strong,
.rights-grid strong {
  color: #f1f7f8;
  text-shadow: 0 0 14px rgba(37, 242, 208, 0.16);
}

.protocol-strip,
.mini-orbit,
.risk-panel,
.matrix-card,
.insurance-panel {
  padding: 16px;
}

.section-head button,
.matrix-head span,
.insurance-head span,
.node-card header span,
.income-grid em {
  border-radius: 999px;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(37, 242, 208, 0.44);
}

.page-title {
  justify-items: center;
  text-align: center;
  margin: 4px 0 18px;
}

.page-title span {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-title span::before,
.page-title span::after,
.modal-title span::before,
.modal-title span::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.page-title span::after,
.modal-title span::after {
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.page-title strong {
  color: #f2f8f8;
  text-shadow: 0 0 16px rgba(37, 242, 208, 0.18);
}

.filter-tabs {
  padding: 5px;
  gap: 5px;
  border: 1px solid rgba(37, 242, 208, 0.28);
  border-radius: 10px;
  background: rgba(2, 10, 10, 0.68);
}

.filter-tabs button {
  height: 38px;
  border-color: transparent;
}

.filter-tabs button.active {
  box-shadow:
    0 0 14px rgba(37, 242, 208, 0.16),
    inset 0 1px 0 rgba(220, 232, 234, 0.08),
    inset 0 -10px 20px rgba(0, 0, 0, 0.34);
}

.order-orbit {
  padding-left: 10px;
  gap: 16px;
}

.order-orbit::before {
  left: 22px;
  top: 20px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(180deg, var(--cyan) 0 9px, transparent 9px 17px);
  box-shadow: 0 0 14px rgba(37, 242, 208, 0.56);
}

.timeline-node {
  grid-template-columns: 34px 1fr;
}

.timeline-node > i {
  width: 25px;
  height: 25px;
  margin-top: 28px;
  border: 4px solid rgba(2, 8, 8, 0.96);
  outline: 1px solid rgba(37, 242, 208, 0.5);
  background:
    radial-gradient(circle, var(--cyan) 0 4px, rgba(37, 242, 208, 0.18) 5px 100%);
}

.node-card {
  padding: 18px;
}

.node-card header {
  min-height: 44px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(37, 242, 208, 0.16);
}

.node-card header strong {
  color: #eff8f8;
  font-size: 20px;
}

.node-card dl {
  gap: 0;
  border-top: 0;
}

.node-card dl div {
  padding: 10px 0;
  border-bottom: 1px solid rgba(37, 242, 208, 0.12);
}

.node-card dl div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.node-card dd {
  color: #e8f0f2;
  font-size: 15px;
}

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

.income-grid article {
  min-height: 74px;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  align-content: center;
  column-gap: 12px;
}

.income-grid article::before {
  content: "";
  width: 34px;
  height: 34px;
  grid-row: 1 / span 2;
  border: 1px solid rgba(220, 232, 234, 0.66);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(37, 242, 208, 0.34), transparent 13px),
    rgba(2, 10, 10, 0.68);
}

.income-grid article span {
  grid-column: 2;
}

.income-grid article strong {
  grid-column: 2;
  font-size: 18px;
}

.income-grid article em {
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 7px 9px;
  border: 1px solid rgba(37, 242, 208, 0.22);
  background: rgba(37, 242, 208, 0.08);
}

.action-bay {
  grid-template-columns: 1fr 1fr;
}

.action-bay button {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.action-bay button:nth-child(3):last-child {
  grid-column: auto;
}

.action-bay button strong,
.action-bay button em {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1.15;
  font-style: normal;
}

.action-bay button strong {
  font-size: 15px;
  font-weight: 950;
}

.action-bay button em {
  font-size: 10px;
  font-weight: 900;
  opacity: 0.78;
}

.action-bay.queue-actions button,
.action-bay.queue-actions button:not(.locked),
.action-bay.queue-actions button:first-child {
  color: #effffb;
  border: 1px solid rgba(37, 242, 208, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 242, 208, 0.08), transparent 54%),
    linear-gradient(180deg, rgba(7, 43, 38, 0.96), rgba(3, 18, 16, 0.98) 54%, rgba(1, 8, 8, 0.98));
  box-shadow:
    0 0 10px rgba(37, 242, 208, 0.12),
    inset 0 1px 0 rgba(220, 232, 234, 0.09),
    inset 0 -14px 22px rgba(0, 0, 0, 0.42);
}

.action-bay.queue-actions button strong {
  color: #f7fffd;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(37, 242, 208, 0.24);
}

.action-bay.queue-actions button em {
  color: rgba(156, 226, 217, 0.88);
  font-size: 10px;
  opacity: 1;
}

.action-bay.queue-actions button:nth-child(2) {
  border-color: rgba(245, 182, 74, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 182, 74, 0.09), transparent 54%),
    linear-gradient(180deg, rgba(41, 32, 15, 0.96), rgba(13, 17, 13, 0.98) 58%, rgba(1, 8, 8, 0.98));
  box-shadow:
    0 0 10px rgba(245, 182, 74, 0.1),
    inset 0 1px 0 rgba(220, 232, 234, 0.08),
    inset 0 -14px 22px rgba(0, 0, 0, 0.44);
}

.action-bay.queue-actions button:nth-child(2) em {
  color: rgba(230, 197, 126, 0.9);
}

.insurance-grid article,
.insurance-record {
  border-color: rgba(37, 242, 208, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 242, 208, 0.1), transparent 54%),
    rgba(2, 10, 10, 0.54);
}

[data-view="rights"] .action-bay button:last-child {
  grid-column: 1 / -1;
}

.matrix-card {
  overflow: hidden;
}

.team-performance-card {
  display: grid;
  gap: 12px;
}

.team-performance-card .mechanism-grid {
  margin-top: 0;
}

.team-area-progress {
  margin-top: 0;
}

.sub-matrix-head {
  margin-top: 0;
  margin-bottom: -4px;
}

.area-split-list {
  margin-top: 0;
}

.matrix-card::after {
  content: "";
  position: absolute;
  width: 128px;
  height: 128px;
  right: -46px;
  top: -48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 242, 208, 0.16), transparent 66%);
  pointer-events: none;
}

.rights-grid article {
  min-height: 82px;
}

.bottom-nav {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  height: 74px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 5px 4px 6px;
  margin-top: 10px;
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: transparent;
  box-shadow: none;
}

.bottom-nav button {
  min-width: 0;
  display: grid;
  grid-template-rows: 42px 17px;
  place-items: center;
  align-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  gap: 2px;
  color: #8395a5;
  background: transparent;
  line-height: 1;
  opacity: 0.9;
}

.nav-art {
  width: 42px;
  height: 42px;
  display: block;
  position: relative;
}

.nav-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-img-active {
  opacity: 0;
  transform: scale(0.96);
}

.nav-img-idle {
  opacity: 1;
}

.bottom-nav button strong {
  max-width: 100%;
  color: currentColor;
  font-size: 12px;
  font-weight: 950;
  line-height: 17px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.bottom-nav button.active {
  border-color: transparent;
  border-radius: 12px;
  color: var(--cyan);
  background: transparent;
  opacity: 1;
  text-shadow: 0 0 10px rgba(37, 242, 208, 0.78);
  box-shadow: none;
}

.bottom-nav button.active .nav-img-active {
  opacity: 1;
  transform: scale(1.06);
}

.bottom-nav button.active .nav-img-idle {
  opacity: 0;
  transform: scale(0.96);
}

.modal {
  padding: 20px 14px;
  background:
    radial-gradient(circle at 50% 26%, rgba(37, 242, 208, 0.14), transparent 16rem),
    rgba(0, 0, 0, 0.72);
}

.modal-panel {
  border-radius: 12px;
  clip-path: none;
  border-color: rgba(37, 242, 208, 0.58);
  max-height: calc(100svh - 36px);
  overflow: auto;
  scrollbar-width: none;
}

.modal-panel::-webkit-scrollbar {
  display: none;
}

.modal-title {
  justify-items: center;
  text-align: center;
}

.modal-title span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.join-panel input {
  border-radius: 8px;
  height: 50px;
  background:
    linear-gradient(145deg, rgba(2, 10, 10, 0.86), rgba(5, 22, 20, 0.72));
}

.modal-actions button:first-child {
  color: var(--cyan);
  border-color: rgba(37, 242, 208, 0.32);
  background: rgba(37, 242, 208, 0.08);
}

.toast {
  border-radius: 9px;
  clip-path: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes ripple {
  to { transform: translateX(110%); }
}

@keyframes nodePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(37, 242, 208, 0.74); }
  50% { transform: scale(1.18); box-shadow: 0 0 26px rgba(37, 242, 208, 1); }
}

@media (max-width: 370px) {
  .phone {
    padding-inline: 12px;
  }

  .topbar {
    gap: 6px;
  }

  .top-actions {
    gap: 5px;
    min-width: 0;
  }

  .brand-button {
    gap: 6px;
  }

  .brand-button span {
    display: none;
  }

  .wallet-btn {
    max-width: 104px;
    padding-inline: 7px;
  }

  .lang-trigger {
    padding-inline: 7px;
  }

  .brand-button img {
    width: 52px;
    height: 36px;
  }

  .brand-button strong {
    font-size: 16px;
  }

  .pool-hero {
    min-height: 330px;
    padding-inline: 12px;
  }

  .pool-balance strong {
    font-size: 28px;
  }

  .node-card dl {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    height: 70px;
    gap: 4px;
    padding-inline: 2px;
  }

  .bottom-nav button {
    grid-template-rows: 38px 16px;
    gap: 2px;
  }

  .nav-art {
    width: 38px;
    height: 38px;
  }

  .bottom-nav button strong {
    font-size: 12px;
    line-height: 16px;
  }
}

/* Final AND mobile alignment: Chinese business labels first, compact nav, stable text. */
.phone {
  grid-template-rows: auto minmax(0, 1fr) 66px;
  row-gap: 8px;
  padding-bottom: 10px;
}

.phone > .view.active {
  padding-bottom: 10px;
}

.pool-hero {
  min-height: 334px;
}

.pool-balance strong {
  font-size: clamp(28px, 7.3vw, 35px);
}

.page-title {
  gap: 7px;
  margin: 2px 0 16px;
}

.page-title strong {
  order: 1;
  font-size: 26px;
}

.page-title span {
  order: 2;
  color: rgba(37, 242, 208, 0.8);
  font-size: 11px;
  letter-spacing: 0;
}

.page-title span::before,
.page-title span::after {
  width: 30px;
}

.income-subnav {
  display: flex;
  gap: 7px;
  margin: 0 0 12px;
  padding: 5px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(37, 242, 208, 0.28);
  border-radius: 10px;
  background: rgba(2, 10, 10, 0.62);
  scrollbar-width: none;
}

.income-subnav::-webkit-scrollbar {
  display: none;
}

.income-subnav button {
  flex: 0 0 auto;
  min-width: 74px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.income-subnav button.active {
  color: #02110f;
  background: linear-gradient(135deg, #e4fffb, var(--cyan), var(--blue));
  box-shadow: 0 0 16px rgba(37, 242, 208, 0.22);
}

.status-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.status-checks em {
  padding: 5px 8px;
  border: 1px solid rgba(37, 242, 208, 0.2);
  border-radius: 999px;
  color: #cfe5e6;
  background: rgba(37, 242, 208, 0.06);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.bottom-nav {
  align-self: end;
  height: 62px;
  margin-top: 0;
  padding: 2px 6px 0;
  gap: 3px;
}

.bottom-nav button {
  grid-template-rows: 36px 15px;
  gap: 1px;
  border-radius: 10px;
}

.nav-art {
  width: 36px;
  height: 36px;
}

.bottom-nav button strong {
  font-size: 11px;
  line-height: 15px;
}

.bottom-nav button.active .nav-img-active {
  transform: scale(1.04);
}

.wallet-panel {
  width: min(336px, 100%);
}

.wallet-card {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(37, 242, 208, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 242, 208, 0.12), transparent 56%),
    rgba(2, 12, 11, 0.72);
}

.wallet-card span,
.wallet-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.wallet-card strong {
  color: #f1f7f8;
  font-size: 22px;
  font-weight: 950;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.wallet-card em {
  color: var(--cyan);
}

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

.ghost-action {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid rgba(255, 93, 93, 0.28);
  border-radius: 8px;
  color: #ffb4b4;
  background: rgba(255, 93, 93, 0.08);
  font-weight: 950;
}

.tx-panel.success .tx-spinner {
  display: grid;
  place-items: center;
  border-color: rgba(37, 242, 208, 0.48);
  background:
    radial-gradient(circle, rgba(37, 242, 208, 0.26), transparent 62%),
    rgba(2, 12, 11, 0.88);
  animation: none;
}

.tx-panel.success .tx-spinner::before {
  content: "✓";
  color: var(--cyan);
  font-size: 36px;
  font-weight: 950;
  text-shadow: 0 0 16px rgba(37, 242, 208, 0.7);
}

.tx-panel.failed .tx-spinner {
  display: grid;
  place-items: center;
  border-color: rgba(255, 93, 93, 0.5);
  animation: none;
}

.tx-panel.failed .tx-spinner::before {
  content: "!";
  color: var(--red);
  font-size: 34px;
  font-weight: 950;
}

.stat-grid strong,
.income-grid strong,
.rights-grid strong,
.insurance-grid strong,
.insurance-record strong,
.node-card dd,
.wallet-card strong {
  overflow-wrap: anywhere;
}

.order-progress {
  min-width: 0;
  overflow: hidden;
}

.progress-meta > span,
.order-progress em {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 370px) {
  .phone {
    grid-template-rows: auto minmax(0, 1fr) 60px;
  }

  .pool-hero {
    min-height: 312px;
    padding-inline: 10px;
  }

  .pool-balance strong {
    font-size: 27px;
  }

  .income-subnav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .order-progress {
    padding: 10px;
  }

  .progress-meta strong {
    font-size: 13px;
  }

  .bottom-nav {
    height: 58px;
    padding-inline: 2px;
  }

  .bottom-nav button {
    grid-template-rows: 33px 14px;
  }

  .nav-art {
    width: 33px;
    height: 33px;
  }

  .bottom-nav button strong {
    font-size: 10px;
    line-height: 14px;
  }
}

/* Static feature tabs and mechanism boards. */
.feature-tabs,
.rights-tabs {
  width: 100%;
  display: flex;
  gap: 7px;
  margin: 14px 0 12px;
  padding: 5px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(37, 242, 208, 0.28);
  border-radius: 10px;
  background: rgba(2, 10, 10, 0.64);
  scrollbar-width: none;
}

.feature-tabs::-webkit-scrollbar,
.rights-tabs::-webkit-scrollbar,
.release-strip::-webkit-scrollbar,
.module-strip::-webkit-scrollbar,
.settlement-full-list::-webkit-scrollbar,
.phase-list::-webkit-scrollbar {
  display: none;
}

.feature-tabs button,
.rights-tabs button {
  flex: 0 0 auto;
  min-width: 78px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.12;
  white-space: nowrap;
}

.feature-tabs button.active,
.rights-tabs button.active {
  color: #02110f;
  border-color: rgba(220, 232, 234, 0.58);
  background:
    linear-gradient(180deg, rgba(238, 255, 252, 0.96), rgba(37, 242, 208, 0.9) 48%, rgba(19, 191, 168, 0.92)),
    var(--cyan);
  box-shadow: 0 0 16px rgba(37, 242, 208, 0.24);
}

.mechanism-panels,
.income-panels,
.rights-panels {
  min-width: 0;
}

.mechanism-panel:not(.active),
.income-panel:not(.active),
.rights-panel:not(.active) {
  display: none;
}

.mechanism-panel {
  position: relative;
  margin-top: 12px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(37, 242, 208, 0.44);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 242, 208, 0.12), transparent 54%),
    linear-gradient(145deg, rgba(6, 28, 24, 0.88), rgba(2, 8, 8, 0.84));
  box-shadow:
    inset 0 0 0 1px rgba(220, 232, 234, 0.035),
    inset 0 0 24px rgba(37, 242, 208, 0.045);
}

.mechanism-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(37, 242, 208, 0.08);
  border-radius: 6px;
}

.slim-head {
  min-height: 32px;
  margin-bottom: 11px;
}

.slim-head strong {
  color: #f2f8f8;
  font-size: 15px;
}

.slim-head span {
  flex: 0 0 auto;
  max-width: 48%;
  padding: 5px 8px;
  border: 1px solid rgba(37, 242, 208, 0.2);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(37, 242, 208, 0.08);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.mechanism-grid,
.distribution-grid,
.risk-matrix,
.settlement-scale {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mechanism-grid article,
.distribution-grid article,
.risk-matrix article,
.settlement-scale article,
.flow-steps article {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(37, 242, 208, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 242, 208, 0.08), transparent 54%),
    rgba(2, 10, 10, 0.54);
}

.mechanism-grid span,
.distribution-grid span,
.risk-matrix span,
.settlement-scale span,
.flow-steps span,
.ladder-list span,
.rate-ladder span,
.level-list span,
.record-list span,
.level-table span,
.phase-list span,
.settlement-full-list span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.mechanism-grid strong,
.distribution-grid strong,
.risk-matrix strong,
.settlement-scale strong,
.flow-steps strong,
.ladder-list strong,
.rate-ladder strong,
.level-list strong,
.record-list strong,
.level-table strong,
.level-table b,
.phase-list strong,
.settlement-full-list strong {
  min-width: 0;
  color: #f1f7f8;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.mechanism-grid em,
.distribution-grid em,
.record-list em,
.level-list em,
.level-table em,
.phase-list em {
  color: rgba(37, 242, 208, 0.8);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.3;
}

.module-strip,
.release-strip {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.module-strip span,
.release-strip span {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(37, 242, 208, 0.2);
  border-radius: 999px;
  color: #cfe5e6;
  background: rgba(37, 242, 208, 0.06);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.wrap-strip {
  flex-wrap: wrap;
  overflow-x: visible;
}

.wrap-strip span {
  flex: 1 1 auto;
  min-width: 92px;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

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

.token-release-summary article {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(37, 242, 208, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 242, 208, 0.11), transparent 54%),
    rgba(2, 10, 10, 0.6);
}

.token-release-summary span,
.token-release-meter span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.token-release-summary strong,
.token-release-meter strong {
  min-width: 0;
  color: #f1f7f8;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.token-release-summary em,
.token-release-meter em {
  min-width: 0;
  color: rgba(37, 242, 208, 0.8);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.3;
}

.token-release-meter {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid rgba(30, 140, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(30, 140, 255, 0.12), rgba(37, 242, 208, 0.055));
}

.token-release-meter div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.token-release-meter i {
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(120, 148, 168, 0.18);
}

.token-release-meter b {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--ice));
  box-shadow: 0 0 14px rgba(37, 242, 208, 0.28);
}

.mechanism-note {
  margin: 10px 0 0;
  color: #b6c7cd;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.6;
}

.ladder-list,
.rate-ladder,
.level-list,
.record-list,
.level-table,
.settlement-full-list,
.phase-list {
  display: grid;
  gap: 7px;
}

.ladder-list div,
.rate-ladder div,
.level-list div,
.record-list article,
.level-table div,
.settlement-full-list div,
.phase-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(37, 242, 208, 0.18);
  border-radius: 8px;
  background: rgba(2, 10, 10, 0.5);
}

.settlement-full-list {
  max-height: 342px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 242, 208, 0.4) transparent;
}

.settlement-full-list div {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}

.settlement-full-list strong {
  color: var(--cyan);
  text-align: right;
}

.quota-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quota-list div {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

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

.rate-ladder div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.rate-ladder strong {
  color: var(--cyan);
}

.flow-steps {
  display: grid;
  gap: 9px;
}

.flow-steps article {
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
}

.flow-steps b {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.flow-steps strong {
  grid-column: 2;
  color: #f1f7f8;
}

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

.dual-action button {
  min-width: 0;
}

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

.risk-matrix article strong {
  font-size: 13px;
}

.record-list article {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
}

.record-list em {
  grid-column: 1 / -1;
  color: var(--gold);
}

.level-list div {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.level-list div.active {
  border-color: rgba(37, 242, 208, 0.58);
  box-shadow: 0 0 16px rgba(37, 242, 208, 0.14);
}

.level-list em {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
}

.level-table div {
  grid-template-columns: 34px minmax(0, 0.78fr) minmax(0, 0.96fr) minmax(0, 0.74fr);
  gap: 7px;
}

.level-table span {
  color: var(--cyan);
  font-weight: 950;
}

.level-table em {
  color: #cfe5e6;
}

.level-table b {
  color: var(--gold);
  font-size: 12px;
  text-align: right;
}

.phase-list article {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.88fr);
}

.phase-list article.active {
  border-color: rgba(37, 242, 208, 0.58);
  box-shadow: 0 0 16px rgba(37, 242, 208, 0.14);
}

.phase-list span {
  color: var(--cyan);
  font-weight: 950;
}

.phase-list em {
  grid-column: 1 / -1;
  color: #b6c7cd;
}

.single-action {
  grid-template-columns: 1fr;
}

.single-action button,
[data-view="rights"] .single-action button {
  grid-column: 1 / -1;
}

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

.consensus-actions button:first-child,
.consensus-actions button:last-child {
  grid-column: 1 / -1;
}

.consensus-card .rights-grid strong,
.consensus-window-grid strong {
  font-size: 14px;
  line-height: 1.2;
}

.consensus-window-grid {
  margin-top: 12px;
}

@media (max-width: 370px) {
  .feature-tabs button,
  .rights-tabs button,
  .income-subnav button {
    min-width: 72px;
    padding-inline: 8px;
    font-size: 10px;
  }

  .mechanism-panel {
    padding: 13px;
  }

  .mechanism-grid,
  .risk-matrix,
  .settlement-scale,
  .rate-ladder,
  .quota-list,
  .level-table,
  .token-release-summary {
    grid-template-columns: 1fr;
  }

  .flow-steps article {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .dual-action {
    grid-template-columns: 1fr;
  }

  .consensus-actions {
    grid-template-columns: 1fr;
  }

  .level-table div {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .level-table em,
  .level-table b {
    grid-column: 2;
    text-align: left;
  }
}
