/* ══════════════════════════════════════════════════════════════
   CoinRush Wallet Modals V2 — Premium Redesign
   Design System: Sora + Inter, #4fffb0 accent, glassmorphism
   ══════════════════════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  --wm-accent: #4fffb0;
  --wm-accent-dim: rgba(79, 255, 176, 0.12);
  --wm-accent-glow: rgba(79, 255, 176, 0.25);
  --wm-bg: #030308;
  --wm-surface: rgba(10, 12, 24, 0.88);
  --wm-surface-light: rgba(255, 255, 255, 0.04);
  --wm-surface-hover: rgba(255, 255, 255, 0.07);
  --wm-border: rgba(255, 255, 255, 0.06);
  --wm-border-focus: rgba(79, 255, 176, 0.35);
  --wm-text: #eaf0f8;
  --wm-text-dim: #8b97a8;
  --wm-text-muted: #5a6577;
  --wm-radius: 18px;
  --wm-radius-sm: 12px;
  --wm-font-heading: 'Sora', system-ui, sans-serif;
  --wm-font-body: 'Inter', system-ui, sans-serif;
  --wm-font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --wm-withdraw-accent: #fbbf24;
  --wm-withdraw-dim: rgba(251, 191, 36, 0.12);
  --wm-withdraw-glow: rgba(251, 191, 36, 0.25);
  --wm-danger: #f87171;
  --wm-success: #4fffb0;
}

/* ── Overlay ── */
.wm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 2, 6, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: wmFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes wmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Modal ── */
.wm-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  background: linear-gradient(168deg, rgba(12, 16, 28, 0.96) 0%, rgba(6, 8, 16, 0.98) 100%);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 32px 80px -12px rgba(0, 0, 0, 0.7),
    0 0 60px -20px rgba(79, 255, 176, 0.06);
  color: var(--wm-text);
  overflow: hidden;
  animation: wmSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--wm-font-body);
}

/* Top accent line */
.wm-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--wm-accent), transparent);
  border-radius: 0 0 2px 2px;
  opacity: 0.7;
  z-index: 1;
}

@keyframes wmSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Close button ── */
.wm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wm-border);
  border-radius: 10px;
  background: var(--wm-surface-light);
  color: var(--wm-text-dim);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}
.wm-close:hover {
  background: var(--wm-surface-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

/* ── Scrollable content ── */
.wm-scroll {
  padding: 32px 28px 28px;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 255, 176, 0.15) transparent;
}
.wm-scroll::-webkit-scrollbar { width: 3px; }
.wm-scroll::-webkit-scrollbar-track { background: transparent; }
.wm-scroll::-webkit-scrollbar-thumb {
  background: rgba(79, 255, 176, 0.2);
  border-radius: 4px;
}

/* ── Header ── */
.wm-header {
  text-align: center;
  margin-bottom: 28px;
}
.wm-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--wm-accent-dim);
  border: 1px solid rgba(79, 255, 176, 0.15);
  margin-bottom: 16px;
  font-size: 24px;
}
.wm-header-icon--withdraw {
  background: var(--wm-withdraw-dim);
  border-color: rgba(251, 191, 36, 0.15);
}
.wm-title {
  font-family: var(--wm-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.2;
}
.wm-subtitle {
  font-family: var(--wm-font-body);
  font-size: 14px;
  color: var(--wm-text-dim);
  margin: 0;
  letter-spacing: -0.01em;
}
.wm-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 18px;
  background: var(--wm-accent-dim);
  border: 1px solid rgba(79, 255, 176, 0.12);
  border-radius: 100px;
  font-family: var(--wm-font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(79, 255, 176, 0.85);
  letter-spacing: -0.01em;
}
.wm-balance-pill strong {
  color: var(--wm-accent);
  font-weight: 700;
}

/* ── Sections ── */
.wm-section {
  margin-bottom: 22px;
}
.wm-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wm-font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--wm-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.wm-net-badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  background: var(--wm-accent-dim);
  color: var(--wm-accent);
  border-radius: 5px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Input ── */
.wm-input-wrap {
  display: flex;
  align-items: center;
  background: var(--wm-surface-light);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius-sm);
  padding: 0 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.wm-input-wrap:focus-within {
  border-color: var(--wm-border-focus);
  box-shadow: 0 0 0 3px rgba(79, 255, 176, 0.08), inset 0 0 0 1px rgba(79, 255, 176, 0.05);
  background: rgba(255, 255, 255, 0.05);
}
.wm-input-prefix {
  font-family: var(--wm-font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--wm-text-muted);
  margin-right: 4px;
}
.wm-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--wm-font-heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 14px 0;
  width: 100%;
  -moz-appearance: textfield;
  appearance: textfield;
}
.wm-input::placeholder {
  color: var(--wm-text-muted);
  font-weight: 400;
}
.wm-input::-webkit-outer-spin-button,
.wm-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.wm-addr-input {
  display: block;
  width: 100%;
  background: var(--wm-surface-light);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius-sm);
  color: #fff;
  font-size: 13px;
  font-family: var(--wm-font-mono);
  padding: 14px 16px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  letter-spacing: 0.01em;
}
.wm-addr-input:focus {
  border-color: var(--wm-border-focus);
  box-shadow: 0 0 0 3px rgba(79, 255, 176, 0.08);
  background: rgba(255, 255, 255, 0.05);
}
.wm-addr-input::placeholder { color: var(--wm-text-muted); }

