.popLoginRequiredCont {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(147, 51, 234, 0.2) 0%,
            rgba(168, 85, 247, 0.15) 15%,
            rgba(14, 34, 69, 0.9) 40%);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 20px 10px;
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999999;
}

.popLoginRequiredCont.open,
.popLoginRequiredCont.closing {
    display: flex;
}

.popLoginRequiredCont.open {
    opacity: 1;
    visibility: visible;
    display: flex;
    pointer-events: auto;
}

.popLoginRequiredCont.closing {
    visibility: visible;
    pointer-events: none;
}

.popLoginRequiredCont.open>.poper {
    transform: translateY(0);
    opacity: 1;
}

.popLoginRequiredCont>.poper {
    width: min(700px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 32px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    margin: auto !important;
    background: linear-gradient(139deg,
            rgba(38, 35, 78, 0.95),
            rgba(23, 19, 61, 0.98));
    border: 1px solid rgba(147, 51, 234, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999999;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(126, 34, 206, 0.5) inset;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #9333ea rgba(18, 16, 36, 0.6);
}

.popLoginRequiredCont>.poper::-webkit-scrollbar {
    width: 6px;
}

.popLoginRequiredCont>.poper::-webkit-scrollbar-track {
    background: rgba(18, 16, 36, 0.6);
    border-radius: 10px;
}

.popLoginRequiredCont>.poper::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9333ea, #6366f1);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(147, 51, 234, 0.5);
}

.popLoginRequiredCont>.poper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a855f7, #818cf8);
}

.popLoginRequiredCont>.poper::before,
.popLoginRequiredCont>.poper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(147, 51, 234, 0.7),
            rgba(168, 85, 247, 0.8),
            rgba(147, 51, 234, 0.7),
            transparent);
    z-index: 1;
}

.popLoginRequiredCont>.poper::before {
    top: 0;
}

.popLoginRequiredCont>.poper::after {
    bottom: 0;
}

/* Mascot side image */
.popLoginRequiredCont>.poper>.mascot-side {
    position: absolute;
    left: -155px;
    bottom: -15px;
    width: 300px;
    height: auto;
    z-index: 10;
    pointer-events: none;
    transform: rotate(0deg);
    filter: drop-shadow(-5px 5px 10px rgba(0, 0, 0, 0.4));
    transition: none;
}

.mascot-images-container {
    position: relative;
    width: 100%;
}

.mascot-image {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease-in-out;
}

/* The second image is absolutely positioned on top of the first */
#loginMascotImage2 {
    position: absolute;
    top: 0;
    left: 0;
}

.mascot-image.active {
    opacity: 1;
}

.mascot-image:not(.active) {
    opacity: 0;
}

/* No animation on open */
.popLoginRequiredCont.open .poper .mascot-side {
    opacity: 1;
    transform: none;
    animation: none;
}

/* Subtle hover effect removed */
.popLoginRequiredCont:hover .poper .mascot-side {
    transform: none;
}

/* Hide mascot on mobile */
@media screen and (max-width: 1024px) {
    .popLoginRequiredCont>.poper>.mascot-side {
        display: none;
    }
}

.popLoginRequiredCont>.poper>.top {
    width: 100%;
    text-align: center;
    padding: 25px 20px 15px;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
    margin-bottom: 10px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box;
}

.popLoginRequiredCont>.poper>.top>h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.popLoginRequiredCont>.poper>.top>small {
    color: rgb(172, 169, 211);
    font-weight: 500;
    font-size: 14px;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.popLoginRequiredCont>.poper>.main {
    padding: 15px 20px 20px;
    display: flex;
    align-items: stretch;
}

.popLoginRequiredCont>.poper>.main.split-layout {
    display: flex;
    flex-direction: row;
}

.popLoginRequiredCont>.poper>.main>.login-side,
.popLoginRequiredCont>.poper>.main>.bonus-side {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.popLoginRequiredCont>.poper>.main>.login-side {
    width: 55%;
}

.popLoginRequiredCont>.poper>.main>.bonus-side {
    width: 45%;
    background-color: rgba(126, 34, 206, 0.05);
    border-radius: 10px 0 0 10px; /* Changed radius for left side */
}

.popLoginRequiredCont>.poper>.main>.divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(147, 51, 234, 0.5), transparent);
    margin: 20px 0;
}

