.popup-modal-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.popup-modal {
    position: relative;
    height: 500px;
    width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, #292929 0%, #4b71a2 100%);
    padding: 0 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease-in-out;
    pointer-events: all;
    z-index: 999999999;
}

body[data-rds-mode="mobile"] .popup-modal,
body[data-rds-mode="tablet"] .popup-modal {
    width: 100dvw;
    height: 100dvh;
    border-radius: 0;
    margin: 0;
}

.popup-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 76, 110, 0.959);
}

.popup-modal-header {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.popup-modal-title {
    background: linear-gradient(135deg, #ffffff 0%, #ff9900 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
    font-weight: 600;
}

.popup-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #c300ff 0%, #ff0000 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
}

.popup-modal-body {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #fff;
    color: #000;
    white-space: pre-line;
    overflow-y: auto;
}

.popup-modal-body-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.n3tnit-signature {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.n3tnit-signature-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px;
}

.popup-modal-footer {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-modal-btn {
    padding: 5px 10px;
    border-radius: 25px;
    background: linear-gradient(135deg, #00c3ff 0%, #cc00ff 100%);
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}