.wm-addr-warn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.1);
  border-radius: 8px;
  font-size: 11px;
  color: var(--wm-withdraw-accent);
  font-family: var(--wm-font-body);
}
.wm-addr-warn strong { color: #fde68a; font-weight: 600; }

.wm-max {
  padding: 6px 12px;
  font-family: var(--wm-font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--wm-accent);
  background: var(--wm-accent-dim);
  border: 1px solid rgba(79, 255, 176, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wm-max:hover {
  background: rgba(79, 255, 176, 0.18);
  border-color: rgba(79, 255, 176, 0.25);
}

/* ── Quick amounts ── */
.wm-quick-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.wm-quick {
  flex: 1;
  padding: 9px 4px;
  font-family: var(--wm-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--wm-text-dim);
  background: var(--wm-surface-light);
  border: 1px solid var(--wm-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}
.wm-quick:hover {
  background: var(--wm-surface-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.wm-quick.active {
  background: var(--wm-accent-dim);
  border-color: rgba(79, 255, 176, 0.3);
  color: var(--wm-accent);
  box-shadow: 0 0 12px -4px rgba(79, 255, 176, 0.2);
}

/* ── Crypto grid ── */
.wm-crypto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wm-crypto-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--wm-surface-light);
  border: 1px solid var(--wm-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.wm-crypto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.wm-crypto-card:hover {
  background: var(--wm-surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
}
.wm-crypto-card:hover::before {
  opacity: 1;
}
.wm-crypto-card.selected {
  background: var(--wm-accent-dim);
  border-color: rgba(79, 255, 176, 0.35);
  box-shadow: 0 0 0 1px rgba(79, 255, 176, 0.1), 0 4px 20px -4px rgba(79, 255, 176, 0.15);
}
.wm-crypto-card.selected::before {
  background: linear-gradient(90deg, transparent, var(--wm-accent), transparent);
  opacity: 0.4;
}
.wm-crypto-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wm-crypto-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.wm-crypto-icon img,
.wm-crypto-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}
.wm-crypto-sym {
  font-family: var(--wm-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.wm-crypto-name {
  font-size: 11px;
  color: var(--wm-text-dim);
  font-weight: 500;
  margin-top: 1px;
}
.wm-crypto-net {
  font-size: 9px;
  font-weight: 600;
  color: var(--wm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
}
.wm-crypto-est {
  font-family: var(--wm-font-body);
  font-size: 12px;
  color: var(--wm-text-dim);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wm-crypto-card.selected .wm-crypto-est {
  color: rgba(79, 255, 176, 0.7);
  border-top-color: rgba(79, 255, 176, 0.1);
}

/* ── Terms ── */
.wm-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  cursor: pointer;
  padding: 12px 14px;
  background: var(--wm-surface-light);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius-sm);
  transition: all 0.2s;
}
.wm-terms-row:hover {
  background: var(--wm-surface-hover);
}
.wm-terms-row input[type="checkbox"] {
  display: none;
}
.wm-check-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1px;
}
.wm-terms-row input:checked + .wm-check-box {
  background: var(--wm-accent);
  border-color: var(--wm-accent);
  box-shadow: 0 0 12px -2px rgba(79, 255, 176, 0.35);
}
.wm-terms-row input:checked + .wm-check-box::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #030308;
  font-size: 12px;
  font-weight: 800;
}
.wm-terms-text {
  font-family: var(--wm-font-body);
  font-size: 12px;
  color: var(--wm-text-dim);
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.wm-terms-text a {
  color: var(--wm-accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}
.wm-terms-text a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ── Error ── */
.wm-error {
  padding: 12px 16px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: var(--wm-radius-sm);
  color: var(--wm-danger);
  font-family: var(--wm-font-body);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wm-error::before {
  content: '⚠';
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Buttons ── */
.wm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  font-family: var(--wm-font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.wm-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.wm-btn-primary {
  background: linear-gradient(135deg, #4fffb0 0%, #34d399 50%, #2ac487 100%);
  color: #030308;
  font-weight: 700;
  box-shadow: 0 4px 20px -4px rgba(79, 255, 176, 0.35);
}
.wm-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
.wm-btn-primary:hover:not(:disabled) {
  box-shadow: 0 8px 28px -4px rgba(79, 255, 176, 0.45);
  transform: translateY(-2px);
}
.wm-btn-primary:hover:not(:disabled)::before {
  left: 100%;
}
.wm-btn-secondary {
  background: var(--wm-surface-light);
  color: var(--wm-text);
  border: 1px solid var(--wm-border);
  font-weight: 500;
}
.wm-btn-secondary:hover:not(:disabled) {
  background: var(--wm-surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
}
.wm-btn-withdraw {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #1a0a00;
  font-weight: 700;
  box-shadow: 0 4px 20px -4px rgba(251, 191, 36, 0.3);
}
.wm-btn-withdraw::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
.wm-btn-withdraw:hover:not(:disabled) {
  box-shadow: 0 8px 28px -4px rgba(251, 191, 36, 0.4);
  transform: translateY(-2px);
}
.wm-btn-withdraw:hover:not(:disabled)::before {
  left: 100%;
}
.wm-btn-group {
  display: flex;
  gap: 10px;
}
.wm-btn-group .wm-btn { flex: 1; }

/* ── Center states (processing, success, error) ── */
.wm-center-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 36px;
  gap: 16px;
}
.wm-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.wm-state-icon--success {
  background: rgba(79, 255, 176, 0.1);
  border: 1px solid rgba(79, 255, 176, 0.15);
}
.wm-state-icon--error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.15);
}
.wm-state-icon--loading {
  background: var(--wm-accent-dim);
  border: 1px solid rgba(79, 255, 176, 0.1);
}
.wm-state-title {
  font-family: var(--wm-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}
.wm-state-text {
  font-family: var(--wm-font-body);
  font-size: 14px;
  color: var(--wm-text-dim);
  line-height: 1.6;
  max-width: 320px;
  letter-spacing: -0.01em;
}
.wm-state-text strong {
  color: var(--wm-text);
  font-weight: 600;
}

/* ── Spinner ── */
.wm-spinner {
  animation: wmSpin 0.9s linear infinite;
  color: var(--wm-accent);
}
@keyframes wmSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Pulse ring animation for loading states ── */
@keyframes wmPulse {
  0%   { box-shadow: 0 0 0 0 rgba(79, 255, 176, 0.25); }
  70%  { box-shadow: 0 0 0 14px rgba(79, 255, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 255, 176, 0); }
}
.wm-state-icon--loading {
  animation: wmPulse 2s infinite;
}

/* ── Payment step (address display) ── */
.wm-pay-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.wm-pay-box {
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(79, 255, 176, 0.04), rgba(52, 211, 153, 0.02));
  border: 1px solid rgba(79, 255, 176, 0.1);
  border-radius: 16px;
  margin-bottom: 22px;
  position: relative;
}
.wm-pay-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 255, 176, 0.3), transparent);
}
.wm-pay-label {
  font-family: var(--wm-font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--wm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.wm-pay-crypto-amount {
  font-family: var(--wm-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
.wm-pay-usd {
  font-family: var(--wm-font-body);
  font-size: 13px;
  color: var(--wm-text-dim);
  margin-top: 6px;
  font-weight: 500;
}

/* ── Address row ── */
.wm-address-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.wm-address-row:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.wm-address-text {
  flex: 1;
  font-size: 12px;
  font-family: var(--wm-font-mono);
  color: var(--wm-text);
  word-break: break-all;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.wm-copy {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-family: var(--wm-font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--wm-accent);
  background: var(--wm-accent-dim);
  border: 1px solid rgba(79, 255, 176, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.wm-copy:hover {
  background: rgba(79, 255, 176, 0.18);
  border-color: rgba(79, 255, 176, 0.25);
}
.wm-copy.copied {
  color: #fff;
  background: rgba(79, 255, 176, 0.25);
  border-color: rgba(79, 255, 176, 0.4);
}

/* ── QR Code ── */
.wm-qr-wrap {
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--wm-surface-light);
  border: 1px solid var(--wm-border);
  border-radius: 16px;
}
.wm-qr-img {
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}
.wm-qr-hint {
  font-family: var(--wm-font-body);
  font-size: 12px;
  color: var(--wm-text-muted);
  margin-top: 12px;
  font-weight: 500;
}

/* ── Info row ── */
.wm-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--wm-surface-light);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius-sm);
  margin-bottom: 16px;
  font-family: var(--wm-font-body);
  font-size: 12px;
  color: var(--wm-text-dim);
}
.wm-info-row div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wm-info-id {
  font-family: var(--wm-font-mono);
  font-size: 11px;
  color: var(--wm-text-muted);
}

/* ── Notices ── */
.wm-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--wm-radius-sm);
  font-family: var(--wm-font-body);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.wm-notice strong {
  color: #fff;
  font-weight: 600;
}
.wm-notice svg { flex-shrink: 0; margin-top: 2px; }

.wm-notice-warn {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.12);
  color: var(--wm-withdraw-accent);
}
.wm-notice-info {
  background: var(--wm-accent-dim);
  border: 1px solid rgba(79, 255, 176, 0.1);
  color: rgba(79, 255, 176, 0.85);
}

/* ── Confirm card ── */
.wm-confirm-card {
  border: 1px solid var(--wm-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--wm-surface-light);
}
.wm-confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-family: var(--wm-font-body);
  font-size: 13px;
}
.wm-confirm-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.wm-confirm-row span:first-child {
  color: var(--wm-text-dim);
  font-weight: 500;
}
.wm-confirm-row strong {
  color: #fff;
  font-weight: 600;
}
.wm-confirm-addr {
  font-size: 12px;
  color: var(--wm-accent);
  font-family: var(--wm-font-mono);
}

/* ── Divider ── */
.wm-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wm-border), transparent);
  margin: 8px 0;
  border: none;
}

/* ── Mobile responsive ── */
@media (max-width: 480px) {
  .wm-overlay { padding: 8px; }
  .wm-modal {
    max-height: 96vh;
    border-radius: 16px;
  }
  .wm-scroll { padding: 24px 18px 20px; }
  .wm-title { font-size: 21px; }
  .wm-crypto-grid { gap: 8px; }
  .wm-crypto-card { padding: 12px; }
  .wm-crypto-icon img,
  .wm-crypto-icon svg { width: 30px; height: 30px; }
  .wm-input { font-size: 20px; }
  .wm-pay-crypto-amount { font-size: 24px; }
  .wm-center-state { padding: 40px 24px; }
  .wm-progress { gap: 0; }
  .wm-step-label { font-size: 9px; }
}

@media (max-width: 360px) {
  .wm-scroll { padding: 20px 14px 16px; }
  .wm-quick-row { flex-wrap: wrap; }
  .wm-quick { flex: 0 0 calc(33.33% - 6px); }
}

/* ══════════════════════════════════════════════════════════════
   Deposit Progress Tracker
   ══════════════════════════════════════════════════════════════ */

.wm-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 8px 0 20px;
  padding: 0 8px;
}

.wm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 56px;
  position: relative;
}

.wm-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--wm-font-body);
  background: var(--wm-surface-light);
  border: 2px solid var(--wm-border);
  color: var(--wm-text-muted);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wm-step.active .wm-step-circle {
  background: var(--wm-accent-dim);
  border-color: var(--wm-accent);
  color: var(--wm-accent);
  box-shadow: 0 0 16px var(--wm-accent-glow);
  animation: wmPulseStep 2s ease-in-out infinite;
}

.wm-step.done .wm-step-circle {
  background: var(--wm-accent);
  border-color: var(--wm-accent);
  color: #030308;
}

@keyframes wmPulseStep {
  0%, 100% { box-shadow: 0 0 8px var(--wm-accent-glow); }
  50% { box-shadow: 0 0 24px var(--wm-accent-glow); }
}

.wm-step-label {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--wm-font-body);
  color: var(--wm-text-muted);
  text-align: center;
  transition: color 0.3s ease;
}