.promo-code-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.promo-code-display label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.code-badge {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 12px;
    border: 2px solid rgba(147, 51, 234, 0.5);
    background: linear-gradient(135deg, rgba(60, 50, 120, 0.35) 0%, rgba(40, 30, 90, 0.45) 100%);
    color: #a8e6ff;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.2);
    position: relative;
    overflow: hidden;
}

.code-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.code-badge:hover {
    border-color: rgba(147, 51, 234, 0.8);
    box-shadow: 0 6px 20px rgba(126, 34, 206, 0.4);
    transform: translateY(-2px);
}

.code-badge:hover::before {
    left: 100%;
}

.code-badge:active {
    transform: translateY(0);
}

.promo-cta-btn {
    background: linear-gradient(45deg, #16a34a, #22c55e);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    padding: 12px 40px;
    position: relative;
    transition: all 0.3s ease;
    display: block;
    width: max-content;
    margin: 20px auto 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
    text-decoration: none;
}

.promo-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

/* Styles for login side elements */
.popLoginRequiredCont>.poper>.main>.login-side .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.popLoginRequiredCont>.poper>.main>.login-side .icon>img {
    width: 75px;
    height: 75px;
    margin-bottom: 15px;
}

.popLoginRequiredCont>.poper>.main>.login-side .message {
    margin-bottom: 15px;
}

.popLoginRequiredCont>.poper>.main>.login-side .message>h3 {
    color: white;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popLoginRequiredCont>.poper>.main>.login-side .message>p {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 16px;
}

.popLoginRequiredCont>.poper>.main>.login-side .actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn {
    background: linear-gradient(45deg, #6b21a8, #7e22ce);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    padding: 0 40px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    height: 40px;
    white-space: nowrap;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(126, 34, 206, 0.2);
    min-width: 200px;
    width: 85%;
}

.popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 4px;
    background: linear-gradient(90deg, #7e22ce, #9333ea, #7e22ce);
    background-size: 200% 100%;
}

.popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(126, 34, 206, 0.5);
}

.popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn:hover::before {
    opacity: 1;
    animation: shine 2s linear infinite;
}

.popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn span {
    position: relative;
    z-index: 2;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* New feature sections */
.bonus-side .bonus-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bonus-side .login-feature {
    width: 100%;
    display: flex;
    background: linear-gradient(to right, rgba(126, 34, 206, 0.2), rgba(126, 34, 206, 0.05));
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 10px;
    padding: 16px;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.bonus-side .login-feature.promo-feature {
    background-image: url('../img/Logo/Cards.webp');
    background-repeat: no-repeat;
    background-position: right -30px center;
    background-size: 110px auto;
    padding-right: 60px;
    position: relative;
}

.bonus-side .login-feature.promo-feature::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(126, 34, 206, 0.3), transparent);
    z-index: 0;
    border-radius: 10px 0 0 10px;
    pointer-events: none;
}

.bonus-side .login-feature.case-feature {
    background-image: url('../img/Case.webp');
    background-repeat: no-repeat;
    background-position: right -30px center;
    background-size: 110px auto;
    padding-right: 60px;
    position: relative;
}

.bonus-side .login-feature.case-feature::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(126, 34, 206, 0.3), transparent);
    z-index: 0;
    border-radius: 10px 0 0 10px;
    pointer-events: none;
}

.bonus-side .login-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(126, 34, 206, 0.05), rgba(147, 51, 234, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bonus-side .login-feature:hover::before {
    opacity: 1;
}

.bonus-side .login-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.15);
    border-color: rgba(147, 51, 234, 0.3);
}

.feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(126, 34, 206, 0.2);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(126, 34, 206, 0.2);
}

/* Promo feature styling is handled directly on the .promo-feature class */

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.bonus-side .feature-text {
    flex: 1;
    text-align: left;
    padding-left: 10px;
    position: relative;
    z-index: 5;
}

