.app-body {
  padding-bottom: 40px;
}

.dash-app {
  min-height: 100vh;
  padding-bottom: 0;
}

.dash-panel[hidden] {
  display: none !important;
}

.dash-panel.is-active {
  display: grid;
  gap: 16px;
}

#sec-ledger.is-active {
  gap: 18px;
}

:root {
  --acc: #ff9a2e;
  --acc-2: #ffc46b;
  --acc-dim: #ff9a2e24;
  --money: #37d99a;
  --on-acc: #1a0d00;
  --rail-w: 236px;
  --rail-slim: 72px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sh-card: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 -1px 0 rgba(0, 0, 0, 0.55) inset, 0 22px 44px -30px rgba(0, 0, 0, 0.9);
}

.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(255, 255, 255, 0.02), transparent 40%);
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 66px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  color: inherit;
  text-decoration: none;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.brand-name small {
  display: block;
  margin-top: 1px;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.rail-scroll {
  flex: 1;
  overflow: auto;
  padding: 14px 12px;
  display: grid;
  gap: 4px;
  align-content: start;
}

.nav-cap {
  padding: 14px 11px 7px;
  color: var(--dim);
  font-size: 0.72rem;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  width: 100%;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.nav-item svg {
  flex: 0 0 18px;
  opacity: 0.7;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.is-active svg {
  opacity: 1;
  color: var(--acc);
}

.nav-home {
  margin-top: 4px;
}

.rail-foot {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.rail-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.rail-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--acc-2), var(--acc));
  color: var(--on-acc);
  font-size: 0.75rem;
  font-weight: 700;
}

.rail-who-meta {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.rail-who-meta strong,
.rail-who-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-who-meta small {
  color: var(--dim);
  font-size: 0.72rem;
}

.rail-who-meta #user-uid {
  color: var(--text-soft, var(--muted));
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.rail-logout {
  width: 100%;
}

.dash-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.45);
}

.dash-sidebar-backdrop[hidden] {
  display: none !important;
}

.dash-main {
  margin-left: var(--rail-w);
  min-width: 0;
  min-height: 100vh;
  transition: margin-left 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 66px;
  padding: 0 clamp(16px, 2.4vw, 30px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(20px) saturate(150%);
}

.dash-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 10, 0.55);
  color: var(--text);
  cursor: pointer;
}

.dash-menu-btn svg {
  width: 20px;
  height: 20px;
}

.dash-page-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.dash-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 154, 46, 0.35);
  background: rgba(255, 154, 46, 0.1);
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.dash-wallet-pill strong {
  color: var(--text);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.dash-lang-wrap {
  position: relative;
}

.dash-lang-btn,
.dash-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(5, 6, 10, 0.4);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.dash-lang-btn:disabled {
  opacity: 0.75;
  cursor: default;
}

.dash-lang-flag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.lang-flag-img {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.dash-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 180px;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 14, 20, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.dash-lang-menu[hidden] {
  display: none !important;
}

.dash-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dash-lang-option:hover,
.dash-lang-option.is-selected {
  background: rgba(255, 154, 46, 0.12);
}

.dash-bell-btn svg {
  width: 18px;
  height: 18px;
}

.dash-lang-btn:hover,
.dash-bell-btn:hover {
  color: var(--text);
}

.dash-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--acc);
  color: var(--on-acc);
  font-size: 0.65rem;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
}

.card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: linear-gradient(rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: var(--sh-card);
}

.card-lead {
  background: linear-gradient(150deg, rgba(255, 154, 46, 0.1), rgba(255, 255, 255, 0.02) 60%);
  border-color: rgba(255, 154, 46, 0.22);
}

.mine {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.mine-on {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.mine-on i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--money);
  box-shadow: 0 0 0 4px rgba(55, 217, 154, 0.16);
  animation: minePulse 2.4s ease-in-out infinite;
}

.mine-on.is-idle i {
  background: var(--dim);
  box-shadow: none;
  animation: none;
}

@keyframes minePulse {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.mine-th {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.mine-lab {
  color: var(--dim);
  font-size: 0.82rem;
}

.mine-run {
  display: flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.mine-head {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  text-shadow: 0 0 34px rgba(255, 154, 46, 0.25);
}

.mine-tail {
  color: var(--acc);
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  font-weight: 600;
  text-shadow: 0 0 22px rgba(255, 154, 46, 0.55);
}

.mine-now {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--dim);
  font-size: 0.88rem;
}

.mine-now b {
  color: var(--money);
  font-family: var(--mono);
  font-weight: 600;
}

.mine-hour {
  display: grid;
  gap: 8px;
}

.mine-bar {
  height: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mine-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  transition: width 1s linear;
}

.mine-next {
  margin: 0;
  color: var(--dim);
  font-size: 0.8rem;
  min-height: 18px;
}

.mine-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  padding-bottom: 1px;
}

.mine-bars i {
  flex: 1;
  min-width: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.35s ease, opacity 0.35s ease, height 0.45s ease;
  opacity: 0.35;
}

.mine-bars i.is-lit {
  background: linear-gradient(180deg, var(--acc-2), var(--acc));
  opacity: 1;
}

.mine-bars i.is-claimed {
  background: linear-gradient(180deg, #3ecf8e, #1fa968);
  opacity: 0.95;
}

.mine-bars i[data-zero="true"] {
  background: rgba(255, 255, 255, 0.07);
  opacity: 0.3;
}

.mine-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
}

.mine-cells > div {
  background: #090b11;
  padding: 12px 14px;
  min-width: 0;
}

.mine-cells span {
  display: block;
  margin-bottom: 4px;
  color: var(--dim);
  font-size: 0.75rem;
}

.mine-cells b {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.mine-how {
  margin: 0;
  color: var(--dim);
  font-size: 0.88rem;
}

.btn.btn-hot,
.mine-cta.btn-hot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 100px;
  background: linear-gradient(100deg, var(--acc-2), var(--acc));
  color: var(--on-acc);
  font-weight: 700;
  box-shadow: 0 8px 30px -12px rgba(255, 154, 46, 0.8);
  cursor: pointer;
}

.btn-hot:hover {
  box-shadow: 0 14px 40px -12px rgba(255, 154, 46, 0.95);
}

.coinbox {
  display: grid;
  gap: 16px;
}

.sec-h h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.sec-h p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.spread-btns {
  display: grid;
  grid-template-columns: repeat(var(--spread-cols, 3), minmax(0, 1fr));
  gap: 10px;
}

.coin-pkg-buy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: #090b11;
}

