/* Reset and Base Styles for Unique Popup */
.unique-welcome-popup-wrapper *,
.unique-welcome-popup-wrapper :after,
.unique-welcome-popup-wrapper :before {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: inherit;
    outline: none;
}

/* Scrollbar Styles */
.unique-welcome-popup-wrapper ::-webkit-scrollbar {
    width: 8px;
    height: 13px;
}

.unique-welcome-popup-wrapper ::-webkit-scrollbar-thumb {
    background: hsla(0, 0%, 100%, .15);
    border: 2px solid #040c1c;
    border-radius: 0;
}

.unique-welcome-popup-wrapper ::-webkit-scrollbar-track {
    border-radius: 0;
    box-shadow: inset -10px -10px 0 -30px #f0f0f0;
}

@media (hover: hover) {
    .unique-welcome-popup-wrapper ::-webkit-scrollbar-thumb:hover {
        background: hsla(0, 0%, 100%, .15);
    }
}

@media only screen and (max-width: 767px) {
    .unique-welcome-popup-wrapper ::-webkit-scrollbar {
        width: 0;
    }
}

/* Main Popup Wrapper */
.unique-welcome-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: none; /* Hidden by default, controlled by JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100%;
    color: #fff;
    transition: all 0s ease-in-out;
}

/* Backdrop */
.unique-welcome-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: hsla(0, 0%, 100%, .04);
    animation: unique-blur-in 3ms 3ms forwards;
}

/* Content Wrapper */
.unique-welcome-popup-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    max-height: calc(100% - 60px);
    margin: auto;
    overflow: hidden;
    background: #15161a;
    border-radius: 24px;
    bottom: -12% !important;
}

@media (max-width: 767px) {
    .unique-welcome-popup-content-wrapper {
        bottom: auto !important;
        width: 95%;
        max-height: 85%;
    }
    .unique-welcome-popup-wrapper {
        width: 100%;
        height: 100%;
        margin: 0;
        justify-content: flex-start;
        padding-top: 15vh;
    }
}

@media (hover: hover) {
    .unique-welcome-popup-close-button:hover {
        opacity: 1;
    }
}

/* Container */
.unique-welcome-popup-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Updated gap */
    width: 100%;
    max-height: 100%;
    padding: 20px 20px 20px;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 767px) {
    .unique-welcome-popup-container {
        padding: 16px 16px 16px;
        gap: 16px; /* Updated gap for mobile */
    }
}

.unique-welcome-popup-container::-webkit-scrollbar {
    display: none;
}

/* Header */
.unique-welcome-popup-header {
    position: sticky;
    top: 0;
    z-index: 5;
    /* padding: 32px 32px 0; */
    background: #15161a;
}

/* Title */
.unique-welcome-popup-title {
    font-weight: 700 !important;
    font-size: 20px !important;
    line-height: 28px !important;
    font-family: Satoshi, sans-serif;
    color: #8c8f99;
    text-align: center;
    letter-spacing: .02em;
    margin: 0;
}

@media (max-width: 767px) {
    .unique-welcome-popup-title {
        font-size: 18px !important;
        line-height: 140% !important;
    }
}

/* Subtitle */
.unique-welcome-popup-subtitle {
    display: inline-flex;
    justify-content: center;
    text-align: center;
    font-family: Satoshi, sans-serif;
    font-weight: 800;
    font-size: 14px;
    line-height: 140%;
    margin: 0;
    color: #fff;
    padding-top: 10px; /* Added padding */
}

@media (max-width: 767px) {
    .unique-welcome-popup-subtitle {
        font: 600 16px/20px Satoshi, sans-serif;
    }
}

/* List */
.unique-welcome-popup-list {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    width: 100%;
    /* padding: 0 32px; */
    margin: 0 !important;
    max-width: 100% !important; /* Override global max-width */
}

/* Item */
.unique-welcome-popup-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px; /* Updated padding */
    background: #24262e;
    border-radius: 16px;
    margin: 0 !important; /* Override global margin */
    max-width: none !important; /* Override global max-width */
}



/* Item Text (P) */
.unique-welcome-popup-item-text {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: baseline; /* Changed to baseline */
    width: 100%;
    font-family: Satoshi, sans-serif;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 140% !important;
    color: #38f169;
    margin: 0;
}

