/* ═══════════════════════════════════════════
   VUV Wallet — 宇宙币钱包
   ═══════════════════════════════════════════ */

#wallet-page {
  position: relative; z-index: 10; min-height: 100vh; padding: 120px 50px 60px;
  max-width: 1200px; margin: 0 auto;
}

/* ── Hero ── */
.wallet-hero { text-align: center; margin-bottom: 40px; }
.wallet-hero .section-label {
  font-family: 'Orbitron', sans-serif; font-size: 0.7rem; letter-spacing: 4px;
  text-transform: uppercase; color: rgba(0,212,255,0.5); margin-bottom: 8px;
}
.wallet-hero .section-title {
  font-family: 'Orbitron', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900; color: #fff;
}

/* ── Main Card ── */
.wallet-main-card {
  padding: 40px; background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(157,78,221,0.06));
  border: 1px solid rgba(0,212,255,0.15); border-radius: 24px; text-align: center;
  margin-bottom: 24px; backdrop-filter: blur(10px);
}
.wallet-balance-label {
  font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 8px;
}
.wallet-balance {
  font-family: 'Orbitron', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  background: linear-gradient(135deg, #00d4ff, #9d4edd); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 4px;
}
.wallet-balance.skeleton { min-width: 200px; height: 3rem; border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; margin: 0 auto 4px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.wallet-currency {
  color: rgba(255,255,255,0.4); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 6px;
}
.wallet-cny-equiv {
  color: rgba(255,255,255,0.25); font-size: 0.75rem; margin-bottom: 24px;
}

/* ── Action Buttons ── */
.wallet-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.wallet-btn {
  padding: 13px 32px; border-radius: 50px; font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.85rem; font-weight: 700; cursor: pointer; border: none;
  transition: all 0.3s; letter-spacing: 1px;
}
.wallet-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.wallet-btn-deposit { background: linear-gradient(135deg, #00d4ff, #9d4edd); color: #fff; }
.wallet-btn-deposit:hover:not(:disabled) { box-shadow: 0 0 25px rgba(0,212,255,0.35); transform: translateY(-2px); }
.wallet-btn-withdraw { background: transparent; border: 1px solid rgba(0,212,255,0.35); color: #00d4ff; }
.wallet-btn-withdraw:hover:not(:disabled) { background: rgba(0,212,255,0.08); transform: translateY(-2px); }
.wallet-btn-transfer { background: transparent; border: 1px solid rgba(157,78,221,0.35); color: #9d4edd; }
.wallet-btn-transfer:hover:not(:disabled) { background: rgba(157,78,221,0.08); transform: translateY(-2px); }
.wallet-btn-pin { background: transparent; border: 1px solid rgba(255,215,0,0.25); color: rgba(255,215,0,0.7); }
.wallet-btn-pin:hover:not(:disabled) { background: rgba(255,215,0,0.06); }

/* ── Stats Row ── */
.wallet-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.wallet-stat {
  padding: 16px; background: rgba(255,255,255,0.02); border: 1px solid rgba(0,212,255,0.06);
  border-radius: 14px; text-align: center;
}
.wallet-stat-label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 6px; }
.wallet-stat-value { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; }

/* ── Rate Info ── */
.wallet-rate-info {
  padding: 18px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,215,0,0.1);
  border-radius: 14px; margin-bottom: 24px; display: flex; align-items: center;
  gap: 12px; backdrop-filter: blur(10px);
}
.rate-icon { font-size: 1.3rem; }
.rate-text { flex: 1; }
.rate-text p { color: rgba(255,255,255,0.45); font-size: 0.82rem; line-height: 1.6; margin: 0; }
.rate-highlight { color: #ffd700; font-weight: 700; }

/* ── TX List ── */
.wallet-tx-list { margin-top: 24px; }
.wallet-tx-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,212,255,0.06);
}
.wallet-tx-title {
  font-family: 'Orbitron', sans-serif; font-size: 0.7rem; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
}
.tx-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid rgba(0,212,255,0.04); transition: background 0.2s;
}
.tx-item:hover { background: rgba(255,255,255,0.01); }
.tx-icon {
  width: 38px; height: 38px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.tx-icon.deposit { background: rgba(0,255,136,0.08); color: #00ff88; }
.tx-icon.withdraw { background: rgba(255,45,120,0.08); color: #ff2d78; }
.tx-icon.transfer_in { background: rgba(0,212,255,0.08); color: #00d4ff; }
.tx-icon.transfer_out { background: rgba(157,78,221,0.08); color: #9d4edd; }
.tx-icon.fee { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.3); }
.tx-icon.exchange { background: rgba(255,215,0,0.08); color: #ffd700; }
.tx-info { flex: 1; min-width: 0; }
.tx-type { font-size: 0.88rem; font-weight: 600; color: #fff; }
.tx-time { font-size: 0.72rem; color: rgba(255,255,255,0.3); margin-top: 2px; }
.tx-amount { font-family: 'Orbitron', sans-serif; font-size: 0.92rem; font-weight: 700; white-space: nowrap; }
.tx-amount.positive { color: #00ff88; }
.tx-amount.negative { color: #ff2d78; }

/* ── Empty State ── */
.tx-empty { text-align: center; padding: 40px 0; color: rgba(255,255,255,0.2); font-size: 0.85rem; }

/* ── Load More ── */
.tx-loadmore {
  display: block; margin: 16px auto 0; padding: 8px 24px; border-radius: 20px;
  background: transparent; border: 1px solid rgba(0,212,255,0.15); color: rgba(0,212,255,0.5);
  font-size: 0.78rem; cursor: pointer; transition: all 0.3s;
}
.tx-loadmore:hover { background: rgba(0,212,255,0.05); color: #00d4ff; }

/* ── Not Logged In ── */
.wallet-login-prompt {
  text-align: center; padding: 80px 20px;
}
.wallet-login-prompt p { color: rgba(255,255,255,0.4); margin-bottom: 20px; font-size: 0.95rem; }
.wallet-login-btn {
  padding: 14px 48px; border-radius: 50px;
  background: linear-gradient(135deg, #00d4ff, #9d4edd); color: #fff;
  font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer;
  transition: all 0.3s; letter-spacing: 1px;
}
.wallet-login-btn:hover { box-shadow: 0 0 30px rgba(0,212,255,0.4); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   Modals
   ═══════════════════════════════════════════ */
.wallet-modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 9999;
  justify-content: center; align-items: center;
}
.wallet-modal-overlay.active { display: flex; }
.wallet-modal {
  background: #0c0f1a; border: 1px solid rgba(0,212,255,0.15); border-radius: 20px;
  padding: 32px; width: 90%; max-width: 420px; position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.wallet-modal-title {
  font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700;
  color: #fff; text-align: center; margin-bottom: 24px; letter-spacing: 1px;
}
.wallet-modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: rgba(255,255,255,0.3); font-size: 1.3rem; cursor: pointer; transition: color 0.2s;
}
.wallet-modal-close:hover { color: #fff; }

/* ── Form ── */
.wallet-field { margin-bottom: 16px; }
.wallet-field label {
  display: block; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 6px;
}
.wallet-field input, .wallet-field select {
  width: 100%; padding: 12px 14px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,212,255,0.12); border-radius: 10px; color: #fff;
  font-size: 0.9rem; font-family: 'Orbitron', sans-serif; outline: none;
  transition: border-color 0.2s;
}
.wallet-field input::placeholder { color: rgba(255,255,255,0.15); }
.wallet-field input:focus, .wallet-field select:focus { border-color: rgba(0,212,255,0.4); }
.wallet-field-hint { font-size: 0.7rem; color: rgba(255,255,255,0.2); margin-top: 4px; }
.wallet-field-error { font-size: 0.72rem; color: #ff2d78; margin-top: 4px; display: none; }

.wallet-submit {
  width: 100%; padding: 13px; border-radius: 50px; border: none;
  background: linear-gradient(135deg, #00d4ff, #9d4edd); color: #fff;
  font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.3s;
  margin-top: 8px;
}
.wallet-submit:hover { box-shadow: 0 0 25px rgba(0,212,255,0.3); transform: translateY(-1px); }
.wallet-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ── Transfer Result ── */
.transfer-result {
  text-align: center; padding: 20px 0; display: none;
}
.transfer-result.success { display: block; }
.transfer-result .result-icon { font-size: 2.5rem; margin-bottom: 12px; }
.transfer-result .result-text { color: #00ff88; font-size: 0.9rem; margin-bottom: 8px; }
.transfer-result .result-detail { color: rgba(255,255,255,0.4); font-size: 0.78rem; }

/* ── PIN Dots ── */
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 20px 0; }
.pin-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(0,212,255,0.3); transition: all 0.2s;
}
.pin-dot.filled { background: #00d4ff; border-color: #00d4ff; }
.pin-input-hidden { position: absolute; opacity: 0; width: 0; height: 0; }

/* ── Responsive ── */
@media (max-width: 600px) {
  #wallet-page { padding: 100px 16px 40px; }
  .wallet-main-card { padding: 24px 16px; }
  .wallet-actions { gap: 8px; }
  .wallet-btn { padding: 11px 20px; font-size: 0.8rem; }
  .wallet-stats { grid-template-columns: repeat(2, 1fr); }
  .wallet-modal { padding: 24px 18px; }
}
