/* Wallet button (top bar) and WizardConnect dialog. */
.wallet { position: relative; }
.wallet-btn { white-space: nowrap; gap: 9px; }
.wallet[data-status="connected"] .wallet-btn { box-shadow: inset 0 0 0 1px var(--violet); }
.wallet-icon { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lit); box-shadow: 0 0 8px var(--lit); flex-shrink: 0; }
.wallet[data-status="reconnecting"] .wallet-dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.wallet-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(245, 243, 250, .2); border-top-color: var(--violet); animation: wcSpin .8s linear infinite; flex-shrink: 0; display: inline-block; }
@keyframes wcSpin { to { transform: rotate(360deg); } }
.drop-caret { font-size: 11px; transition: transform .15s; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 70; }
.wallet.open .wallet-menu { opacity: 1; visibility: visible; transform: none; }
.wallet.open .drop-caret { transform: rotate(180deg); }
.drop-item { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 8px 12px; border-radius: var(--r-sm); background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: var(--text); text-decoration: none; }
.drop-item:hover { background: var(--raised); color: var(--text); }
.di-t { font-weight: 600; font-size: 14px; }
.di-s { font-size: 12px; color: var(--muted); }
.wallet-menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.wallet-addr { font-family: var(--font-mono); }
@media (max-width: 520px) { .wl-x { display: none; } }

html.wc-lock { overflow: hidden; }
.wc-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(5, 4, 8, .8); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.wc-overlay.show { opacity: 1; visibility: visible; }
.wc-dialog { position: relative; width: 100%; max-width: 380px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px 26px 22px; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.wc-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.wc-close:hover { color: var(--text); }
.wc-title { font-size: 26px; margin: 8px 0; }
.wc-sub { font-size: 14.5px; margin-bottom: 18px; }
.wc-qr { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 200px; min-height: 200px; background: #fff; border: 0; border-radius: var(--r-md); padding: 6px; cursor: copy; transition: box-shadow .15s; }
.wc-qr:hover, .wc-qr:focus-visible { box-shadow: 0 0 0 3px var(--violet); outline: none; }
.wc-qr.copied { box-shadow: var(--lit-glow); }
.wc-qr:not(.ready) { cursor: default; }
.wc-qr canvas { display: block; opacity: 0; transition: opacity .25s; }
.wc-qr.ready canvas { opacity: 1; }
.wc-qr-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.wc-qr.ready .wc-qr-wait { display: none; }
.wc-qr-wait .wallet-spin { width: 28px; height: 28px; border-color: rgba(0, 0, 0, .15); border-top-color: var(--violet); }
.wc-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; opacity: .35; pointer-events: none; }
.wc-actions.ready { opacity: 1; pointer-events: auto; }
.wc-status { margin-top: 16px; font-size: 14px; }
.wc-status.err { color: var(--coral); }
.wc-foot { font-size: 12.5px; margin-top: 10px; }
