.popup-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

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

.popup {
    background: rgba(30, 27, 22, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 16px;
    border: 1px solid #656565;
    box-shadow: 0px 12px 11px 0px rgba(0, 0, 0, 0.25),
                -4px -4px 4px 0px inset rgba(0, 0, 0, 0.25),
                4px 4px 4px 0px inset rgba(111, 111, 111, 0.25);
    max-width: 990px;
    width: 100%;
    padding: 40px 30px 30px 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup-overlay.active .popup {
    transform: scale(1);
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    color: white;
    flex: 1;
}

.content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    width: 100%;
}

.content p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
}

.actions {
    display: flex;
    gap: 16px;
    position: relative;
    width: 279px;
    height: 40px;
}

.button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 132px;
    border-radius: 30px;
    padding: 12px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.button-ok {
    left: 0;
    background: #fea700;
    border: 1px solid #fea700;
    box-shadow: -4px -4px 4px 0px inset rgba(64, 64, 64, 0.25),
                4px 4px 4px 0px inset rgba(255, 255, 255, 0.25);
}

.button-ok:hover {
    background: #e59600;
    border-color: #e59600;
}

.button-ok:active {
    transform: translateY(-50%) scale(0.98);
}

.button-ok span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: black;
    white-space: pre;
}

.button-learn {
    right: 0;
    background: transparent;
    border: 1px solid #fea700;
}

.button-learn:hover {
    background: rgba(254, 167, 0, 0.1);
}

.button-learn:active {
    transform: translateY(-50%) scale(0.98);
}

.button-learn span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #fea700;
    white-space: pre;
}

.trigger-button {
    padding: 12px 24px;
    background: white;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.trigger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.trigger-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .popup {
        padding: 30px 20px 20px 20px;
    }

    .content h2 {
        font-size: 16px;
    }

    .content p {
        font-size: 14px;
    }

    .actions {
        width: 100%;
        flex-direction: column;
        height: auto;
        gap: 12px;
    }

    .button {
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
        left: auto !important;
        right: auto !important;
    }

    .button-ok:active,
    .button-learn:active {
        transform: scale(0.98);
    }
}