.wm-step.active .wm-step-label {
  color: var(--wm-accent);
  font-weight: 600;
}

.wm-step.done .wm-step-label {
  color: var(--wm-text-dim);
}

.wm-step-line {
  flex: 1;
  height: 2px;
  background: var(--wm-border);
  margin-top: 16px;
  min-width: 24px;
  transition: background 0.4s ease;
}

.wm-step-line.done {
  background: var(--wm-accent);
}

.wm-step-line.active {
  background: linear-gradient(90deg, var(--wm-accent), var(--wm-border));
}

/* ══════════════════════════════════════════════════════════════
   Status Banner (live polling feedback)
   ══════════════════════════════════════════════════════════════ */

.wm-status-banner {
  padding: 14px 18px;
  border-radius: var(--wm-radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--wm-border);
  background: var(--wm-surface-light);
  transition: all 0.3s ease;
}

.wm-status-banner.wm-status-pending {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
}

.wm-status-banner.wm-status-confirming {
  border-color: rgba(96, 165, 250, 0.25);
  background: rgba(96, 165, 250, 0.06);
}

.wm-status-banner.wm-status-confirmed {
  border-color: rgba(79, 255, 176, 0.25);
  background: rgba(79, 255, 176, 0.06);
}

.wm-status-banner.wm-status-credited {
  border-color: rgba(79, 255, 176, 0.4);
  background: rgba(79, 255, 176, 0.1);
}

