/* Solana wallet picker modal. Matches the Tron-glow palette of
 * `.landing-card--form` so the modal reads as part of the same UI
 * language as the auth card it floats above. The `ls-` prefix is
 * the same naming convention the leptos-solana crate will use when
 * we eventually lift this widget back into it. */

.ls-wallet-modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: calc(var(--z-modal) + 1);
}

.ls-wallet-modal {
  min-width: 320px;
  max-width: 420px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(8, 14, 24, 0.94);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  box-shadow:
    0 0 18px rgba(122, 170, 255, 0.32),
    inset 0 0 22px rgba(122, 170, 255, 0.08);
  color: var(--color-text);
}

.ls-wallet-modal__title {
  font-size: var(--text-md);
  letter-spacing: 0.05em;
  text-align: center;
  color: #fff;
}

.ls-wallet-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ls-wallet-modal__list li {
  margin: 0;
}

.ls-wallet-row {
  width: 100%;
  font: inherit;
  font-size: var(--text-md);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(8, 14, 24, 0.72);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ls-wallet-row:hover:not(:disabled) {
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(122, 170, 255, 0.4);
}

.ls-wallet-row:disabled {
  opacity: 0.5;
  cursor: default;
}

.ls-wallet-row__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 4px;
  /* Wallets ship icons with their own background; preserve transparency. */
  background: transparent;
  /* Sharp pixel-art for low-res icons; smooth blit for vector. */
  image-rendering: auto;
}

.ls-wallet-row__name {
  color: #fff;
  letter-spacing: 0.03em;
}

.ls-wallet-modal__empty {
  padding: 8px 4px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.ls-wallet-modal__empty a {
  color: var(--color-accent);
  text-decoration: underline;
}

.ls-wallet-modal__error {
  padding: 8px 12px;
  font-size: var(--text-sm);
  color: var(--color-warning-fg);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--radius-sm);
  background: rgba(60, 24, 16, 0.5);
}

.ls-wallet-modal__cancel {
  align-self: center;
}