.coin-pkg-buy .buy-price-block {
  margin: 0;
}

.coin-pkg-buy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.coin-pkg-proj {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.spread-b {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: #090b11;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.18s, background 0.18s;
}

.spread-b b {
  font-size: 0.95rem;
  font-weight: 600;
}

.spread-b i {
  font-style: normal;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.4;
}

.spread-b:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.spread-b.is-on {
  background: var(--acc-dim);
  border-color: rgba(255, 154, 46, 0.5);
}

.abar-wrap {
  padding: 2px 0 4px;
}

.abar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.abar-track {
  display: flex;
  gap: 2px;
  height: 10px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.abar-seg {
  display: block;
  min-width: 2px;
  height: 100%;
}

.abar-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--dim);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.abar-one {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.coinlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 300px));
  justify-content: center;
  gap: 18px;
}

.ccard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: linear-gradient(rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: var(--sh-card);
  transition: border-color 0.2s, background 0.2s;
}

.ccard.is-on {
  border-color: rgba(255, 154, 46, 0.28);
}

.ccard:not(.is-on) {
  background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
}

.ccard-h {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.cic {
  width: var(--s, 40px);
  height: var(--s, 40px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c, #888) 18%, transparent);
  color: var(--c, #888);
  font-weight: 700;
  font-size: 0.85rem;
  flex: none;
  overflow: hidden;
}

.cic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.ccard-name {
  display: grid;
  min-width: 0;
}

.ccard-name b {
  font-size: 0.95rem;
}

.ccard-name b span {
  color: var(--dim);
  font-weight: 500;
}

.ccard-name i {
  font-style: normal;
  color: var(--dim);
  font-size: 0.8rem;
  font-family: var(--mono);
}

.ccard-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ccard-quick-usdt {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 32px;
  padding: 0 4px;
}

.ccard-collected-lab {
  color: var(--muted);
  font-size: 0.85rem;
}

.ccard-collected-val {
  color: var(--green, #3dd68c);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--mono);
}

.preset {
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.preset:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.preset:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ccard-dial-usdt {
  justify-content: center;
}

.ccard-dial {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  margin: 6px 0 26px;
}

.knob {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
}

.knob:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.knob:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.ccard.is-on .knob-plus:not(:disabled) {
  color: var(--acc);
  background: var(--acc-dim);
  border-color: rgba(255, 154, 46, 0.35);
}

.gauge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 118px;
  pointer-events: none;
}

.gauge svg {
  display: block;
}

.gauge-disc {
  fill: #090b11;
}

.ccard.is-on .gauge-disc {
  fill: color-mix(in srgb, var(--acc) 7%, #090b11);
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 2;
}

.gauge-arc {
  fill: none;
  stroke: var(--acc);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 154, 46, 0.45));
  transform: rotate(-90deg);
  transform-origin: 59px 59px;
}

.gauge-v {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: auto;
}

.gauge-v b {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
}

.gauge-in {
  width: 3ch;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: center;
  padding: 0;
}

.gauge-v u {
  font-size: 0.72rem;
  color: var(--dim);
  text-decoration: none;
}

.ccard-v {
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}

.ccard-v b {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--money);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ccard:not(.is-on) .ccard-v b {
  color: var(--dim);
}

.ccard-v b u {
  font-size: 0.72rem;
  opacity: 0.45;
  text-decoration: none;
  font-weight: 500;
}

.ccard-v span {
  margin-left: 4px;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

@media (max-width: 1279px) {
  .rail {
    width: var(--rail-slim);
  }

  .rail .brand-name,
  .rail .nav-item span,
  .rail .nav-cap,
  .rail .rail-who-meta,
  .rail .rail-logout {
    display: none;
  }

  .rail-brand,
  .rail-who {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .rail-scroll {
    padding: 14px 10px;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .dash-main {
    margin-left: var(--rail-slim);
  }
}

@media (max-width: 720px) {
  .spread-btns {
    grid-template-columns: 1fr;
  }

  .dash-lang-btn span {
    display: none;
  }
}

@media (max-width: 900px) {
  .rail {
    transform: translateX(-105%);
    transition: transform 0.22s ease, width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: var(--rail-w);
  }

  .rail .brand-name,
  .rail .nav-item span,
  .rail .nav-cap,
  .rail .rail-who-meta,
  .rail .rail-logout {
    display: initial;
  }

  .rail .nav-item span,
  .rail .nav-cap,
  .rail .rail-who-meta {
    display: block;
  }

  .rail .rail-logout {
    display: inline-flex;
  }

  .rail-brand,
  .rail-who,
  .nav-item {
    justify-content: flex-start;
  }

  .nav-item {
    padding: 0 11px;
  }

  body.dash-sidebar-open .rail {
    transform: translateX(0);
  }

  .dash-main {
    margin-left: 0;
  }

  .dash-menu-btn {
    display: inline-flex;
  }
}

.app-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 32px) clamp(16px, 2.4vw, 30px) 100px;
}

.dash-app .app-shell {
  width: min(100%, 1200px);
}

.dash-app #sec-overview,
.dash-app #sec-invite,
.dash-app #sec-recharge,
.dash-app #sec-buy,
.dash-app #sec-withdraw,
.dash-app #sec-ledger,
.dash-app #sec-swap,
.dash-app #sec-settings {
  scroll-margin-top: 72px;
}

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

.app-user {
  color: var(--muted);
}

.app-user strong {
  color: var(--text);
}

.app-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.kpi {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.kpi span {
  display: block;
  color: var(--dim);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.kpi strong {
  font-size: 1.35rem;
}

.kpi strong.green {
  color: var(--green);
}

.panel-box {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.panel-box h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.panel-box > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.pkg-btn {
  min-height: 72px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 10, 0.45);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  padding: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pkg-btn:hover {
  border-color: rgba(255, 143, 60, 0.45);
  background: rgba(255, 143, 60, 0.08);
}

.pkg-btn b {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.pkg-btn small {
  color: var(--dim);
}

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

.split-row {
  display: grid;
  grid-template-columns: 110px 1fr 52px;
  gap: 10px;
  align-items: center;
}

.split-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.split-row output {
  text-align: right;
  color: var(--accent-hot);
  font-variant-numeric: tabular-nums;
}

.split-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.net-select {
  position: relative;
  z-index: 2;
}

.net-select-trigger-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(28, 32, 42, 0.95), rgba(12, 14, 20, 0.9));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.net-select-trigger-row:hover {
  border-color: rgba(255, 143, 60, 0.35);
}

.net-select-trigger-row.is-open,
.net-select.is-open .net-select-trigger-row {
  border-color: rgba(255, 143, 60, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 143, 60, 0.18), 0 10px 28px rgba(0, 0, 0, 0.28);
}

.net-select-trigger,
.net-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 10, 0.55);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.recv-title-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.recv-change-btn {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 143, 60, 0.14);
  color: var(--accent-hot);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  cursor: pointer;
  line-height: 1.35;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.recv-change-btn:hover {
  background: rgba(255, 143, 60, 0.28);
  transform: translateY(-0.5px);
}

.recv-change-btn[hidden] {
  display: none !important;
}

.net-select-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #26a17b;
  box-shadow: 0 4px 12px rgba(38, 161, 123, 0.28);
}

.net-select-icon img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: cover;
}

.net-select-icon[data-net="trc20"] {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.85), 0 4px 12px rgba(38, 161, 123, 0.22);
}

.net-select-icon[data-net="erc20"] {
  box-shadow: 0 0 0 2px rgba(98, 126, 234, 0.9), 0 4px 12px rgba(38, 161, 123, 0.22);
}

.net-select-icon[data-net="bep20"] {
  box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.9), 0 4px 12px rgba(38, 161, 123, 0.22);
}

.net-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
  color: #fff;
  background: #26a17b;
}

