* {
  box-sizing: border-box;
}

html {
  background: #030712;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #030712;
  color: #e5edf8;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(37, 99, 235, .16), transparent 34%),
    radial-gradient(circle at 78% 38%, rgba(245, 158, 11, .09), transparent 30%),
    linear-gradient(135deg, #030712 0%, #06111f 55%, #030712 100%);
  z-index: -2;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .55;
}

.top-header {
  height: 104px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 390px 1fr 420px;
  align-items: center;
  background: rgba(3, 7, 18, .94);
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-box {
  width: 64px;
  height: 64px;
  border: 1px solid #f59e0b;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(2, 6, 23, .86);
  box-shadow: 0 0 24px rgba(245, 158, 11, .22);
}

.logo-box::before,
.logo-box::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #f59e0b;
}

.logo-box::before {
  right: -4px;
  top: -4px;
}

.logo-box::after {
  left: -4px;
  bottom: -4px;
}

.logo-box span {
  color: #38bdf8;
  font-size: 28px;
  text-shadow: 0 0 18px rgba(56, 189, 248, .8);
}
.logo-image-box {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-image-box::before,
.logo-image-box::after {
  display: none;
}

.logo-image-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.system-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #f8fafc;
}

.system-subtitle {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 13px;
  letter-spacing: 3px;
}

.nav {
  height: 100%;
  display: flex;
  justify-content: center;
  gap: 54px;
  color: #64748b;
  font-weight: 800;
}

.nav span {
  display: flex;
  align-items: center;
  height: 100%;
  border-bottom: 2px solid transparent;
}

.nav .active {
  color: #fbbf24;
  border-color: #f59e0b;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.account {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
}

.download-btn {
  text-decoration: none;
  border: 1px solid rgba(245, 158, 11, .75);
  color: #fbbf24;
  padding: 13px 32px;
  background: rgba(245, 158, 11, .08);
  font-weight: 900;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .2);
  background: rgba(15, 23, 42, .6);
}

.status-bar {
  min-height: 66px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 155px 180px 270px 1fr 460px;
  align-items: center;
  gap: 18px;
  background: rgba(7, 14, 27, .88);
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.status-item,
.runtime {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 14px;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.idle-dot {
  background: #fb7185;
  box-shadow: 0 0 14px #fb7185;
}

.run-dot {
  background: #f59e0b;
  box-shadow: 0 0 14px #f59e0b;
}

.runtime strong {
  color: #fbbf24;
  letter-spacing: 1px;
}

.stats {
  display: flex;
  align-items: center;
  gap: 26px;
}

.stat-card small {
  color: #64748b;
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.stat-card b {
  color: #f8fafc;
  font-size: 27px;
  letter-spacing: 1px;
}

.ticker {
  height: 39px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, .38);
  background: rgba(2, 6, 23, .78);
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: #dbeafe;
  font-size: 13px;
}

.ticker::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: #94a3b8;
}

.mode-switch {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

button {
  cursor: pointer;
}

.small-btn,
.safe-btn,
.start-run-btn {
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .24);
  background: rgba(15, 23, 42, .85);
  color: #94a3b8;
  padding: 0 17px;
  font-weight: 800;
}

.small-btn.active {
  background: #f59e0b;
  color: #111827;
  border-color: #f59e0b;
}

.safe-btn {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, .58);
}

.start-run-btn {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, .75);
}

.start-run-btn.stop {
  color: #fb7185;
  border-color: rgba(244, 63, 94, .72);
}

.wallet-grid {
  padding: 18px 28px 40px;
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 16px;
}

.wallet-card {
  height: 300px;
  background: rgba(4, 10, 21, .94);
  border: 1px solid rgba(59, 130, 246, .18);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.wallet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(59,130,246,.07), transparent 42%, rgba(245,158,11,.035)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(148, 163, 184, .018) 23px);
  pointer-events: none;
}

.wallet-head {
  position: relative;
  z-index: 1;
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.wallet-title {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.wallet-mask {
  margin-top: 7px;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
}

.wallet-state {
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(148,163,184,.12);
  color: #cbd5e1;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 4px;
}

.wallet-state.running {
  border-color: rgba(245,158,11,.4);
  background: rgba(245,158,11,.12);
  color: #fbbf24;
}

.wallet-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 10px 0 12px;
}

.wallet-actions button {
  height: 38px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(15,23,42,.82);
  color: #cbd5e1;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.wallet-actions button::before {
  content: "◆";
  color: #f59e0b;
  margin-right: 5px;
  font-size: 10px;
}

.wallet-actions button.doing {
  color: #111827;
  background: #f59e0b;
  border-color: #f59e0b;
}

.asset-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

.asset-row {
  height: 47px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15,23,42,.78);
  border: 1px solid rgba(148,163,184,.10);
  border-radius: 4px;
  padding: 0 10px;
}

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

.coin-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(96,165,250,.24);
  color: #38bdf8;
  font-size: 13px;
  flex: 0 0 auto;
}

.coin-name {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.coin-name span {
  margin-left: 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  background: rgba(148,163,184,.10);
  padding: 2px 4px;
  border-radius: 3px;
}

.coin-sub {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.asset-right {
  text-align: right;
}

.asset-right b {
  display: block;
  color: #f8fafc;
  font-size: 13px;
}

.asset-right small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.loading {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 1280px) {
  .top-header {
    grid-template-columns: 330px 1fr 310px;
  }

  .wallet-grid {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
  }

  .status-bar {
    grid-template-columns: 135px 150px 240px 1fr;
  }

  .mode-switch {
    display: none;
  }
}

@media (max-width: 980px) {
  .top-header {
    height: auto;
    padding: 18px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav {
    justify-content: flex-start;
    height: auto;
    gap: 24px;
  }

  .nav span {
    height: auto;
    padding-bottom: 10px;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .status-bar {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}



/* RUNNING_ANIMATION_PATCH_START */

.wallet-card.active {
  border-color: rgba(245, 158, 11, .38);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, .08) inset,
    0 0 22px rgba(37, 99, 235, .12);
  animation: walletBreath 2.2s ease-in-out infinite;
}

.wallet-card.active.flash {
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, .22) inset,
    0 0 28px rgba(245, 158, 11, .16);
}

.wallet-card.active::after {
  content: "";
  position: absolute;
  left: -120%;
  top: 0;
  width: 80%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(56, 189, 248, .08), transparent);
  animation: scanLight 2.6s linear infinite;
  pointer-events: none;
}

.wallet-state.running {
  animation: badgeBlink 1s linear infinite;
}

.run-dot {
  animation: dotPulse 1s ease-in-out infinite;
}

.asset-row.active {
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.asset-row.jumping {
  transform: translateX(3px);
  border-color: rgba(56, 189, 248, .38);
  background: rgba(15, 23, 42, .95);
}

.asset-amount {
  transition: color .25s ease, text-shadow .25s ease;
}

.asset-amount.hot {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, .55);
}

.coin-icon {
  animation: coinIdle 2.8s ease-in-out infinite;
}

.wallet-card.active .coin-icon {
  animation: coinPulse 1.4s ease-in-out infinite;
}

.ticker {
  position: relative;
}

.ticker::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, .16), transparent);
  animation: tickerMove 2.8s linear infinite;
}

@keyframes walletBreath {
  0%, 100% {
    border-color: rgba(245, 158, 11, .28);
  }
  50% {
    border-color: rgba(56, 189, 248, .36);
  }
}

@keyframes scanLight {
  0% {
    left: -120%;
  }
  100% {
    left: 140%;
  }
}

@keyframes badgeBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .55;
  }
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px #f59e0b;
  }
  50% {
    transform: scale(1.5);
    box-shadow: 0 0 22px #f59e0b;
  }
}

@keyframes coinIdle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes coinPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(56, 189, 248, 0);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 14px rgba(56, 189, 248, .35);
  }
}

@keyframes tickerMove {
  0% {
    left: -30%;
  }
  100% {
    left: 110%;
  }
}

/* RUNNING_ANIMATION_PATCH_END */



/* RUN_GRID_ANIMATION_PATCH_START */

.run-grid {
  padding: 18px 28px 40px;
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 16px;
}

.run-card {
  height: 292px;
  background: rgba(4, 10, 21, .94);
  border: 1px solid rgba(59, 130, 246, .18);
  border-radius: 10px;
  padding: 16px 16px 60px;
  position: relative;
  overflow: hidden;
}

.run-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(59,130,246,.07), transparent 42%, rgba(245,158,11,.04)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(148, 163, 184, .018) 23px);
  pointer-events: none;
}

.run-card.pulse {
  border-color: rgba(56, 189, 248, .35);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, .08) inset,
    0 0 22px rgba(37, 99, 235, .18);
}

.run-card.waiting {
  border-color: rgba(245, 158, 11, .3);
}

.run-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.run-title {
  color: #f8fafc;
  font-weight: 900;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.square-dot {
  width: 10px;
  height: 10px;
  border: 2px solid #f59e0b;
  display: inline-block;
}

.run-tag {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.run-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(148,163,184,.14);
  padding-bottom: 8px;
  font-size: 12px;
  color: #64748b;
}

.run-tabs span.active {
  color: #f59e0b;
  border-bottom: 1px solid #f59e0b;
  padding-bottom: 7px;
  margin-bottom: -9px;
}

.run-cells {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.run-cell {
  height: 26px;
  border: 1px solid rgba(203, 213, 225, .42);
  background: rgba(15, 23, 42, .72);
  border-radius: 3px;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  padding: 0 7px;
  overflow: hidden;
  white-space: nowrap;
  transition: all .22s ease;
}

.run-cell span {
  color: #94a3b8;
  margin-right: 4px;
  font-size: 10px;
}

.run-cell b {
  color: #e5edf8;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.run-cell.empty {
  border-color: rgba(148,163,184,.14);
  color: #334155;
  background: rgba(15, 23, 42, .35);
}

.run-cell.empty b {
  color: transparent;
}

.run-cell.hit {
  border-color: rgba(255,255,255,.95);
  background: rgba(15, 23, 42, .98);
  box-shadow: 0 0 10px rgba(255,255,255,.25);
  transform: scale(1.04);
}

.run-cell.scan {
  border-color: rgba(56,189,248,.85);
  box-shadow: 0 0 14px rgba(56,189,248,.28);
}

.run-cell.clear {
  opacity: .45;
}

.run-action {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 39px;
  border: 0;
  background: #2557d6;
  color: #fff;
  font-weight: 900;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(37, 87, 214, .28);
  transition: all .25s ease;
}

.run-action.checking {
  background: #0891b2;
  box-shadow: 0 0 18px rgba(8,145,178,.45);
}

.run-action.done {
  background: #f59e0b;
  color: #111827;
}

@media (max-width: 1280px) {
  .run-grid {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
  }
}

@media (max-width: 980px) {
  .run-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

/* RUN_GRID_ANIMATION_PATCH_END */





/* WALLET_FLASH_PANEL_PATCH_START */

.wallet-flash-panel {
  position: absolute;
  z-index: 8;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(.98);
  background:
    radial-gradient(circle at 72% 18%, rgba(245, 158, 11, .06), transparent 35%),
    linear-gradient(180deg, rgba(5, 11, 23, .98), rgba(2, 6, 14, .98));
  border-radius: 10px;
  padding: 18px 16px 14px;
  transition: opacity .18s ease, transform .18s ease;
  overflow: hidden;
}

.wallet-flash-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(245, 158, 11, .025) 20px),
    linear-gradient(90deg, transparent, rgba(56, 189, 248, .05), transparent);
  pointer-events: none;
}

.run-card.wallet-showing .wallet-flash-panel {
  opacity: 1;
  transform: scale(1);
}

.snapshot-head {
  position: relative;
  z-index: 1;
  height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.snapshot-head p {
  margin: 0;
  color: #9fb3d1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.snapshot-head h4 {
  margin: 8px 0 0;
  color: #f8fafc;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 1px;
}

.snapshot-head em {
  font-style: normal;
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, .45);
  background: rgba(22, 163, 74, .16);
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
}

.snapshot-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 8px 0 13px;
}

.snapshot-actions span {
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .12);
  background: rgba(15, 23, 42, .82);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
}

.snapshot-actions span::before {
  content: "◆";
  color: #f59e0b;
  margin-right: 4px;
  font-size: 9px;
}

.snapshot-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

.snapshot-asset-row {
  height: 43px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, .82);
  border: 1px solid rgba(148, 163, 184, .10);
  border-radius: 4px;
  padding: 0 10px;
}

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

.snapshot-coin {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, .2);
  border: 1px solid rgba(96, 165, 250, .25);
  color: #38bdf8;
  font-size: 12px;
}

.snapshot-asset-left b {
  color: #f8fafc;
  font-size: 13px;
}

.snapshot-asset-left b span {
  color: #64748b;
  font-size: 10px;
  margin-left: 4px;
  background: rgba(148, 163, 184, .10);
  padding: 2px 4px;
  border-radius: 3px;
}

.snapshot-asset-left p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 10px;
}

.snapshot-asset-right {
  text-align: right;
}

.snapshot-asset-right strong {
  display: block;
  color: #f8fafc;
  font-size: 12px;
}

.snapshot-asset-right small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.snapshot-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, .65);
  animation: snapshotProgress 1.6s linear infinite;
}

@keyframes snapshotProgress {
  0% {
    transform: translateX(-70%);
  }
  100% {
    transform: translateX(70%);
  }
}

/* WALLET_FLASH_PANEL_PATCH_END */





/* VERIFY_FAIL_PANEL_PATCH_START */

.verify-fail-panel {
  position: absolute;
  z-index: 9;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  background: rgba(88, 18, 28, .64);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  transition: opacity .18s ease;
}

.verify-fail-panel div {
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, .85);
  background: rgba(127, 29, 29, .42);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
}