@media (max-width: 767px) {
    .unique-welcome-popup-item-text {
        font-size: 12px;
        line-height: 140%;
    }
}

/* Item Subtext (Span) */
.unique-welcome-popup-item-subtext {
    margin-left: 8px; /* Updated margin */
    font-family: Satoshi, sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 140%;
    color: #fff;
    letter-spacing: .02em;
}

@media (max-width: 767px) {
    .unique-welcome-popup-item-subtext {
        font-size: 12px;
        line-height: 140%;
    }
}
/* Button Container */
.unique-welcome-popup-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
/* CTA Button */
.unique-welcome-popup-cta-button {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    overflow: hidden;
    font-family: Satoshi, sans-serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 140%;
    color: #15161a;
    text-align: center;
    letter-spacing: .02em;
    cursor: pointer;
    background: linear-gradient(180deg, #00ff80, #00ffd3);
    border: none;
    border-radius: 10px;
    transition: all .3s;
    width: 100%;
    text-decoration: none; /* Added underline to match screenshot */
}

.unique-welcome-popup-cta-button:before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    content: "";
    background: transparent;
    opacity: 0;
    transition: all .3s;
}

@media (hover: hover) {
    .unique-welcome-popup-cta-button:hover:before {
        background: linear-gradient(180deg, #00e1ff, #6fffb7);
        opacity: 1;
    }
}

.unique-welcome-popup-cta-button-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

}

@media (max-width: 767px) {
    .unique-welcome-popup-cta-button {
        font: 800 12px/18px Satoshi, sans-serif;
    }
    .unique-welcome-popup-cta-button-inner {
        font-size: 21px;
    }
}

/* Info Link & Terms */
.unique-welcome-popup-info-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.unique-welcome-popup-info-text {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    font: 400 16px/24px Satoshi, sans-serif;
    color: #8c8f99;
    letter-spacing: .02em;
    cursor: pointer;
    transition: all .3s;
}

@media (max-width: 767px) {
    .unique-welcome-popup-info-text {
        font: 400 12px/18px Satoshi, sans-serif;
    }
}

.unique-welcome-popup-info-text:after {
    width: 12px;
    height: 12px;
    content: "";
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.79 3.22a.777.777 0 010 1.06l-4.285 4.5A.697.697 0 016 9a.697.697 0 01-.505-.22l-4.286-4.5a.777.777 0 010-1.06.69.69 0 011.01 0L6 7.19l3.78-3.97a.69.69 0 011.01 0z' fill='%23A9A9A9'/%3E%3C/svg%3E");
    transition: all .3s;
}

@media not all and (pointer: coarse) {
    .unique-welcome-popup-info-text:hover:not(:disabled) {
        color: #fff;
    }
    .unique-welcome-popup-info-text:hover:not(:disabled):after {
        filter: brightness(0) saturate(100%) invert(100%) sepia(0) saturate(7465%) hue-rotate(203deg) brightness(110%) contrast(100%);
    }
}

.unique-welcome-popup-terms {
    padding-top: 24px;
}

.unique-welcome-popup-terms-content {
    font: 400 14px/20px Satoshi, sans-serif;
}

.unique-welcome-popup-terms-content ol {
    padding-left: 12px;
    margin-left: 12px;
    color: #8c8f99;
}

.unique-welcome-popup-terms-content ol li {
    padding-left: 12px;
    margin-bottom: 20px;
    list-style-type: decimal;
}

.unique-welcome-popup-close-terms-button {
    width: 100%;
    padding: 16px;
    margin: 12px auto 0;
    /* Inherits button styles, but we can add specific overrides if needed */
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font: 800 16px/24px Satoshi, sans-serif;
    color: #15161a;
    text-align: center;
    letter-spacing: .02em;
    cursor: pointer;
    background: linear-gradient(180deg, #00ff80, #00ffd3);
    border: none;
    border-radius: 10px;
    transition: all .3s;
}

.unique-welcome-popup-close-terms-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Keyframes */
@keyframes unique-blur-in {
    0% {
        -webkit-backdrop-filter: blur(0);
        backdrop-filter: blur(0);
    }
    to {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}