.net-tag[data-net="trc20"] {
  background: #ef4444;
}

.net-tag[data-net="erc20"] {
  background: #627eea;
}

.net-tag[data-net="bep20"] {
  background: #f0b90b;
  color: #1a1200;
}

.net-select-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.net-select-copy strong {
  font-size: 0.98rem;
  font-weight: 650;
}

.net-select-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.92;
}

.net-select-chevron {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(255, 255, 255, 0.35);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.net-select-trigger-row.is-open .net-select-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.net-select-menu {
  margin-top: 8px;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 16, 24, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  display: grid;
  gap: 2px;
}

.net-select-menu[hidden] {
  display: none !important;
}

.net-select-option {
  border-color: transparent;
  background: transparent;
  padding: 10px 12px;
}

.net-select-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.net-select-option.is-selected {
  background: rgba(255, 143, 60, 0.12);
}

.net-select-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0;
  position: relative;
}

.net-select-option.is-selected .net-select-check {
  opacity: 1;
}

.net-select-option.is-selected .net-select-check::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--accent-hot);
  border-bottom: 2px solid var(--accent-hot);
  transform: rotate(40deg);
}

.recv-sheet {
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 143, 60, 0.28);
  background: linear-gradient(180deg, rgba(255, 143, 60, 0.08), rgba(255, 143, 60, 0.03));
  overflow: hidden;
}

.recv-sheet[hidden] {
  display: none !important;
}

.recv-sheet-body {
  padding: 12px 14px 14px;
}

.recv-sheet-body[hidden] {
  display: none !important;
}

.recv-sheet-body .withdraw-fields {
  display: grid;
  gap: 10px;
}

.bind-net-label {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.bind-addr-label {
  display: block;
  margin: 0;
  font-size: 0.85rem;
  color: var(--dim);
}

.net-select.is-open .recv-sheet {
  border-color: var(--line-strong);
}

.recv-warn-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.recv-warn-modal[hidden] {
  display: none !important;
}

.recv-warn-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.recv-warn-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 20, 28, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.recv-warn-card h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.recv-warn-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.recv-warn-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.recharge-lead {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.recharge-lead-closed {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.withdraw-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.95fr);
  gap: 16px 20px;
  align-items: start;
  margin: 0 0 14px;
}

.withdraw-lead {
  display: grid;
  gap: 12px;
  margin: 0;
  align-content: stretch;
  min-height: 100%;
}

.wd-lead-row {
  display: grid;
  gap: 6px;
  padding: 14px 16px 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid rgba(255, 154, 46, 0.55);
}

.wd-lead-row.is-warn {
  border-left-color: #ff9a2e;
  background: rgba(255, 154, 46, 0.07);
}

.wd-lead-row.is-time {
  border-left-color: #3dd68c;
  background: rgba(61, 214, 140, 0.06);
}

.wd-lead-row.is-invite {
  border-left-color: #5b9dff;
  background: rgba(91, 157, 255, 0.06);
}

.wd-lead-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--acc, #ff9a2e);
}