.run-card.verify-fail-showing .verify-fail-panel {
  opacity: 1;
}

/* VERIFY_FAIL_PANEL_PATCH_END */



/* SPEED_TUNE_PATCH_START */

.run-cell {
  transition: all .12s ease !important;
}

.run-cell.hit {
  transform: scale(1.025) !important;
  box-shadow: 0 0 8px rgba(255,255,255,.20) !important;
}

.run-cell.scan {
  box-shadow: 0 0 10px rgba(56,189,248,.22) !important;
}

.run-action {
  transition: all .14s ease !important;
}

.wallet-flash-panel {
  transition: opacity .12s ease, transform .12s ease !important;
}

.snapshot-progress {
  animation-duration: .9s !important;
}

.verify-fail-panel {
  transition: opacity .12s ease !important;
}

.run-card.pulse {
  transition: border-color .12s ease, box-shadow .12s ease !important;
}

/* SPEED_TUNE_PATCH_END */

/* FRONT_GRID_COLUMNS_PATCH_START */

.wallet-grid.cols-3,
.run-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
}

.wallet-grid.cols-4,
.run-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(250px, 1fr)) !important;
}

.wallet-grid.cols-5,
.run-grid.cols-5 {
  grid-template-columns: repeat(5, minmax(220px, 1fr)) !important;
}

.wallet-grid.cols-6,
.run-grid.cols-6 {
  grid-template-columns: repeat(6, minmax(190px, 1fr)) !important;
}

@media (max-width: 1380px) {
  .wallet-grid.cols-6,
  .run-grid.cols-6 {
    grid-template-columns: repeat(5, minmax(180px, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  .wallet-grid.cols-5,
  .wallet-grid.cols-6,
  .run-grid.cols-5,
  .run-grid.cols-6 {
    grid-template-columns: repeat(4, minmax(190px, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .wallet-grid.cols-3,
  .wallet-grid.cols-4,
  .wallet-grid.cols-5,
  .wallet-grid.cols-6,
  .run-grid.cols-3,
  .run-grid.cols-4,
  .run-grid.cols-5,
  .run-grid.cols-6 {
    grid-template-columns: 1fr !important;
  }
}

/* FRONT_GRID_COLUMNS_PATCH_END */

/* FRONT_TOP_RIGHT_FIX_START */

/* 顶部重新收紧：保持三栏，但不要硬撑过宽 */
.top-header {
  height: 92px !important;
  padding: 0 26px !important;
  grid-template-columns: 420px minmax(260px, 1fr) 430px !important;
  gap: 18px !important;
}

/* 左侧品牌区 */
.brand {
  gap: 14px !important;
}

.logo-box {
  width: 56px !important;
  height: 56px !important;
}

.logo-box span {
  font-size: 24px !important;
}

.system-title {
  font-size: 26px !important;
  letter-spacing: 1px !important;
}

.system-subtitle {
  margin-top: 6px !important;
  font-size: 12px !important;
  letter-spacing: 2px !important;
}

/* 中间导航 */
.nav {
  gap: 46px !important;
}

/* 右上角账号和按钮区域 */
.header-actions {
  min-width: 0 !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.account {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 120px !important;
  max-width: 150px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.download-btn {
  min-width: 116px !important;
  height: 38px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.icon-btn {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
}

/* 状态栏重新分配：不要再强行给右侧 520px */
.status-bar {
  min-height: 58px !important;
  padding: 0 26px !important;
  grid-template-columns: 132px 150px 220px minmax(260px, 1fr) auto !important;
  gap: 14px !important;
}

.status-item,
.runtime {
  font-size: 13px !important;
}

.stats {
  gap: 22px !important;
  min-width: 0 !important;
}

.stat-card small {
  font-size: 11px !important;
}

.stat-card b {
  font-size: 23px !important;
}

/* 中间日志状态条更像系统提示条 */
.ticker {
  height: 34px !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  border-color: rgba(245, 158, 11, .28) !important;
  background: rgba(2, 6, 23, .62) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 右侧操作按钮区 */
.mode-switch {
  min-width: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.small-btn,
.safe-btn,
.start-run-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  height: 34px !important;
  padding: 0 13px !important;
}

.small-btn {
  min-width: 48px !important;
}

.safe-btn {
  min-width: 106px !important;
}

.start-run-btn {
  min-width: 88px !important;
}

/* 中等屏幕继续压缩，但不破版 */
@media (max-width: 1500px) {
  .top-header {
    grid-template-columns: 370px minmax(220px, 1fr) 390px !important;
    padding: 0 22px !important;
  }

  .system-title {
    font-size: 24px !important;
  }

  .system-subtitle {
    letter-spacing: 1px !important;
  }

  .nav {
    gap: 34px !important;
  }

  .status-bar {
    grid-template-columns: 120px 140px 200px minmax(220px, 1fr) auto !important;
    padding: 0 22px !important;
    gap: 12px !important;
  }

  .small-btn {
    min-width: 44px !important;
    padding: 0 11px !important;
  }

  .safe-btn {
    min-width: 98px !important;
    padding: 0 12px !important;
  }

  .start-run-btn {
    min-width: 82px !important;
    padding: 0 12px !important;
  }
}

/* 窄屏时改为上下排列，避免挤压 */
@media (max-width: 1180px) {
  .top-header {
    grid-template-columns: 1fr !important;
    height: auto !important;
    gap: 14px !important;
    padding: 18px 22px !important;
  }

  .nav {
    justify-content: flex-start !important;
    height: auto !important;
  }

  .nav span {
    height: 34px !important;
  }

  .header-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .status-bar {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 14px 22px !important;
  }

  .mode-switch {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}

/* FRONT_TOP_RIGHT_FIX_END */

/* USER_DASHBOARD_PAGE_START */

.nav span {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.dashboard-page {
  padding: 40px 28px 60px;
  min-height: calc(100vh - 170px);
}

.dashboard-wrap {
  width: min(860px, calc(100vw - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.dash-card {
  position: relative;
  min-height: 126px;
  padding: 22px;
  background: rgba(7, 14, 29, .76);
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(15, 23, 42, .18);
}

.dash-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, .06), transparent 48%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(148, 163, 184, .018) 23px);
  pointer-events: none;
}

.big-card {
  min-height: 150px;
}

.dash-card-title {
  position: relative;
  z-index: 1;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.dash-card-title span {
  color: #cbd5e1;
  font-size: 11px;
}

.hash-value {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.hash-value b {
  color: #f8fafc;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 1px;
}

.hash-value em {
  color: #f59e0b;
  font-style: normal;
  font-size: 15px;
  font-weight: 900;
}

.hash-bar {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  height: 4px;
  background: rgba(148, 163, 184, .18);
  border-radius: 99px;
  overflow: hidden;
}

.hash-bar i {
  display: block;
  width: 76%;
  height: 100%;
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, .65);
}

.dash-small-row {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 10px;
}

.dash-small-row b {
  color: #64748b;
}

.runtime-value,
.history-value {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  color: #f8fafc;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
}

.dash-desc {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #64748b;
  font-size: 11px;
}

.running-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 12px;
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, .55);
  background: rgba(16, 185, 129, .10);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 3px;
  font-weight: 900;
}

.dash-link {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #38bdf8;
  font-size: 11px;
}

.success-card {
  min-height: 130px;
}

.success-value {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.success-value b {
  color: #10b981;
  font-size: 34px;
  line-height: 1;
}

.success-value span {
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.5;
}

.balance-card {
  grid-column: span 2;
  min-height: 130px;
}

.balance-value {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.balance-value b {
  color: #f59e0b;
  font-size: 34px;
  line-height: 1;
}

.balance-value span {
  color: #cbd5e1;
  font-size: 18px;
  font-weight: 900;
}

.dash-warning {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #fbbf24;
  font-size: 11px;
}

.watch-card {
  grid-column: 1 / -1;
  min-height: 150px;
}

.watch-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.watch-head button {
  border: 1px solid rgba(168, 85, 247, .45);
  background: rgba(88, 28, 135, .32);
  color: #d8b4fe;
  border-radius: 3px;
  height: 25px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 900;
}

.watch-table {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

.watch-row {
  display: grid;
  grid-template-columns: 1fr 2.4fr 1fr 1fr;
  gap: 10px;
  min-height: 32px;
  align-items: center;
  color: #94a3b8;
  font-size: 11px;
  border-bottom: 1px solid rgba(148, 163, 184, .06);
}

.watch-th {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.empty-watch {
  padding: 22px 0 10px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.dash-icon {
  position: absolute;
  right: 18px;
  top: 26px;
  z-index: 0;
  font-size: 66px;
  line-height: 1;
  opacity: .08;
  color: #f59e0b;
  font-weight: 900;
}

.chip-icon {
  color: #f59e0b;
}

.circle-icon {
  color: #f59e0b;
  font-size: 78px;
}

.wave-icon {
  color: #38bdf8;
  font-size: 78px;
}

.trophy-icon {
  color: #10b981;
}

.wallet-icon {
  color: #f59e0b;
  font-size: 82px;
}

.dashboard-page.active-animate .hash-bar i {
  animation: dashHashMove 1.4s ease-in-out infinite;
}

.dashboard-page.active-animate .dash-card {
  animation: dashCardBreath 2.4s ease-in-out infinite;
}

@keyframes dashHashMove {
  0%, 100% {
    width: 58%;
  }
  50% {
    width: 91%;
  }
}

@keyframes dashCardBreath {
  0%, 100% {
    border-color: rgba(148, 163, 184, .12);
  }
  50% {
    border-color: rgba(56, 189, 248, .22);
  }
}

@media (max-width: 1180px) {
  .dashboard-wrap {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .balance-card,
  .watch-card {
    grid-column: auto;
  }

  .watch-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
}

/* USER_DASHBOARD_PAGE_END */

/* DASHBOARD_BIG_BACKGROUND_PATCH_START */

/* 全站背景增强：所有前台页面都能看到科技网格/星点/线条感 */
.page-bg {
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, .20), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(14, 165, 233, .13), transparent 30%),
    radial-gradient(circle at 70% 76%, rgba(124, 58, 237, .13), transparent 32%),
    linear-gradient(135deg, #020712 0%, #07111f 48%, #020712 100%) !important;
}

.page-bg::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image:
    linear-gradient(rgba(56, 189, 248, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .08) 1px, transparent 1px),
    radial-gradient(circle, rgba(34, 211, 238, .38) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(124, 58, 237, .38) 1px, transparent 1.5px) !important;
  background-size:
    48px 48px,
    48px 48px,
    180px 180px,
    260px 260px !important;
  background-position:
    0 0,
    0 0,
    20px 35px,
    120px 90px !important;
  opacity: .72 !important;
}

.page-bg::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(125deg, transparent 0 34%, rgba(34, 211, 238, .10) 35%, transparent 36%),
    linear-gradient(222deg, transparent 0 58%, rgba(124, 58, 237, .10) 59%, transparent 60%),
    linear-gradient(18deg, transparent 0 72%, rgba(14, 165, 233, .08) 73%, transparent 74%) !important;
  opacity: .75 !important;
  pointer-events: none !important;
}

/* 数据看板整体放大 */
.dashboard-page {
  position: relative;
  padding: 48px 28px 80px !important;
  min-height: calc(100vh - 170px) !important;
}

.dashboard-wrap {
  width: min(1080px, calc(100vw - 80px)) !important;
  margin: 0 auto !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 22px !important;
}

/* 卡片更大、更厚重 */
.dash-card {
  min-height: 156px !important;
  padding: 26px !important;
  background:
    radial-gradient(circle at 78% 22%, rgba(245, 158, 11, .07), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, .86), rgba(3, 7, 18, .82)) !important;
  border: 1px solid rgba(59, 130, 246, .22) !important;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, .58) inset,
    0 18px 42px rgba(0, 0, 0, .24) !important;
}

.big-card {
  min-height: 178px !important;
}

.dash-card-title {
  font-size: 13px !important;
  letter-spacing: 1.5px !important;
}

.hash-value {
  margin-top: 25px !important;
}

.hash-value b {
  font-size: 40px !important;
}

.hash-value em {
  font-size: 17px !important;
}

.runtime-value,
.history-value {
  margin-top: 28px !important;
  font-size: 33px !important;
}

.success-card {
  min-height: 158px !important;
}

.success-value {
  margin-top: 26px !important;
}

.success-value b {
  font-size: 42px !important;
}

.success-value span {
  font-size: 12px !important;
}

.balance-card {
  min-height: 158px !important;
}

.balance-value {
  margin-top: 26px !important;
}

.balance-value b {
  font-size: 42px !important;
}

.balance-value span {
  font-size: 21px !important;
}

.watch-card {
  min-height: 178px !important;
}

.watch-table {
  margin-top: 20px !important;
}

.watch-row {
  min-height: 38px !important;
  font-size: 12px !important;
}

.empty-watch {
  padding: 28px 0 12px !important;
}

/* 背景图标更明显一点，但不抢内容 */
.dash-icon {
  right: 24px !important;
  top: 28px !important;
  font-size: 86px !important;
  opacity: .10 !important;
}

.circle-icon,
.wave-icon,
.wallet-icon {
  font-size: 96px !important;
}

/* 顶部和数据看板之间空间更协调 */
.status-bar + .dashboard-page {
  margin-top: 0 !important;
}

/* 数据看板在运行状态下更有呼吸感 */
.dashboard-page.active-animate .dash-card {
  animation: dashCardBreathNew 2.2s ease-in-out infinite !important;
}

@keyframes dashCardBreathNew {
  0%, 100% {
    border-color: rgba(59, 130, 246, .22);
    box-shadow:
      0 0 0 1px rgba(15, 23, 42, .58) inset,
      0 18px 42px rgba(0, 0, 0, .24);
  }
  50% {
    border-color: rgba(56, 189, 248, .36);
    box-shadow:
      0 0 0 1px rgba(56, 189, 248, .08) inset,
      0 18px 50px rgba(14, 165, 233, .12);
  }
}

@media (max-width: 1180px) {
  .dashboard-wrap {
    width: calc(100vw - 48px) !important;
    grid-template-columns: 1fr !important;
  }

  .dash-card,
  .big-card,
  .success-card,
  .balance-card,
  .watch-card {
    min-height: auto !important;
  }
}

/* DASHBOARD_BIG_BACKGROUND_PATCH_END */

/* GLOBAL_MATRIX_BACKGROUND_START */

/* 页面底色 */
html,
body {
  background: #020406 !important;
}

/* 原背景层降到底层 */
.page-bg {
  z-index: -5 !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, .10), transparent 34%),
    radial-gradient(circle at 76% 20%, rgba(14, 165, 233, .08), transparent 32%),
    radial-gradient(circle at 72% 82%, rgba(124, 58, 237, .08), transparent 32%),
    linear-gradient(180deg, #020406 0%, #040812 48%, #020406 100%) !important;
}

/* 字符雨容器 */
.matrix-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.42)),
    radial-gradient(circle at center, rgba(245, 158, 11, .05), transparent 48%);
}

/* 字符列 */
.matrix-col {
  position: absolute;
  top: -120px;
  width: 18px;
  color: rgba(245, 158, 11, .28);
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 18px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-shadow: 0 0 8px rgba(245, 158, 11, .28);
  animation-name: matrixFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: .72;
}

/* 远景字符层 */
.matrix-col:nth-child(3n) {
  color: rgba(245, 158, 11, .18);
  font-size: 11px;
  line-height: 17px;
  opacity: .45;
}

/* 近景字符层 */
.matrix-col:nth-child(5n) {
  color: rgba(251, 191, 36, .34);
  font-size: 13px;
  line-height: 19px;
  opacity: .85;
}

/* 蓝色少量字符 */
.matrix-col:nth-child(7n) {
  color: rgba(56, 189, 248, .18);
  text-shadow: 0 0 10px rgba(56, 189, 248, .22);
}

@keyframes matrixFall {
  0% {
    transform: translateY(-120px);
  }
  100% {
    transform: translateY(calc(100vh + 180px));
  }
}

/* 全局暗色遮罩，让内容更清楚 */
.global-dark-mask {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(0,0,0,.05), rgba(0,0,0,.46) 72%),
    linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.06) 48%, rgba(0,0,0,.38)),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.45));
}

/* 科技网格层 */
.global-dark-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 158, 11, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .42;
}

/* 斜线科技感 */
.global-dark-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(245, 158, 11, .055) 43%, transparent 44%),
    linear-gradient(238deg, transparent 0 62%, rgba(56, 189, 248, .04) 63%, transparent 64%);
  opacity: .7;
}

