/* ============================================================================
   XWaves — Shared wallet-picker modal (Phantom + Solflare)
   Used by the header, Login, Deposit and Buy-Plan flows.
============================================================================ */
.xw-wallet-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 6, 16, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
}

.xw-wallet-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.xw-wallet-modal {
    width: min(100%, 420px);
    position: relative;
    padding: 26px 24px 22px;
    color: #f8fafc;
    border: 1px solid rgba(139, 92, 246, 0.42);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(8, 15, 31, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    transform: translateY(10px) scale(.98);
    transition: transform .2s ease;
}

.xw-wallet-modal-overlay.is-open .xw-wallet-modal {
    transform: translateY(0) scale(1);
}

.xw-wallet-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}

.xw-wallet-modal-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.xw-wallet-modal-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-right: 24px;
}

.xw-wallet-modal-badge {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: #111827;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
}

.xw-wallet-modal-head h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.xw-wallet-modal-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: .92rem;
}

.xw-wallet-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xw-wallet-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.xw-wallet-option:hover,
.xw-wallet-option:focus-visible {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.xw-wallet-option-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: block;
}

.xw-wallet-option-icon svg,
.xw-wallet-option-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.xw-wallet-option-icon img {
    border-radius: 11px;
    object-fit: cover;
}

.xw-wallet-option-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xw-wallet-option-text strong {
    font-size: 1rem;
}

.xw-wallet-option-text small {
    color: rgba(255, 255, 255, 0.55);
    font-size: .8rem;
}

.xw-wallet-option-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.3rem;
}

.xw-wallet-modal-footnote {
    margin: 18px 0 0;
    text-align: center;
    font-size: .82rem;
    color: rgba(255, 255, 255, 0.45);
}

.xw-wallet-modal-footnote a {
    color: #c4b5fd;
    text-decoration: none;
}

.xw-wallet-modal-footnote a:hover {
    text-decoration: underline;
}

/* "Connect" buttons that open the picker (header + login) */
.xw-wallet-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
