/* ------------------------------------------------------------------ *
 * Mistex local copy — login replaced with "Connect Wallet".
 * Hides the original Login / Sign up buttons everywhere (desktop nav +
 * mobile menu) and styles the injected wallet-connect button + modal.
 * ------------------------------------------------------------------ */

/* Hide the original auth buttons wherever they render (nav + mobile menu). */
.navbar__auth-link,
.navbar__auth-btn,
.mobile-menu__auth-link,
.mobile-menu__auth-btn {
    display: none !important;
}

/* Ensure auth slot is clickable */
.navbar__auth-slot {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1001 !important;
}

/* New connect button — matches the site's pink gradient .navbar__auth-btn. */
.mtx-connect-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-family: var(--font-display, inherit);
    color: #fff;
    background: linear-gradient(135deg, var(--accent, #e930ff), var(--accent2, #ff2d8a));
    box-shadow: 0 0 16px var(--glow, rgba(233, 48, 255, .35));
    cursor: pointer !important;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: box-shadow .3s, transform .2s, filter .2s;
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}
.mtx-connect-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 26px var(--glow, rgba(233, 48, 255, .5));
}
.mtx-connect-btn:active { transform: translateY(1px); }
.mtx-connect-btn svg { display: block; }

/* Mobile variant fills the menu footer like the original buttons did. */
.mtx-connect-btn--mobile {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 15px;
}

/* ---- Modal ---------------------------------------------------------- */
.mtx-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 4, 12, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    animation: mtx-fade .18s ease;
}
@keyframes mtx-fade { from { opacity: 0; } to { opacity: 1; } }

.mtx-modal {
    width: 100%;
    max-width: 400px;
    background: #120b1c;
    background-image: linear-gradient(160deg, #1a1030, #0e0918);
    border: 1px solid #ffffff14;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(233, 48, 255, .08);
    padding: 24px 22px 22px;
    font-family: var(--font-display, inherit);
    color: #fff;
    animation: mtx-rise .22s ease;
}
@keyframes mtx-rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.mtx-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px;
}
.mtx-modal__title { font-size: 19px; font-weight: 700; margin: 0; }
.mtx-modal__sub { font-size: 13px; color: #ffffff99; margin: 6px 0 18px; }
.mtx-modal__close {
    background: #ffffff0f;
    border: none;
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    flex: none;
    transition: background .2s;
}
.mtx-modal__close:hover { background: #ffffff1f; }

.mtx-wallet-list { display: flex; flex-direction: column; gap: 10px; }
.mtx-wallet {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: #ffffff08;
    border: 1px solid #ffffff12;
    border-radius: 12px;
    padding: 13px 15px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: border-color .2s, background .2s, transform .1s;
}
.mtx-wallet:hover {
    background: #ffffff12;
    border-color: var(--accent, #e930ff);
}
.mtx-wallet:active { transform: translateY(1px); }
.mtx-wallet__icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex: none;
    background: #ffffff0f;
}
.mtx-wallet__meta { display: flex; flex-direction: column; gap: 2px; }
.mtx-wallet__name { line-height: 1.1; }
.mtx-wallet__desc { font-size: 12px; font-weight: 400; color: #ffffff80; }

.mtx-modal__status {
    margin-top: 14px;
    font-size: 13px;
    color: #ffffffb0;
    min-height: 18px;
    word-break: break-all;
}
.mtx-modal__status--ok { color: #22c55e; }
.mtx-modal__status--err { color: #ff6b6b; }

.mtx-modal__foot {
    margin-top: 18px;
    font-size: 11px;
    color: #ffffff5c;
    text-align: center;
    line-height: 1.5;
}