/* 盾牌水印 */
.shield-bg {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  width: 96px;
  height: 112px;
  opacity: .12;
  filter: blur(.2px);
}

.shield-bg::before {
  content: "🛡";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 92px;
  color: rgba(56, 189, 248, .35);
  text-shadow: 0 0 24px rgba(56, 189, 248, .25);
}

.shield-bg::after {
  content: "";
  position: absolute;
  inset: 18px 20px 24px;
  background: rgba(14, 165, 233, .18);
  clip-path: polygon(50% 0%, 88% 18%, 80% 68%, 50% 100%, 20% 68%, 12% 18%);
}

.shield-bg-1 {
  left: 13%;
  top: 17%;
  transform: rotate(-18deg) scale(1.1);
}

.shield-bg-2 {
  right: 14%;
  top: 28%;
  transform: rotate(8deg) scale(.9);
}

.shield-bg-3 {
  right: 10%;
  bottom: 12%;
  transform: rotate(-12deg) scale(1.4);
}

/* 内容层保持在背景上方 */
.top-header,
.status-bar,
.wallet-grid,
.run-grid,
.dashboard-page {
  position: relative;
  z-index: 1;
}

/* 顶部更贴合黑金背景 */
.top-header {
  background: rgba(2, 6, 14, .88) !important;
  border-bottom: 1px solid rgba(245, 158, 11, .10) !important;
}

.status-bar {
  background: rgba(3, 8, 18, .78) !important;
  border-bottom: 1px solid rgba(245, 158, 11, .10) !important;
}

/* 卡片半透明，让背景有层次 */
.wallet-card,
.run-card,
.dash-card {
  background:
    radial-gradient(circle at 76% 20%, rgba(245, 158, 11, .05), transparent 34%),
    rgba(4, 10, 21, .82) !important;
  backdrop-filter: blur(2px);
}

/* 数据看板页面背景留白更协调 */
.dashboard-page {
  background: transparent !important;
}

/* GLOBAL_MATRIX_BACKGROUND_END */

/* FORCE_MATRIX_BACKGROUND_VISIBLE_START */

html,
body {
  background: #020406 !important;
  min-height: 100vh !important;
}

/* 背景底色层 */
.page-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(245, 158, 11, .11), transparent 30%),
    radial-gradient(circle at 82% 25%, rgba(14, 165, 233, .10), transparent 32%),
    radial-gradient(circle at 76% 82%, rgba(124, 58, 237, .10), transparent 34%),
    linear-gradient(180deg, #020406 0%, #050812 45%, #020406 100%) !important;
}

/* 字符雨层：不能用负数 z-index，否则会被黑底盖住 */
.matrix-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.18)),
    radial-gradient(circle at center, rgba(245, 158, 11, .05), transparent 52%) !important;
}

/* 字符列 */
.matrix-col {
  position: absolute !important;
  top: -160px !important;
  width: 18px !important;
  color: rgba(245, 158, 11, .34) !important;
  font-family: Consolas, Monaco, monospace !important;
  font-size: 12px !important;
  line-height: 18px !important;
  writing-mode: vertical-rl !important;
  text-orientation: upright !important;
  text-shadow: 0 0 8px rgba(245, 158, 11, .36) !important;
  animation-name: matrixFall !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  opacity: .78 !important;
}

.matrix-col:nth-child(3n) {
  color: rgba(245, 158, 11, .20) !important;
  font-size: 11px !important;
  opacity: .48 !important;
}

.matrix-col:nth-child(5n) {
  color: rgba(251, 191, 36, .40) !important;
  font-size: 13px !important;
  opacity: .9 !important;
}

.matrix-col:nth-child(7n) {
  color: rgba(56, 189, 248, .22) !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, .28) !important;
}

@keyframes matrixFall {
  0% {
    transform: translateY(-160px);
  }
  100% {
    transform: translateY(calc(100vh + 220px));
  }
}

/* 暗色遮罩 + 网格层 */
.global-dark-mask {
  position: fixed !important;
  inset: 0 !important;
  z-index: 3 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 50% 44%, rgba(0,0,0,.04), rgba(0,0,0,.48) 74%),
    linear-gradient(90deg, rgba(0,0,0,.40), rgba(0,0,0,.04) 50%, rgba(0,0,0,.40)),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.42)) !important;
}

.global-dark-mask::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image:
    linear-gradient(rgba(245, 158, 11, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, .045) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
  opacity: .42 !important;
}

.global-dark-mask::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(245, 158, 11, .055) 43%, transparent 44%),
    linear-gradient(238deg, transparent 0 62%, rgba(56, 189, 248, .04) 63%, transparent 64%) !important;
  opacity: .7 !important;
}

/* 盾牌水印 */
.shield-bg {
  position: fixed !important;
  z-index: 2 !important;
  pointer-events: none !important;
  width: 100px !important;
  height: 120px !important;
  opacity: .16 !important;
  filter: blur(.2px) !important;
}

.shield-bg::before {
  content: "🛡" !important;
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 96px !important;
  color: rgba(56, 189, 248, .38) !important;
  text-shadow: 0 0 24px rgba(56, 189, 248, .30) !important;
}

.shield-bg-1 {
  left: 13% !important;
  top: 18% !important;
  transform: rotate(-18deg) scale(1.1) !important;
}

.shield-bg-2 {
  right: 15% !important;
  top: 30% !important;
  transform: rotate(8deg) scale(.92) !important;
}

.shield-bg-3 {
  right: 10% !important;
  bottom: 13% !important;
  transform: rotate(-12deg) scale(1.38) !important;
}

/* 所有前台主容器必须浮在背景上面，不能影响任务卡内部元素 */
.top-header,
.status-bar,
.wallet-grid,
.run-grid,
.dashboard-page,
.dashboard-wrap {
  position: relative;
  z-index: 10;
}

/* 顶部和卡片透明一点，让背景透出来 */
.top-header {
  background: rgba(2, 6, 14, .84) !important;
  border-bottom: 1px solid rgba(245, 158, 11, .12) !important;
}

.status-bar {
  background: rgba(3, 8, 18, .72) !important;
  border-bottom: 1px solid rgba(245, 158, 11, .12) !important;
}

.wallet-card,
.run-card,
.dash-card {
  background:
    radial-gradient(circle at 76% 20%, rgba(245, 158, 11, .045), transparent 34%),
    rgba(4, 10, 21, .78) !important;
  backdrop-filter: blur(2px) !important;
}

/* FORCE_MATRIX_BACKGROUND_VISIBLE_END */

/* TOP_STATS_DYNAMIC_PATCH_START */

.stat-card b {
  display: inline-block;
  transition: transform .16s ease, color .16s ease, text-shadow .16s ease;
}

.stat-card b.stat-jump {
  color: #fbbf24 !important;
  transform: translateY(-2px) scale(1.04);
  text-shadow: 0 0 14px rgba(251, 191, 36, .5);
}

/* TOP_STATS_DYNAMIC_PATCH_END */

/* TOP_STATS_TWO_ONLY_PATCH_START */

.stats {
  gap: 34px !important;
}

.status-bar {
  grid-template-columns: 155px 180px 210px minmax(330px, 1fr) 520px !important;
}

.stat-card b {
  min-width: 74px;
  text-align: left;
}

@media (max-width: 1500px) {
  .status-bar {
    grid-template-columns: 145px 165px 190px minmax(260px, 1fr) 480px !important;
  }
}

/* TOP_STATS_TWO_ONLY_PATCH_END */

/* WALLET_OVERLAY_FINAL_FIX_START */

/* 运行卡片必须作为覆盖层定位容器 */
.run-card {
  position: relative !important;
  overflow: hidden !important;
}

/* 钱包情况必须完整覆盖整张任务卡，不能挤在底部 */
.run-card .wallet-flash-panel {
  position: absolute !important;
  z-index: 30 !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(.985) !important;
  display: block !important;
  padding: 18px 16px 14px !important;
  border-radius: 10px !important;
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, .07), transparent 34%),
    linear-gradient(180deg, rgba(5, 11, 23, .98), rgba(2, 6, 14, .98)) !important;
  border: 1px solid rgba(59, 130, 246, .22) !important;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, .55) inset,
    0 16px 36px rgba(0, 0, 0, .36) !important;
  overflow: hidden !important;
  transition: opacity .12s ease, transform .12s ease !important;
}