.wd-lead-row.is-time .wd-lead-tag {
  color: #3dd68c;
}

.wd-lead-row.is-invite .wd-lead-tag {
  color: #7eb6ff;
}

.wd-lead-row p {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
}

.wd-lead-row p strong {
  color: var(--acc, #ff9a2e);
  font-weight: 700;
}

.withdraw-claim-gate-tip {
  color: #ffb020 !important;
  font-weight: 600;
  margin: 0;
}

.withdraw-arrive {
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.withdraw-arrive h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
}

.withdraw-arrive-tip {
  display: block;
  position: static;
  margin: 0 0 14px;
  padding: 0;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

.withdraw-arrive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  position: relative;
  clear: both;
}

.withdraw-arrive-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.arrive-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 154, 46, 0.16);
  color: var(--acc, #ff9a2e);
  font-size: 0.85rem;
  font-weight: 700;
}

.withdraw-arrive-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.withdraw-arrive-list strong {
  color: var(--text);
  font-weight: 650;
}

.withdraw-arrive-note {
  display: block;
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .withdraw-top {
    grid-template-columns: 1fr;
  }
}

.withdraw-cta-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.withdraw-cta-bar > p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* 覆盖全局 .btn.btn-hot { width:100% }，与文字同一行右对齐 */
#sec-withdraw .withdraw-cta-bar .btn.btn-hot.withdraw-cta-recharge {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 96px;
  min-height: 40px;
  margin: 0;
  padding: 0 22px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .withdraw-cta-bar {
    flex-wrap: wrap;
  }

  #sec-withdraw .withdraw-cta-bar .btn.btn-hot.withdraw-cta-recharge {
    margin-left: auto;
  }
}

.withdraw-bound-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 10px;
}

.withdraw-bound {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.withdraw-bound.is-empty {
  color: #f59e0b;
  font-family: inherit;
}

.withdraw-bound-row .recv-change-btn {
  position: static;
  transform: none;
}

.withdraw-fields {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.withdraw-fields > input[type="text"],
.withdraw-fields > input[type="password"],
.withdraw-fields > select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 10, 0.65);
  color: var(--text);
  font-size: 0.9rem;
}

.wd-wallet-pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wd-wallet-opt {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 10, 0.55);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wd-wallet-opt:hover {
  border-color: rgba(255, 154, 46, 0.45);
}

.wd-wallet-opt.is-on {
  border-color: rgba(255, 154, 46, 0.85);
  background: rgba(255, 154, 46, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 154, 46, 0.25);
}

.wd-wallet-opt-lab {
  font-size: 0.8rem;
  color: var(--muted);
}

.wd-wallet-opt-bal {
  font-size: 1.05rem;
  color: #3dd68c;
}

.wd-wallet-opt small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .wd-wallet-pick {
    grid-template-columns: 1fr;
  }
}

.withdraw-fields > input[type="text"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.withdraw-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.withdraw-row input {
  flex: 1;
  min-width: 140px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 10, 0.65);
  color: var(--text);
}

.withdraw-fx-estimate {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted, #9aa3b5);
  line-height: 1.4;
}

.swap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.swap-main-col {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.swap-card {
  display: grid;
  gap: 12px;
  position: relative;
}

.swap-wallets {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.swap-wallets-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.swap-wallets-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

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

.swap-wallet {
  display: grid;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.28);
}

.swap-wallet.is-total {
  border-color: rgba(255, 154, 46, 0.45);
  background: rgba(255, 154, 46, 0.08);
}

.swap-wallet-lab {
  color: var(--dim);
  font-size: 0.82rem;
}

.swap-wallet-val {
  color: var(--money, #3dd68c);
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--mono);
}

.swap-wallet small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.swap-transfer {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 154, 46, 0.35);
  background: rgba(255, 154, 46, 0.05);
}

.swap-transfer-head h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.swap-transfer-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.swap-transfer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.swap-transfer-row input {
  flex: 1 1 140px;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

@media (max-width: 720px) {
  .swap-wallet-grid {
    grid-template-columns: 1fr;
  }
}

.swap-field {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.28);
}

.swap-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--dim);
  font-size: 0.85rem;
}

.swap-max {
  border: 0;
  background: transparent;
  color: var(--acc);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.swap-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swap-coin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  flex: none;
}

.swap-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: right;
  outline: none;
}

.swap-avail {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font-size: 0.78rem;
}

.swap-avail b {
  color: var(--text);
  font-family: var(--mono);
}

.swap-flip {
  width: 42px;
  height: 42px;
  margin: -4px auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #12161f;
  color: var(--acc);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
}

.swap-rate {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 154, 46, 0.08);
  border: 1px solid rgba(255, 154, 46, 0.22);
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--text);
}