.wm-status-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--wm-font-heading);
  color: var(--wm-text);
  margin-bottom: 4px;
}

.wm-status-pending .wm-status-label { color: #fbbf24; }
.wm-status-confirming .wm-status-label { color: #60a5fa; }
.wm-status-confirmed .wm-status-label { color: var(--wm-accent); }
.wm-status-credited .wm-status-label { color: var(--wm-accent); }
.wm-status-partial .wm-status-label { color: #f59e0b; }

.wm-status-desc {
  font-size: 12px;
  font-family: var(--wm-font-body);
  color: var(--wm-text-dim);
  line-height: 1.5;
}

.wm-status-paid {
  margin-top: 8px;
  font-size: 13px;
  font-family: var(--wm-font-body);
  color: var(--wm-text);
}

/* Animate the status banner when status changes */
.wm-status-banner {
  animation: wmStatusFadeIn 0.4s ease-out;
}
@keyframes wmStatusFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step pop animation when advancing ── */
.wm-step-pop .wm-step-circle {
  animation: wmStepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes wmStepPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ── Final step celebration ── */
.wm-step-final .wm-step-circle {
  background: var(--wm-accent) !important;
  border-color: var(--wm-accent) !important;
  color: #030308 !important;
  box-shadow: 0 0 24px var(--wm-accent-glow), 0 0 48px rgba(79, 255, 176, 0.2);
  animation: wmStepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), wmPulseStep 1.5s ease-in-out infinite;
}

/* ── Quick-steps active highlight ── */
.wm-qs-active {
  opacity: 1;
}
.wm-qs-active .wm-qs-num {
  background: var(--wm-accent) !important;
  color: #030308 !important;
}

/* ── Inline credited celebration (before full success screen) ── */
.wm-credited-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  margin: 8px 0 16px;
  border-radius: var(--wm-radius-sm);
  background: rgba(79, 255, 176, 0.06);
  border: 1px solid rgba(79, 255, 176, 0.25);
  animation: wmCreditedSlideIn 0.6s ease-out;
}
.wm-credited-amount {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--wm-font-heading);
  color: var(--wm-accent);
  letter-spacing: -0.5px;
}
.wm-credited-text {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--wm-font-body);
  color: var(--wm-text);
}
.wm-credited-balance {
  font-size: 13px;
  font-family: var(--wm-font-body);
  color: var(--wm-text-dim);
}
@keyframes wmCreditedSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════════════════════════
   Deposit Guide (step-by-step instructions)
   ══════════════════════════════════════════════════════════════ */