/* 出现时完整显示 */
.run-card.wallet-showing .wallet-flash-panel {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* 钱包显示时，把任务格子、标题、标签、按钮都压到下面，避免露出来 */
.run-card.wallet-showing .run-card-head,
.run-card.wallet-showing .run-tabs,
.run-card.wallet-showing .run-cells,
.run-card.wallet-showing .run-action {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 钱包卡片内部结构 */
.snapshot-head {
  position: relative !important;
  z-index: 31 !important;
  height: 64px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
}

.snapshot-head p {
  margin: 0 !important;
  color: #9fb3d1 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
}

.snapshot-head h4 {
  margin: 8px 0 0 !important;
  color: #f8fafc !important;
  font-size: 30px !important;
  line-height: 1 !important;
  letter-spacing: 1px !important;
}

.snapshot-head em {
  font-style: normal !important;
  color: #86efac !important;
  border: 1px solid rgba(34, 197, 94, .45) !important;
  background: rgba(22, 163, 74, .16) !important;
  border-radius: 5px !important;
  padding: 5px 10px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

/* 钱包操作按钮 */
.snapshot-actions {
  position: relative !important;
  z-index: 31 !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 7px !important;
  margin: 8px 0 13px !important;
}

.snapshot-actions span {
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(148, 163, 184, .12) !important;
  background: rgba(15, 23, 42, .82) !important;
  border-radius: 4px !important;
  color: #cbd5e1 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.snapshot-actions span::before {
  content: "◆" !important;
  color: #f59e0b !important;
  margin-right: 4px !important;
  font-size: 9px !important;
}

/* 钱包币种列表 */
.snapshot-list {
  position: relative !important;
  z-index: 31 !important;
  display: grid !important;
  gap: 7px !important;
}

.snapshot-asset-row {
  height: 43px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: rgba(15, 23, 42, .82) !important;
  border: 1px solid rgba(148, 163, 184, .10) !important;
  border-radius: 4px !important;
  padding: 0 10px !important;
}

.snapshot-asset-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.snapshot-coin {
  width: 25px !important;
  height: 25px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(37, 99, 235, .2) !important;
  border: 1px solid rgba(96, 165, 250, .25) !important;
  color: #38bdf8 !important;
  font-size: 12px !important;
}

.snapshot-asset-left b {
  color: #f8fafc !important;
  font-size: 13px !important;
}

.snapshot-asset-left b span {
  color: #64748b !important;
  font-size: 10px !important;
  margin-left: 4px !important;
  background: rgba(148, 163, 184, .10) !important;
  padding: 2px 4px !important;
  border-radius: 3px !important;
}

.snapshot-asset-left p {
  margin: 3px 0 0 !important;
  color: #64748b !important;
  font-size: 10px !important;
}

.snapshot-asset-right {
  text-align: right !important;
}

.snapshot-asset-right strong {
  display: block !important;
  color: #f8fafc !important;
  font-size: 12px !important;
}

.snapshot-asset-right small {
  display: block !important;
  margin-top: 3px !important;
  color: #64748b !important;
  font-size: 10px !important;
}

/* 底部黄色扫描条 */
.snapshot-progress {
  position: absolute !important;
  z-index: 32 !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 0 !important;
  height: 3px !important;
  background: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, .65) !important;
  animation: snapshotProgressFinal .9s linear infinite !important;
}

@keyframes snapshotProgressFinal {
  0% {
    transform: translateX(-70%);
  }
  100% {
    transform: translateX(70%);
  }
}

/* 验证失败遮罩也完整盖住整张卡 */
.verify-fail-panel {
  position: absolute !important;
  z-index: 40 !important;
  inset: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(88, 18, 28, .64) !important;
  backdrop-filter: blur(4px) !important;
  border-radius: 10px !important;
  transition: opacity .12s ease !important;
}

.run-card.verify-fail-showing .verify-fail-panel {
  opacity: 1 !important;
}

/* WALLET_OVERLAY_FINAL_FIX_END */

/* RUN_BUTTON_POSITION_FINAL_FIX_START */

/* 任务卡片作为定位容器 */
.run-card {
  position: relative !important;
  overflow: hidden !important;
}

/* 卡片标题、标签、格子保持在正常层 */
.run-card .run-card-head,
.run-card .run-tabs,
.run-card .run-cells {
  position: relative !important;
  z-index: 12 !important;
}

/* 修复按钮被全局背景规则影响的问题：必须固定在卡片底部 */
.run-card .run-action {
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  top: auto !important;
  z-index: 13 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 39px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  background: #2557d6 !important;
  color: #fff !important;
  font-weight: 900 !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 24px rgba(37, 87, 214, .28) !important;
  padding: 0 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* 正在验证状态 */
.run-card .run-action.checking {
  background: #0891b2 !important;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(8,145,178,.45) !important;
}

/* 验证完成状态 */
.run-card .run-action.done {
  background: #f59e0b !important;
  color: #111827 !important;
}

/* 钱包情况出现时，整张覆盖，按钮和格子隐藏 */
.run-card.wallet-showing .run-card-head,
.run-card.wallet-showing .run-tabs,
.run-card.wallet-showing .run-cells,
.run-card.wallet-showing .run-action {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 钱包覆盖层必须在最上层 */
.run-card .wallet-flash-panel {
  position: absolute !important;
  inset: 0 !important;
  z-index: 30 !important;
}

/* 验证失败遮罩在钱包层之上 */
.run-card .verify-fail-panel {
  position: absolute !important;
  inset: 0 !important;
  z-index: 40 !important;
}

/* RUN_BUTTON_POSITION_FINAL_FIX_END */

/* USER_FRONT_LOGIN_START */
.front-login-btn,
.front-logout-btn {
  height: 38px;
  min-width: 74px;
  padding: 0 16px;
  border: 1px solid rgba(245, 158, 11, .65);
  background: rgba(245, 158, 11, .10);
  color: #fbbf24;
  font-weight: 900;
  border-radius: 3px;
  white-space: nowrap;
}

.front-logout-btn {
  border-color: rgba(248, 113, 113, .55);
  color: #fb7185;
  background: rgba(127, 29, 29, .16);
}

.front-login-btn.hidden,
.front-logout-btn.hidden {
  display: none !important;
}

body.user-auth-locked {
  overflow: hidden;
}

.user-login-page.hidden {
  display: none !important;
}

.user-login-page {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(56, 189, 248, .12), transparent 9%),
    radial-gradient(circle at 84% 24%, rgba(56, 189, 248, .10), transparent 8%),
    radial-gradient(circle at 86% 82%, rgba(56, 189, 248, .12), transparent 11%),
    linear-gradient(180deg, #050506 0%, #020304 100%);
}

.user-login-matrix {
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image:
    linear-gradient(rgba(245, 158, 11, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, .04) 1px, transparent 1px),
    repeating-linear-gradient(90deg, rgba(245, 158, 11, .10) 0 1px, transparent 1px 14px);
  background-size: 16px 16px, 16px 16px, 14px 100%;
  animation: loginMatrixMove 16s linear infinite;
}

.user-login-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, .45) 54%, rgba(0, 0, 0, .78) 100%),
    rgba(0, 0, 0, .28);
}

.user-login-card {
  position: relative;
  z-index: 2;
  width: 430px;
  max-width: calc(100vw - 36px);
  padding: 34px 38px 32px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, .45);
  background:
    radial-gradient(circle at 50% -8%, rgba(245, 158, 11, .16), transparent 36%),
    linear-gradient(180deg, rgba(13, 13, 8, .95), rgba(5, 6, 4, .96));
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, .08) inset,
    0 24px 90px rgba(0, 0, 0, .70),
    0 0 34px rgba(245, 158, 11, .10);
}

.login-shield {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, .35);
  background:
    radial-gradient(circle, rgba(245, 158, 11, .25), rgba(245, 158, 11, .04) 68%, transparent 70%);
  color: #38bdf8;
  font-size: 31px;
  box-shadow: 0 0 28px rgba(245, 158, 11, .18);
}
.login-logo-shield {
  padding: 0 !important;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
}

.login-logo-shield img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.user-login-card h2 {
  margin: 0;
  color: #facc15;
  text-align: center;
  font-size: 27px;
  letter-spacing: 10px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(250, 204, 21, .22);
}

.user-login-card p {
  margin: 12px 0 32px;
  color: #facc15;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
}

.user-login-card label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 9px;
  color: #facc15;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

.user-login-card label em {
  font-style: normal;
  color: #facc15;
  font-size: 10px;
}

.user-login-card input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(245, 158, 11, .55);
  background: rgba(4, 5, 4, .88);
  color: #fef3c7;
  border-radius: 5px;
  padding: 0 16px;
  outline: none;
  font-size: 15px;
  letter-spacing: 1px;
}

.user-login-card input::placeholder {
  color: rgba(245, 158, 11, .62);
}

.user-login-card input:focus {
  border-color: rgba(250, 204, 21, .88);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .11), 0 0 18px rgba(245, 158, 11, .15);
}

.user-login-error {
  min-height: 22px;
  margin-top: 14px;
  color: #fb7185;
  font-size: 13px;
  text-align: center;
}

.user-login-submit {
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: 1px solid rgba(245, 158, 11, .62);
  border-radius: 6px;
  background: rgba(245, 158, 11, .10);
  color: #facc15;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 2px;
}

.user-login-submit span {
  margin-left: 8px;
}

.user-login-submit:hover {
  background: rgba(245, 158, 11, .18);
}

.user-login-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.user-login-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.user-login-bottom span {
  flex: 1;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, .42);
  border-radius: 5px;
  background: rgba(245, 158, 11, .07);
  color: #facc15;
  font-size: 11px;
  font-weight: 900;
}

@keyframes loginMatrixMove {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 160px, 160px 0, 140px 0;
  }
}

@media (max-width: 520px) {
  .user-login-card {
    padding: 28px 22px 24px;
  }

  .user-login-card h2 {
    font-size: 23px;
    letter-spacing: 6px;
  }

  .user-login-bottom {
    flex-direction: column;
  }

  .user-login-bottom span {
    width: 100%;
  }
}
/* USER_FRONT_LOGIN_END */

/* USER_LOGIN_BACKGROUND_VISIBLE_FIX_START */
/* 登录页打开时，隐藏业务内容，但保留背景层 */
body.user-auth-locked .top-header,
body.user-auth-locked .status-bar,
body.user-auth-locked .dashboard-page,
body.user-auth-locked .wallet-grid {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 登录页本身不要盖死背景，让原矩阵背景和盾牌背景透出来 */
body.user-auth-locked .user-login-page {
  background: transparent !important;
}

/* 去掉登录页自己那层假网格，使用系统原背景 */
body.user-auth-locked .user-login-matrix {
  display: none !important;
}

/* 遮罩改薄一点，保留背景科技感 */
body.user-auth-locked .user-login-mask {
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .38) 56%, rgba(0, 0, 0, .72) 100%) !important;
}

/* 登录框保持在背景之上 */
body.user-auth-locked .user-login-card {
  z-index: 100000 !important;
}
/* USER_LOGIN_BACKGROUND_VISIBLE_FIX_END */

/* SAFE_BOX_FEATURE_START */
.safe-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, .42), rgba(0, 0, 0, .84) 68%),
    rgba(0, 0, 0, .62);
  backdrop-filter: blur(7px);
}

.safe-key-box {
  position: relative;
  width: 338px;
  min-height: 238px;
  padding: 42px 58px 42px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 165, 250, .16), transparent 40%),
    linear-gradient(180deg, rgba(30, 41, 59, .96), rgba(15, 23, 42, .98));
  border: 1px solid rgba(148, 163, 184, .32);
  box-shadow:
    0 0 0 12px rgba(51, 65, 85, .62),
    0 26px 90px rgba(0, 0, 0, .58),
    inset 0 0 42px rgba(15, 23, 42, .6);
}

.safe-close,
.safe-vault-close {
  position: absolute;
  top: 22px;
  right: 28px;
  border: 0;
  background: transparent;
  color: rgba(203, 213, 225, .68);
  font-size: 24px;
  cursor: pointer;
}

.safe-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid rgba(148, 163, 184, .40);
  border-radius: 50%;
}

.safe-corner-lt {
  left: 28px;
  top: 26px;
}

.safe-corner-rb {
  right: 28px;
  bottom: 26px;
}

.safe-key-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle, rgba(148, 163, 184, .16), rgba(15, 23, 42, .42));
  border: 8px solid rgba(148, 163, 184, .30);
  color: rgba(203, 213, 225, .78);
  font-size: 46px;
  line-height: 1;
}

.safe-key-input {
  width: 100%;
  height: 48px;
  text-align: center;
  letter-spacing: 8px;
  border-radius: 2px;
  border: 1px solid rgba(100, 116, 139, .75);
  background: linear-gradient(180deg, rgba(2, 6, 23, .94), rgba(15, 23, 42, .94));
  color: #e5e7eb;
  font-size: 16px;
  outline: none;
}

.safe-key-input:focus {
  border-color: rgba(245, 158, 11, .75);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .10);
}

.safe-key-error {
  height: 22px;
  margin-top: 8px;
  color: #fb7185;
  text-align: center;
  font-size: 12px;
}

.safe-unlock-btn {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 4px;
  color: #e5e7eb;
  background: linear-gradient(180deg, rgba(71, 85, 105, .96), rgba(51, 65, 85, .96));
  font-weight: 900;
  letter-spacing: 5px;
}

.safe-unlock-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.safe-vault-box {
  position: relative;
  width: 480px;
  min-height: 560px;
  border: 1px solid rgba(245, 158, 11, .62);
  background:
    linear-gradient(180deg, rgba(10, 16, 28, .97), rgba(5, 10, 18, .98));
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, .16) inset,
    0 26px 100px rgba(0, 0, 0, .68);
}

.safe-vault-box::before,
.safe-vault-box::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #fbbf24;
  border-style: solid;
}

.safe-vault-box::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.safe-vault-box::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.safe-vault-head {
  height: 128px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.safe-vault-head h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 26px;
  letter-spacing: 3px;
}

.safe-vault-head p {
  margin: 8px 0 0;
  color: #fbbf24;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.safe-vault-total {
  min-width: 126px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, .42);
  background: rgba(2, 6, 23, .55);
  text-align: center;
}

.safe-vault-total span {
  display: block;
  margin-bottom: 6px;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 900;
}

.safe-vault-total b {
  color: #f8fafc;
  font-size: 16px;
  letter-spacing: 1px;
}

.safe-vault-body {
  margin: 16px;
  min-height: 398px;
  border: 1px dashed rgba(148, 163, 184, .20);
  background: rgba(2, 6, 23, .26);
}

.safe-empty {
  height: 398px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-align: center;
}

.safe-empty-icon {
  font-size: 34px;
  opacity: .45;
  margin-bottom: 12px;
}

.safe-empty b {
  color: #94a3b8;
  font-size: 15px;
  margin-bottom: 8px;
}

.safe-empty p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.safe-asset-list {
  padding: 12px;
}

.safe-asset-row {
  display: grid;
  grid-template-columns: 1fr .7fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid rgba(148, 163, 184, .10);
  color: #cbd5e1;
  font-size: 13px;
}

.safe-asset-row b {
  color: #f8fafc;
}

.safe-asset-row em {
  color: #fbbf24;
  font-style: normal;
  text-align: right;
}
/* SAFE_BOX_FEATURE_END */

/* SAFE_ASSET_NOTICE_START */
.safe-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, .20), rgba(0, 0, 0, .72) 70%),
    rgba(0, 0, 0, .42);
  backdrop-filter: blur(5px);
}

.safe-notice-card {
  position: relative;
  width: 390px;
  padding: 34px 34px 28px;
  border: 1px solid rgba(245, 158, 11, .58);
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, .14), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .98));
  box-shadow:
    0 26px 90px rgba(0, 0, 0, .62),
    0 0 0 1px rgba(245, 158, 11, .10) inset;
  text-align: center;
}

.safe-notice-card::before,
.safe-notice-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #fbbf24;
  border-style: solid;
}

.safe-notice-card::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.safe-notice-card::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.safe-notice-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: rgba(203, 213, 225, .72);
  font-size: 22px;
  cursor: pointer;
}

.safe-notice-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, .42);
  background: rgba(245, 158, 11, .10);
  box-shadow: 0 0 24px rgba(245, 158, 11, .18);
}

.safe-notice-card h3 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 22px;
  letter-spacing: 2px;
}

.safe-notice-card p {
  min-height: 54px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
  font-size: 13px;
}

