/* ============================================================
   Nova — wallet connect modal
   ============================================================ */

.wallet-overlay {
  position: fixed;
  inset: 0;
  z-index: 290;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 24, 43, 0.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s, visibility 0.24s;
}
.wallet-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.wallet-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px 30px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 60px 120px -30px rgba(4, 14, 28, 0.6);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.3s var(--ease);
}
.wallet-overlay.is-open .wallet-modal {
  transform: none;
}

.wallet-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.wallet-brand .brand-mark {
  width: 23px;
  height: 23px;
  border-radius: 7px;
}
.wallet-brand .brand-mark svg {
  width: 13px;
  height: 13px;
}
.wallet-brand .brand-word {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.05em;
}

.wallet-modal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}
.wallet-sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.wallet-options {
  display: grid;
  gap: 9px;
  margin: 20px 0 8px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.wallet-option:hover {
  border-color: #c9c4ff;
  background: #faf9ff;
  transform: translateY(-1px);
}
.wallet-option:active {
  transform: translateY(0);
}

.wallet-option-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}
.wallet-option-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}
.wallet-option-status {
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
}

.wallet-option--skip {
  justify-content: center;
  margin-top: 2px;
  padding: 10px;
  border-style: dashed;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
}
.wallet-option--skip:hover {
  background: var(--bg-soft);
  border-color: var(--line-2);
}

.wallet-error {
  margin: 4px 0 2px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--red-soft);
  color: #b3392f;
  font-size: 12px;
  line-height: 1.45;
}

.wallet-hint {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--faint);
  text-align: center;
}

@media (max-width: 480px) {
  .wallet-modal {
    padding: 24px 20px 18px;
  }
}