.wm-guide {
  background: var(--wm-surface-light);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius-sm);
  padding: 16px 18px;
  margin: 16px 0;
}

.wm-guide-title {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--wm-font-heading);
  color: var(--wm-text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wm-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  font-family: var(--wm-font-body);
  color: var(--wm-text-dim);
  line-height: 1.5;
}

.wm-guide-step + .wm-guide-step {
  border-top: 1px solid var(--wm-border);
}

.wm-guide-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--wm-accent-dim);
  color: var(--wm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.wm-guide-step strong {
  color: var(--wm-text);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   V2 ADDITIONS — Countdown, Preview, Quick Steps, Confetti, etc.
   ══════════════════════════════════════════════════════════════ */

/* ── Fade-in transition ── */
.wm-fade-in {
  animation: wmFadeIn 0.35s ease-out both;
}
@keyframes wmFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Countdown Timer ── */
.wm-countdown {
  margin: 10px 0 14px;
}
.wm-countdown-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.wm-countdown-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s linear, background 2s ease;
}
.wm-countdown-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--wm-font-body);
  color: var(--wm-text-dim);
}
.wm-countdown-low .wm-countdown-text {
  color: #f87171;
  animation: wmPulse 1.5s ease-in-out infinite;
}
@keyframes wmPulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Pay title row ── */
.wm-pay-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── Pay box (Send Exactly) ── */
.wm-pay-crypto-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 2px;
}
.wm-pay-crypto-amount {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--wm-font-heading);
  color: var(--wm-text);
  letter-spacing: -0.5px;
}
.wm-pay-crypto-sym {
  font-size: 14px;
  font-weight: 600;
  color: var(--wm-text-dim);
  text-transform: uppercase;
}
.wm-pay-usd {
  text-align: center;
  font-size: 12px;
  color: var(--wm-text-dim);
  margin-bottom: 10px;
}
.wm-copy-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px auto 0;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--wm-radius-sm);
  border: 1px solid var(--wm-accent-dim);
  background: rgba(79, 255, 176, 0.05);
  color: var(--wm-accent);
  cursor: pointer;
  transition: all 0.2s;
}
.wm-copy-amount:hover {
  background: rgba(79, 255, 176, 0.12);
  border-color: var(--wm-accent);
}
.wm-copy-amount.copied {
  background: var(--wm-accent-dim);
  color: var(--wm-accent);
}