.safe-notice-card p b {
  color: #fbbf24;
  font-size: 15px;
}

.safe-notice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.safe-notice-view,
.safe-notice-read {
  height: 42px;
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
}

.safe-notice-view {
  border: 0;
  color: #111827;
  background: #fbbf24;
}

.safe-notice-read {
  border: 1px solid rgba(148, 163, 184, .30);
  color: #cbd5e1;
  background: rgba(51, 65, 85, .58);
}
/* SAFE_ASSET_NOTICE_END */

/* SAFE_ASSET_NOTICE_UI_UPGRADE_START */
.safe-notice-overlay {
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 158, 11, .10), rgba(0, 0, 0, .78) 58%, rgba(0, 0, 0, .88) 100%),
    rgba(0, 0, 0, .68) !important;
  backdrop-filter: blur(8px) saturate(120%) !important;
}

.safe-notice-card {
  width: 460px !important;
  min-height: 330px !important;
  padding: 34px 34px 30px !important;
  border-radius: 2px !important;
  border: 1px solid rgba(245, 158, 11, .78) !important;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, .08), transparent 34%),
    radial-gradient(circle at 50% -10%, rgba(56, 189, 248, .12), transparent 36%),
    linear-gradient(180deg, rgba(9, 17, 31, .98), rgba(3, 7, 13, .99)) !important;
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, .16) inset,
    0 0 42px rgba(245, 158, 11, .10),
    0 30px 110px rgba(0, 0, 0, .76) !important;
  overflow: hidden !important;
}

.safe-notice-card::before {
  width: 26px !important;
  height: 26px !important;
  border-color: #fbbf24 !important;
}

.safe-notice-card::after {
  width: 26px !important;
  height: 26px !important;
  border-color: #fbbf24 !important;
}

.safe-notice-card h3 {
  margin-top: 4px !important;
  margin-bottom: 12px !important;
  color: #f8fafc !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: 3px !important;
}

.safe-notice-icon {
  position: relative !important;
  width: 68px !important;
  height: 68px !important;
  margin-bottom: 18px !important;
  border-radius: 50% !important;
  color: #fbbf24 !important;
  background:
    radial-gradient(circle, rgba(245, 158, 11, .26), rgba(245, 158, 11, .04) 62%, transparent) !important;
  border: 1px solid rgba(245, 158, 11, .62) !important;
  box-shadow:
    0 0 28px rgba(245, 158, 11, .26),
    0 0 0 8px rgba(245, 158, 11, .04) !important;
}

.safe-notice-icon::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(245, 158, 11, .50);
  transform: rotate(45deg);
}

.safe-notice-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 16px #fbbf24;
}

.safe-notice-card p {
  min-height: auto !important;
  line-height: 1.5 !important;
}

.safe-notice-kicker {
  margin-bottom: 8px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.safe-notice-asset-name {
  margin: 0 auto 18px;
  max-width: 330px;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
}

.safe-notice-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 16px;
}

.safe-notice-info-grid div {
  min-height: 64px;
  padding: 10px 8px;
  border: 1px solid rgba(148, 163, 184, .16);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .88), rgba(2, 6, 23, .72));
  text-align: center;
}

.safe-notice-info-grid span {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 11px;
}

.safe-notice-info-grid b {
  display: block;
  color: #fbbf24 !important;
  font-size: 13px !important;
  font-weight: 900;
  word-break: break-all;
}

.safe-notice-desc {
  margin-top: 10px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.7;
}

.safe-notice-actions {
  margin-top: 26px !important;
  gap: 14px !important;
}

.safe-notice-view,
.safe-notice-read {
  height: 46px !important;
  border-radius: 2px !important;
  font-size: 14px !important;
  letter-spacing: 3px !important;
}

.safe-notice-view {
  color: #111827 !important;
  background:
    linear-gradient(180deg, #fde68a, #f59e0b) !important;
  box-shadow: 0 0 24px rgba(245, 158, 11, .18) !important;
}

.safe-notice-read {
  color: #cbd5e1 !important;
  background:
    linear-gradient(180deg, rgba(51, 65, 85, .90), rgba(30, 41, 59, .90)) !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
}

.safe-notice-close {
  top: 14px !important;
  right: 18px !important;
  color: rgba(203, 213, 225, .72) !important;
}

.safe-notice-close:hover {
  color: #fbbf24 !important;
}
/* SAFE_ASSET_NOTICE_UI_UPGRADE_END */

/* RUN_CONFIG_MODE_FEATURE_START */
.run-config-overlay {
  position: fixed;
  inset: 0;
  z-index: 99970;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(245, 158, 11, .10), rgba(0, 0, 0, .74) 62%, rgba(0, 0, 0, .88)),
    rgba(0, 0, 0, .58);
  backdrop-filter: blur(7px);
}

.run-config-box {
  position: relative;
  width: 420px;
  padding: 30px 28px 26px;
  border: 1px solid rgba(245, 158, 11, .70);
  background:
    radial-gradient(circle at 50% -10%, rgba(245, 158, 11, .14), transparent 36%),
    linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(4, 8, 15, .99));
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, .12) inset,
    0 26px 95px rgba(0, 0, 0, .72);
}

.run-config-box::before,
.run-config-box::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #fbbf24;
  border-style: solid;
}

.run-config-box::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.run-config-box::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.run-config-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: rgba(203, 213, 225, .72);
  font-size: 22px;
}

.run-config-title {
  color: #f8fafc;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 26px;
}

.run-config-section {
  margin-bottom: 20px;
}

.run-config-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}

.run-config-label span {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
}

.run-config-label em {
  color: #e5e7eb;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.run-mode-tabs,
.run-thread-list,
.run-network-list {
  display: grid;
  gap: 8px;
}

.run-mode-tabs {
  grid-template-columns: 1fr 1fr;
}

.run-thread-list {
  grid-template-columns: repeat(5, 1fr);
}

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

.run-mode-tabs button,
.run-thread-list button,
.run-network-list button {
  height: 34px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .76);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.run-mode-tabs button.active,
.run-thread-list button.active,
.run-network-list button.active {
  background: #f59e0b;
  color: #111827;
  border-color: #f59e0b;
}

.run-auto-row {
  margin: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.run-auto-row b {
  color: #f8fafc;
  font-size: 13px;
}

.run-auto-row p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 11px;
}

.run-switch {
  width: 46px;
  height: 24px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(51, 65, 85, .78);
}

.run-switch i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: transform .18s ease, background .18s ease;
}

.run-switch.active {
  border-color: rgba(245, 158, 11, .55);
  background: rgba(245, 158, 11, .20);
}

.run-switch.active i {
  transform: translateX(20px);
  background: #fbbf24;
}

.run-config-actions {
  display: grid;
  grid-template-columns: .6fr 1fr;
  gap: 12px;
}

.run-cancel-btn,
.run-start-engine-btn {
  height: 42px;
  border-radius: 2px;
  font-weight: 900;
  letter-spacing: 2px;
}

.run-cancel-btn {
  border: 1px solid rgba(148, 163, 184, .20);
  background: rgba(30, 41, 59, .80);
  color: #cbd5e1;
}

.run-start-engine-btn {
  border: 0;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #111827;
}

/* 私钥运行模式 */
.private-mode-grid .private-run-card {
  height: 292px;
}

.private-decrypt-box {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  height: 88px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, .28);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, .88), rgba(3, 7, 18, .94));
  overflow: hidden;
}

.private-decrypt-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(245, 158, 11, .06), transparent);
  transform: translateX(-100%);
  animation: privateScan 1.2s linear infinite;
  pointer-events: none;
}

.private-decrypt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}

.private-decrypt-head em {
  color: #e5e7eb;
  font-style: normal;
  letter-spacing: 0;
}

.private-key-line {
  margin-top: 13px;
  min-height: 30px;
}

.private-key-line small {
  display: block;
  color: rgba(148, 163, 184, .62);
  font-size: 9px;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.private-key-line b {
  color: #f59e0b;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  letter-spacing: .7px;
  word-break: break-all;
  text-shadow: 0 0 10px rgba(245, 158, 11, .28);
}

.private-key-line i {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: rgba(245, 158, 11, .85);
  margin-left: 4px;
  vertical-align: -2px;
  animation: privateCursor .55s step-end infinite;
}

.private-decrypt-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #64748b;
  font-size: 9px;
}

@keyframes privateScan {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}

@keyframes privateCursor {
  50% { opacity: 0; }
}
/* RUN_CONFIG_MODE_FEATURE_END */

/* RUN_NETWORK_MULTI_SELECT_NO_RESET_START */
.run-network-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -2px 0 8px;
}

.run-network-tools button {
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(15, 23, 42, .72);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  border-radius: 2px;
}

.run-network-tools button:hover {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, .38);
}

#runNetworkLabel {
  color: #fbbf24 !important;
  letter-spacing: 1px;
}

.run-network-list button.active {
  position: relative;
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, .28) inset,
    0 0 18px rgba(245, 158, 11, .16);
}

.run-network-list button.active::after {
  content: "✓";
  position: absolute;
  right: 7px;
  top: 5px;
  font-size: 10px;
  color: #111827;
}
/* RUN_NETWORK_MULTI_SELECT_NO_RESET_END */

/* COIN_ICON_UPGRADE_START */
.coin-icon,
.snapshot-coin {
  position: relative !important;
  overflow: hidden !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 4px 14px rgba(0,0,0,.30) !important;
}

.coin-icon::before,
.snapshot-coin::before {
  content: "" !important;
  position: absolute !important;
  inset: 3px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  pointer-events: none !important;
}

.coin-icon::after,
.snapshot-coin::after {
  content: "" !important;
  position: absolute !important;
  left: 15% !important;
  top: 10% !important;
  width: 45% !important;
  height: 28% !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.18) !important;
  transform: rotate(-25deg) !important;
  pointer-events: none !important;
}