.swap-fee {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(55, 217, 154, 0.25);
  background: rgba(55, 217, 154, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
}

.swap-fee b {
  color: var(--money);
  font-family: var(--mono);
  font-weight: 600;
}

.swap-hint {
  margin: 0;
  color: var(--dim);
  font-size: 0.8rem;
}

.swap-menu {
  position: absolute;
  left: 14px;
  right: 14px;
  top: calc(100% - 6px);
  z-index: 8;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0e14;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.swap-menu[hidden] {
  display: none !important;
}

.swap-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.swap-menu button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.swap-menu .dim {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.swap-bags h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.swap-bags > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.swap-bag-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.swap-bag-row .meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.swap-bag-row .meta strong {
  font-size: 0.92rem;
}

.swap-bag-row .meta span {
  color: var(--dim);
  font-size: 0.75rem;
  font-family: var(--mono);
}

.swap-bag-row .amt {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--money);
  text-align: right;
}

@media (max-width: 960px) {
  .swap-grid {
    grid-template-columns: 1fr;
  }
}

.buy-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}

.buy-own-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.buy-own-row .dim {
  display: block;
  color: var(--dim);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.buy-own-row strong {
  font-family: var(--mono);
  font-size: 1.15rem;
}

.buy-own-exp {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.buy-own-earn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(55, 217, 154, 0.08);
  border: 1px solid rgba(55, 217, 154, 0.2);
  margin-bottom: 12px;
}

.buy-own-earn span {
  color: var(--muted);
  font-size: 0.88rem;
}

.buy-own-earn b {
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--money);
}

.buy-hist-link {
  border: 0;
  background: transparent;
  color: var(--acc);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.buy-includes h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.buy-includes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.buy-includes li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.buy-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--money);
  box-shadow: 0 0 0 3px rgba(55, 217, 154, 0.15);
}

.buy-calc {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.9fr);
  gap: 20px 24px;
  align-items: stretch;
}

.buy-calc-main {
  display: grid;
  gap: 10px;
  align-content: start;
}

.buy-slider-lab {
  color: var(--dim);
  font-size: 0.85rem;
  margin-top: 4px;
}

.buy-calc-main > .buy-slider-lab:first-child {
  margin-top: 0;
}

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

.buy-amount-row input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-family: var(--mono);
}

.buy-amount-row .btn {
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
}

