body.modal-open {
    overflow: hidden;
    touch-action: none;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    pointer-events: auto;
}

.modal {
    position: fixed;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    width: min(520px, 92%);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    display: none;
    padding: 20px 22px 26px;
    max-height: 90vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-body {
    text-align: center;
}

.modal-body h2 {
    margin: 6px 0 10px;
    color: #1f6feb;
    font-size: 20px;
}

.modal-body p {
    margin: 0 0 18px;
    color: #333;
    line-height: 1.45;
}

.btn-primary {
    background: #ffc339;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:focus {
    outline: 3px solid rgba(31, 111, 235, 0.18);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

.modal-close:focus {
    outline: 3px solid rgba(0, 0, 0, 0.12);
}

.modal,
.overlay,
.modal-close,
.btn-primary {
    user-select: none;
    -webkit-user-select: none;
}