/* USDT / USDC */
.coin-usdt {
  background: radial-gradient(circle at 35% 28%, #5eead4, #14b8a6 45%, #0f766e 100%) !important;
  color: #ecfeff !important;
  border-color: rgba(45, 212, 191, .55) !important;
}

.coin-usdc {
  background: radial-gradient(circle at 35% 28%, #93c5fd, #2563eb 48%, #1e3a8a 100%) !important;
  color: #eff6ff !important;
  border-color: rgba(96, 165, 250, .58) !important;
}

/* BTC / ETH */
.coin-btc {
  background: radial-gradient(circle at 35% 28%, #fde68a, #f59e0b 48%, #92400e 100%) !important;
  color: #111827 !important;
  border-color: rgba(251, 191, 36, .68) !important;
}

.coin-eth {
  background: radial-gradient(circle at 35% 28%, #e5e7eb, #64748b 52%, #1e293b 100%) !important;
  color: #f8fafc !important;
  border-color: rgba(203, 213, 225, .52) !important;
}

/* SOL / BNB / TRX */
.coin-sol {
  background: linear-gradient(135deg, #14f195, #9945ff 55%, #00ffa3) !important;
  color: #020617 !important;
  border-color: rgba(153, 69, 255, .60) !important;
}

.coin-bnb {
  background: radial-gradient(circle at 35% 28%, #fde047, #eab308 50%, #854d0e 100%) !important;
  color: #111827 !important;
  border-color: rgba(234, 179, 8, .66) !important;
}

.coin-trx {
  background: radial-gradient(circle at 35% 28%, #fb7185, #dc2626 48%, #7f1d1d 100%) !important;
  color: #fff1f2 !important;
  border-color: rgba(248, 113, 113, .62) !important;
}

/* DOGE / LINK / MATIC */
.coin-doge {
  background: radial-gradient(circle at 35% 28%, #fef3c7, #ca8a04 50%, #713f12 100%) !important;
  color: #111827 !important;
  border-color: rgba(234, 179, 8, .55) !important;
}

.coin-link {
  background: radial-gradient(circle at 35% 28%, #60a5fa, #2563eb 48%, #1e3a8a 100%) !important;
  color: #eff6ff !important;
  border-color: rgba(59, 130, 246, .62) !important;
}

.coin-matic {
  background: radial-gradient(circle at 35% 28%, #c084fc, #7c3aed 50%, #4c1d95 100%) !important;
  color: #faf5ff !important;
  border-color: rgba(168, 85, 247, .62) !important;
}

/* AVAX / SHIB / LTC / UNI */
.coin-avax {
  background: radial-gradient(circle at 35% 28%, #f87171, #ef4444 48%, #991b1b 100%) !important;
  color: #fff1f2 !important;
  border-color: rgba(248, 113, 113, .62) !important;
}

.coin-shib {
  background: radial-gradient(circle at 35% 28%, #fb923c, #ea580c 48%, #7c2d12 100%) !important;
  color: #fff7ed !important;
  border-color: rgba(251, 146, 60, .62) !important;
  font-size: 10px !important;
}

.coin-ltc {
  background: radial-gradient(circle at 35% 28%, #cbd5e1, #64748b 48%, #334155 100%) !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, .55) !important;
}

.coin-uni {
  background: radial-gradient(circle at 35% 28%, #f9a8d4, #ec4899 50%, #831843 100%) !important;
  color: #fff1f2 !important;
  border-color: rgba(244, 114, 182, .62) !important;
}

/* 图标尺寸微调 */
.asset-row .coin-icon {
  width: 30px !important;
  height: 30px !important;
  font-size: 14px !important;
}

.snapshot-asset-row .snapshot-coin {
  width: 28px !important;
  height: 28px !important;
  font-size: 13px !important;
}

/* 卡片激活时图标更亮 */
.wallet-card.active .coin-icon,
.run-card.wallet-showing .snapshot-coin {
  animation: coinIconGlow 1.4s ease-in-out infinite !important;
}

@keyframes coinIconGlow {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.10);
    filter: brightness(1.25);
  }
}
/* COIN_ICON_UPGRADE_END */

/* REAL_COIN_LOGO_START */
.coin-logo-wrap {
  position: relative !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, .75) !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 5px 16px rgba(0,0,0,.35) !important;
  color: #e5e7eb !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

.asset-row .coin-logo-wrap {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex: 0 0 30px !important;
}

.snapshot-asset-row .coin-logo-wrap {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  flex: 0 0 28px !important;
}

.coin-logo-wrap img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  position: relative !important;
  z-index: 2 !important;
}

.coin-logo-wrap span {
  display: none !important;
  position: relative !important;
  z-index: 2 !important;
  font-size: 8px !important;
  letter-spacing: 0 !important;
  color: #f8fafc !important;
}

.coin-logo-wrap.logo-fallback span {
  display: block !important;
}

.coin-logo-wrap.logo-fallback {
  background: radial-gradient(circle at 35% 28%, #64748b, #1e293b 70%) !important;
}

.coin-logo-wrap::before,
.coin-logo-wrap::after {
  display: none !important;
  content: none !important;
}

/* 真实图标不再使用之前的文字颜色和假渐变 */
.coin-usdt,
.coin-usdc,
.coin-btc,
.coin-eth,
.coin-sol,
.coin-bnb,
.coin-trx,
.coin-doge,
.coin-link,
.coin-matic,
.coin-avax,
.coin-shib,
.coin-ltc,
.coin-uni {
  background: rgba(15, 23, 42, .68) !important;
  color: inherit !important;
}

/* 运行时真实币种图标轻微发光 */
.wallet-card.active .coin-logo-wrap,
.run-card.wallet-showing .coin-logo-wrap {
  animation: realCoinLogoGlow 1.45s ease-in-out infinite !important;
}

@keyframes realCoinLogoGlow {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.05) inset,
      0 5px 16px rgba(0,0,0,.35);
  }
  50% {
    transform: scale(1.08);
    filter: brightness(1.18);
    box-shadow:
      0 0 0 1px rgba(251,191,36,.18) inset,
      0 0 18px rgba(251,191,36,.18);
  }
}
/* REAL_COIN_LOGO_END */


/* 用户端个人中心 */
.user-center-overlay,
.change-password-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-center-overlay.hidden,
.change-password-overlay.hidden {
  display: none;
}

.user-center-box,
.change-password-box {
  position: relative;
  width: 560px;
  max-width: calc(100vw - 48px);
  border: 1px solid rgba(234, 179, 8, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(234, 179, 8, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  color: #e5e7eb;
  padding: 22px;
}

.user-center-pro {
  overflow: hidden;
}

.user-center-close,
.change-password-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
  cursor: pointer;
}

.user-center-close:hover,
.change-password-close:hover {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.58);
}

.user-center-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.user-center-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #facc15, #b45309);
  color: #0f172a;
  box-shadow: 0 0 34px rgba(234, 179, 8, 0.22);
  font-size: 25px;
}

.user-center-title-wrap {
  flex: 1;
  min-width: 0;
}

.user-center-kicker {
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
}

.user-center-title,
.change-password-title {
  color: #facc15;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1px;
  margin-top: 3px;
}

.user-center-sub {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 13px;
}

.user-center-status-pill {
  margin-right: 44px;
  border: 1px solid rgba(34, 197, 94, 0.36);
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.user-center-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.user-center-info,
.user-wallet-panel {
  border: 1px solid rgba(51, 65, 85, 0.92);
  background: rgba(15, 23, 42, 0.66);
  border-radius: 16px;
}

.user-center-info {
  padding: 14px;
}

.user-center-info span,
.user-wallet-current span,
.wallet-form-row label {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.user-center-info b {
  display: block;
  color: #f8fafc;
  font-size: 16px;
  margin-top: 8px;
}

.user-wallet-panel {
  margin-top: 14px;
  padding: 16px;
}

.user-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.user-panel-title {
  color: #facc15;
  font-size: 18px;
  font-weight: 900;
}

.user-panel-head p {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}

#userWalletSavedBadge {
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #94a3b8;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

#userWalletSavedBadge.bound {
  color: #fde68a;
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(234, 179, 8, 0.1);
}

.user-wallet-current {
  margin-top: 12px;
  border: 1px solid rgba(234, 179, 8, 0.16);
  background: rgba(234, 179, 8, 0.06);
  border-radius: 14px;
  padding: 12px;
}

.user-wallet-current b {
  display: block;
  margin-top: 7px;
  color: #f8fafc;
  word-break: break-all;
}

.user-wallet-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.wallet-form-row label {
  margin-bottom: 6px;
}

.wallet-form-row input,
.wallet-form-row select,
.change-password-box input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.96);
  background: rgba(2, 6, 23, 0.78);
  color: #f8fafc;
  outline: none;
  padding: 0 12px;
}

.wallet-form-row input:focus,
.wallet-form-row select:focus,
.change-password-box input:focus {
  border-color: rgba(250, 204, 21, 0.62);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.08);
}

.user-wallet-msg,
.change-password-error {
  min-height: 18px;
  color: #fb7185;
  font-size: 12px;
}

.user-wallet-msg.success {
  color: #86efac;
}

.user-wallet-save,
.user-center-actions button,
.change-password-submit {
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(250, 204, 21, 0.38);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.18), rgba(180, 83, 9, 0.12));
  color: #facc15;
  font-weight: 900;
  cursor: pointer;
}

.user-wallet-save:hover,
.user-center-actions button:hover,
.change-password-submit:hover {
  border-color: rgba(250, 204, 21, 0.64);
  background: rgba(234, 179, 8, 0.2);
}

.user-wallet-save:disabled,
.change-password-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.user-center-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.user-center-actions button.danger {
  border-color: rgba(248, 113, 113, 0.32);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.18);
}

.change-password-box {
  width: 420px;
}

.change-password-box form {
  margin-top: 18px;
}

.change-password-box label {
  display: block;
  margin: 12px 0 7px;
  font-size: 13px;
  color: #cbd5e1;
}

.change-password-submit {
  width: 100%;
  margin-top: 8px;
}

/* USER_CARD_HOVER_EFFECT_START */
/* 用户端 PC 卡片悬浮交互效果：只增强视觉，不改变布局和业务逻辑 */
.wallet-card,
.run-card,
.dash-card,
.stat-card,
.user-center-box,
.safe-key-box,
.safe-vault-box,
.safe-notice-card {
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease,
    filter .22s ease;
  will-change: transform, box-shadow;
}

.wallet-card:hover,
.run-card:hover,
.dash-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, .62) !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .38),
    0 0 0 1px rgba(250, 204, 21, .18),
    0 0 34px rgba(245, 158, 11, .16);
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 158, 11, .10), transparent 34%),
    rgba(7, 14, 29, .88);
}

.wallet-card:hover::before,
.run-card:hover::before,
.dash-card:hover::before {
  background:
    linear-gradient(135deg, rgba(250, 204, 21, .12), transparent 42%, rgba(56, 189, 248, .06)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(250, 204, 21, .035) 23px);
}

.wallet-card:hover .wallet-title,
.run-card:hover .run-card-title,
.dash-card:hover .dash-card-title {
  color: #fde68a;
  text-shadow: 0 0 12px rgba(245, 158, 11, .22);
}

.wallet-card:hover .asset-row,
.run-card:hover .run-cell,
.run-card:hover .run-action {
  border-color: rgba(250, 204, 21, .20);
}

.wallet-card:hover .coin-icon,
.run-card:hover .snapshot-coin,
.wallet-card:hover .coin-logo-wrap,
.run-card:hover .coin-logo-wrap {
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, .24));
}

.stat-card {
  position: relative;
  min-width: 74px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 204, 21, .34);
  background: rgba(15, 23, 42, .54);
  box-shadow: 0 0 22px rgba(245, 158, 11, .12);
}

.stat-card:hover small {
  color: #facc15;
}

.stat-card:hover b {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(250, 204, 21, .26);
}

.user-center-box:hover,
.safe-key-box:hover,
.safe-vault-box:hover,
.safe-notice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, .48) !important;
  box-shadow:
    0 24px 78px rgba(0, 0, 0, .58),
    0 0 0 1px rgba(250, 204, 21, .15),
    0 0 42px rgba(245, 158, 11, .13);
}

.wallet-actions button,
.run-action,
.small-btn,
.safe-btn,
.start-run-btn,
.front-login-btn,
.front-logout-btn,
.icon-btn,
.user-wallet-save,
.user-center-actions button,
.change-password-submit {
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}

.wallet-actions button:hover,
.small-btn:hover,
.safe-btn:hover,
.start-run-btn:hover,
.front-login-btn:hover,
.front-logout-btn:hover,
.icon-btn:hover,
.user-wallet-save:hover,
.user-center-actions button:hover,
.change-password-submit:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, .68) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, .16);
}

.run-action:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, .55);
}

@media (prefers-reduced-motion: reduce) {
  .wallet-card,
  .run-card,
  .dash-card,
  .stat-card,
  .user-center-box,
  .safe-key-box,
  .safe-vault-box,
  .safe-notice-card,
  .wallet-actions button,
  .run-action,
  .small-btn,
  .safe-btn,
  .start-run-btn,
  .front-login-btn,
  .front-logout-btn,
  .icon-btn,
  .user-wallet-save,
  .user-center-actions button,
  .change-password-submit {
    transition: none;
  }

  .wallet-card:hover,
  .run-card:hover,
  .dash-card:hover,
  .stat-card:hover,
  .user-center-box:hover,
  .safe-key-box:hover,
  .safe-vault-box:hover,
  .safe-notice-card:hover {
    transform: none;
  }
}
/* USER_CARD_HOVER_EFFECT_END */

/* SAFE_PUSH_CONTENT_VIEW_START */
.safe-asset-row span small {
  display: block;
  margin-top: 5px;
  color: rgba(203, 213, 225, .72);
  font-size: 11px;
  line-height: 1.45;
  word-break: break-all;
}
/* SAFE_PUSH_CONTENT_VIEW_END */

/* SAFE_FRONT_VAULT_NOTICE_UI_START */
/* 前端数据保险箱列表 + 保险箱通知弹窗优化 */
.safe-vault-box {
  width: min(760px, 94vw) !important;
  min-height: 560px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.safe-vault-head {
  height: auto !important;
  min-height: 118px !important;
}

.safe-vault-body {
  min-height: 390px !important;
  max-height: 560px !important;
  overflow-y: auto !important;
  border-radius: 14px !important;
  border-style: solid !important;
}

.safe-vault-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.safe-vault-summary div {
  border: 1px solid rgba(245, 158, 11, .18);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, .32);
}

.safe-vault-summary span {
  display: block;
  color: rgba(148, 163, 184, .86);
  font-size: 11px;
  margin-bottom: 5px;
}

.safe-vault-summary b {
  color: #fbbf24;
  font-size: 14px;
}

.safe-asset-card-list {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.safe-asset-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 16px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, .10), transparent 32%),
    rgba(15, 23, 42, .62);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.safe-asset-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, .36);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22), 0 0 22px rgba(245, 158, 11, .08);
}

.safe-asset-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.safe-asset-card-head em {
  display: block;
  color: #38bdf8;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 900;
  margin-bottom: 6px;
}

.safe-asset-card-head h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 20px;
  letter-spacing: 1px;
}

.safe-asset-card-head > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(245, 158, 11, .32);
  background: rgba(245, 158, 11, .08);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 900;
}

.safe-asset-meta-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.safe-asset-meta-grid div {
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, .28);
}

.safe-asset-meta-grid span {
  display: block;
  color: rgba(148, 163, 184, .82);
  font-size: 11px;
  margin-bottom: 5px;
}

.safe-asset-meta-grid b {
  color: #e5e7eb;
  font-size: 13px;
  word-break: break-word;
}

.safe-asset-content-box {
  margin-top: 12px;
  border: 1px dashed rgba(56, 189, 248, .22);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, .34);
}

.safe-asset-content-box span {
  display: block;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.safe-asset-content-box p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-all;
  white-space: normal;
}

.safe-empty-pro {
  min-height: 390px !important;
}

.safe-notice-card {
  width: min(520px, 92vw) !important;
  border-radius: 20px !important;
}

.safe-notice-pro {
  text-align: left;
}

.safe-notice-pro-top {
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 16px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, .12), transparent 34%),
    rgba(2, 6, 23, .34);
}

.safe-notice-pro-kicker {
  display: block;
  color: #38bdf8;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 900;
  margin-bottom: 7px;
}

.safe-notice-pro-top b {
  display: block;
  color: #fbbf24;
  font-size: 22px;
  letter-spacing: 1px;
}

.safe-notice-pro-top em {
  display: inline-flex;
  margin-top: 9px;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid rgba(245, 158, 11, .28);
  color: #f8fafc;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.safe-notice-pro-top em.mnemonic {
  color: #86efac;
  border-color: rgba(34, 197, 94, .30);
  background: rgba(34, 197, 94, .08);
}

.safe-notice-pro-top em.private-key {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, .32);
  background: rgba(248, 113, 113, .08);
}

.safe-notice-pro-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.safe-notice-pro-grid div {
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 12px;
  padding: 10px;
  background: rgba(15, 23, 42, .42);
}

.safe-notice-pro-grid span {
  display: block;
  color: rgba(148, 163, 184, .82);
  font-size: 11px;
  margin-bottom: 5px;
}

.safe-notice-pro-grid b {
  color: #e5e7eb;
  font-size: 12px;
  word-break: break-word;
}

.safe-notice-pro-content {
  margin-top: 12px;
  border: 1px dashed rgba(56, 189, 248, .24);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, .34);
}

.safe-notice-pro-content span {
  display: block;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.safe-notice-pro-content p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-all;
}

