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

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

/* ========== 充值 ========== */
.rc-page {
  --c-accent: #b6f53a;
  --c-muted: #8f9688;
  --c-sub: #8f9688;
  --c-soft: #dfe8d2;
  --c-line: rgba(182, 245, 58, 0.14);
  --c-panel: rgba(14, 18, 12, 0.72);
  --rc-header-height: 48px;
  position: relative;
  isolation: isolate;
  min-height: 100%;
  min-height: 100dvh;
  padding: 0;
  padding-top: calc(var(--rc-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;
}

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

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

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

.rc-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;
}

.rc-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 rc-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(14px) scale(1.05); }
}

.rc-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(--rc-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);
}

.rc-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;
}

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

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

.rc-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);
}

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

.rc-lead {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-sub);
}

.rc-select {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 12px;
  padding: 16px 14px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(182, 245, 58, 0.07), transparent 42%),
    var(--c-panel);
  border: 1px solid var(--c-line);
  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;
}

.rc-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;
}

.rc-select-col {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.rc-select-divider {
  position: relative;
  z-index: 1;
  width: 1px;
  background: rgba(182, 245, 58, 0.12);
  align-self: stretch;
}

.rc-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 650;
  color: #cfd8c2;
  letter-spacing: 0.02em;
}

.rc-option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rc-empty {
  width: 100%;
  font-size: 12px;
  color: var(--c-sub);
  padding: 4px 0;
  line-height: 1.35;
}

.rc-coin,
.rc-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(182, 245, 58, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rc-coin.is-active,
.rc-channel.is-active {
  background: rgba(182, 245, 58, 0.12);
  border-color: rgba(182, 245, 58, 0.45);
  box-shadow: 0 0 14px rgba(182, 245, 58, 0.14);
}

.rc-coin-icon,
.rc-channel-icon,
.rc-coin-icon-fallback,
.rc-channel-icon-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rc-coin-icon,
.rc-channel-icon {
  object-fit: cover;
  background: #151515;
  box-shadow: 0 0 10px rgba(182, 245, 58, 0.12);
}

.rc-coin-icon-fallback,
.rc-channel-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(182, 245, 58, 0.12);
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 700;
}

.rc-channel-icons {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.rc-channel-chain {
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #020302;
  background: #1a1a1a;
  object-fit: cover;
}

.rc-coin-meta,
.rc-channel-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.rc-coin-name,
.rc-channel-name {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.15;
  color: #f5f5f5;
}

.rc-coin-sub,
.rc-channel-sub {
  font-size: 10px;
  line-height: 1.1;
  color: var(--c-sub);
}

.rc-panel {
  margin-top: 14px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(182, 245, 58, 0.07), transparent 42%),
    var(--c-panel);
  border: 1px solid var(--c-line);
  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);
}

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

.rc-loading {
  padding: 36px 0;
  text-align: center;
  color: var(--c-sub);
  font-size: 13px;
}

.rc-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.rc-qr-box {
  width: 176px;
  height: 176px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px rgba(182, 245, 58, 0.22),
    0 0 24px rgba(182, 245, 58, 0.16),
    0 10px 30px rgba(0, 0, 0, 0.35);
}

.rc-qr-box img,
.rc-qr-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.rc-addr {
  margin-top: 10px;
  padding: 12px 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(182, 245, 58, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.rc-addr[hidden] {
  display: none !important;
}

.rc-addr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 650;
  color: #cfd8c2;
}

.rc-copy-btn {
  min-width: 52px;
  height: 26px;
  padding: 0 10px;
  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;
  cursor: pointer;
}

.rc-addr-value {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  color: #f2f2f2;
  word-break: break-all;
  font-variant-ligatures: none;
}

.rc-wallet-pay {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(182, 245, 58, 0.16);
  background: rgba(0, 0, 0, 0.24);
}

.rc-wallet-pay[hidden] {
  display: none !important;
}

.rc-wallet-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 650;
  color: #cfd8c2;
}

.rc-wallet-symbol {
  color: var(--c-accent);
  font-size: 12px;
}

.rc-wallet-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rc-wallet-amount {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(182, 245, 58, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.rc-wallet-amount::placeholder {
  color: rgba(143, 150, 136, 0.85);
}

.rc-wallet-transfer {
  flex-shrink: 0;
  min-width: 92px;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #7ec922, #c8ff4a);
  color: #0b1204;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(182, 245, 58, 0.22);
}

.rc-wallet-transfer:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.rc-wallet-tip {
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--c-sub);
}

.rc-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(182, 245, 58, 0.1);
  background: rgba(0, 0, 0, 0.18);
  font-size: 11px;
  line-height: 1.45;
  color: var(--c-sub);
}

/* ========== 充值记录 ========== */
.rcr-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);
  --rcr-header-height: 48px;
  position: relative;
  isolation: isolate;
  min-height: 100%;
  min-height: 100dvh;
  padding: 0;
  padding-top: calc(var(--rcr-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;
}

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

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

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

.rcr-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;
}

.rcr-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 rcr-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(14px) scale(1.05); }
}

.rcr-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(--rcr-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);
}

.rcr-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;
}

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

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

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

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

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

.rcr-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;
}

.rcr-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);
}

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

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

.rcr-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);
  white-space: nowrap;
}

.rcr-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;
}

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

.rcr-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;
  word-break: break-all;
}

.rcr-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) {
  .rc-orb,
  .rcr-orb {
    animation: none !important;
  }
}