/* ── Address box ── */
.wm-address-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wm-bg);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius-sm);
  padding: 10px 12px;
}
.wm-address-text {
  flex: 1;
  word-break: break-all;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11.5px;
  color: var(--wm-text);
  line-height: 1.5;
}

/* ── Quick Steps (pay screen) ── */
.wm-quick-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  background: var(--wm-surface-light);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius-sm);
}
.wm-qs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: var(--wm-font-body);
  color: var(--wm-text-dim);
  line-height: 1.4;
}
.wm-qs strong {
  color: var(--wm-text);
}
.wm-qs-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wm-accent-dim);
  color: var(--wm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* ── Deposit Preview (form screen) ── */
.wm-deposit-preview {
  background: var(--wm-surface-light);
  border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius-sm);
  padding: 14px 16px;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wm-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-family: var(--wm-font-body);
}
.wm-preview-row span {
  color: var(--wm-text-dim);
}
.wm-preview-row strong {
  color: var(--wm-text);
  font-weight: 600;
}

/* ── Crypto card bottom (time estimate) ── */
.wm-crypto-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}
.wm-crypto-time {
  font-size: 11px;
  color: var(--wm-text-dim);
  opacity: 0.7;
}

/* ── Status paid row ── */
.wm-status-paid {
  margin-top: 4px;
  font-size: 12px;
  color: var(--wm-text-dim);
}
.wm-status-paid strong {
  color: var(--wm-accent);
}