.buy-cta-bar {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.buy-cta-bar .btn-hot {
  width: 100%;
  min-height: 48px;
}

.buy-th-readout {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.buy-th-readout strong {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.buy-th-readout span {
  color: var(--muted);
}

#buy-th-range {
  width: 100%;
  accent-color: var(--acc);
  height: 28px;
}

.buy-th-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buy-th-presets button {
  min-width: 96px;
  min-height: 52px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-align: left;
  line-height: 1.25;
}

.buy-th-presets button.is-on {
  color: var(--acc);
  border-color: rgba(255, 154, 46, 0.45);
  background: rgba(255, 154, 46, 0.1);
}

.buy-price-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.buy-price-block > div {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 64px;
}

.buy-price-block span {
  display: block;
  color: var(--dim);
  font-size: 0.72rem;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.buy-price-block strong {
  font-family: var(--mono);
  font-size: 0.98rem;
  font-weight: 650;
}

.buy-price-block strong.money {
  color: var(--money);
}

.buy-wallet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.buy-wallet-row b {
  font-family: var(--mono);
  color: var(--text);
  font-size: 1.05rem;
}

.buy-note {
  margin: 0;
  color: var(--dim);
  font-size: 0.8rem;
}

.buy-claim-card {
  margin-top: 4px;
}

.buy-claim-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.buy-claim-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.buy-claim-tip {
  margin: 0;
  color: var(--dim);
  font-size: 0.84rem;
}

.buy-proj {
  display: grid;
  gap: 12px;
  align-content: start;
}

.buy-proj-panel {
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.buy-proj h3 {
  margin: 0 0 12px;
  font-size: 0.98rem;
  font-weight: 650;
}

.buy-hr-wallet {
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(55, 217, 154, 0.1), rgba(0, 0, 0, 0.22) 55%),
    rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(55, 217, 154, 0.22);
  display: grid;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.buy-hr-wallet .swap-wallet-lab {
  color: var(--dim);
  font-size: 0.82rem;
}

.buy-hr-wallet .swap-wallet-val {
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--money);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.buy-hr-wallet small {
  color: var(--muted);
  font-size: 0.76rem;
  font-family: var(--mono);
}

.buy-proj ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.buy-proj li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(55, 217, 154, 0.07);
  border: 1px solid rgba(55, 217, 154, 0.18);
}

.buy-proj li span {
  color: var(--muted);
  font-size: 0.86rem;
}

.buy-proj li b {
  font-family: var(--mono);
  color: var(--money);
  font-size: 0.95rem;
  text-align: right;
}

.buy-history h3 {
  margin: 0 0 12px;
}

@media (max-width: 960px) {
  .buy-top,
  .buy-calc {
    grid-template-columns: 1fr;
  }

  .buy-proj {
    order: -1;
  }
}

@media (max-width: 520px) {
  .buy-price-block {
    grid-template-columns: 1fr;
  }

  .buy-amount-row {
    grid-template-columns: 1fr 1fr;
  }

  .buy-amount-row input {
    grid-column: 1 / -1;
  }
}

.settings-account {
  display: grid;
  gap: 0;
  margin-bottom: 4px;
}

.settings-account h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.settings-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.95rem;
}

.settings-account-row:last-of-type {
  border-bottom: 0;
}

.settings-account-row strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.settings-logout {
  margin-top: 14px;
  width: fit-content;
  min-height: 40px;
  padding: 0 18px;
}

.settings-totp-card {
  margin-bottom: 4px;
}

#set-totp-bound[hidden],
#set-totp-unbound[hidden] {
  display: none !important;
}

.settings-totp-setup {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-totp-setup[hidden] {
  display: none !important;
}

.settings-totp-qr {
  width: 168px;
  height: 168px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-sizing: border-box;
}

.settings-totp-qr img,
.settings-totp-qr canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.settings-totp-secret-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.settings-totp-secret-input {
  flex: 1 1 220px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.settings-foot-note {
  margin: 20px 0 8px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

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

.settings-card {
  display: grid;
  gap: 10px;
}

.settings-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.settings-hint {
  margin: 0 0 4px;
  color: var(--dim);
  font-size: 0.85rem;
}

.settings-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.settings-card input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  outline: none;
}

.settings-card input:focus {
  border-color: rgba(255, 154, 46, 0.45);
}

.settings-card .btn {
  margin-top: 6px;
  width: 100%;
  min-height: 46px;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.earn-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.earn-hero > p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 52ch;
}

.earn-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.earn-range-lab {
  color: var(--dim);
  font-size: 0.85rem;
}

.earn-range-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.25);
}

.earn-range-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.earn-range-tabs button.is-on {
  color: var(--acc);
  border: 1px solid rgba(255, 154, 46, 0.45);
  background: rgba(255, 154, 46, 0.08);
}

.earn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.earn-sum-lab {
  display: block;
  color: var(--dim);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.earn-sum-val {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--money);
  letter-spacing: -0.03em;
  line-height: 1;
}

.earn-sum-hint {
  margin: 10px 0 18px;
  color: var(--dim);
  font-size: 0.88rem;
}

.earn-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.earn-rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.earn-rows li span {
  color: var(--muted);
  font-size: 0.9rem;
}

.earn-rows li b {
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.earn-rows li small {
  grid-column: 1 / -1;
  color: var(--dim);
  font-size: 0.75rem;
}

.earn-rows li.is-net b,
.earn-rows b.money {
  color: var(--money);
}

.earn-bonus {
  margin: 14px 0 0;
  color: var(--acc-2);
  font-size: 0.88rem;
}

.earn-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 88px;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.earn-chart i {
  flex: 1;
  min-width: 0;
  border-radius: 3px 3px 0 0;
  background: rgba(255, 154, 46, 0.35);
}

.earn-chart i.is-best {
  background: linear-gradient(180deg, var(--money), #1f8f5f);
}

.earn-chart i[data-zero="true"] {
  background: rgba(255, 255, 255, 0.08);
  min-height: 4px !important;
}

.earn-gone h3,
.earn-coins h3,
.earn-payouts h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.earn-gone-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.earn-gone-actions .btn {
  width: 100%;
  min-height: 44px;
}

.earn-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
}

.earn-coins > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.earn-coin-list {
  display: grid;
  gap: 12px;
}

.earn-coin-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.earn-coin-row .cic {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
}

.earn-coin-mid {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.earn-coin-mid .bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.earn-coin-mid .bar > i,
.earn-coin-mid .bar > i.earn-bar-fill {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  transform-origin: left center;
  will-change: width, transform;
  transition: width 0.1s linear;
  opacity: 1 !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
  animation: earn-bar-bounce 1.05s ease-in-out infinite;
}

.earn-coin-mid .bar > i[data-zero="true"] {
  opacity: 0.85 !important;
  animation: earn-bar-bounce 1.2s ease-in-out infinite;
}

@keyframes earn-bar-bounce {
  0%,
  100% {
    transform: translateX(0) scaleX(1);
  }
  25% {
    transform: translateX(4px) scaleX(1.14);
  }
  50% {
    transform: translateX(-3px) scaleX(0.88);
  }
  75% {
    transform: translateX(3px) scaleX(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .earn-coin-mid .bar > i {
    animation: none;
    transition: none;
  }
}

.earn-coin-mid .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--dim);
  font-size: 0.78rem;
  font-family: var(--mono);
}

.earn-coin-pct {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  min-width: 5.5ch;
  text-align: right;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.earn-coin-pct.is-rolling {
  will-change: transform;
  animation: earn-pct-sway 1.25s ease-in-out infinite;
}

@keyframes earn-pct-sway {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(3px);
  }
  65% {
    transform: translateX(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .earn-coin-pct.is-rolling {
    animation: none;
  }
}

.earn-payout-box {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.earn-coin-orders-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.earn-coin-orders-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(72px, 0.6fr) minmax(110px, 0.9fr);
  gap: 10px;
  padding: 0 12px 8px;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.earn-coin-orders-head span:nth-child(2),
.earn-coin-orders-head span:nth-child(3) {
  text-align: right;
}

.earn-coin-orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.earn-coin-order {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(72px, 0.6fr) minmax(110px, 0.9fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(5, 6, 10, 0.4);
  border: 1px solid var(--line);
}

.earn-coin-order.is-empty {
  grid-template-columns: 1fr;
}

.eco-order {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.eco-order strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
}

.eco-sub {
  color: var(--dim);
  font-size: 0.75rem;
  font-family: var(--mono);
  line-height: 1.35;
}

.eco-status {
  color: var(--muted);
  font-size: 0.78rem;
}

.eco-profit {
  text-align: right;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
}

.eco-profit.is-pos {
  color: #3dd68c;
}

.eco-exp {
  text-align: right;
  display: grid;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
}

@media (max-width: 640px) {
  .earn-coin-orders-head {
    display: none;
  }

  .earn-coin-order {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .eco-profit,
  .eco-exp {
    text-align: left;
  }
}

.earn-ledger {
  max-height: 280px;
  overflow: auto;
}

@media (max-width: 960px) {
  .earn-grid,
  .earn-bottom {
    grid-template-columns: 1fr;
  }
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.ledger li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(5, 6, 10, 0.4);
  border: 1px solid var(--line);
}

.ledger .note {
  color: var(--text);
}

.ledger .meta {
  color: var(--dim);
  font-size: 0.82rem;
}

.ledger .amt {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ledger .amt.pos {
  color: var(--green);
}

.ledger .amt.neg {
  color: #ff9b9b;
}

.dash-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 154, 46, 0.35);
  background: linear-gradient(135deg, rgba(255, 154, 46, 0.12), rgba(255, 154, 46, 0.04));
}

.dash-notice[hidden] {
  display: none !important;
}

.dash-notice-inner {
  flex: 1;
  min-width: 0;
}

.dash-notice-inner strong {
  display: block;
  margin: 0 0 4px;
  color: var(--acc, #ff9a2e);
  font-size: 0.92rem;
}

.dash-notice-inner p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.dash-notice-inner a {
  color: var(--acc, #ff9a2e);
  text-decoration: underline;
  word-break: break-all;
}

.dash-notice-inner img {
  display: block;
  max-width: min(100%, 420px);
  width: auto;
  height: auto;
  margin: 10px 0 0;
  border-radius: 10px;
  cursor: zoom-in;
}

.dash-notice-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
  cursor: zoom-out;
}

.dash-notice-lightbox[hidden] {
  display: none !important;
}

.dash-notice-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.dash-notice-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.dash-notice-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(12, 14, 20, 0.96);
  border: 1px solid rgba(255, 143, 60, 0.4);
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.toast[hidden] {
  display: none;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.admin-table th {
  color: var(--dim);
  font-weight: 500;
}

.admin-table .btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.85rem;
}

.withdraw-history,
.recharge-history,
.swap-history {
  margin-top: 16px;
  display: grid;
  gap: 0;
}

.swap-history {
  margin-top: 18px;
}

.swap-history-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.swap-history-desc {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

#sec-swap .swap-table {
  width: 100%;
  min-width: 520px;
}

#sec-withdraw .dash-pager,
#sec-recharge .dash-pager,
#sec-swap .dash-pager,
#buy-claim-card .dash-pager,
#sec-ledger .dash-pager,
.earn-payouts .dash-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  flex-wrap: wrap;
  padding: 12px 2px 2px;
  border-top: 1px solid var(--line);
}

#sec-withdraw .dash-pager .pager-meta,
#sec-recharge .dash-pager .pager-meta,
#sec-swap .dash-pager .pager-meta,
#buy-claim-card .dash-pager .pager-meta,
#sec-ledger .dash-pager .pager-meta,
.earn-payouts .dash-pager .pager-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

#sec-withdraw .dash-pager .pager-controls,
#sec-recharge .dash-pager .pager-controls,
#sec-swap .dash-pager .pager-controls,
#buy-claim-card .dash-pager .pager-controls,
#sec-ledger .dash-pager .pager-controls,
.earn-payouts .dash-pager .pager-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

#sec-withdraw .dash-pager select,
#sec-recharge .dash-pager select,
#sec-swap .dash-pager select,
#buy-claim-card .dash-pager select,
#sec-ledger .dash-pager select,
.earn-payouts .dash-pager select {
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.84rem;
}

#sec-withdraw .dash-pager .btn,
#sec-recharge .dash-pager .btn,
#sec-swap .dash-pager .btn,
#buy-claim-card .dash-pager .btn,
#sec-ledger .dash-pager .btn,
.earn-payouts .dash-pager .btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.82rem;
}

#sec-withdraw .dash-pager .btn[disabled],
#sec-recharge .dash-pager .btn[disabled],
#sec-swap .dash-pager .btn[disabled],
#buy-claim-card .dash-pager .btn[disabled],
#sec-ledger .dash-pager .btn[disabled],
.earn-payouts .dash-pager .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 提现记录：铺满宽度，五列均匀对称 */
#sec-withdraw .withdraw-table-wrap {
  margin-top: 0;
  width: 100%;
  overflow-x: auto;
}

#sec-withdraw .withdraw-table {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: collapse;
}

#sec-withdraw .withdraw-table th,
#sec-withdraw .withdraw-table td {
  width: 20%;
  padding: 14px 12px;
  vertical-align: middle;
  word-break: break-word;
}

#sec-withdraw .withdraw-table th:nth-child(1),
#sec-withdraw .withdraw-table td:nth-child(1) {
  text-align: left;
}

#sec-withdraw .withdraw-table th:nth-child(2),
#sec-withdraw .withdraw-table td:nth-child(2),
#sec-withdraw .withdraw-table th:nth-child(3),
#sec-withdraw .withdraw-table td:nth-child(3),
#sec-withdraw .withdraw-table th:nth-child(4),
#sec-withdraw .withdraw-table td:nth-child(4) {
  text-align: center;
}

#sec-withdraw .withdraw-table th:nth-child(5),
#sec-withdraw .withdraw-table td:nth-child(5) {
  text-align: right;
}