.bonus-side .feature-text h4 {
    color: white;
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bonus-side .feature-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* Mobile styles */
@media screen and (max-width: 1024px) {
    .popLoginRequiredCont {
        padding: 0;
        width: 100vw;
        height: 100vh;
    }

    .popLoginRequiredCont>.poper {
        max-width: 95%;
    }

    .popLoginRequiredCont>.poper>.top>h2 {
        font-size: 20px;
    }

    .popLoginRequiredCont>.poper>.top>small {
        font-size: 12px;
    }

    .popLoginRequiredCont>.poper>.main>.content>.icon>img {
        width: 70px;
        height: 70px;
    }

    .popLoginRequiredCont>.poper>.main>.content>.message>h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .popLoginRequiredCont>.poper>.main>.content>.message>p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .popLoginRequiredCont>.poper>.main>.content>.actions>.login-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 120px;
    }

    .login-features {
        gap: 15px;
    }

    .login-feature {
        padding: 12px;
        gap: 10px;
    }

    .login-feature.promo-feature {
        background-size: 100px auto;
        background-position: right -20px center;
        padding-right: 60px;
    }

    .login-feature.case-feature {
        background-size: 130px auto;
        background-position: right -55px center;
        padding-right: 60px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .feature-icon.bonus-card {
        width: 60px;
        height: 45px;
        min-width: 60px;
    }

    .feature-text h4 {
        font-size: 13px;
    }

    .feature-text p {
        font-size: 11px;
    }
}

@media screen and (max-width: 768px) {
    .popLoginRequiredCont>.poper {
        padding: 16px;
    }

    .popLoginRequiredCont>.poper>.main>.content>.icon>img {
        width: 65px;
        height: 65px;
        margin-bottom: 14px;
    }

    .popLoginRequiredCont>.poper>.top>h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .popLoginRequiredCont>.poper>.top>small {
        font-size: 11px;
    }

    .popLoginRequiredCont>.poper>.main>.content>.message>h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .popLoginRequiredCont>.poper>.main>.content>.message>p {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .popLoginRequiredCont>.poper>.main>.content>.actions>.login-btn {
        padding: 9px 18px;
        font-size: 13px;
        min-width: 110px;
    }

    .login-features {
        flex-direction: column;
        gap: 12px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .feature-icon.bonus-card {
        width: 55px;
        height: 40px;
        min-width: 55px;
    }
}

@media screen and (max-width: 768px) {

    /* Force the popup to stay in place */
    .popLoginRequiredCont {
        padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
        position: fixed !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 999999 !important;
    }

    /* MOBILE ONLY: Make popup centered with rounded corners */
    .popLoginRequiredCont>.poper {
        width: min(92vw, 450px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: min(90dvh, calc(100vh - 24px)) !important;
        border-radius: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        margin: 0 !important;
        z-index: 9999999 !important;
    }

    .popLoginRequiredCont>.poper>.top {
        padding: 20px 15px 15px;
        margin-bottom: 15px;
    }

    .popLoginRequiredCont>.poper>.main {
        padding: 0;
        display: block;
        flex: 1;
        overflow-y: auto;
    }

    .main.mobile-vertical {
        flex-direction: column !important;
    }

    /* Hide the divider completely */
    .popLoginRequiredCont>.poper>.main>.divider {
        display: none;
    }

    /* Restructure for mobile - vertical layout with benefits directly under login button */
    .popLoginRequiredCont>.poper>.main>.login-side,
    .popLoginRequiredCont>.poper>.main>.bonus-side {
        float: none;
        width: 100%;
        padding: 0 20px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 15px;
        padding-bottom: 10px;
    }

    /* Style the benefits title same as desktop */
    .bonus-side .bonus-title {
        display: block;
        margin-top: 20px;
        margin-bottom: 15px;
        padding-top: 10px;
        border-top: 1px solid rgba(147, 51, 234, 0.3);
        width: 100%;
        text-align: center;
        font-size: 20px;
        color: white;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* Add margin to first feature with bonus title visible */
    .bonus-side .login-feature:first-child {
        margin-top: 5px;
    }

    .bonus-side .login-feature {
        padding: 16px;
        margin-bottom: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        background: linear-gradient(to right, rgba(126, 34, 206, 0.25), rgba(126, 34, 206, 0.1));
        border-radius: 12px;
        width: 100%;
        max-width: 280px;
    }

    .bonus-side .feature-text h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .bonus-side .feature-text p {
        font-size: 14px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn {
        min-width: 200px;
        width: 85%;
        margin-bottom: 0;
    }

    .login-feature.promo-feature {
        height: auto;
        max-height: calc(100% - 20px);
        overflow-y: auto;
    }

    .popLoginRequiredCont>.poper>.top {
        padding: 5px 0;
        margin-bottom: 0;
        border-bottom-color: rgba(147, 51, 234, 0.1);
    }

    .popLoginRequiredCont>.poper>.top>h2 {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .popLoginRequiredCont>.poper>.top>small {
        font-size: 12px;
    }

    .popLoginRequiredCont>.poper>.main {
        padding: 0;
    }

    .popLoginRequiredCont>.poper>.main>.login-side,
    .popLoginRequiredCont>.poper>.main>.bonus-side {
        padding: 8px 0;
        width: 100%;
    }

    /* Position content higher */
    .popLoginRequiredCont>.poper>.main>.login-side {
        padding-top: 0;
    }

    /* Reduce Steam icon size */
    .popLoginRequiredCont>.poper>.main>.login-side .icon>img {
        width: 65px;
        height: 65px;
        margin-bottom: 5px;
        margin-top: 5px;
    }

    /* Smaller text sizes */
    .popLoginRequiredCont>.poper>.main>.login-side .message>h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>p {
        font-size: 14px;
        margin-bottom: 12px;
    }

    /* Smaller login button */
    .popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn {
        height: 38px;
        font-size: 15px;
    }

    /* Benefits section */
    .bonus-side .bonus-title {
        font-size: 18px;
        margin-top: 5px;
        margin-bottom: 8px;
        padding-top: 5px;
    }

    .bonus-side .login-feature {
        padding: 12px 15px;
        margin: 0 10px 10px;
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
        border-radius: 10px;
    }

    .bonus-side .feature-text h4 {
        font-size: 14px;
    }

    .bonus-side .feature-text p {
        font-size: 12px;
    }

    .bonus-side .login-feature.promo-feature,
    .bonus-side .login-feature.case-feature {
        background-size: 80px auto;
        background-position: right -20px center;
    }

    .popLoginRequiredCont>.poper>.main>.content>.icon>img {
        width: 60px;
        height: 60px;
    }

    .popLoginRequiredCont>.poper>.main>.content>.message>h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .popLoginRequiredCont>.poper>.main>.content>.message>p {
        font-size: 14px;
    }

    .login-features {
        gap: 8px;
    }

    .login-feature {
        padding: 10px 8px;
    }

    .login-feature.promo-feature {
        background-size: 75px auto;
        padding-right: 45px;
        background-position: right -10px center;
    }

    .login-feature.case-feature {
        background-size: 80px auto;
        padding-right: 45px;
        background-position: right -15px center;
    }

    .popLoginRequiredCont>.poper>.top>small {
        font-size: 10px;
    }

    .popLoginRequiredCont>.poper>.main>.content>.message>p {
        margin-bottom: 16px;
    }

    .popLoginRequiredCont>.poper>.main>.content>.actions>.login-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 180px;
        width: 80%;
    }
}

@media screen and (max-width: 360px) {
    .popLoginRequiredCont>.poper {
        padding: 5px;
        max-height: 100%;
    }

    .popLoginRequiredCont>.poper>.top {
        padding: 8px 10px 5px;
    }

    .popLoginRequiredCont>.poper>.top>h2 {
        font-size: 16px;
    }

    .popLoginRequiredCont>.poper>.top>small {
        font-size: 11px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .icon>img {
        width: 55px;
        height: 55px;
        margin-bottom: 8px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn {
        padding: 8px 15px;
        font-size: 12px;
        min-width: 160px;
        width: 95%;
        height: 36px;
    }

    .bonus-side .bonus-title {
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 8px;
    }

    .bonus-side .login-feature {
        padding: 10px;
        margin-bottom: 10px;
        max-width: 230px;
    }

    .bonus-side .feature-text h4 {
        font-size: 13px;
    }

    .bonus-side .feature-text p {
        font-size: 11px;
    }
}

/* iPhone SE and other very small devices */
@media screen and (max-width: 320px) {
    .popLoginRequiredCont>.poper>.top>h2 {
        font-size: 15px;
    }

    .popLoginRequiredCont>.poper>.top>small {
        font-size: 10px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .icon>img {
        width: 50px;
        height: 50px;
        margin-bottom: 5px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>h3 {
        font-size: 15px;
        margin-bottom: 3px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>p {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn {
        height: 34px;
        font-size: 11px;
    }

    .bonus-side .login-feature {
        padding: 8px;
        margin-bottom: 8px;
    }

    .bonus-side .feature-text h4 {
        font-size: 12px;
    }

    .bonus-side .feature-text p {
        font-size: 10px;
        line-height: 1.2;
    }
}

/* Small height screens */
@media screen and (max-height: 650px) and (min-height: 501px) {
    .popLoginRequiredCont>.poper>.top {
        padding: 15px 15px 10px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .icon>img {
        width: 65px;
        height: 65px;
        margin-bottom: 10px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn {
        height: 36px;
        font-size: 14px;
        padding: 0 30px;
    }

    .bonus-side .bonus-title {
        margin-top: 15px;
        margin-bottom: 10px;
        font-size: 18px;
    }

    .bonus-side .login-feature {
        padding: 12px;
        margin-bottom: 12px;
    }

    .bonus-side .feature-text h4 {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .bonus-side .feature-text p {
        font-size: 11px;
    }
}

/* Safari on iPhone specific fixes - MOBILE ONLY */
@supports (-webkit-touch-callout: none) and (max-width: 768px) {
    .popLoginRequiredCont {
        padding: 0;
        inset: 0;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 100dvh;
        transform: none;
        position: fixed;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .popLoginRequiredCont>.poper {
        width: min(92vw, 450px);
        max-width: calc(100vw - 24px);
        max-height: min(90dvh, calc(100vh - 24px));
        border-radius: 16px;
        margin: 0 auto;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .popLoginRequiredCont>.poper>.top {
        padding: 10px 10px 5px;
    }

    .popLoginRequiredCont>.poper>.top>h2 {
        font-size: 16px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>p {
        font-size: 14px;
        line-height: 1.3;
    }

    .bonus-side .login-feature {
        margin-bottom: 10px;
    }

    .bonus-side .feature-text p {
        font-size: 12px;
        line-height: 1.2;
    }
}

/* Extra small height screens */
@media screen and (max-height: 500px) {
    .popLoginRequiredCont>.poper>.top {
        padding: 10px 15px 5px;
    }

    .popLoginRequiredCont>.poper>.top>h2 {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .popLoginRequiredCont>.poper>.top>small {
        font-size: 12px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .icon>img {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>h3 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>p {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn {
        height: 32px;
        font-size: 12px;
        padding: 0 20px;
    }

    .bonus-side .bonus-title {
        margin-top: 10px;
        margin-bottom: 8px;
        font-size: 16px;
        padding-top: 8px;
    }

    .bonus-side .login-feature {
        padding: 10px;
        margin-bottom: 8px;
        max-width: 240px;
    }

    .bonus-side .login-feature.promo-feature,
    .bonus-side .login-feature.case-feature {
        background-size: 70px auto;
        padding-right: 40px;
    }

    .bonus-side .feature-text h4 {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .bonus-side .feature-text p {
        font-size: 10px;
        line-height: 1.3;
    }
}

/* Mobile landscape mode */
@media screen and (max-height: 450px) and (orientation: landscape) {
    .popLoginRequiredCont>.poper {
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .popLoginRequiredCont>.poper>.main {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
    }

    .popLoginRequiredCont>.poper>.main>.login-side,
    .popLoginRequiredCont>.poper>.main>.bonus-side {
        width: 50%;
    }

    .bonus-side .login-feature {
        max-width: 100%;
    }

    margin-bottom: 8px;
}

.bonus-side .feature-text h4 {
    font-size: 12px;
}

.bonus-side .feature-text p {
    font-size: 10px;
    line-height: 1.2;
}

/* Small height screens */
@media screen and (max-height: 650px) and (min-height: 501px) {
    .popLoginRequiredCont>.poper>.top {
        padding: 15px 15px 10px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .icon>img {
        width: 65px;
        height: 65px;
        margin-bottom: 10px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn {
        height: 36px;
        font-size: 14px;
        padding: 0 30px;
    }

    .bonus-side .bonus-title {
        margin-top: 15px;
        margin-bottom: 10px;
        font-size: 18px;
    }

    .bonus-side .login-feature {
        padding: 12px;
        margin-bottom: 12px;
    }

    .bonus-side .feature-text h4 {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .bonus-side .feature-text p {
        font-size: 11px;
    }
}

/* Safari on iPhone specific fixes - MOBILE ONLY */
@supports (-webkit-touch-callout: none) and (max-width: 768px) {
    .popLoginRequiredCont {
        padding: 0;
        inset: 0;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 100dvh;
        transform: none;
        position: fixed;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .popLoginRequiredCont>.poper {
        width: min(92vw, 450px);
        max-width: calc(100vw - 24px);
        max-height: min(90dvh, calc(100vh - 24px));
        border-radius: 16px;
        margin: 0 auto;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .popLoginRequiredCont>.poper>.top {
        padding: 10px 10px 5px;
    }

    .popLoginRequiredCont>.poper>.top>h2 {
        font-size: 16px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>p {
        font-size: 14px;
        line-height: 1.3;
    }

    .bonus-side .login-feature {
        margin-bottom: 10px;
    }

    .bonus-side .feature-text p {
        font-size: 12px;
        line-height: 1.2;
    }
}

/* Extra small height screens */
@media screen and (max-height: 500px) {
    .popLoginRequiredCont>.poper>.top {
        padding: 10px 15px 5px;
    }

    .popLoginRequiredCont>.poper>.top>h2 {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .popLoginRequiredCont>.poper>.top>small {
        font-size: 12px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .icon>img {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>h3 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>p {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn {
        height: 32px;
        font-size: 12px;
        padding: 0 20px;
    }

    .bonus-side .bonus-title {
        margin-top: 10px;
        margin-bottom: 8px;
        font-size: 16px;
        padding-top: 8px;
    }

    .bonus-side .login-feature {
        padding: 10px;
        margin-bottom: 8px;
        max-width: 240px;
    }

    .bonus-side .login-feature.promo-feature,
    .bonus-side .login-feature.case-feature {
        background-size: 70px auto;
        padding-right: 40px;
    }

    .bonus-side .feature-text h4 {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .bonus-side .feature-text p {
        font-size: 10px;
        line-height: 1.3;
    }
}

/* Mobile landscape mode */
@media screen and (max-height: 450px) and (orientation: landscape) {
    .popLoginRequiredCont>.poper {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .popLoginRequiredCont>.poper>.top {
        padding: 10px 10px 5px;
    }

    .popLoginRequiredCont>.poper>.top>h2 {
        font-size: 16px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>p {
        font-size: 14px;
        line-height: 1.3;
    }

    .bonus-side .login-feature {
        margin-bottom: 10px;
    }

    .bonus-side .feature-text p {
        font-size: 12px;
        line-height: 1.2;
    }
}

/* Extra small height screens */
@media screen and (max-height: 500px) {
    .popLoginRequiredCont>.poper>.top {
        padding: 10px 15px 5px;
    }

    .popLoginRequiredCont>.poper>.top>h2 {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .popLoginRequiredCont>.poper>.top>small {
        font-size: 12px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .icon>img {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>h3 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .message>p {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .popLoginRequiredCont>.poper>.main>.login-side .actions>.login-btn {
        height: 32px;
        font-size: 12px;
        padding: 0 20px;
    }

    .bonus-side .bonus-title {
        margin-top: 10px;
        margin-bottom: 8px;
        font-size: 16px;
        padding-top: 8px;
    }

    .bonus-side .login-feature {
        padding: 10px;
        margin-bottom: 8px;
        max-width: 240px;
    }

    .bonus-side .login-feature.promo-feature,
    .bonus-side .login-feature.case-feature {
        background-size: 70px auto;
        padding-right: 40px;
    }

    .bonus-side .feature-text h4 {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .bonus-side .feature-text p {
        font-size: 10px;
        line-height: 1.3;
    }
}

/* Mobile landscape mode */
@media screen and (max-height: 450px) and (orientation: landscape) {
    .popLoginRequiredCont>.poper {
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .popLoginRequiredCont>.poper>.main {
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .code-badge {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
}

html.no-scroll,
html:has(body.no-scroll),
body.no-scroll {
    overflow: hidden !important;
    height: 100% !important;
}

/* Mobile-specific scroll lock with position fixed */
@media (max-width: 1024px) {
    body.no-scroll {
        position: fixed !important;
        width: 100% !important;
        overflow: hidden !important;
        touch-action: none !important;
        overscroll-behavior: none !important;
    }
}

/* Mobile styles for promo CTA buttons - fix text overflow */
@media screen and (max-width: 768px) {
    .promo-cta-btn {
        font-size: 13px !important;
        padding: 10px 16px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        min-height: 40px !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    .code-badge {
        font-size: 14px !important;
        padding: 10px 16px !important;
        letter-spacing: 1px !important;
    }
}

@media screen and (max-width: 480px) {
    .promo-cta-btn {
        font-size: 12px !important;
        padding: 8px 14px !important;
        letter-spacing: 0.3px !important;
    }

    .code-badge {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
}



/* ── Desktop fix: no scrollbar, mascot visible ─────────────────────────── */
@media screen and (min-width: 1025px) {
    /* Overlay: let mascot overflow on the left */
    .popLoginRequiredCont {
        overflow: visible !important;
    }

    /* Dialog: natural height, no scrollbar */
    .popLoginRequiredCont > .poper {
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        scrollbar-width: none !important;
    }

    .popLoginRequiredCont > .poper::-webkit-scrollbar {
        display: none !important;
    }
}

/* ── Predictable Deposit Required Popup Special Styling ────────────────── */
#predictableDepositRequiredPop .predictable-deposit-chain {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    transform: scale(0.97);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    opacity: 0;
    overflow: hidden;
    will-change: opacity, transform;
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

#predictableDepositRequiredPop.open .predictable-deposit-chain {
    opacity: 0.82;
    transform: scale(1);
}

#predictableDepositRequiredPop.closing .predictable-deposit-chain {
    opacity: 0;
    transform: scale(0.985);
}

#predictableDepositRequiredPop .registration-popup-ribbon {
    position: fixed;
    top: 0;
    left: 50%;
    width: min(300px, 32vh, 58vw);
    height: auto;
    transform: translate(-50%, -10px) scale(0.94);
    transform-origin: center bottom;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    transition:
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#predictableDepositRequiredPop .registration-popup-ribbon img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.48));
}

#predictableDepositRequiredPop.open .registration-popup-ribbon {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

#predictableDepositRequiredPop.closing .registration-popup-ribbon {
    opacity: 0;
    transform: translate(-50%, -6px) scale(0.97);
}

#predictableDepositRequiredPop .predictable-deposit-chain img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 112vw;
    min-width: 1180px;
    height: auto;
    max-width: none;
    transform: translate(-50%, -46%);
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.65));
}

#predictableDepositRequiredPop .poper.predictable-deposit-poper {
    width: min(520px, calc(100vw - 24px)) !important;
    padding: 28px 24px 24px !important;
    border-radius: 16px !important;
    background: linear-gradient(139deg, rgba(38, 35, 78, 0.98), rgba(23, 19, 61, 0.99)) !important;
    border: 1px solid rgba(147, 51, 234, 0.35) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 15px rgba(126, 34, 206, 0.25) inset !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    z-index: 2 !important;
}

#predictableDepositRequiredPop .poper.predictable-deposit-poper::before {
    content: none;
}

#predictableDepositRequiredPop .predictable-gold-mark {
    width: 108px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: -4px auto 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#predictableDepositRequiredPop .predictable-gold-mark img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    filter: none;
}

#predictableDepositRequiredPop .registration-case-gift {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -18px auto 4px;
    width: min(260px, 70vw);
    height: 150px;
    position: relative;
    z-index: 2;
}

#predictableDepositRequiredPop .registration-case-gift img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(147, 51, 234, 0.42));
}

#predictableDepositRequiredPop .registration-case-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(236, 72, 153, 0.38);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.16), rgba(236, 72, 153, 0.12));
    color: #e2e8f0;
}

#predictableDepositRequiredPop .registration-case-value strong {
    color: #f472b6;
    font-size: 22px;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(236, 72, 153, 0.45);
}

#predictableDepositRequiredPop .mascot-side {
    display: none !important;
}

#predictableDepositRequiredPop .predictable-deposit-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

#predictableDepositRequiredPop .predictable-deposit-header h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center !important;
}

#predictableDepositRequiredPop .predictable-deposit-header small {
    color: rgba(172, 169, 211, 0.9);
    font-size: 13px;
    font-weight: 500;
    text-align: center !important;
}

#predictableDepositRequiredPop .predictable-deposit-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#predictableDepositRequiredPop .predictable-info-card {
    width: 100%;
    background: rgba(18, 16, 38, 0.6);
    border: 1px solid rgba(147, 51, 234, 0.25);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#predictableDepositRequiredPop .info-card-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

#predictableDepositRequiredPop .predictable-info-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

#predictableDepositRequiredPop .predictable-info-card p.action-desc {
    color: rgba(172, 169, 211, 0.85);
    font-size: 12px;
    margin-top: 4px;
}

#predictableDepositRequiredPop.registration-deposit-popup .predictable-info-card p.registration-withdraw-highlight {
    color: #f6c945;
}

#predictableDepositRequiredPop .registration-pink-word {
    color: #f472b6;
    font-weight: 700;
}

#predictableDepositRequiredPop .predictable-actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Standard green button style matching the original popup. */
#predictableDepositRequiredPop .login-btn {
    background: linear-gradient(45deg, #16a34a, #22c55e) !important;
    border: none !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    height: 42px !important;
    min-width: 220px !important;
    width: 80% !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#predictableDepositRequiredPop .login-btn::before {
    background: linear-gradient(90deg, #16a34a, #4ade80, #16a34a) !important;
    background-size: 200% 100% !important;
    border-radius: 4px !important;
}

#predictableDepositRequiredPop .login-btn:hover {
    transform: scale(1.04) !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5) !important;
}

@media screen and (max-width: 480px) {
    #predictableDepositRequiredPop .poper.predictable-deposit-poper {
        padding: 24px 16px 20px !important;
    }

    #predictableDepositRequiredPop .predictable-gold-mark {
        width: 82px;
        height: 68px;
        margin-bottom: 10px;
    }

    #predictableDepositRequiredPop .predictable-gold-mark img {
        width: 62px;
        height: 62px;
    }

    #predictableDepositRequiredPop .predictable-deposit-chain {
        width: 100vw;
        min-width: 0;
    }

    #predictableDepositRequiredPop .predictable-deposit-chain img {
        width: 190vw;
        min-width: 900px;
    }

    #predictableDepositRequiredPop.open .predictable-deposit-chain {
        opacity: 0.58;
    }

    #predictableDepositRequiredPop .registration-popup-ribbon {
        width: min(230px, 26vh, 62vw);
    }
}

#predictableDepositRequiredPop .login-btn:hover::before {
    opacity: 1 !important;
    animation: shine 2s linear infinite !important;
}
