/* Xenx wallet connection chooser - mobile-safe, no framework dependency */
.xw-wallet-sheet[hidden] { display: none !important; }
.xw-wallet-sheet {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 4, 12, .72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.xw-wallet-panel {
    width: min(100%, 430px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    padding: 18px;
    background: #111118;
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
    color: #fff;
    font-family: Manrope, Arial, sans-serif;
}
.xw-wallet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.xw-wallet-head h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}
.xw-wallet-head p {
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: 12px;
    line-height: 1.5;
}
.xw-wallet-close {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 22px;
    line-height: 1;
}
.xw-wallet-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 17px;
    background: rgba(255,255,255,.055);
    color: #fff;
    text-align: left;
    cursor: pointer;
}
.xw-wallet-option:active { transform: scale(.99); }
.xw-wallet-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    font-size: 20px;
    font-weight: 800;
}
.xw-wallet-copy { min-width: 0; flex: 1; }
.xw-wallet-copy strong { display: block; font-size: 14px; font-weight: 800; }
.xw-wallet-copy small { display: block; margin-top: 2px; color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.45; }
.xw-wallet-arrow { opacity: .6; font-size: 20px; }
.xw-wallet-note {
    margin: 13px 4px 2px;
    color: rgba(255,255,255,.48);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}
@media (min-width: 600px) {
    .xw-wallet-sheet { align-items: center; }
}


/* Current wallet session card shown on sign-in/sign-up */
.xw-session-card {
    width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    margin: 14px 0 12px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 17px;
    background: rgba(255,255,255,.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
    color: #fff;
    text-align: left;
    overflow: hidden;
}
.xw-session-card.is-connected {
    border-color: rgba(74,222,128,.34);
    background: linear-gradient(135deg, rgba(34,197,94,.11), rgba(34,197,94,.035) 46%, rgba(255,255,255,.045));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 1px rgba(34,197,94,.025);
}
.xw-session-status {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.075);
    color: rgba(255,255,255,.68);
}
.xw-session-card.is-connected .xw-session-status {
    color: #86efac;
    background: rgba(34,197,94,.09);
}
.xw-session-status i { font-size: 16px; }
.xw-session-dot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 10px;
    height: 10px;
    border: 2px solid #151421;
    border-radius: 50%;
    background: #6b7280;
}
.xw-session-card.is-connected .xw-session-dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.10);
}
.xw-session-main {
    min-width: 0;
    width: 100%;
}
.xw-session-state {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.50);
    font-size: 9px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: .13em;
}
.xw-session-card.is-connected .xw-session-state { color: #86efac; }
.xw-session-address {
    display: block;
    width: 100%;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11.5px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: .01em;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.xw-session-card.is-empty .xw-session-address {
    font-family: inherit;
    font-size: 12px;
    color: rgba(255,255,255,.82);
}
.xw-session-meta {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.54);
    font-size: 10px;
    line-height: 1.35;
    white-space: normal;
}
.xw-session-card.is-connected .xw-session-meta { color: rgba(255,255,255,.68); }
@media (max-width: 380px) {
    .xw-session-card {
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 10px;
        padding: 12px;
    }
    .xw-session-status { width: 40px; height: 40px; border-radius: 13px; }
    .xw-session-address { font-size: 10.8px; }
}


/* Signup e-mail validation */
.xu-input.is-invalid {
    border-color: rgba(248, 113, 113, .78) !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .10) !important;
}

.xu-input.is-invalid i {
    color: #fecaca !important;
}