/* ── Success amount ── */
.wm-success-amount {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--wm-font-heading);
  color: var(--wm-accent);
  text-align: center;
  margin: 6px 0 12px;
  letter-spacing: -0.5px;
}

/* ── Success bounce ── */
.wm-success-bounce {
  animation: wmBounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes wmBounceIn {
  0%   { transform: scale(0.3); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* ── Celebrate button shimmer ── */
.wm-btn-celebrate {
  position: relative;
  overflow: hidden;
}
.wm-btn-celebrate::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: wmShimmer 2s ease-in-out infinite;
}
@keyframes wmShimmer {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* ── Network badge ── */
.wm-net-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--wm-accent);
  background: var(--wm-accent-dim);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── QR hint ── */
.wm-qr-hint {
  text-align: center;
  font-size: 11px;
  color: var(--wm-text-dim);
  margin-top: 6px;
  opacity: 0.6;
}

/* ── Info row ── */
.wm-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--wm-text-dim);
  padding: 10px 0;
  border-top: 1px solid var(--wm-border);
  margin-top: 6px;
}
.wm-info-row div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wm-info-id {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════════
   SVG icons inside step circles
   ══════════════════════════════════════════════════════════════ */
.wm-step-circle svg {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.wm-step.done .wm-step-circle svg {
  stroke: #030308;
}
.wm-step.active .wm-step-circle svg {
  stroke: var(--wm-accent);
}
.wm-step-final .wm-step-circle svg {
  stroke: #030308;
}

/* ══════════════════════════════════════════════════════════════
   "Don't have crypto?" guide section
   ══════════════════════════════════════════════════════════════ */
.wm-buy-crypto-guide {
  padding: 14px 16px;
  border-radius: var(--wm-radius-sm);
  background: rgba(79, 255, 176, 0.04);
  border: 1px solid rgba(79, 255, 176, 0.12);
  margin-bottom: 16px;
}
.wm-guide-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--wm-font-heading);
  color: var(--wm-text);
  margin-bottom: 6px;
}
.wm-guide-header svg {
  color: var(--wm-accent);
}
.wm-guide-text {
  font-size: 12px;
  color: var(--wm-text-dim);
  line-height: 1.5;
  margin: 0 0 10px;
}
.wm-guide-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wm-guide-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--wm-surface-light);
  border: 1px solid var(--wm-border);
  color: var(--wm-text);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--wm-font-body);
  text-decoration: none;
  transition: all 0.2s ease;
}
.wm-guide-link:hover {
  border-color: var(--wm-accent);
  background: rgba(79, 255, 176, 0.06);
  transform: translateY(-1px);
}
.wm-guide-link svg {
  color: var(--wm-text-muted);
  flex-shrink: 0;
  margin-left: auto;
}
.wm-guide-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--wm-text-muted);
  background: rgba(255,255,255,0.05);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ── Crypto time icon alignment ── */
.wm-crypto-time {
  display: flex;
  align-items: center;
  gap: 4px;
}
.wm-crypto-time svg {
  flex-shrink: 0;
}

