/* ── SOLMATES Wallet Selection Modal ─────────────── */
.wm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,2,18,0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.wm-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.wm-card {
  background: linear-gradient(160deg, #150a30 0%, #1a0a3e 100%);
  border: 1px solid rgba(196,113,237,0.25);
  box-shadow: 0 24px 80px rgba(124,58,237,0.3), 0 0 0 1px rgba(124,58,237,0.1);
  width: 100%;
  max-width: 420px;
  margin: 1rem;
  padding: 2rem;
  border-radius: 20px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1);
}
.wm-overlay.is-open .wm-card {
  transform: translateY(0) scale(1);
}

.wm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.wm-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
.wm-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(184,158,232,0.5);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.wm-close:hover {
  color: #fff;
  background: rgba(124,58,237,0.15);
}

.wm-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(184,158,232,0.55);
  margin-bottom: 1.25rem;
}

.wm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wm-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  background: rgba(124,58,237,0.06);
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, transform 0.14s;
  position: relative;
  overflow: hidden;
}
.wm-item:hover {
  background: rgba(124,58,237,0.14);
  border-color: rgba(196,113,237,0.5);
  transform: translateY(-1px);
}
.wm-item.is-loading {
  pointer-events: none;
  opacity: 0.7;
}
.wm-item.not-installed {
  opacity: 0.4;
  cursor: not-allowed;
}
.wm-item.not-installed:hover {
  background: rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.2);
  transform: none;
}

.wm-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wm-icon svg { width: 100%; height: 100%; }
.wm-icon img { width: 100%; height: 100%; object-fit: contain; }

.wm-info { flex: 1; min-width: 0; }
.wm-wallet-name {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  display: block;
}
.wm-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(184,158,232,0.45);
  text-transform: uppercase;
  display: block;
  margin-top: 0.1rem;
}
.wm-badge.detected { color: #c471ed; }

.wm-arrow {
  color: rgba(184,158,232,0.3);
  font-size: 1rem;
  transition: color 0.14s, transform 0.14s;
}
.wm-item:hover .wm-arrow {
  color: #c471ed;
  transform: translateX(3px);
}

.wm-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(196,113,237,0.25);
  border-top-color: #c471ed;
  border-radius: 50%;
  animation: wm-spin 0.7s linear infinite;
  display: none;
  flex-shrink: 0;
}
.wm-item.is-loading .wm-spinner { display: block; }
.wm-item.is-loading .wm-arrow  { display: none; }

@keyframes wm-spin { to { transform: rotate(360deg); } }

.wm-error {
  margin-top: 1rem;
  padding: 0.65rem 0.9rem;
  background: rgba(236,72,153,0.08);
  border: 1px solid rgba(236,72,153,0.3);
  color: #f472b6;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  border-radius: 8px;
  display: none;
}
.wm-error.show { display: block; }

.wm-footer {
  margin-top: 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: rgba(184,158,232,0.3);
  text-align: center;
}