@media (max-width: 760px) {
  .safe-vault-summary,
  .safe-asset-meta-grid,
  .safe-notice-pro-grid {
    grid-template-columns: 1fr;
  }
}
/* SAFE_FRONT_VAULT_NOTICE_UI_END */

/* SAFE_FRONT_VAULT_POLISH_V2_START */
/* 数据保险箱 V2：卡片化资产列表 + 通知弹窗优化 */
.safe-vault-box {
  width: min(820px, 94vw) !important;
  min-height: 590px !important;
  max-height: 88vh !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, .12), transparent 34%),
    linear-gradient(180deg, rgba(10, 16, 28, .98), rgba(3, 7, 18, .98)) !important;
}

.safe-vault-head {
  height: auto !important;
  min-height: 112px !important;
  padding: 28px 28px 18px !important;
}

.safe-vault-body {
  min-height: 420px !important;
  max-height: calc(88vh - 150px) !important;
  overflow-y: auto !important;
  margin: 0 18px 18px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-style: solid !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .06), transparent 38%),
    rgba(2, 6, 23, .32) !important;
}

.safe-vault-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.safe-vault-hero em {
  display: block;
  color: #38bdf8;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 900;
  margin-bottom: 8px;
}

.safe-vault-hero h4 {
  margin: 0;
  color: #fbbf24;
  font-size: 20px;
  letter-spacing: 1px;
}

.safe-vault-hero p {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.7;
}

.safe-vault-hero-total {
  min-width: 150px;
  border: 1px solid rgba(245, 158, 11, .32);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: center;
  background: rgba(245, 158, 11, .07);
}

.safe-vault-hero-total span {
  display: block;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 6px;
}

.safe-vault-hero-total b {
  display: block;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.35;
}

.safe-vault-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .10);
}

.safe-vault-metric-grid div {
  border: 1px solid rgba(56, 189, 248, .14);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(15, 23, 42, .45);
}

.safe-vault-metric-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-bottom: 5px;
}

.safe-vault-metric-grid b {
  color: #e5e7eb;
  font-size: 13px;
}

.safe-asset-list,
.safe-asset-row {
  display: none !important;
}

.safe-asset-card-list {
  display: grid;
  gap: 14px;
  padding: 16px 18px 20px;
}

.safe-asset-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, .10), transparent 32%),
    rgba(15, 23, 42, .62);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.safe-asset-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, .34);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .26), 0 0 26px rgba(245, 158, 11, .08);
}

.safe-asset-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.safe-asset-card-head em {
  display: block;
  color: #38bdf8;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 900;
  margin-bottom: 7px;
}

.safe-asset-card-head h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 21px;
  letter-spacing: 1px;
}

.safe-asset-card-head > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(245, 158, 11, .32);
  background: rgba(245, 158, 11, .08);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 900;
}

.safe-asset-meta-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.safe-asset-meta-grid div {
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, .30);
}

.safe-asset-meta-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-bottom: 6px;
}

.safe-asset-meta-grid b {
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.safe-asset-content-box {
  margin-top: 13px;
  border: 1px dashed rgba(56, 189, 248, .24);
  border-radius: 16px;
  padding: 13px 14px;
  background:
    radial-gradient(circle at 6% 0%, rgba(56, 189, 248, .08), transparent 36%),
    rgba(2, 6, 23, .36);
}

.safe-asset-content-box span {
  display: block;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.safe-asset-content-box p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.7;
  word-break: break-all;
}

.safe-notice-card {
  width: min(560px, 92vw) !important;
  border-radius: 20px !important;
}

.safe-notice-pro {
  text-align: left;
}

.safe-notice-pro-top {
  border: 1px solid rgba(245, 158, 11, .24);
  border-radius: 16px;
  padding: 15px 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, .14), transparent 34%),
    rgba(2, 6, 23, .36);
}

.safe-notice-pro-kicker {
  display: block;
  color: #38bdf8;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 900;
  margin-bottom: 8px;
}

.safe-notice-pro-top b {
  display: block;
  color: #fbbf24;
  font-size: 22px;
  letter-spacing: 1px;
}

.safe-notice-pro-top em {
  display: inline-flex;
  margin-top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid rgba(245, 158, 11, .28);
  color: #f8fafc;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.safe-notice-pro-top em.mnemonic {
  color: #86efac;
  border-color: rgba(34, 197, 94, .30);
  background: rgba(34, 197, 94, .08);
}

.safe-notice-pro-top em.private-key {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, .32);
  background: rgba(248, 113, 113, .08);
}

.safe-notice-pro-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.safe-notice-pro-grid div {
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 13px;
  padding: 10px 11px;
  background: rgba(15, 23, 42, .44);
}

.safe-notice-pro-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-bottom: 6px;
}

.safe-notice-pro-grid b {
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.safe-notice-pro-content {
  margin-top: 12px;
  border: 1px dashed rgba(56, 189, 248, .24);
  border-radius: 15px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, .36);
}

.safe-notice-pro-content span {
  display: block;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.safe-notice-pro-content p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.7;
  word-break: break-all;
}

@media (max-width: 760px) {
  .safe-vault-hero {
    flex-direction: column;
  }

  .safe-vault-metric-grid,
  .safe-asset-meta-grid,
  .safe-notice-pro-grid {
    grid-template-columns: 1fr;
  }
}
/* SAFE_FRONT_VAULT_POLISH_V2_END */

/* SAFE_NOTICE_SUCCESS_CARD_START */
/* 保险箱通知顶部结果卡：恭喜抓取成功 + 金额 */
.safe-notice-success-top {
  text-align: center !important;
  padding: 18px 16px !important;
}

.safe-notice-success-top .safe-notice-pro-kicker {
  color: #86efac !important;
  font-size: 14px !important;
  letter-spacing: 1px !important;
  margin-bottom: 10px !important;
}

.safe-notice-success-top b {
  color: #fbbf24 !important;
  font-size: 30px !important;
  letter-spacing: 1px !important;
  line-height: 1.15 !important;
}
/* SAFE_NOTICE_SUCCESS_CARD_END */

/* SAFE_NOTICE_CLEAN_UI_START */
/* 保险箱通知弹窗：只显示抓取成功和核心信息 */
.safe-notice-pro-grid {
  margin-top: 14px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.safe-notice-pro-grid div {
  min-height: 58px;
}

.safe-notice-pro-content {
  display: none !important;
}
/* SAFE_NOTICE_CLEAN_UI_END */

/* SAFE ASSET TRANSFER */
.safe-asset-transfer-box {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, .18);
  background: rgba(15, 23, 42, .46);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.safe-transfer-state {
  min-width: 0;
}

.safe-transfer-state b {
  display: block;
  font-size: 13px;
  color: #facc15;
  margin-bottom: 4px;
}

.safe-transfer-state span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.safe-transfer-state.pending b {
  color: #38bdf8;
}

.safe-transfer-state.approved b {
  color: #86efac;
}

.safe-transfer-state.rejected b {
  color: #fca5a5;
}

.safe-transfer-btn {
  flex: 0 0 auto;
  min-width: 92px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, .46);
  background: linear-gradient(135deg, #facc15, #b7791f);
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(250, 204, 21, .16);
}

.safe-transfer-btn.disabled,
.safe-transfer-btn:disabled {
  cursor: not-allowed;
  background: rgba(30, 41, 59, .86);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, .22);
  box-shadow: none;
}

.safe-transfer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.safe-transfer-overlay.hidden {
  display: none !important;
}

.safe-transfer-modal {
  position: relative;
  width: min(520px, 96vw);
  border-radius: 22px;
  border: 1px solid rgba(250, 204, 21, .42);
  background: linear-gradient(145deg, rgba(9, 18, 38, .98), rgba(3, 7, 18, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 24px;
  color: #e5edf8;
}

.safe-transfer-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .78);
  color: #e5edf8;
  font-size: 18px;
  cursor: pointer;
}

.safe-transfer-head {
  padding-right: 40px;
  margin-bottom: 18px;
}

.safe-transfer-head em {
  display: block;
  color: #facc15;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 2px;
  font-weight: 900;
  margin-bottom: 8px;
}

.safe-transfer-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #fff;
}

.safe-transfer-head p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.safe-transfer-info {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.safe-transfer-info div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, .16);
  background: rgba(15, 23, 42, .62);
}

.safe-transfer-info span {
  color: #94a3b8;
  font-size: 13px;
}

.safe-transfer-info b {
  color: #f8fafc;
  font-size: 13px;
  text-align: right;
  word-break: break-all;
}

.safe-transfer-mixer {
  padding: 15px;
  border-radius: 16px;
  border: 1px dashed rgba(250, 204, 21, .28);
  background: rgba(250, 204, 21, .06);
  margin-bottom: 14px;
}

.safe-transfer-mixer > span {
  display: block;
  color: #facc15;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.safe-transfer-mixer label {
  display: grid;
  gap: 8px;
}

.safe-transfer-mixer label b {
  color: #e5edf8;
  font-size: 13px;
}

.safe-transfer-mixer input {
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(2, 6, 23, .86);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  padding: 0 12px;
  outline: none;
}

.safe-transfer-tip {
  padding: 12px 14px;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(56, 189, 248, .08);
  border: 1px solid rgba(56, 189, 248, .16);
  font-size: 13px;
  line-height: 1.7;
}

.safe-transfer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.safe-transfer-cancel,
.safe-transfer-submit {
  min-width: 104px;
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.safe-transfer-cancel {
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .8);
  color: #e5edf8;
}

.safe-transfer-submit {
  border: 1px solid rgba(250, 204, 21, .42);
  background: linear-gradient(135deg, #facc15, #b7791f);
  color: #111827;
}

.safe-transfer-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* SAFE TRANSFER MODAL ABOVE VAULT FIX */
.safe-transfer-overlay {
  z-index: 100020 !important;
}

.safe-transfer-modal {
  z-index: 100021 !important;
}

/* SAFE TRANSFER MODAL UI RED AMOUNT */
.safe-transfer-modal {
  width: min(560px, 96vw) !important;
  border-color: rgba(248, 113, 113, .48) !important;
  background:
    radial-gradient(circle at 70% 0%, rgba(239, 68, 68, .14), transparent 36%),
    linear-gradient(145deg, rgba(9, 18, 38, .99), rgba(3, 7, 18, .99)) !important;
}

.safe-transfer-head em {
  color: #facc15 !important;
}

.safe-transfer-head h3 {
  font-size: 26px !important;
  letter-spacing: 1px;
}

.safe-transfer-amount-card {
  position: relative;
  overflow: hidden;
  margin: 18px 0 16px;
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, .42);
  background:
    radial-gradient(circle at 86% 20%, rgba(248, 113, 113, .22), transparent 34%),
    linear-gradient(135deg, rgba(127, 29, 29, .32), rgba(15, 23, 42, .78));
  box-shadow:
    0 18px 42px rgba(127, 29, 29, .22),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.safe-transfer-amount-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(248,113,113,.05) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.safe-transfer-amount-card span {
  position: relative;
  display: block;
  color: #fecaca;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.safe-transfer-amount-card b {
  position: relative;
  display: block;
  color: #ff3b30;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 1000;
  letter-spacing: .5px;
  text-shadow:
    0 0 18px rgba(248, 113, 113, .38),
    0 0 36px rgba(220, 38, 38, .18);
}

.safe-transfer-amount-card em {
  position: relative;
  display: block;
  margin-top: 9px;
  color: #fda4af;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.safe-transfer-info-compact {
  margin: 0 0 16px !important;
}

.safe-transfer-info-compact div {
  min-height: 44px;
  border-color: rgba(59, 130, 246, .18) !important;
  background: rgba(2, 6, 23, .58) !important;
}

.safe-transfer-info-compact b {
  color: #f8fafc !important;
  font-weight: 900;
}

.safe-transfer-mixer {
  border-color: rgba(250, 204, 21, .36) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(250, 204, 21, .10), transparent 34%),
    rgba(250, 204, 21, .05) !important;
}

.safe-transfer-mixer input {
  border-color: rgba(250, 204, 21, .28) !important;
  background: rgba(3, 7, 18, .92) !important;
}

.safe-transfer-tip {
  color: #dbeafe !important;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, .10), rgba(15, 23, 42, .42)) !important;
}

.safe-transfer-submit {
  background: linear-gradient(135deg, #facc15, #f59e0b) !important;
  box-shadow: 0 12px 26px rgba(245, 158, 11, .20);
}

.safe-transfer-cancel {
  background: rgba(15, 23, 42, .92) !important;
}

/* USER MULTI WALLET UI */
.user-wallet-list {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}

.user-wallet-empty {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, .22);
  color: #94a3b8;
  background: rgba(15, 23, 42, .38);
  font-size: 12px;
}

.user-wallet-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .46);
}

.user-wallet-item.default {
  border-color: rgba(250, 204, 21, .34);
  background:
    radial-gradient(circle at 8% 0%, rgba(250, 204, 21, .10), transparent 34%),
    rgba(15, 23, 42, .52);
}

.user-wallet-item em {
  display: block;
  color: #38bdf8;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 5px;
}

.user-wallet-item.default em {
  color: #facc15;
}

.user-wallet-item b {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  margin-bottom: 4px;
}

.user-wallet-item p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

.user-wallet-item-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.user-wallet-item-actions button,
.user-wallet-reset {
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .78);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 900;
}

.user-wallet-item-actions button.danger {
  border-color: rgba(248, 113, 113, .32);
  background: rgba(127, 29, 29, .18);
  color: #fecaca;
}

.user-wallet-action-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
}

.safe-transfer-wallet-choice {
  display: grid !important;
  gap: 8px !important;
  align-items: stretch !important;
}

.safe-transfer-wallet-choice span {
  color: #94a3b8 !important;
  font-size: 13px !important;
}

.safe-transfer-wallet-choice select {
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, .24);
  background: rgba(3, 7, 18, .92);
  color: #f8fafc;
  padding: 0 12px;
  outline: none;
  font-weight: 900;
}

