.app-main:has(.wd-page),
.app-main:has(.wdr-page) {
  padding: 0 0 calc(16px + var(--safe-bottom));
  background: #020302;
}

body:has(.wd-page) .tabbar,
body:has(.wdr-page) .tabbar {
  display: none !important;
}

/* ========== 提现 ========== */
.wd-page {
  --c-accent: #b6f53a;
  --c-muted: #8f9688;
  --c-sub: #8f9688;
  --c-soft: #dfe8d2;
  --c-card: rgba(14, 18, 12, 0.72);
  --c-border: rgba(182, 245, 58, 0.14);
  --wd-header-height: 48px;
  position: relative;
  isolation: isolate;
  min-height: 100%;
  min-height: 100dvh;
  padding: 0;
  padding-top: calc(var(--wd-header-height) + var(--safe-top));
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(126, 201, 34, 0.14), transparent 55%),
    linear-gradient(180deg, #050805 0%, #020302 50%, #000 100%);
  color: #f4f7ef;
  font-feature-settings: "tnum" 1;
}

.wd-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.wd-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.48;
  animation: wd-float 10s ease-in-out infinite;
}

.wd-orb-a {
  width: 210px;
  height: 210px;
  top: 8%;
  right: -70px;
  background: radial-gradient(circle, rgba(182, 245, 58, 0.3), transparent 68%);
}

.wd-orb-b {
  width: 240px;
  height: 240px;
  bottom: 18%;
  left: -90px;
  background: radial-gradient(circle, rgba(90, 160, 30, 0.22), transparent 70%);
  animation-delay: -3.5s;
}

.wd-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(182, 245, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 245, 58, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
  opacity: 0.6;
}

@keyframes wd-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(14px) scale(1.05); }
}

.wd-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  width: 100%;
  max-width: 480px;
  height: calc(var(--wd-header-height) + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  box-sizing: border-box;
  z-index: 90;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(2, 3, 2, 0.94), rgba(2, 3, 2, 0.78) 75%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wd-back {
  width: 36px;
  height: 36px;
  margin-left: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #eef7dc;
  border: 1px solid rgba(182, 245, 58, 0.16);
  background: rgba(182, 245, 58, 0.06);
  text-decoration: none;
}

.wd-back:active {
  background: rgba(182, 245, 58, 0.14);
  color: var(--c-accent);
}

.wd-title {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.03em;
}

.wd-records {
  font-size: 12px;
  font-weight: 650;
  color: var(--c-accent);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(182, 245, 58, 0.22);
  background: rgba(182, 245, 58, 0.08);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(182, 245, 58, 0.1);
}

.wd-body {
  position: relative;
  z-index: 1;
  padding: 10px 16px 24px;
}

.wd-card {
  position: relative;
  margin-top: 12px;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--c-border);
  background:
    linear-gradient(145deg, rgba(182, 245, 58, 0.07), transparent 42%),
    var(--c-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.wd-card:first-child {
  margin-top: 0;
}

.wd-card-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  right: -36px;
  top: -46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 245, 58, 0.16), transparent 70%);
  pointer-events: none;
}

.wd-card-label {
  font-size: 12px;
  font-weight: 650;
  color: #cfd8c2;
  line-height: 1;
}

.wd-address-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(182, 245, 58, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.wd-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(182, 245, 58, 0.3));
}

.wd-address {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(182, 245, 58, 0.1);
  border: 1px solid rgba(182, 245, 58, 0.22);
  color: var(--c-accent);
  font-size: 11px;
  font-weight: 650;
  padding: 4px 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.wd-copy img {
  width: 12px;
  height: 12px;
}

.wd-balance {
  margin-top: 14px;
  font-size: 26px;
  line-height: 1.15;
  color: var(--c-accent);
  font-weight: 750;
  text-shadow: 0 0 18px rgba(182, 245, 58, 0.35);
}

.wd-fiat {
  margin-top: 10px;
  font-size: 12px;
  color: #cfd8c2;
  line-height: 1;
}

.wd-amount-box {
  margin-top: 12px;
  height: 46px;
  padding: 0 12px 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(182, 245, 58, 0.22);
  background: rgba(8, 12, 6, 0.72);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wd-amount-box.is-focus {
  border-color: rgba(182, 245, 58, 0.55);
  box-shadow: 0 0 16px rgba(182, 245, 58, 0.14);
}

.wd-amount-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.wd-amount-input::placeholder {
  color: var(--c-muted);
  font-weight: 400;
}

.wd-max {
  border: 0;
  background: rgba(182, 245, 58, 0.1);
  border: 1px solid rgba(182, 245, 58, 0.22);
  color: var(--c-accent);
  font-size: 11px;
  font-weight: 650;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.wd-channel-tip {
  margin-top: 10px;
  font-size: 11px;
  color: var(--c-sub);
  line-height: 1.35;
  min-height: 0;
}

.wd-gas-card {
  padding-bottom: 14px;
}

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

.wd-gas-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  color: #dfe8d2;
}

.wd-gas-value {
  font-size: 13px;
  font-weight: 650;
  color: var(--c-accent);
  text-shadow: 0 0 10px rgba(182, 245, 58, 0.2);
}

.wd-gas-hint {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(182, 245, 58, 0.1);
  background: rgba(0, 0, 0, 0.22);
  font-size: 11px;
  line-height: 1.4;
  color: var(--c-sub);
}

.wd-submit {
  margin-top: 22px;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #7ec922, #c8ff4a);
  color: #0b1204;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(182, 245, 58, 0.28);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.wd-submit:active {
  transform: scale(0.99);
}

.wd-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.wd-footer-tip {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--c-sub);
  line-height: 1.4;
}

.wd-confirm[hidden] {
  display: none !important;
}

.wd-confirm {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.wd-confirm-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.wd-confirm-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(182, 245, 58, 0.1), transparent 42%),
    rgba(12, 16, 10, 0.96);
  border: 1px solid rgba(182, 245, 58, 0.22);
  padding: 20px 18px 16px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(182, 245, 58, 0.1);
  backdrop-filter: blur(14px);
}

