/* =============================================================================
   SPECTRAL41 — shared wallet picker modal

   The connect dialog used by every page that talks to a wallet. Pairs with
   /shared/wallet.js, which builds the markup these rules style — include both
   or neither.

   Relies on tokens defined in each page's :root — --panel, --text, --text-3,
   --hairline, --accent, --font, --mono, --r-lg, --r-sm, --ease, --shadow-2.
   ========================================================================== */

.wp-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.72);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center; z-index: 1000;
  animation: wp-fade .18s var(--ease);
}
@keyframes wp-fade { from { opacity: 0; } to { opacity: 1; } }
.wp-modal {
  width: min(92vw, 360px); background: var(--panel);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hairline);
  overflow: hidden; animation: wp-pop .2s var(--ease);
}
@keyframes wp-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.wp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--hairline);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text);
}
.wp-x { background: none; border: none; color: var(--text-3); font-size: 15px; line-height: 1; cursor: pointer; transition: color .15s; }
.wp-x:hover { color: var(--text); }
.wp-list { display: flex; flex-direction: column; padding: 6px; }
.wp-empty { padding: 16px 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); }
.wp-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 12px; background: none; border: none; border-radius: var(--r-sm);
  color: var(--text); font-family: var(--font); font-size: 13px; letter-spacing: .3px;
  text-align: left; cursor: pointer; transition: background .12s var(--ease);
}
.wp-item:hover { background: rgba(255,255,255,0.06); }
.wp-item img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; border-radius: 6px; }
.wp-item-label { flex: 1; min-width: 0; }
.wp-badge {
  flex-shrink: 0;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent);
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 4px;
}
.wp-wc-ic { width: 24px; text-align: center; font-size: 15px; color: var(--accent); flex-shrink: 0; }
.wp-more {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; margin-top: 2px; padding: 10px 12px;
  background: none; border: none; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-3);
  cursor: pointer; transition: color .15s, background .12s var(--ease);
}
.wp-more:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.wp-more-chev { font-size: 11px; transition: transform .15s var(--ease); }
.wp-more.is-open .wp-more-chev { transform: rotate(180deg); }
.wp-more-list {
  display: flex; flex-direction: column;
  animation: wp-fade .15s var(--ease);
}
.wp-more-list[hidden] { display: none; }
