:root {
    --popup-green: linear-gradient(135deg, #31a050, #7ed13f);
    --popup-dark-green: #31a050;
    --popup-light-green: #edf8f1;
    --popup-border: #79c999;
    --popup-text: #202632;
    --popup-muted: #606a76;
    --popup-white: #ffffff;
}

/* Popup Wrapper */
.user-choice-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.user-choice-popup.active {
    opacity: 1;
    visibility: visible;
}

.user-choice-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 19, 24, 0.68);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Modal */
.user-choice-modal {
    position: relative;
    width: min(100%, 1120px);
    min-height: 620px;
    display: grid;
    grid-template-columns: 36% 64%;
    background: var(--popup-white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s ease;
}

.user-choice-popup.active .user-choice-modal {
    transform: translateY(0) scale(1);
}

/* Close Button */
.user-choice-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #dce1e5;
    border-radius: 50%;
    background: #ffffff;
    color: #26303a;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.user-choice-close:hover {
    color: #ffffff;
    background: var(--popup-green);
    border-color: var(--popup-green);
    transform: rotate(90deg);
}

/* Left Side */
.user-choice-left {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 620px;
    padding: 40px 42px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 15%,
            rgba(28, 168, 91, 0.08),
            transparent 28%),
        linear-gradient(145deg, #f8fffb 0%, #eef9f3 100%);
}

.user-choice-left::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 15px;
    width: 120px;
    height: 120px;
    opacity: 0.18;
    background-image: radial-gradient(var(--popup-green) 1.5px,
            transparent 1.5px);
    background-size: 14px 14px;
}

.user-choice-brand,
.user-choice-left-content,
.user-choice-product-image {
    position: relative;
    z-index: 2;
}

.user-choice-logo {
    display: block;
    width: 140px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.user-choice-tagline {
    margin: 15px 0 0;
    color: var(--popup-dark-green);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.3px;
}

.brand-line {
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 15px;
    border-radius: 10px;
    background: var(--popup-green);
}

.user-choice-left-content {
    margin-top: 36px;
}

.user-choice-left-content h2 {
    margin: 0 0 16px;
    color: var(--popup-text);
    font-size: clamp(28px, 2.5vw, 40px);
    font-weight: 700;
    line-height: 1.12;
}

.user-choice-left-content h2 span {
    background: linear-gradient(135deg, #31a050 0%, #7ed13f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.user-choice-left-content p {
    max-width: 290px;
    margin: 0;
    color: var(--popup-muted);
    font-size: 15px;
    line-height: 1.7;
}

.user-choice-product-image {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex: 1;
    margin-top: 15px;
}

.user-choice-product-image img {
    display: block;
    width: 120%;
    max-width: 430px;
    max-height: 280px;
    object-fit: contain;
    object-position: bottom center;
}

/* Right Side */
.user-choice-right {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 620px;
    padding: 48px 68px 32px;
    background: #ffffff;
}

.user-choice-top-icon {
    position: relative;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #caffed;
    color: var(--popup-green);
    font-size: 42px;
    box-shadow: 0 8px 25px rgba(11, 139, 69, 0.1);
}

.user-choice-top-icon span {
    position: absolute;
    right: 2px;
    bottom: 3px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--popup-green);
    color: #ffffff;
    font-size: 10px;
}

.user-choice-heading {
    text-align: center;
}

.user-choice-heading h2 {
    margin: 0;
    color: var(--popup-text);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 750;
    line-height: 1.1;
}

.heading-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 17px auto 12px;
}

.heading-divider span {
    width: 125px;
    height: 1px;
    background: #b8dfc8;
}

.heading-divider i {
    color: var(--popup-green);
    font-size: 13px;
}

.user-choice-heading p {
    margin: 0;
    color: var(--popup-muted);
    font-size: 15px;
    line-height: 1.55;
}

/* Cards */
.user-choice-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 26px;
}

.choice-card {
    min-width: 0;
    padding: 22px 18px 18px;
    text-align: center;
    border: 1px solid #d9e6df;
    border-radius: 17px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.choice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(12, 90, 50, 0.1);
}

.existing-user-card {
    background: linear-gradient(145deg, #f0faf4, #e4f4eb);
}

.new-user-card {
    background: #ffffff;
    border-color: var(--popup-border);
}

.choice-card-icon {
    position: relative;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: -10px auto 12px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--popup-green);
    font-size: 42px;
    box-shadow:
        0 8px 24px rgba(22, 74, 45, 0.10),
        0 2px 8px rgba(22, 74, 45, 0.08),
        0 0 0 1px rgba(22, 74, 45, 0.06);
}

.choice-icon-badge {
    position: absolute;
    right: -1px;
    bottom: 5px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--popup-green);
    color: #ffffff;
    font-size: 11px;
}

.choice-card h3 {
    margin: 0 0 7px;
    color: var(--popup-text);
    font-size: 20px;
    font-weight: 700;
}

.choice-card p {
    min-height: 46px;
    margin: 0 0 18px;
    color: var(--popup-muted);
    font-size: 14px;
    line-height: 1.45;
}

/* Buttons */
.choice-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid var(--popup-green);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.choice-button span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.choice-button-filled {
    background: var(--popup-green);
    color: #ffffff;
}

.choice-button-filled:hover {
    background: var(--popup-dark-green);
    color: #ffffff;
}

.choice-button-outline {
    background: #ffffff;
    color: var(--popup-dark-green);
}

.choice-button-outline:hover {
    background: var(--popup-green);
    color: #ffffff;
}

/* Security */
.user-choice-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
    color: var(--popup-muted);
}

.user-choice-security i {
    color: var(--popup-green);
    font-size: 16px;
}

.user-choice-security p {
    margin: 0;
    font-size: 12px;
}

.user-choice-security strong {
    color: var(--popup-green);
}

/* Prevent Body Scroll */
body.user-popup-open {
    overflow: hidden;
}

/* Tablet */
@media (max-width: 991px) {
    .user-choice-modal {
        width: min(100%, 760px);
        max-height: calc(100vh - 30px);
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .user-choice-left {
        min-height: auto;
        padding: 28px 34px;
    }

    .user-choice-left-content {
        margin-top: 24px;
    }

    .user-choice-left-content p {
        max-width: 460px;
    }

    .user-choice-product-image {
        display: none;
    }

    .user-choice-right {
        min-height: auto;
        padding: 40px 42px 32px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .user-choice-popup {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .user-choice-modal {
        width: 100%;
        min-height: auto;
        margin: 10px 0;
        border-radius: 14px;
    }

    .user-choice-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .user-choice-left {
        padding: 24px 22px 22px;
    }

    .user-choice-logo {
        width: 150px;
    }

    .user-choice-tagline {
        font-size: 11px;
    }

    .user-choice-left-content {
        margin-top: 20px;
    }

    .user-choice-left-content h2 {
        font-size: 27px;
    }

    .user-choice-left-content p {
        font-size: 14px;
        line-height: 1.55;
    }

    .user-choice-right {
        padding: 32px 18px 24px;
    }

    .user-choice-top-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 14px;
        font-size: 34px;
    }

    .user-choice-heading h2 {
        font-size: 28px;
    }

    .heading-divider span {
        width: 70px;
    }

    .user-choice-heading p {
        font-size: 14px;
    }

    .user-choice-cards {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 22px;
    }

    .choice-card {
        padding: 20px 16px 16px;
    }

    .choice-card p {
        min-height: auto;
    }

    .user-choice-security {
        align-items: flex-start;
        text-align: left;
    }

    .user-choice-security p {
        line-height: 1.5;
    }
}