.wd-confirm-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wd-confirm-desc {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.4;
}

.wd-confirm-rows {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(182, 245, 58, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.wd-confirm-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #9aa393;
}

.wd-confirm-row strong {
  color: #fff;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
  max-width: 62%;
}

.wd-confirm-row strong.is-warn {
  color: #ff6b6b;
}

.wd-confirm-tip {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.22);
  color: #ff8e8e;
  font-size: 11px;
  line-height: 1.4;
}

.wd-confirm-tip[hidden] {
  display: none !important;
}

.wd-confirm-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wd-confirm-cancel,
.wd-confirm-ok {
  height: 42px;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.wd-confirm-cancel {
  background: rgba(182, 245, 58, 0.06);
  border: 1px solid rgba(182, 245, 58, 0.14);
  color: #cfd8c2;
}

.wd-confirm-ok {
  background: linear-gradient(90deg, #7ec922, #c8ff4a);
  color: #0b1204;
  box-shadow: 0 0 18px rgba(182, 245, 58, 0.28);
}

.wd-confirm-ok:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* ========== 提现记录 ========== */
.wdr-page {
  --c-accent: #b6f53a;
  --c-muted: #8f9688;
  --c-sub: #8f9688;
  --c-card: rgba(14, 18, 12, 0.72);
  --c-border: rgba(182, 245, 58, 0.14);
  --wdr-header-height: 48px;
  position: relative;
  isolation: isolate;
  min-height: 100%;
  min-height: 100dvh;
  padding: 0;
  padding-top: calc(var(--wdr-header-height) + var(--safe-top));
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(126, 201, 34, 0.14), transparent 55%),
    linear-gradient(180deg, #050805 0%, #020302 50%, #000 100%);
  color: #f4f7ef;
  font-feature-settings: "tnum" 1;
}

.wdr-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.wdr-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.48;
  animation: wdr-float 10s ease-in-out infinite;
}

.wdr-orb-a {
  width: 210px;
  height: 210px;
  top: 8%;
  right: -70px;
  background: radial-gradient(circle, rgba(182, 245, 58, 0.3), transparent 68%);
}

.wdr-orb-b {
  width: 240px;
  height: 240px;
  bottom: 18%;
  left: -90px;
  background: radial-gradient(circle, rgba(90, 160, 30, 0.22), transparent 70%);
  animation-delay: -3.5s;
}

.wdr-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(182, 245, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 245, 58, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
  opacity: 0.6;
}

@keyframes wdr-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(14px) scale(1.05); }
}

.wdr-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  width: 100%;
  max-width: 480px;
  height: calc(var(--wdr-header-height) + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  box-sizing: border-box;
  z-index: 90;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(2, 3, 2, 0.94), rgba(2, 3, 2, 0.78) 75%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wdr-back {
  width: 36px;
  height: 36px;
  margin-left: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #eef7dc;
  border: 1px solid rgba(182, 245, 58, 0.16);
  background: rgba(182, 245, 58, 0.06);
  text-decoration: none;
}

.wdr-back:active {
  background: rgba(182, 245, 58, 0.14);
  color: var(--c-accent);
}

.wdr-title {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.03em;
}

.wdr-topbar-spacer {
  width: 36px;
  height: 36px;
}

.wdr-body {
  position: relative;
  z-index: 1;
  padding: 10px 16px 20px;
}

.wdr-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
}

.wdr-empty {
  border: 1px dashed rgba(182, 245, 58, 0.18);
  border-radius: 14px;
  background: rgba(14, 18, 12, 0.45);
  padding: 48px 14px;
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
}

.wdr-item {
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(182, 245, 58, 0.07), transparent 42%),
    var(--c-card);
  padding: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wdr-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wdr-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 12px rgba(182, 245, 58, 0.18);
}

.wdr-badge {
  flex-shrink: 0;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 650;
  color: var(--c-accent);
  background: rgba(182, 245, 58, 0.12);
  border: 1px solid rgba(182, 245, 58, 0.28);
  box-shadow: 0 0 12px rgba(182, 245, 58, 0.1);
}

.wdr-badge.is-done {
  color: var(--c-sub);
  background: rgba(143, 150, 136, 0.12);
  border-color: rgba(143, 150, 136, 0.2);
  box-shadow: none;
}

.wdr-badge.is-reject {
  color: #ff8e8e;
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.28);
  box-shadow: none;
}

.wdr-item-meta {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(182, 245, 58, 0.1);
  background: rgba(0, 0, 0, 0.22);
  font-size: 11px;
  color: var(--c-sub);
  line-height: 1.55;
}

.wdr-page .app-list-more {
  color: var(--c-muted);
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  transform: translateX(-50%) translateY(12px);
  max-width: min(86vw, 360px);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(10, 14, 8, 0.94);
  border: 1px solid rgba(182, 245, 58, 0.22);
  color: #f2f2f2;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 240;
  text-align: center;
  box-shadow: 0 0 20px rgba(182, 245, 58, 0.1);
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .wd-orb,
  .wdr-orb {
    animation: none !important;
  }
}