/* ── Button icon alignment ── */
.wm-btn svg {
  vertical-align: -2px;
}

/* ══════════════════════════════════════════════════════════════
   Transaction History Modal
   ══════════════════════════════════════════════════════════════ */

.th-modal {
  max-width: 520px;
  max-height: 88vh;
}

/* ── Header icon ── */
.th-header-icon {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(79, 255, 176, 0.12)) !important;
  color: #60a5fa !important;
}

/* ── Tabs ── */
.th-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 16px;
}
.th-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--wm-text-dim);
  font-family: var(--wm-font-body);
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.th-tab:hover {
  color: var(--wm-text);
  background: rgba(255, 255, 255, 0.04);
}
.th-tab.active {
  color: var(--wm-text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}
.th-tab-count {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--wm-text-muted);
  padding: 1px 6px;
  border-radius: 6px;
  min-width: 18px;
  text-align: center;
}
.th-tab.active .th-tab-count {
  background: var(--wm-accent-dim);
  color: var(--wm-accent);
}
.th-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--wm-text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.th-refresh:hover {
  color: var(--wm-accent);
  background: var(--wm-accent-dim);
}

/* ── Empty state ── */
.th-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 6px;
}
.th-empty h3 {
  font-family: var(--wm-font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--wm-text);
  margin: 8px 0 0;
}
.th-empty p {
  font-size: 13px;
  color: var(--wm-text-dim);
  margin: 0;
}

/* ── Transaction list ── */
.th-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Row ── */
.th-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 12px;
  transition: background 0.15s ease;
}
.th-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.th-row-pending {
  background: rgba(251, 191, 36, 0.03);
  border: 1px solid rgba(251, 191, 36, 0.08);
}
.th-row-pending:hover {
  background: rgba(251, 191, 36, 0.06);
}

/* ── Row icon ── */
.th-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.th-icon-deposit {
  background: var(--wm-accent-dim);
  color: var(--wm-accent);
}
.th-icon-withdraw {
  background: var(--wm-withdraw-dim);
  color: var(--wm-withdraw-accent);
}
.th-icon-circle svg {
  width: 16px;
  height: 16px;
}

/* ── Row main ── */
.th-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.th-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.th-type {
  font-size: 13px;
  font-weight: 600;
  color: var(--wm-text);
}

/* ── Status badge ── */
.th-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Row details ── */
.th-row-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.th-crypto {
  font-size: 11px;
  font-weight: 600;
  color: var(--wm-text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
}
.th-crypto-amount {
  font-size: 11px;
  color: var(--wm-text-muted);
  font-family: var(--wm-font-mono);
}
.th-address {
  font-size: 10.5px;
  color: var(--wm-text-muted);
  font-family: var(--wm-font-mono);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.th-rejection {
  font-size: 11px;
  color: var(--wm-danger);
  font-style: italic;
}

/* ── Row meta ── */
.th-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.th-time {
  font-size: 11px;
  color: var(--wm-text-muted);
}
.th-id {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.15);
  font-family: var(--wm-font-mono);
}
.th-txhash {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-family: var(--wm-font-mono);
  color: var(--wm-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 1px 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.th-txhash:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--wm-text-dim);
}

/* ── Row amount ── */
.th-row-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.th-amount {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--wm-font-heading);
  letter-spacing: -0.02em;
}
.th-amount-in {
  color: var(--wm-accent);
}
.th-amount-out {
  color: var(--wm-withdraw-accent);
}

/* ── Cancel button ── */
.th-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--wm-danger);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--wm-font-body);
}
.th-cancel-btn:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
}
.th-cancel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Pending banner ── */
.th-pending-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-radius: 10px;
  color: var(--wm-withdraw-accent);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.th-pending-banner:hover {
  background: rgba(251, 191, 36, 0.1);
}
.th-pending-banner svg:last-child {
  margin-left: auto;
  opacity: 0.5;
}

/* ── Navbar history icon ── */
.option-icon.history-icon {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(79, 255, 176, 0.1));
  color: #60a5fa;
}
