.new-bonus-cabinet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(180, 190, 210, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: auto;
}

.new-bonus-cabinet-overlay.active {
    display: grid;
}

.new-bonus-cabinet-modal {
    position: relative;
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(100, 120, 180, 0.18),
        0 2px 8px rgba(100, 120, 180, 0.10);
    padding: 28px 24px 24px;
    text-align: center;
    display: grid;
    place-items: center;
    gap: 16px;
    animation: nbcm-appear 0.3s ease-out;

    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@keyframes nbcm-appear {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.new-bonus-cabinet-modal__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.new-bonus-cabinet-modal__image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(220, 228, 245, 0.4);
}

.new-bonus-cabinet-modal__image img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
}

.new-bonus-cabinet-modal__bonus-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.new-bonus-cabinet-modal__description {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.new-bonus-cabinet-modal__claim-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
    margin-top: 4px;
    border: none;
}

.new-bonus-cabinet-modal__claim-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    text-decoration: none;
    color: #ffffff;
}

.new-bonus-cabinet-modal__claim-btn:active {
    transform: translateY(0);
    opacity: 1;
}

body.dark-theme .new-bonus-cabinet-overlay {
    background: rgba(10, 12, 22, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

body.dark-theme .new-bonus-cabinet-modal {
    background: rgba(18, 22, 40, 0.96);
    box-shadow:
        0 0 20px rgba(0, 229, 255, 0.45),
        0 0 60px rgba(0, 229, 255, 0.15),
        inset 0 0 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.dark-theme .new-bonus-cabinet-modal__title {
    color: #ffffff;
}

body.dark-theme .new-bonus-cabinet-modal__image {
    background: rgba(0, 0, 0, 0.25);
}

body.dark-theme .new-bonus-cabinet-modal__bonus-name {
    color: #e0e6f0;
}

body.dark-theme .new-bonus-cabinet-modal__description {
    color: rgba(224, 230, 240, 0.65);
}

body.dark-theme .new-bonus-cabinet-modal__claim-btn {
    background: linear-gradient(90deg, #00e5cc 0%, #00c8ff 100%);
    color: #0d1020;
}

body.dark-theme .new-bonus-cabinet-modal__claim-btn:hover {
    color: #0d1020;
}

@media (max-width: 480px) {
    .new-bonus-cabinet-overlay {
        padding: 0;
        justify-content: normal;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .new-bonus-cabinet-modal {
        max-width: 100%;
        padding: 20px 16px 18px;
        height: 100%;
        border-radius: 0;
        border: none;
        align-content: center;
    }

    body.dark-theme .new-bonus-cabinet-modal {
        border: none;
    }

    .new-bonus-cabinet-modal__title {
        font-size: 19px;
    }

    .new-bonus-cabinet-modal__image img {
        height: 170px;
    }
}