#sec-withdraw .withdraw-table tbody td[colspan] {
  text-align: center;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(255, 143, 60, 0.14);
  color: var(--accent-hot);
}

.badge.off {
  background: rgba(255, 100, 100, 0.15);
  color: #ff9b9b;
}

.invite-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.9fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
  overflow: visible;
}

@media (max-width: 860px) {
  .invite-layout {
    grid-template-columns: 1fr;
  }
}

.invite-box {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.invite-recv {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 143, 60, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(22, 25, 34, 0.92), rgba(10, 12, 18, 0.88));
  overflow: visible;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.invite-recv-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.invite-recv-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.invite-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.invite-code-row .dim {
  display: block;
  color: var(--dim);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.invite-code-row strong {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--accent-hot);
}

#invite-link {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 10, 0.55);
  color: var(--muted);
}

.rate-readonly {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.4);
  color: var(--muted);
  font-size: 0.95rem;
}

.rate-input {
  width: 88px;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 10, 0.55);
  color: var(--text);
}

.rate-hint {
  margin: 0;
  color: var(--dim);
  font-size: 0.9rem;
}

.rate-hint .green,
.rate-hint strong.green {
  color: var(--green);
}

.recharge-net-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.net-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
}

.net-tab.is-active {
  border-color: var(--accent);
  background: rgba(255, 143, 60, 0.14);
  color: var(--accent-hot);
}

