.offer-modal[hidden],
.offer-challenge-panel[hidden],
.offer-code-panel[hidden] {
    display: none !important;
}

.offer-modal-open {
    overflow: hidden;
}

.offer-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.80);
    backdrop-filter: blur(9px);
}

.offer-modal-dialog {
    position: relative;
    width: min(100%, 460px);
    max-height: min(90vh, 760px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 24px;
    color: #f8fafc;
    background: linear-gradient(145deg, #101e33, #07111f);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

.offer-modal-close {
    position: absolute;
    right: 16px;
    top: 13px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
}

.offer-modal-heading {
    margin: 0 36px 10px 0;
    font-size: 23px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.offer-modal-description {
    margin: 0 0 18px;
    color: #b6c2d2;
    font-size: 14px;
    line-height: 1.6;
}

.offer-modal-email {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    overflow-wrap: anywhere;
    font-weight: 700;
}

.offer-modal .form-message {
    margin: 12px 0 0;
}

.offer-modal .submit-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
}

.offer-modal #offerCodeForm {
    display: grid;
    gap: 12px;
}

.offer-modal #offerCodeInput {
    text-align: center;
    letter-spacing: 0.28em;
    font-size: 25px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.offer-modal-resend {
    border: 0;
    background: transparent;
    color: #7dd3fc;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 8px 0;
}

#offerTurnstileWidget {
    min-height: 65px;
}

@media (max-width: 480px) {
    .offer-modal-dialog {
        padding: 22px 18px;
        border-radius: 18px;
    }
}