.safe-transfer-wallet-choice small {
  color: #fda4af;
  font-size: 11px;
  line-height: 1.5;
}

/* USER WALLET DETAIL LIST UI */
.user-wallet-current {
  margin-bottom: 12px !important;
}

.user-wallet-list {
  display: grid !important;
  gap: 10px !important;
  margin: 12px 0 16px !important;
}

.user-wallet-list-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 2px 0;
}

.user-wallet-list-title span {
  color: #facc15;
  font-size: 13px;
  font-weight: 900;
}

.user-wallet-list-title b {
  min-width: 48px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, .38);
  background: rgba(250, 204, 21, .08);
  font-size: 12px;
}

.user-wallet-item {
  align-items: stretch !important;
  padding: 13px !important;
  border-radius: 15px !important;
}

.user-wallet-item-main {
  min-width: 0;
  flex: 1;
}

.user-wallet-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.user-wallet-item-head em {
  margin: 0 !important;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .10);
  border: 1px solid rgba(56, 189, 248, .22);
  color: #38bdf8 !important;
}

.user-wallet-item.default .user-wallet-item-head em {
  background: rgba(250, 204, 21, .10);
  border-color: rgba(250, 204, 21, .30);
  color: #facc15 !important;
}

.user-wallet-item-head strong {
  color: #e5edf8;
  font-size: 13px;
  font-weight: 900;
}

.user-wallet-detail-grid {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
}

.user-wallet-detail-grid div {
  display: contents;
}

.user-wallet-detail-grid span {
  color: #8091aa;
  font-size: 12px;
  line-height: 1.6;
}

.user-wallet-detail-grid b {
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}

.user-wallet-item-actions {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 6px !important;
  min-width: 82px;
}

.user-wallet-item-actions button {
  width: 82px;
  height: 28px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

.user-wallet-item-actions button.locked {
  cursor: default;
  color: #facc15;
  border-color: rgba(250, 204, 21, .30);
  background: rgba(250, 204, 21, .08);
}

.user-wallet-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, .14);
}

/* USER WALLET COMPACT LIST UI */
.user-wallet-compact-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 8px;
  color: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.user-wallet-compact-title b {
  min-width: 42px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, .34);
  background: rgba(250, 204, 21, .08);
  color: #facc15;
  font-size: 11px;
}

.user-wallet-compact-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.user-wallet-compact-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(15, 23, 42, .44);
}

.user-wallet-compact-item.default {
  border-color: rgba(250, 204, 21, .34);
  background:
    radial-gradient(circle at 8% 0%, rgba(250, 204, 21, .10), transparent 34%),
    rgba(15, 23, 42, .50);
}

.user-wallet-compact-main {
  min-width: 0;
}

.user-wallet-compact-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.wallet-mini-tag {
  height: 20px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, .24);
  background: rgba(56, 189, 248, .10);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 900;
}

.wallet-mini-tag.default {
  border-color: rgba(250, 204, 21, .34);
  background: rgba(250, 204, 21, .10);
  color: #facc15;
}

.user-wallet-compact-top strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.user-wallet-compact-top em {
  color: #93c5fd;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.user-wallet-compact-address {
  color: #e5edf8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-wallet-compact-remark {
  margin-top: 3px;
  color: #8091aa;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-wallet-compact-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.user-wallet-compact-actions button {
  width: 60px;
  height: 25px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .78);
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 900;
}

.user-wallet-compact-actions button.locked {
  cursor: default;
  color: #facc15;
  border-color: rgba(250, 204, 21, .32);
  background: rgba(250, 204, 21, .08);
}

.user-wallet-compact-actions button.danger {
  border-color: rgba(248, 113, 113, .32);
  background: rgba(127, 29, 29, .18);
  color: #fecaca;
}

.user-wallet-empty.compact {
  padding: 10px 12px;
  font-size: 12px;
}

.user-wallet-form {
  margin-top: 10px !important;
  padding-top: 12px !important;
}

/* USER WALLET DROPDOWN UI */
.user-wallet-current {
  display: none !important;
}

.user-wallet-dropdown-wrap {
  margin: 10px 0 12px !important;
}

.user-wallet-dropdown-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 8px;
}

.user-wallet-dropdown-title span {
  color: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.user-wallet-dropdown-title b {
  min-width: 42px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, .34);
  background: rgba(250, 204, 21, .08);
  color: #facc15;
  font-size: 11px;
}

.user-wallet-dropdown-box {
  display: grid;
  gap: 8px;
}

.user-wallet-dropdown-box select {
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, .22);
  background: rgba(3, 7, 18, .78);
  color: #f8fafc;
  padding: 0 12px;
  outline: none;
  font-size: 13px;
  font-weight: 900;
}

.user-wallet-dropdown-detail {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(15, 23, 42, .44);
}

.user-wallet-dropdown-detail.default {
  border-color: rgba(250, 204, 21, .30);
  background:
    radial-gradient(circle at 8% 0%, rgba(250, 204, 21, .10), transparent 34%),
    rgba(15, 23, 42, .48);
}

.user-wallet-dropdown-main {
  min-width: 0;
}

.user-wallet-dropdown-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.user-wallet-dropdown-head span {
  height: 20px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, .30);
  background: rgba(250, 204, 21, .08);
  color: #facc15;
  font-size: 10px;
  font-weight: 900;
}

.user-wallet-dropdown-head b {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
}

.user-wallet-dropdown-address {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-wallet-dropdown-remark {
  margin-top: 3px;
  color: #8091aa;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-wallet-dropdown-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.user-wallet-dropdown-actions button {
  width: 72px;
  height: 25px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .78);
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 900;
}

.user-wallet-dropdown-actions button.locked {
  cursor: default;
  color: #facc15;
  border-color: rgba(250, 204, 21, .32);
  background: rgba(250, 204, 21, .08);
}

.user-wallet-dropdown-actions button.danger {
  border-color: rgba(248, 113, 113, .32);
  background: rgba(127, 29, 29, .18);
  color: #fecaca;
}

.user-wallet-dropdown-empty {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, .22);
  color: #94a3b8;
  background: rgba(15, 23, 42, .38);
  font-size: 12px;
}

.user-wallet-form {
  margin-top: 10px !important;
  padding-top: 12px !important;
}

/* SAFE TRANSFER STATUS STRONG UI */
.safe-asset-transfer-box {
  min-height: 54px;
  border-width: 1px !important;
}

.safe-asset-transfer-box.pending {
  border-color: rgba(56, 189, 248, .52) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, .16), transparent 34%),
    rgba(8, 47, 73, .22) !important;
  box-shadow: inset 3px 0 0 rgba(56, 189, 248, .85);
}

.safe-asset-transfer-box.approved {
  border-color: rgba(34, 197, 94, .55) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 197, 94, .18), transparent 34%),
    rgba(20, 83, 45, .24) !important;
  box-shadow: inset 3px 0 0 rgba(34, 197, 94, .9);
}

.safe-asset-transfer-box.rejected {
  border-color: rgba(248, 113, 113, .52) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(248, 113, 113, .18), transparent 34%),
    rgba(127, 29, 29, .22) !important;
  box-shadow: inset 3px 0 0 rgba(248, 113, 113, .86);
}

.safe-asset-transfer-box.ready {
  border-color: rgba(250, 204, 21, .36) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(250, 204, 21, .12), transparent 34%),
    rgba(15, 23, 42, .58) !important;
  box-shadow: inset 3px 0 0 rgba(250, 204, 21, .72);
}

.safe-transfer-state b {
  font-size: 15px !important;
  letter-spacing: .5px;
}

.safe-transfer-state span {
  font-size: 12px !important;
  color: #cbd5e1 !important;
}

.safe-transfer-state.pending b {
  color: #38bdf8 !important;
  text-shadow: 0 0 14px rgba(56, 189, 248, .28);
}

.safe-transfer-state.approved b {
  color: #22c55e !important;
  text-shadow: 0 0 14px rgba(34, 197, 94, .30);
}

.safe-transfer-state.rejected b {
  color: #f87171 !important;
  text-shadow: 0 0 14px rgba(248, 113, 113, .30);
}

.safe-transfer-state.ready b {
  color: #facc15 !important;
  text-shadow: 0 0 14px rgba(250, 204, 21, .24);
}

.safe-asset-transfer-box.pending .safe-transfer-btn.disabled,
.safe-asset-transfer-box.pending .safe-transfer-btn:disabled {
  background: rgba(8, 47, 73, .88) !important;
  border-color: rgba(56, 189, 248, .52) !important;
  color: #7dd3fc !important;
  font-weight: 1000;
}

.safe-asset-transfer-box.approved .safe-transfer-btn.disabled,
.safe-asset-transfer-box.approved .safe-transfer-btn:disabled {
  background: rgba(20, 83, 45, .88) !important;
  border-color: rgba(34, 197, 94, .58) !important;
  color: #86efac !important;
  font-weight: 1000;
  box-shadow: 0 0 18px rgba(34, 197, 94, .14);
}

.safe-asset-transfer-box.rejected .safe-transfer-btn {
  background: rgba(127, 29, 29, .82) !important;
  border-color: rgba(248, 113, 113, .52) !important;
  color: #fecaca !important;
}

.safe-asset-transfer-box.ready .safe-transfer-btn {
  background: linear-gradient(135deg, #facc15, #f59e0b) !important;
  color: #111827 !important;
}

.safe-transfer-state.approved::before,
.safe-transfer-state.pending::before,
.safe-transfer-state.rejected::before,
.safe-transfer-state.ready::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
  margin-bottom: 6px;
}

.safe-transfer-state.approved::before {
  content: "到账完成";
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, .42);
  background: rgba(34, 197, 94, .10);
}

.safe-transfer-state.pending::before {
  content: "处理中";
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, .42);
  background: rgba(56, 189, 248, .10);
}

.safe-transfer-state.rejected::before {
  content: "已拒绝";
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, .42);
  background: rgba(127, 29, 29, .18);
}

.safe-transfer-state.ready::before {
  content: "等待转账";
  color: #fde68a;
  border: 1px solid rgba(250, 204, 21, .38);
  background: rgba(250, 204, 21, .08);
}

/* SAFE VAULT FILTER PAGINATION UI */
.safe-vault-filter-panel {
  margin: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, .16);
  background: rgba(15, 23, 42, .42);
}

.safe-vault-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 122px 122px 118px;
  gap: 8px;
}

.safe-vault-filter-grid input,
.safe-vault-filter-grid select {
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(2, 6, 23, .72);
  color: #f8fafc;
  padding: 0 10px;
  outline: none;
  font-size: 12px;
  font-weight: 800;
}

.safe-vault-filter-grid input:focus,
.safe-vault-filter-grid select:focus {
  border-color: rgba(250, 204, 21, .42);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, .08);
}

.safe-vault-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: #94a3b8;
  font-size: 12px;
}

.safe-vault-filter-summary b {
  color: #facc15;
  font-size: 12px;
}

.safe-vault-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 12px 14px;
}

.safe-vault-pager button {
  min-width: 76px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(250, 204, 21, .32);
  background: rgba(250, 204, 21, .10);
  color: #facc15;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.safe-vault-pager button:disabled {
  cursor: not-allowed;
  opacity: .45;
  border-color: rgba(148, 163, 184, .18);
  background: rgba(15, 23, 42, .50);
  color: #94a3b8;
}

.safe-vault-pager span {
  min-width: 92px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(2, 6, 23, .42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e5edf8;
  font-size: 12px;
  font-weight: 900;
}

.safe-vault-no-result {
  padding: 22px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, .24);
  background: rgba(15, 23, 42, .34);
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .safe-vault-filter-grid {
    grid-template-columns: 1fr;
  }

  .safe-vault-filter-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* TOKENPOCKET WALLET AUTH MODAL */
.wallet-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(2, 6, 23, .78);
  backdrop-filter: blur(12px);
}

.wallet-auth-overlay.hidden {
  display: none !important;
}

.wallet-auth-modal {
  position: relative;
  width: 420px;
  max-width: 94vw;
  border-radius: 22px;
  border: 1px solid rgba(250, 204, 21, .34);
  background:
    radial-gradient(circle at 16% 0%, rgba(250, 204, 21, .16), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
  padding: 22px;
}

.wallet-auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .72);
  color: #cbd5e1;
  font-size: 20px;
  cursor: pointer;
}

.wallet-auth-head em {
  display: block;
  color: #facc15;
  font-style: normal;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 2px;
  margin-bottom: 7px;
}

.wallet-auth-head h3 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 22px;
  letter-spacing: 1px;
}

.wallet-auth-head p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.7;
}

.wallet-auth-qr-box {
  width: 246px;
  height: 246px;
  margin: 18px auto 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(250, 204, 21, .28);
  background: #ffffff;
}

.wallet-auth-qr-box img {
  width: 100%;
  height: 100%;
  display: block;
}

.wallet-auth-link {
  max-height: 54px;
  overflow: hidden;
  word-break: break-all;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, .14);
  background: rgba(2, 6, 23, .42);
  color: #93c5fd;
  font-size: 11px;
  line-height: 1.5;
  padding: 9px 10px;
}

.wallet-auth-status {
  margin-top: 12px;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, .18);
  background: rgba(250, 204, 21, .08);
  color: #fde68a;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
}

.wallet-auth-status.success {
  border-color: rgba(34, 197, 94, .32);
  background: rgba(34, 197, 94, .10);
  color: #86efac;
}

.wallet-auth-status.error {
  border-color: rgba(248, 113, 113, .32);
  background: rgba(127, 29, 29, .18);
  color: #fecaca;
}

.wallet-auth-status.pending {
  border-color: rgba(56, 189, 248, .32);
  background: rgba(56, 189, 248, .10);
  color: #7dd3fc;
}