.net-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.recharge-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .recharge-pickers {
    grid-template-columns: 1fr;
  }
}

.recharge-picker {
  position: relative;
  display: grid;
  gap: 8px;
}

.recharge-picker-label {
  font-size: 0.85rem;
  color: var(--dim);
}

.recharge-picker-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(28, 32, 42, 0.95), rgba(12, 14, 20, 0.92));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recharge-picker-trigger:hover,
.recharge-picker.is-open .recharge-picker-trigger {
  border-color: rgba(255, 143, 60, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 143, 60, 0.15);
}

.recharge-picker-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.recharge-picker-icon img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
}

.recharge-picker-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.recharge-picker-copy strong {
  font-size: 0.98rem;
  font-weight: 650;
}

.recharge-picker-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-picker.is-open .net-select-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.recharge-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 16, 24, 0.98);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 2px;
}

.recharge-picker-menu[hidden] {
  display: none !important;
}

.recharge-picker-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.recharge-picker-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.recharge-picker-option.is-selected {
  background: rgba(255, 143, 60, 0.12);
}

.recharge-picker-option .net-select-check {
  opacity: 0;
}

.recharge-picker-option.is-selected .net-select-check {
  opacity: 1;
}

.recharge-picker-option:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.recharge-amount-label {
  display: block;
  margin: 4px 0 10px;
  font-size: 0.9rem;
  color: var(--dim);
}

.rc-amount-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 10, 0.55);
}

.rc-dollar {
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 600;
}

.rc-amount-field input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 650;
  outline: none;
}

.rc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.rc-presets button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  cursor: pointer;
}

.rc-presets button.is-on,
.rc-presets button:hover {
  border-color: rgba(255, 154, 46, 0.55);
  color: var(--text);
}

.rc-send-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 154, 46, 0.45);
  background: rgba(255, 154, 46, 0.05);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.rc-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.rc-copy-btn:hover {
  color: var(--acc, #ff9a2e);
  background: rgba(255, 154, 46, 0.12);
}

.rc-rate-note {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.rc-warns {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.rc-warns p {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid #e25555;
  color: #ff8e8e;
  font-size: 0.88rem;
  line-height: 1.5;
}

.rc-confirm-box {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px dashed rgba(255, 154, 46, 0.55);
  background: rgba(255, 154, 46, 0.04);
}

.rc-confirm-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.rc-confirm-box .btn.btn-hot {
  width: 100%;
  min-height: 48px;
}

.recharge-pay-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.45);
}

.recharge-pay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.recharge-status {
  font-size: 0.82rem;
  color: var(--accent-hot);
}

.recharge-pay-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  margin: 8px 0 12px;
  letter-spacing: 0.02em;
}

.recharge-pay-amount small {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.recharge-pay-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .recharge-pay-main {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.recharge-qr-wrap {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.recharge-qr {
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.recharge-qr img,
.recharge-qr canvas,
.recharge-qr table {
  display: block;
  width: 148px;
  height: 148px;
}

.recharge-qr-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  padding: 12px;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #1a1d24;
  font-weight: 600;
}

.recharge-qr-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.recharge-pay-side {
  min-width: 0;
  width: 100%;
}

.recharge-addr-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.recharge-addr-row input {
  flex: 1 1 220px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 10, 0.55);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.scanning-hint {
  margin: 0;
  color: var(--accent-hot);
  font-size: 0.92rem;
}

.recharge-pay-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.recharge-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.85rem;
}

.team-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.team-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.team-tabs button.is-active {
  border-color: var(--accent);
  background: rgba(255, 143, 60, 0.14);
  color: var(--accent-hot);
}


/* 用户后台：客服按钮固定右下角 */
.dash-app .support-fab {
  top: auto;
  right: 22px;
  bottom: 24px;
  transform: none;
}

.dash-app .support-fab:hover {
  transform: scale(1.05);
}

.dash-app .support-fab[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— 手机底部导航 —— */
.mob-tabbar {
  display: none;
}

.mob-more {
  display: none;
}

@media (max-width: 900px) {
  .mob-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    min-height: 58px;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 10, 14, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
  }

  .mob-tabbar[hidden] {
    display: none !important;
  }

  .mob-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--dim, #8b93a7);
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 4px 2px;
    font: inherit;
    font-size: 0.68rem;
    cursor: pointer;
    position: relative;
  }

  .mob-tab svg {
    width: 22px;
    height: 22px;
  }

  .mob-tab.is-active {
    color: var(--accent, #ff8f3c);
  }

  .mob-tab.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent, #ff8f3c);
    transform: translateX(-50%);
  }

  .dash-main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .dash-menu-btn {
    display: none !important;
  }

  .dash-app .support-fab {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .mob-more {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
  }

  .mob-more[hidden] {
    display: none !important;
  }

  .mob-more-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
  }

  .mob-more-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    background: #141820;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  }

  .mob-more-handle {
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.18);
    margin: 2px auto 14px;
  }

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

  .mob-more-item {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text, #fff);
    border-radius: 14px;
    min-height: 72px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    font: inherit;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
  }

  .mob-more-item svg {
    width: 22px;
    height: 22px;
    color: var(--accent, #ff8f3c);
  }

  .mob-more-user {
    margin-top: 14px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .mob-more-user-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .mob-more-user-meta strong {
    font-size: 0.92rem;
  }

  .mob-more-user-meta small {
    color: var(--dim, #8b93a7);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mob-more-close {
    width: 100%;
    margin-top: 12px;
    min-height: 46px;
  }
}

@media (min-width: 860px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .dash-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 16px;
  }

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