@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

/* Main Wrapper for Gated Content Overlay */
.mvx-gater-overlay {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    background: radial-gradient(circle at top right, rgba(35, 21, 87, 0.15), transparent 60%),
                radial-gradient(circle at bottom left, rgba(27, 186, 180, 0.1), transparent 60%),
                #0d111c;
    border-radius: 16px;
    padding: 40px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 30px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Glass Card */
.mvx-gater-card {
    background: rgba(21, 26, 43, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvx-gater-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 45px rgba(27, 186, 180, 0.1);
}

/* Locked Icon Graphic */
.mvx-gater-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(27, 186, 180, 0.15) 0%, rgba(35, 21, 87, 0.3) 100%);
    border: 1px solid rgba(27, 186, 180, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 20px rgba(27, 186, 180, 0.1);
}

.mvx-gater-icon-wrap svg {
    width: 36px;
    height: 36px;
    fill: #1bbab4;
    filter: drop-shadow(0 0 5px rgba(27, 186, 180, 0.5));
    animation: pulseLock 2s infinite ease-in-out;
}

@keyframes pulseLock {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(27, 186, 180, 0.5)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 12px rgba(27, 186, 180, 0.8)); }
}

/* Texts */
.mvx-gater-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.mvx-gater-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px 0;
}

.mvx-gater-collection-tag {
    display: inline-block;
    background: rgba(27, 186, 180, 0.1);
    color: #1bbab4;
    border: 1px solid rgba(27, 186, 180, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* Action Button */
.mvx-gater-btn {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #1bbab4 0%, #7b2cbf 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 186, 180, 0.3);
    text-transform: none;
}

.mvx-gater-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27, 186, 180, 0.5);
    opacity: 0.95;
}

.mvx-gater-btn:active {
    transform: translateY(1px);
}

/* Modal Styling */
.mvx-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Enable scroll on the backdrop */
    padding: 20px 10px; /* Space around the modal on mobile */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.mvx-modal-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mvx-wallet-modal {
    background: #0d111c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    margin: auto; /* Centering and scrollability hack for flex items */
    padding: 32px;
    box-sizing: border-box;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.mvx-modal-backdrop.is-active .mvx-wallet-modal {
    transform: translateY(0);
}

.mvx-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.mvx-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #1bbab4;
}

.mvx-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-align: center;
}

.mvx-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 24px 0;
    text-align: center;
}

/* Wallet Option Buttons */
.mvx-wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mvx-wallet-opt {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.mvx-wallet-opt:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(27, 186, 180, 0.4);
    transform: scale(1.01);
}

.mvx-wallet-opt-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-right: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
}

/* Icons for each wallet type */
.icon-xportal { background: linear-gradient(135deg, #1bbab4, #108580); }
.icon-extension { background: linear-gradient(135deg, #2f52e0, #1b318d); }
.icon-web { background: linear-gradient(135deg, #7b2cbf, #5a189a); }
.icon-xalias { background: linear-gradient(135deg, #f26419, #f6ae2d); }

.mvx-wallet-opt-name {
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 2px;
}

.mvx-wallet-opt-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* QR Code Container for xPortal (WalletConnect) */
.mvx-qr-container {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-align: center;
}

.mvx-qr-container.is-active {
    display: flex;
}

.mvx-qr-container p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 16px 0;
}

.mvx-qr-wrapper {
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.mvx-qr-wrapper canvas,
.mvx-qr-wrapper svg {
    display: block;
    width: 240px;
    height: 240px;
    max-width: 100%;
    height: auto;
}

/* Loading/Status states */
.mvx-status-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
    text-align: center;
}

.mvx-status-container.is-active {
    display: flex;
}

.mvx-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(27, 186, 180, 0.15);
    border-radius: 50%;
    border-top-color: #1bbab4;
    animation: mvxSpin 1s infinite linear;
    margin-bottom: 16px;
}

@keyframes mvxSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mvx-status-msg {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Toast Messages for errors */
.mvx-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #e63946;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3);
    z-index: 100000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mvx-toast.is-active {
    opacity: 1;
    transform: translateY(0);
}

.mvx-toast-success {
    background: #2a9d8f;
    box-shadow: 0 10px 25px rgba(42, 157, 143, 0.3);
}

/* Responsive adjustments for mobile screens */
@media screen and (max-width: 480px) {
    .mvx-wallet-modal {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .mvx-modal-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .mvx-modal-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .mvx-wallet-options {
        gap: 10px;
    }

    .mvx-wallet-opt {
        padding: 12px 16px;
        border-radius: 14px;
    }

    .mvx-wallet-opt-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
        margin-right: 12px;
        border-radius: 8px;
    }

    .mvx-wallet-opt-name {
        font-size: 14px;
    }

    .mvx-wallet-opt-desc {
        font-size: 11px;
    }

    .mvx-qr-container {
        padding: 12px;
        margin-top: 14px;
    }

    .mvx-qr-wrapper {
        padding: 12px;
        border-radius: 12px;
    }

    .mvx-qr-wrapper canvas,
    .mvx-qr-wrapper svg {
        width: 180px;
        height: 180px;
    }
    
    .mvx-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 12px 16px;
        font-size: 13px;
        justify-content: center;
        text-align: center;
    }
}
